Class UsableSubnetwork

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

@Generated public final class UsableSubnetwork extends com.google.protobuf.GeneratedMessage implements UsableSubnetworkOrBuilder
 Subnetwork which the current user has compute.subnetworks.use permission on.
 
Protobuf type google.cloud.compute.v1.UsableSubnetwork
See Also:
  • Field Details

    • EXTERNAL_IPV6_PREFIX_FIELD_NUMBER

      public static final int EXTERNAL_IPV6_PREFIX_FIELD_NUMBER
      See Also:
    • INTERNAL_IPV6_PREFIX_FIELD_NUMBER

      public static final int INTERNAL_IPV6_PREFIX_FIELD_NUMBER
      See Also:
    • IP_CIDR_RANGE_FIELD_NUMBER

      public static final int IP_CIDR_RANGE_FIELD_NUMBER
      See Also:
    • IPV6_ACCESS_TYPE_FIELD_NUMBER

      public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER
      See Also:
    • NETWORK_FIELD_NUMBER

      public static final int NETWORK_FIELD_NUMBER
      See Also:
    • PURPOSE_FIELD_NUMBER

      public static final int PURPOSE_FIELD_NUMBER
      See Also:
    • ROLE_FIELD_NUMBER

      public static final int ROLE_FIELD_NUMBER
      See Also:
    • SECONDARY_IP_RANGES_FIELD_NUMBER

      public static final int SECONDARY_IP_RANGES_FIELD_NUMBER
      See Also:
    • STACK_TYPE_FIELD_NUMBER

      public static final int STACK_TYPE_FIELD_NUMBER
      See Also:
    • SUBNETWORK_FIELD_NUMBER

      public static final int SUBNETWORK_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
    • hasExternalIpv6Prefix

      public boolean hasExternalIpv6Prefix()
       Output only. [Output Only] The external IPv6 address range that is assigned to this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Specified by:
      hasExternalIpv6Prefix in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the externalIpv6Prefix field is set.
    • getExternalIpv6Prefix

      public String getExternalIpv6Prefix()
       Output only. [Output Only] The external IPv6 address range that is assigned to this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Specified by:
      getExternalIpv6Prefix in interface UsableSubnetworkOrBuilder
      Returns:
      The externalIpv6Prefix.
    • getExternalIpv6PrefixBytes

      public com.google.protobuf.ByteString getExternalIpv6PrefixBytes()
       Output only. [Output Only] The external IPv6 address range that is assigned to this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Specified by:
      getExternalIpv6PrefixBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for externalIpv6Prefix.
    • hasInternalIpv6Prefix

      public boolean hasInternalIpv6Prefix()
       Output only. [Output Only] The internal IPv6 address range that is assigned to this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Specified by:
      hasInternalIpv6Prefix in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the internalIpv6Prefix field is set.
    • getInternalIpv6Prefix

      public String getInternalIpv6Prefix()
       Output only. [Output Only] The internal IPv6 address range that is assigned to this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Specified by:
      getInternalIpv6Prefix in interface UsableSubnetworkOrBuilder
      Returns:
      The internalIpv6Prefix.
    • getInternalIpv6PrefixBytes

      public com.google.protobuf.ByteString getInternalIpv6PrefixBytes()
       Output only. [Output Only] The internal IPv6 address range that is assigned to this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Specified by:
      getInternalIpv6PrefixBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for internalIpv6Prefix.
    • hasIpCidrRange

      public boolean hasIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      hasIpCidrRange in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the ipCidrRange field is set.
    • getIpCidrRange

      public String getIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRange in interface UsableSubnetworkOrBuilder
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      public com.google.protobuf.ByteString getIpCidrRangeBytes()
       The range of internal addresses that are owned by this subnetwork.
       
      optional string ip_cidr_range = 98117322;
      Specified by:
      getIpCidrRangeBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for ipCidrRange.
    • hasIpv6AccessType

      public boolean hasIpv6AccessType()
       The access type of IPv6 address this subnet holds. It's immutable and can
       only be specified during creation or the first time the subnet is updated
       into IPV4_IPV6 dual stack.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      hasIpv6AccessType in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the ipv6AccessType field is set.
    • getIpv6AccessType

      public String getIpv6AccessType()
       The access type of IPv6 address this subnet holds. It's immutable and can
       only be specified during creation or the first time the subnet is updated
       into IPV4_IPV6 dual stack.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      getIpv6AccessType in interface UsableSubnetworkOrBuilder
      Returns:
      The ipv6AccessType.
    • getIpv6AccessTypeBytes

      public com.google.protobuf.ByteString getIpv6AccessTypeBytes()
       The access type of IPv6 address this subnet holds. It's immutable and can
       only be specified during creation or the first time the subnet is updated
       into IPV4_IPV6 dual stack.
       Check the Ipv6AccessType enum for the list of possible values.
       
      optional string ipv6_access_type = 504658653;
      Specified by:
      getIpv6AccessTypeBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for ipv6AccessType.
    • hasNetwork

      public boolean hasNetwork()
       Network URL.
       
      optional string network = 232872494;
      Specified by:
      hasNetwork in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public String getNetwork()
       Network URL.
       
      optional string network = 232872494;
      Specified by:
      getNetwork in interface UsableSubnetworkOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Network URL.
       
      optional string network = 232872494;
      Specified by:
      getNetworkBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for network.
    • hasPurpose

      public boolean hasPurpose()
      
       Check the Purpose enum for the list of possible values.
       
      optional string purpose = 316407070;
      Specified by:
      hasPurpose in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the purpose field is set.
    • getPurpose

      public String getPurpose()
      
       Check the Purpose enum for the list of possible values.
       
      optional string purpose = 316407070;
      Specified by:
      getPurpose in interface UsableSubnetworkOrBuilder
      Returns:
      The purpose.
    • getPurposeBytes

      public com.google.protobuf.ByteString getPurposeBytes()
      
       Check the Purpose enum for the list of possible values.
       
      optional string purpose = 316407070;
      Specified by:
      getPurposeBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for purpose.
    • hasRole

      public boolean hasRole()
       The role of subnetwork. Currently, this field is only used when
       purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE
       subnetwork is one that is currently being used for Envoy-based load
       balancers in a region. A BACKUP subnetwork is one that is
       ready to be promoted to ACTIVE or is currently draining.
       This field can be updated with a patch request.
       Check the Role enum for the list of possible values.
       
      optional string role = 3506294;
      Specified by:
      hasRole in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the role field is set.
    • getRole

      public String getRole()
       The role of subnetwork. Currently, this field is only used when
       purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE
       subnetwork is one that is currently being used for Envoy-based load
       balancers in a region. A BACKUP subnetwork is one that is
       ready to be promoted to ACTIVE or is currently draining.
       This field can be updated with a patch request.
       Check the Role enum for the list of possible values.
       
      optional string role = 3506294;
      Specified by:
      getRole in interface UsableSubnetworkOrBuilder
      Returns:
      The role.
    • getRoleBytes

      public com.google.protobuf.ByteString getRoleBytes()
       The role of subnetwork. Currently, this field is only used when
       purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE
       subnetwork is one that is currently being used for Envoy-based load
       balancers in a region. A BACKUP subnetwork is one that is
       ready to be promoted to ACTIVE or is currently draining.
       This field can be updated with a patch request.
       Check the Role enum for the list of possible values.
       
      optional string role = 3506294;
      Specified by:
      getRoleBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for role.
    • getSecondaryIpRangesList

      public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()
       Secondary IP ranges.
       
      repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      Specified by:
      getSecondaryIpRangesList in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRangesOrBuilderList

      public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
       Secondary IP ranges.
       
      repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      Specified by:
      getSecondaryIpRangesOrBuilderList in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRangesCount

      public int getSecondaryIpRangesCount()
       Secondary IP ranges.
       
      repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      Specified by:
      getSecondaryIpRangesCount in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRanges

      public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)
       Secondary IP ranges.
       
      repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      Specified by:
      getSecondaryIpRanges in interface UsableSubnetworkOrBuilder
    • getSecondaryIpRangesOrBuilder

      public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
       Secondary IP ranges.
       
      repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      Specified by:
      getSecondaryIpRangesOrBuilder in interface UsableSubnetworkOrBuilder
    • hasStackType

      public boolean hasStackType()
       The stack type for the subnet. If set to IPV4_ONLY, new VMs
       in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and
       IPv6 addresses. If not specified, IPV4_ONLY is used.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      hasStackType in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the stackType field is set.
    • getStackType

      public String getStackType()
       The stack type for the subnet. If set to IPV4_ONLY, new VMs
       in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and
       IPv6 addresses. If not specified, IPV4_ONLY is used.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      getStackType in interface UsableSubnetworkOrBuilder
      Returns:
      The stackType.
    • getStackTypeBytes

      public com.google.protobuf.ByteString getStackTypeBytes()
       The stack type for the subnet. If set to IPV4_ONLY, new VMs
       in the subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and
       IPv6 addresses. If not specified, IPV4_ONLY is used.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the StackType enum for the list of possible values.
       
      optional string stack_type = 425908881;
      Specified by:
      getStackTypeBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for stackType.
    • hasSubnetwork

      public boolean hasSubnetwork()
       Subnetwork URL.
       
      optional string subnetwork = 307827694;
      Specified by:
      hasSubnetwork in interface UsableSubnetworkOrBuilder
      Returns:
      Whether the subnetwork field is set.
    • getSubnetwork

      public String getSubnetwork()
       Subnetwork URL.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetwork in interface UsableSubnetworkOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       Subnetwork URL.
       
      optional string subnetwork = 307827694;
      Specified by:
      getSubnetworkBytes in interface UsableSubnetworkOrBuilder
      Returns:
      The bytes for subnetwork.
    • 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 UsableSubnetwork parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static UsableSubnetwork.Builder newBuilder()
    • newBuilder

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

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

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

      public static UsableSubnetwork getDefaultInstance()
    • parser

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

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