public final class NetworkEndpoint extends com.google.protobuf.GeneratedMessageV3 implements NetworkEndpointOrBuilder
The network endpoint.Protobuf type
google.cloud.compute.v1.NetworkEndpoint| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkEndpoint.Builder
The network endpoint.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
CLIENT_DESTINATION_PORT_FIELD_NUMBER |
static int |
FQDN_FIELD_NUMBER |
static int |
INSTANCE_FIELD_NUMBER |
static int |
IP_ADDRESS_FIELD_NUMBER |
static int |
IPV6_ADDRESS_FIELD_NUMBER |
static int |
PORT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Optional metadata defined as annotations on the network endpoint.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Optional metadata defined as annotations on the network endpoint.
|
Map<String,String> |
getAnnotationsMap()
Optional metadata defined as annotations on the network endpoint.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Optional metadata defined as annotations on the network endpoint.
|
String |
getAnnotationsOrThrow(String key)
Optional metadata defined as annotations on the network endpoint.
|
int |
getClientDestinationPort()
Represents the port number to which PSC consumer sends packets.
|
static NetworkEndpoint |
getDefaultInstance() |
NetworkEndpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFqdn()
Optional fully qualified domain name of network endpoint.
|
com.google.protobuf.ByteString |
getFqdnBytes()
Optional fully qualified domain name of network endpoint.
|
String |
getInstance()
The name or a URL of VM instance of this network endpoint.
|
com.google.protobuf.ByteString |
getInstanceBytes()
The name or a URL of VM instance of this network endpoint.
|
String |
getIpAddress()
Optional IPv4 address of network endpoint.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
Optional IPv4 address of network endpoint.
|
String |
getIpv6Address()
Optional IPv6 address of network endpoint.
|
com.google.protobuf.ByteString |
getIpv6AddressBytes()
Optional IPv6 address of network endpoint.
|
com.google.protobuf.Parser<NetworkEndpoint> |
getParserForType() |
int |
getPort()
Optional port number of network endpoint.
|
int |
getSerializedSize() |
boolean |
hasClientDestinationPort()
Represents the port number to which PSC consumer sends packets.
|
boolean |
hasFqdn()
Optional fully qualified domain name of network endpoint.
|
int |
hashCode() |
boolean |
hasInstance()
The name or a URL of VM instance of this network endpoint.
|
boolean |
hasIpAddress()
Optional IPv4 address of network endpoint.
|
boolean |
hasIpv6Address()
Optional IPv6 address of network endpoint.
|
boolean |
hasPort()
Optional port number of network endpoint.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static NetworkEndpoint.Builder |
newBuilder() |
static NetworkEndpoint.Builder |
newBuilder(NetworkEndpoint prototype) |
NetworkEndpoint.Builder |
newBuilderForType() |
protected NetworkEndpoint.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static NetworkEndpoint |
parseDelimitedFrom(InputStream input) |
static NetworkEndpoint |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkEndpoint |
parseFrom(byte[] data) |
static NetworkEndpoint |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkEndpoint |
parseFrom(ByteBuffer data) |
static NetworkEndpoint |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkEndpoint |
parseFrom(com.google.protobuf.ByteString data) |
static NetworkEndpoint |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkEndpoint |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NetworkEndpoint |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NetworkEndpoint |
parseFrom(InputStream input) |
static NetworkEndpoint |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<NetworkEndpoint> |
parser() |
NetworkEndpoint.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 ANNOTATIONS_FIELD_NUMBER
public static final int CLIENT_DESTINATION_PORT_FIELD_NUMBER
public static final int FQDN_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
public static final int IPV6_ADDRESS_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getAnnotationsCount()
NetworkEndpointOrBuilderOptional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsCount in interface NetworkEndpointOrBuilderpublic boolean containsAnnotations(String key)
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;containsAnnotations in interface NetworkEndpointOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface NetworkEndpointOrBuilderpublic Map<String,String> getAnnotationsMap()
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsMap in interface NetworkEndpointOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsOrDefault in interface NetworkEndpointOrBuilderpublic String getAnnotationsOrThrow(String key)
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;getAnnotationsOrThrow in interface NetworkEndpointOrBuilderpublic boolean hasClientDestinationPort()
Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
optional int32 client_destination_port = 123765766;hasClientDestinationPort in interface NetworkEndpointOrBuilderpublic int getClientDestinationPort()
Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
optional int32 client_destination_port = 123765766;getClientDestinationPort in interface NetworkEndpointOrBuilderpublic boolean hasFqdn()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;hasFqdn in interface NetworkEndpointOrBuilderpublic String getFqdn()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;getFqdn in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getFqdnBytes()
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
optional string fqdn = 3150485;getFqdnBytes in interface NetworkEndpointOrBuilderpublic boolean hasInstance()
The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;hasInstance in interface NetworkEndpointOrBuilderpublic String getInstance()
The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;getInstance in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getInstanceBytes()
The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;getInstanceBytes in interface NetworkEndpointOrBuilderpublic boolean hasIpAddress()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.
optional string ip_address = 406272220;hasIpAddress in interface NetworkEndpointOrBuilderpublic String getIpAddress()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.
optional string ip_address = 406272220;getIpAddress in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getIpAddressBytes()
Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.
optional string ip_address = 406272220;getIpAddressBytes in interface NetworkEndpointOrBuilderpublic boolean hasIpv6Address()
Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;hasIpv6Address in interface NetworkEndpointOrBuilderpublic String getIpv6Address()
Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;getIpv6Address in interface NetworkEndpointOrBuilderpublic com.google.protobuf.ByteString getIpv6AddressBytes()
Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;getIpv6AddressBytes in interface NetworkEndpointOrBuilderpublic boolean hasPort()
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP.
optional int32 port = 3446913;hasPort in interface NetworkEndpointOrBuilderpublic int getPort()
Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP.
optional int32 port = 3446913;getPort in interface NetworkEndpointOrBuilderpublic 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 NetworkEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NetworkEndpoint parseFrom(InputStream input) throws IOException
IOExceptionpublic static NetworkEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NetworkEndpoint parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static NetworkEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NetworkEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static NetworkEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic NetworkEndpoint.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static NetworkEndpoint.Builder newBuilder()
public static NetworkEndpoint.Builder newBuilder(NetworkEndpoint prototype)
public NetworkEndpoint.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected NetworkEndpoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static NetworkEndpoint getDefaultInstance()
public static com.google.protobuf.Parser<NetworkEndpoint> parser()
public com.google.protobuf.Parser<NetworkEndpoint> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public NetworkEndpoint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.