Package com.google.cloud.compute.v1
Class NetworkEndpoint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.NetworkEndpoint
- All Implemented Interfaces:
NetworkEndpointOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class NetworkEndpoint
extends com.google.protobuf.GeneratedMessage
implements NetworkEndpointOrBuilder
The network endpoint.Protobuf type
google.cloud.compute.v1.NetworkEndpoint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe network endpoint.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional metadata defined as annotations on the network endpoint.booleanDeprecated.intOptional metadata defined as annotations on the network endpoint.Optional metadata defined as annotations on the network endpoint.getAnnotationsOrDefault(String key, String defaultValue) Optional metadata defined as annotations on the network endpoint.Optional metadata defined as annotations on the network endpoint.intRepresents the port number to which PSC consumer sends packets.static NetworkEndpointstatic final com.google.protobuf.Descriptors.DescriptorgetFqdn()Optional fully qualified domain name of network endpoint.com.google.protobuf.ByteStringOptional fully qualified domain name of network endpoint.The name or a URL of VM instance of this network endpoint.com.google.protobuf.ByteStringThe name or a URL of VM instance of this network endpoint.Optional IPv4 address of network endpoint.com.google.protobuf.ByteStringOptional IPv4 address of network endpoint.Optional IPv6 address of network endpoint.com.google.protobuf.ByteStringOptional IPv6 address of network endpoint.com.google.protobuf.Parser<NetworkEndpoint>intgetPort()Optional port number of network endpoint.intbooleanRepresents the port number to which PSC consumer sends packets.booleanhasFqdn()Optional fully qualified domain name of network endpoint.inthashCode()booleanThe name or a URL of VM instance of this network endpoint.booleanOptional IPv4 address of network endpoint.booleanOptional IPv6 address of network endpoint.booleanhasPort()Optional port number of network endpoint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic NetworkEndpoint.Builderstatic NetworkEndpoint.BuildernewBuilder(NetworkEndpoint prototype) protected NetworkEndpoint.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static NetworkEndpointparseDelimitedFrom(InputStream input) static NetworkEndpointparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkEndpointparseFrom(byte[] data) static NetworkEndpointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkEndpointparseFrom(com.google.protobuf.ByteString data) static NetworkEndpointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkEndpointparseFrom(com.google.protobuf.CodedInputStream input) static NetworkEndpointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkEndpointparseFrom(InputStream input) static NetworkEndpointparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkEndpointparseFrom(ByteBuffer data) static NetworkEndpointparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NetworkEndpoint>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER- See Also:
-
CLIENT_DESTINATION_PORT_FIELD_NUMBER
public static final int CLIENT_DESTINATION_PORT_FIELD_NUMBER- See Also:
-
FQDN_FIELD_NUMBER
public static final int FQDN_FIELD_NUMBER- See Also:
-
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER- See Also:
-
IP_ADDRESS_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER- See Also:
-
IPV6_ADDRESS_FIELD_NUMBER
public static final int IPV6_ADDRESS_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:NetworkEndpointOrBuilderOptional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsCountin interfaceNetworkEndpointOrBuilder
-
containsAnnotations
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
containsAnnotationsin interfaceNetworkEndpointOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceNetworkEndpointOrBuilder
-
getAnnotationsMap
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsMapin interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrDefault
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrDefaultin interfaceNetworkEndpointOrBuilder
-
getAnnotationsOrThrow
Optional metadata defined as annotations on the network endpoint.
map<string, string> annotations = 112032548;- Specified by:
getAnnotationsOrThrowin interfaceNetworkEndpointOrBuilder
-
hasClientDestinationPort
public boolean hasClientDestinationPort()Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type.
optional int32 client_destination_port = 123765766;- Specified by:
hasClientDestinationPortin interfaceNetworkEndpointOrBuilder- Returns:
- Whether the clientDestinationPort field is set.
-
getClientDestinationPort
public int getClientDestinationPort()Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type.
optional int32 client_destination_port = 123765766;- Specified by:
getClientDestinationPortin interfaceNetworkEndpointOrBuilder- Returns:
- The clientDestinationPort.
-
hasFqdn
public boolean hasFqdn()Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT.
optional string fqdn = 3150485;- Specified by:
hasFqdnin interfaceNetworkEndpointOrBuilder- Returns:
- Whether the fqdn field is set.
-
getFqdn
Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT.
optional string fqdn = 3150485;- Specified by:
getFqdnin interfaceNetworkEndpointOrBuilder- Returns:
- The fqdn.
-
getFqdnBytes
public com.google.protobuf.ByteString getFqdnBytes()Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT.
optional string fqdn = 3150485;- Specified by:
getFqdnBytesin interfaceNetworkEndpointOrBuilder- Returns:
- The bytes for fqdn.
-
hasInstance
public 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 andGCE_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 withRFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;- Specified by:
hasInstancein interfaceNetworkEndpointOrBuilder- Returns:
- Whether the instance field is set.
-
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 andGCE_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 withRFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;- Specified by:
getInstancein interfaceNetworkEndpointOrBuilder- Returns:
- The instance.
-
getInstanceBytes
public 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 andGCE_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 withRFC1035 or be a valid URL pointing to an existing instance.
optional string instance = 18257045;- Specified by:
getInstanceBytesin interfaceNetworkEndpointOrBuilder- Returns:
- The bytes for instance.
-
hasIpAddress
public 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 typeGCE_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;- Specified by:
hasIpAddressin interfaceNetworkEndpointOrBuilder- Returns:
- Whether the ipAddress field is set.
-
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 typeGCE_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;- Specified by:
getIpAddressin interfaceNetworkEndpointOrBuilder- Returns:
- The ipAddress.
-
getIpAddressBytes
public 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 typeGCE_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;- Specified by:
getIpAddressBytesin interfaceNetworkEndpointOrBuilder- Returns:
- The bytes for ipAddress.
-
hasIpv6Address
public boolean hasIpv6Address()Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;- Specified by:
hasIpv6Addressin interfaceNetworkEndpointOrBuilder- Returns:
- Whether the ipv6Address field is set.
-
getIpv6Address
Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;- Specified by:
getIpv6Addressin interfaceNetworkEndpointOrBuilder- Returns:
- The ipv6Address.
-
getIpv6AddressBytes
public com.google.protobuf.ByteString getIpv6AddressBytes()Optional IPv6 address of network endpoint.
optional string ipv6_address = 341563804;- Specified by:
getIpv6AddressBytesin interfaceNetworkEndpointOrBuilder- Returns:
- The bytes for ipv6Address.
-
hasPort
public 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 typeGCE_VM_IP.
optional int32 port = 3446913;- Specified by:
hasPortin interfaceNetworkEndpointOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public 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 typeGCE_VM_IP.
optional int32 port = 3446913;- Specified by:
getPortin interfaceNetworkEndpointOrBuilder- Returns:
- The port.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static NetworkEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NetworkEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static NetworkEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static NetworkEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NetworkEndpoint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-