Class NetworkAttachmentConnectedEndpoint

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint
All Implemented Interfaces:
NetworkAttachmentConnectedEndpointOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NetworkAttachmentConnectedEndpoint extends com.google.protobuf.GeneratedMessage implements NetworkAttachmentConnectedEndpointOrBuilder
 [Output Only] A connection connected to this network attachment.
 
Protobuf type google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint
See Also:
  • Field Details

    • 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:
    • PROJECT_ID_OR_NUM_FIELD_NUMBER

      public static final int PROJECT_ID_OR_NUM_FIELD_NUMBER
      See Also:
    • SECONDARY_IP_CIDR_RANGES_FIELD_NUMBER

      public static final int SECONDARY_IP_CIDR_RANGES_FIELD_NUMBER
      See Also:
    • SERVICE_CLASS_ID_FIELD_NUMBER

      public static final int SERVICE_CLASS_ID_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • SUBNETWORK_FIELD_NUMBER

      public static final int SUBNETWORK_FIELD_NUMBER
      See Also:
    • SUBNETWORK_CIDR_RANGE_FIELD_NUMBER

      public static final int SUBNETWORK_CIDR_RANGE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

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

      public boolean hasIpAddress()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      hasIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public String getIpAddress()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddress in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       The IPv4 address assigned to the producer instance network interface.
       This value will be a range in case of Serverless.
       
      optional string ip_address = 406272220;
      Specified by:
      getIpAddressBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for ipAddress.
    • hasIpv6Address

      public boolean hasIpv6Address()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      hasIpv6Address in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the ipv6Address field is set.
    • getIpv6Address

      public String getIpv6Address()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6Address in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The ipv6Address.
    • getIpv6AddressBytes

      public com.google.protobuf.ByteString getIpv6AddressBytes()
       The IPv6 address assigned to the producer instance network interface.
       This is only assigned when the stack types of both the instance network
       interface and the consumer subnet are IPv4_IPv6.
       
      optional string ipv6_address = 341563804;
      Specified by:
      getIpv6AddressBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for ipv6Address.
    • hasProjectIdOrNum

      public boolean hasProjectIdOrNum()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      hasProjectIdOrNum in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the projectIdOrNum field is set.
    • getProjectIdOrNum

      public String getProjectIdOrNum()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNum in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The projectIdOrNum.
    • getProjectIdOrNumBytes

      public com.google.protobuf.ByteString getProjectIdOrNumBytes()
       The project id or number of the interface to which the IP was assigned.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNumBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for projectIdOrNum.
    • getSecondaryIpCidrRangesList

      public com.google.protobuf.ProtocolStringList getSecondaryIpCidrRangesList()
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesList in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      A list containing the secondaryIpCidrRanges.
    • getSecondaryIpCidrRangesCount

      public int getSecondaryIpCidrRangesCount()
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesCount in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The count of secondaryIpCidrRanges.
    • getSecondaryIpCidrRanges

      public String getSecondaryIpCidrRanges(int index)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRanges in interface NetworkAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The secondaryIpCidrRanges at the given index.
    • getSecondaryIpCidrRangesBytes

      public com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes(int index)
       Alias IP ranges from the same subnetwork.
       
      repeated string secondary_ip_cidr_ranges = 117184788;
      Specified by:
      getSecondaryIpCidrRangesBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the secondaryIpCidrRanges at the given index.
    • hasServiceClassId

      public boolean hasServiceClassId()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      hasServiceClassId in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the serviceClassId field is set.
    • getServiceClassId

      public String getServiceClassId()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      getServiceClassId in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The serviceClassId.
    • getServiceClassIdBytes

      public com.google.protobuf.ByteString getServiceClassIdBytes()
       The service class id of the producer service to which the IP was
       assigned.
       
      optional string service_class_id = 422763404;
      Specified by:
      getServiceClassIdBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for serviceClassId.
    • hasStatus

      public boolean hasStatus()
       The status of a connected endpoint to this network attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       The status of a connected endpoint to this network attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       The status of a connected endpoint to this network attachment.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for status.
    • hasSubnetwork

      public boolean hasSubnetwork()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      hasSubnetwork in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the subnetwork field is set.
    • getSubnetwork

      public String getSubnetwork()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetwork in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       The subnetwork used to assign the IP to the producer
       instance network interface.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetworkBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for subnetwork.
    • hasSubnetworkCidrRange

      public boolean hasSubnetworkCidrRange()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      hasSubnetworkCidrRange in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      Whether the subnetworkCidrRange field is set.
    • getSubnetworkCidrRange

      public String getSubnetworkCidrRange()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      getSubnetworkCidrRange in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The subnetworkCidrRange.
    • getSubnetworkCidrRangeBytes

      public com.google.protobuf.ByteString getSubnetworkCidrRangeBytes()
       Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal
       IP was allocated from.
       
      optional string subnetwork_cidr_range = 383249827;
      Specified by:
      getSubnetworkCidrRangeBytes in interface NetworkAttachmentConnectedEndpointOrBuilder
      Returns:
      The bytes for subnetworkCidrRange.
    • 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 NetworkAttachmentConnectedEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static NetworkAttachmentConnectedEndpoint parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static NetworkAttachmentConnectedEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkAttachmentConnectedEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static NetworkAttachmentConnectedEndpoint.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static NetworkAttachmentConnectedEndpoint getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<NetworkAttachmentConnectedEndpoint> 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 NetworkAttachmentConnectedEndpoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder