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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    The 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Optional metadata defined as annotations on the network endpoint.
    boolean
     
    Deprecated.
    int
    Optional metadata defined as annotations on the network endpoint.
    Optional metadata defined as annotations on the network endpoint.
    Optional metadata defined as annotations on the network endpoint.
    Optional metadata defined as annotations on the network endpoint.
    int
    Represents the port number to which PSC consumer sends packets.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Optional fully qualified domain name of network endpoint.
    com.google.protobuf.ByteString
    Optional fully qualified domain name of network endpoint.
    The name or a URL of VM instance of this network endpoint.
    com.google.protobuf.ByteString
    The name or a URL of VM instance of this network endpoint.
    Optional IPv4 address of network endpoint.
    com.google.protobuf.ByteString
    Optional IPv4 address of network endpoint.
    Optional IPv6 address of network endpoint.
    com.google.protobuf.ByteString
    Optional IPv6 address of network endpoint.
    com.google.protobuf.Parser<NetworkEndpoint>
     
    int
    Optional port number of network endpoint.
    int
     
    boolean
    Represents the port number to which PSC consumer sends packets.
    boolean
    Optional fully qualified domain name of network endpoint.
    int
     
    boolean
    The name or a URL of VM instance of this network endpoint.
    boolean
    Optional IPv4 address of network endpoint.
    boolean
    Optional IPv6 address of network endpoint.
    boolean
    Optional port number of network endpoint.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<NetworkEndpoint>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: NetworkEndpointOrBuilder
       Optional metadata defined as annotations on the network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsCount in interface NetworkEndpointOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional metadata defined as annotations on the network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      containsAnnotations in interface NetworkEndpointOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface NetworkEndpointOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional metadata defined as annotations on the network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsMap in interface NetworkEndpointOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional metadata defined as annotations on the network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrDefault in interface NetworkEndpointOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional metadata defined as annotations on the network endpoint.
       
      map<string, string> annotations = 112032548;
      Specified by:
      getAnnotationsOrThrow in interface NetworkEndpointOrBuilder
    • 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:
      hasClientDestinationPort in interface NetworkEndpointOrBuilder
      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:
      getClientDestinationPort in interface NetworkEndpointOrBuilder
      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:
      hasFqdn in interface NetworkEndpointOrBuilder
      Returns:
      Whether the fqdn field is set.
    • getFqdn

      public String 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:
      getFqdn in interface NetworkEndpointOrBuilder
      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:
      getFqdnBytes in interface NetworkEndpointOrBuilder
      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:
      hasInstance in interface NetworkEndpointOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public 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 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:
      getInstance in interface NetworkEndpointOrBuilder
      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:
      getInstanceBytes in interface NetworkEndpointOrBuilder
      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:
      hasIpAddress in interface NetworkEndpointOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public 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 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:
      getIpAddress in interface NetworkEndpointOrBuilder
      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:
      getIpAddressBytes in interface NetworkEndpointOrBuilder
      Returns:
      The bytes for ipAddress.
    • hasIpv6Address

      public boolean hasIpv6Address()
       Optional IPv6 address of network endpoint.
       
      optional string ipv6_address = 341563804;
      Specified by:
      hasIpv6Address in interface NetworkEndpointOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • getIpv6Address

      public String getIpv6Address()
       Optional IPv6 address of network endpoint.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6Address in interface NetworkEndpointOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public com.google.protobuf.ByteString getIpv6AddressBytes()
       Optional IPv6 address of network endpoint.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6AddressBytes in interface NetworkEndpointOrBuilder
      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:
      hasPort in interface NetworkEndpointOrBuilder
      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:
      getPort in interface NetworkEndpointOrBuilder
      Returns:
      The port.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static NetworkEndpoint parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetworkEndpoint parseDelimitedFrom(InputStream input) throws IOException
      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

      public NetworkEndpoint.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NetworkEndpoint.Builder newBuilder()
    • newBuilder

      public static NetworkEndpoint.Builder newBuilder(NetworkEndpoint prototype)
    • toBuilder

      public NetworkEndpoint.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NetworkEndpoint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NetworkEndpoint getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NetworkEndpoint> parser()
    • getParserForType

      public com.google.protobuf.Parser<NetworkEndpoint> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public NetworkEndpoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder