public final class Endpoint extends com.google.protobuf.GeneratedMessageV3 implements EndpointOrBuilder
An individual endpoint that provides a [service][google.cloud.servicedirectory.v1beta1.Service]. The service must already exist to create an endpoint.Protobuf type
google.cloud.servicedirectory.v1beta1.Endpoint| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Builder
An individual endpoint that provides a
[service][google.cloud.servicedirectory.v1beta1.Service].
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NETWORK_FIELD_NUMBER |
static int |
PORT_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Optional.
|
boolean |
equals(Object obj) |
String |
getAddress()
Optional.
|
com.google.protobuf.ByteString |
getAddressBytes()
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Endpoint |
getDefaultInstance() |
Endpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Optional.
|
Map<String,String> |
getMetadataMap()
Optional.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Optional.
|
String |
getMetadataOrThrow(String key)
Optional.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
String |
getNetwork()
Immutable.
|
com.google.protobuf.ByteString |
getNetworkBytes()
Immutable.
|
com.google.protobuf.Parser<Endpoint> |
getParserForType() |
int |
getPort()
Optional.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Endpoint.Builder |
newBuilder() |
static Endpoint.Builder |
newBuilder(Endpoint prototype) |
Endpoint.Builder |
newBuilderForType() |
protected Endpoint.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Endpoint |
parseDelimitedFrom(InputStream input) |
static Endpoint |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(byte[] data) |
static Endpoint |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(ByteBuffer data) |
static Endpoint |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(com.google.protobuf.ByteString data) |
static Endpoint |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Endpoint |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Endpoint |
parseFrom(InputStream input) |
static Endpoint |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Endpoint> |
parser() |
Endpoint.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Immutable. The resource name for the endpoint in the format `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface EndpointOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. The resource name for the endpoint in the format `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface EndpointOrBuilderpublic String getAddress()
Optional. An IPv4 or IPv6 address. Service Directory rejects bad addresses like: * `8.8.8` * `8.8.8.8:53` * `test:bad:address` * `[::1]` * `[::1]:8080` Limited to 45 characters.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];getAddress in interface EndpointOrBuilderpublic com.google.protobuf.ByteString getAddressBytes()
Optional. An IPv4 or IPv6 address. Service Directory rejects bad addresses like: * `8.8.8` * `8.8.8.8:53` * `test:bad:address` * `[::1]` * `[::1]:8080` Limited to 45 characters.
string address = 2 [(.google.api.field_behavior) = OPTIONAL];getAddressBytes in interface EndpointOrBuilderpublic int getPort()
Optional. Service Directory rejects values outside of `[0, 65535]`.
int32 port = 3 [(.google.api.field_behavior) = OPTIONAL];getPort in interface EndpointOrBuilderpublic int getMetadataCount()
EndpointOrBuilder
Optional. Metadata for the endpoint. This data can be consumed by service
clients.
Restrictions:
* The entire metadata dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Metadata that goes beyond this
limit are rejected
* Valid metadata keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/).
Metadata that fails to meet these requirements are rejected
* The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
for system metadata managed by Service Directory. If the user tries
to write to these keyspaces, those entries are silently ignored by
the system
Note: This field is equivalent to the `annotations` field in the v1 API.
They have the same syntax and read/write to the same location in Service
Directory.
map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL];getMetadataCount in interface EndpointOrBuilderpublic boolean containsMetadata(String key)
Optional. Metadata for the endpoint. This data can be consumed by service
clients.
Restrictions:
* The entire metadata dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Metadata that goes beyond this
limit are rejected
* Valid metadata keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/).
Metadata that fails to meet these requirements are rejected
* The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
for system metadata managed by Service Directory. If the user tries
to write to these keyspaces, those entries are silently ignored by
the system
Note: This field is equivalent to the `annotations` field in the v1 API.
They have the same syntax and read/write to the same location in Service
Directory.
map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL];containsMetadata in interface EndpointOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface EndpointOrBuilderpublic Map<String,String> getMetadataMap()
Optional. Metadata for the endpoint. This data can be consumed by service
clients.
Restrictions:
* The entire metadata dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Metadata that goes beyond this
limit are rejected
* Valid metadata keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/).
Metadata that fails to meet these requirements are rejected
* The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
for system metadata managed by Service Directory. If the user tries
to write to these keyspaces, those entries are silently ignored by
the system
Note: This field is equivalent to the `annotations` field in the v1 API.
They have the same syntax and read/write to the same location in Service
Directory.
map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL];getMetadataMap in interface EndpointOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Optional. Metadata for the endpoint. This data can be consumed by service
clients.
Restrictions:
* The entire metadata dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Metadata that goes beyond this
limit are rejected
* Valid metadata keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/).
Metadata that fails to meet these requirements are rejected
* The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
for system metadata managed by Service Directory. If the user tries
to write to these keyspaces, those entries are silently ignored by
the system
Note: This field is equivalent to the `annotations` field in the v1 API.
They have the same syntax and read/write to the same location in Service
Directory.
map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL];getMetadataOrDefault in interface EndpointOrBuilderpublic String getMetadataOrThrow(String key)
Optional. Metadata for the endpoint. This data can be consumed by service
clients.
Restrictions:
* The entire metadata dictionary may contain up to 512 characters,
spread accoss all key-value pairs. Metadata that goes beyond this
limit are rejected
* Valid metadata keys have two segments: an optional prefix and name,
separated by a slash (/). The name segment is required and must be 63
characters or less, beginning and ending with an alphanumeric character
([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
alphanumerics between. The prefix is optional. If specified, the prefix
must be a DNS subdomain: a series of DNS labels separated by dots (.),
not longer than 253 characters in total, followed by a slash (/).
Metadata that fails to meet these requirements are rejected
* The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
for system metadata managed by Service Directory. If the user tries
to write to these keyspaces, those entries are silently ignored by
the system
Note: This field is equivalent to the `annotations` field in the v1 API.
They have the same syntax and read/write to the same location in Service
Directory.
map<string, string> metadata = 4 [(.google.api.field_behavior) = OPTIONAL];getMetadataOrThrow in interface EndpointOrBuilderpublic String getNetwork()
Immutable. The Google Compute Engine network (VPC) of the endpoint in the format `projects/<project number>/locations/global/networks/*`. The project must be specified by project number (project id is rejected). Incorrectly formatted networks are rejected, but no other validation is performed on this field (ex. network or project existence, reachability, or permissions).
string network = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
getNetwork in interface EndpointOrBuilderpublic com.google.protobuf.ByteString getNetworkBytes()
Immutable. The Google Compute Engine network (VPC) of the endpoint in the format `projects/<project number>/locations/global/networks/*`. The project must be specified by project number (project id is rejected). Incorrectly formatted networks are rejected, but no other validation is performed on this field (ex. network or project existence, reachability, or permissions).
string network = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
getNetworkBytes in interface EndpointOrBuilderpublic boolean hasCreateTime()
Output only. The timestamp when the endpoint was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface EndpointOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when the endpoint was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface EndpointOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the endpoint was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface EndpointOrBuilderpublic boolean hasUpdateTime()
Output only. The timestamp when the endpoint was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface EndpointOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when the endpoint was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface EndpointOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when the endpoint was last updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface EndpointOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Endpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Endpoint parseFrom(InputStream input) throws IOException
IOExceptionpublic static Endpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Endpoint parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Endpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Endpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Endpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Endpoint.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Endpoint.Builder newBuilder()
public static Endpoint.Builder newBuilder(Endpoint prototype)
public Endpoint.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Endpoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Endpoint getDefaultInstance()
public static com.google.protobuf.Parser<Endpoint> parser()
public com.google.protobuf.Parser<Endpoint> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Endpoint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.