Interface SubnetworkOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Subnetwork, Subnetwork.Builder

@Generated public interface SubnetworkOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasAllowSubnetCidrRoutesOverlap

      boolean hasAllowSubnetCidrRoutesOverlap()
       Whether this subnetwork's ranges can conflict with existing custom routes.
       Setting this to true allows this subnetwork's primary and secondary ranges
       to overlap with (and contain) custom routes that have already been
       configured on the corresponding network.
      
       For example if a static route has range 10.1.0.0/16, a subnet
       range 10.0.0.0/8 could only be created if allow_conflicting_routes=true.
      
       Overlapping is only allowed on subnetwork operations; routes
       whose ranges conflict with this subnetwork's ranges won't be allowed unless
       route.allow_conflicting_subnetworks is set to true.
      
       Typically packets destined to IPs within the subnetwork (which may contain
       private/sensitive data) are prevented from leaving the virtual network.
       Setting this field to true will disable this feature.
      
       The default value is false and applies to all existing subnetworks and
       automatically created subnetworks.
       
      optional bool allow_subnet_cidr_routes_overlap = 67856209;
      Returns:
      Whether the allowSubnetCidrRoutesOverlap field is set.
    • getAllowSubnetCidrRoutesOverlap

      boolean getAllowSubnetCidrRoutesOverlap()
       Whether this subnetwork's ranges can conflict with existing custom routes.
       Setting this to true allows this subnetwork's primary and secondary ranges
       to overlap with (and contain) custom routes that have already been
       configured on the corresponding network.
      
       For example if a static route has range 10.1.0.0/16, a subnet
       range 10.0.0.0/8 could only be created if allow_conflicting_routes=true.
      
       Overlapping is only allowed on subnetwork operations; routes
       whose ranges conflict with this subnetwork's ranges won't be allowed unless
       route.allow_conflicting_subnetworks is set to true.
      
       Typically packets destined to IPs within the subnetwork (which may contain
       private/sensitive data) are prevented from leaving the virtual network.
       Setting this field to true will disable this feature.
      
       The default value is false and applies to all existing subnetworks and
       automatically created subnetworks.
       
      optional bool allow_subnet_cidr_routes_overlap = 67856209;
      Returns:
      The allowSubnetCidrRoutesOverlap.
    • hasCreationTimestamp

      boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      The bytes for creationTimestamp.
    • hasDescription

      boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource. This field can be set only at resource creation time.
       
      optional string description = 422937596;
      Returns:
      Whether the description field is set.
    • getDescription

      String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource. This field can be set only at resource creation time.
       
      optional string description = 422937596;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource. This field can be set only at resource creation time.
       
      optional string description = 422937596;
      Returns:
      The bytes for description.
    • hasEnableFlowLogs

      boolean hasEnableFlowLogs()
       Whether to enable flow logging for this subnetwork. If this field is not
       explicitly set, it will not appear in get listings. If not set
       the default behavior is determined by the org policy, if there is no org
       policy specified, then it will default to disabled. This field isn't
       supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to uselogConfig.enable field instead.
       
      optional bool enable_flow_logs = 151544420;
      Returns:
      Whether the enableFlowLogs field is set.
    • getEnableFlowLogs

      boolean getEnableFlowLogs()
       Whether to enable flow logging for this subnetwork. If this field is not
       explicitly set, it will not appear in get listings. If not set
       the default behavior is determined by the org policy, if there is no org
       policy specified, then it will default to disabled. This field isn't
       supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to uselogConfig.enable field instead.
       
      optional bool enable_flow_logs = 151544420;
      Returns:
      The enableFlowLogs.
    • hasExternalIpv6Prefix

      boolean hasExternalIpv6Prefix()
       The external IPv6 address range that is owned by this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Returns:
      Whether the externalIpv6Prefix field is set.
    • getExternalIpv6Prefix

      String getExternalIpv6Prefix()
       The external IPv6 address range that is owned by this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Returns:
      The externalIpv6Prefix.
    • getExternalIpv6PrefixBytes

      com.google.protobuf.ByteString getExternalIpv6PrefixBytes()
       The external IPv6 address range that is owned by this
       subnetwork.
       
      optional string external_ipv6_prefix = 139299190;
      Returns:
      The bytes for externalIpv6Prefix.
    • hasFingerprint

      boolean hasFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a Subnetwork. An up-to-date fingerprint must be
       provided in order to update the Subnetwork, otherwise the
       request will fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a Subnetwork.
       
      optional string fingerprint = 234678500;
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      String getFingerprint()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a Subnetwork. An up-to-date fingerprint must be
       provided in order to update the Subnetwork, otherwise the
       request will fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a Subnetwork.
       
      optional string fingerprint = 234678500;
      Returns:
      The fingerprint.
    • getFingerprintBytes

      com.google.protobuf.ByteString getFingerprintBytes()
       Fingerprint of this resource. A hash of the contents stored in this object.
       This field is used in optimistic locking. This field will be ignored when
       inserting a Subnetwork. An up-to-date fingerprint must be
       provided in order to update the Subnetwork, otherwise the
       request will fail with error 412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a Subnetwork.
       
      optional string fingerprint = 234678500;
      Returns:
      The bytes for fingerprint.
    • hasGatewayAddress

      boolean hasGatewayAddress()
       Output only. [Output Only] The gateway address for default routes to reach destination
       addresses outside this subnetwork.
       
      optional string gateway_address = 459867385;
      Returns:
      Whether the gatewayAddress field is set.
    • getGatewayAddress

      String getGatewayAddress()
       Output only. [Output Only] The gateway address for default routes to reach destination
       addresses outside this subnetwork.
       
      optional string gateway_address = 459867385;
      Returns:
      The gatewayAddress.
    • getGatewayAddressBytes

      com.google.protobuf.ByteString getGatewayAddressBytes()
       Output only. [Output Only] The gateway address for default routes to reach destination
       addresses outside this subnetwork.
       
      optional string gateway_address = 459867385;
      Returns:
      The bytes for gatewayAddress.
    • hasId

      boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      Whether the id field is set.
    • getId

      long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      The id.
    • hasInternalIpv6Prefix

      boolean hasInternalIpv6Prefix()
       The internal IPv6 address range that is owned by this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Returns:
      Whether the internalIpv6Prefix field is set.
    • getInternalIpv6Prefix

      String getInternalIpv6Prefix()
       The internal IPv6 address range that is owned by this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Returns:
      The internalIpv6Prefix.
    • getInternalIpv6PrefixBytes

      com.google.protobuf.ByteString getInternalIpv6PrefixBytes()
       The internal IPv6 address range that is owned by this
       subnetwork.
       
      optional string internal_ipv6_prefix = 506270056;
      Returns:
      The bytes for internalIpv6Prefix.
    • hasIpCidrRange

      boolean hasIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       Provide this property when you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must
       be unique and non-overlapping within a network. Only IPv4 is supported.
       This field is set at resource creation time. The range can be any range
       listed in theValid
       ranges list. The range can be expanded after creation usingexpandIpCidrRange.
       
      optional string ip_cidr_range = 98117322;
      Returns:
      Whether the ipCidrRange field is set.
    • getIpCidrRange

      String getIpCidrRange()
       The range of internal addresses that are owned by this subnetwork.
       Provide this property when you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must
       be unique and non-overlapping within a network. Only IPv4 is supported.
       This field is set at resource creation time. The range can be any range
       listed in theValid
       ranges list. The range can be expanded after creation usingexpandIpCidrRange.
       
      optional string ip_cidr_range = 98117322;
      Returns:
      The ipCidrRange.
    • getIpCidrRangeBytes

      com.google.protobuf.ByteString getIpCidrRangeBytes()
       The range of internal addresses that are owned by this subnetwork.
       Provide this property when you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must
       be unique and non-overlapping within a network. Only IPv4 is supported.
       This field is set at resource creation time. The range can be any range
       listed in theValid
       ranges list. The range can be expanded after creation usingexpandIpCidrRange.
       
      optional string ip_cidr_range = 98117322;
      Returns:
      The bytes for ipCidrRange.
    • hasIpCollection

      boolean hasIpCollection()
       Reference to the source of IP, like a PublicDelegatedPrefix
       (PDP) for BYOIP. The PDP must be a sub-PDP in
       EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION
       mode.
      
       Use one of the following formats to specify a sub-PDP when creating a dual
       stack or IPv6-only subnetwork with external access using BYOIP:
      
       -
       Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       -
       Partial URL, as in
      
      
       - projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       - regions/region/publicDelegatedPrefixes/sub-pdp-name
       
      optional string ip_collection = 176818358;
      Returns:
      Whether the ipCollection field is set.
    • getIpCollection

      String getIpCollection()
       Reference to the source of IP, like a PublicDelegatedPrefix
       (PDP) for BYOIP. The PDP must be a sub-PDP in
       EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION
       mode.
      
       Use one of the following formats to specify a sub-PDP when creating a dual
       stack or IPv6-only subnetwork with external access using BYOIP:
      
       -
       Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       -
       Partial URL, as in
      
      
       - projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       - regions/region/publicDelegatedPrefixes/sub-pdp-name
       
      optional string ip_collection = 176818358;
      Returns:
      The ipCollection.
    • getIpCollectionBytes

      com.google.protobuf.ByteString getIpCollectionBytes()
       Reference to the source of IP, like a PublicDelegatedPrefix
       (PDP) for BYOIP. The PDP must be a sub-PDP in
       EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION
       mode.
      
       Use one of the following formats to specify a sub-PDP when creating a dual
       stack or IPv6-only subnetwork with external access using BYOIP:
      
       -
       Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       -
       Partial URL, as in
      
      
       - projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name
       - regions/region/publicDelegatedPrefixes/sub-pdp-name
       
      optional string ip_collection = 176818358;
      Returns:
      The bytes for ipCollection.
    • hasIpv6AccessType

      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;
      Returns:
      Whether the ipv6AccessType field is set.
    • getIpv6AccessType

      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;
      Returns:
      The ipv6AccessType.
    • getIpv6AccessTypeBytes

      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;
      Returns:
      The bytes for ipv6AccessType.
    • hasIpv6CidrRange

      boolean hasIpv6CidrRange()
       Output only. [Output Only] This field is for internal use.
       
      optional string ipv6_cidr_range = 273141258;
      Returns:
      Whether the ipv6CidrRange field is set.
    • getIpv6CidrRange

      String getIpv6CidrRange()
       Output only. [Output Only] This field is for internal use.
       
      optional string ipv6_cidr_range = 273141258;
      Returns:
      The ipv6CidrRange.
    • getIpv6CidrRangeBytes

      com.google.protobuf.ByteString getIpv6CidrRangeBytes()
       Output only. [Output Only] This field is for internal use.
       
      optional string ipv6_cidr_range = 273141258;
      Returns:
      The bytes for ipv6CidrRange.
    • hasIpv6GceEndpoint

      boolean hasIpv6GceEndpoint()
       Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the
       following:
      
       - VM_ONLY: The subnetwork can be used for creating instances and
       IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6
       ranges from a public delegated prefix and cannot be used to create NetLb.
       - VM_AND_FR: The subnetwork can be used for creating both VM
       instances and Forwarding Rules. It can also be used to reserve IPv6
       addresses with both VM and FR endpoint types. Such a subnetwork gets its
       IPv6 range from Google IP Pool directly.
       Check the Ipv6GceEndpoint enum for the list of possible values.
       
      optional string ipv6_gce_endpoint = 320382307;
      Returns:
      Whether the ipv6GceEndpoint field is set.
    • getIpv6GceEndpoint

      String getIpv6GceEndpoint()
       Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the
       following:
      
       - VM_ONLY: The subnetwork can be used for creating instances and
       IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6
       ranges from a public delegated prefix and cannot be used to create NetLb.
       - VM_AND_FR: The subnetwork can be used for creating both VM
       instances and Forwarding Rules. It can also be used to reserve IPv6
       addresses with both VM and FR endpoint types. Such a subnetwork gets its
       IPv6 range from Google IP Pool directly.
       Check the Ipv6GceEndpoint enum for the list of possible values.
       
      optional string ipv6_gce_endpoint = 320382307;
      Returns:
      The ipv6GceEndpoint.
    • getIpv6GceEndpointBytes

      com.google.protobuf.ByteString getIpv6GceEndpointBytes()
       Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the
       following:
      
       - VM_ONLY: The subnetwork can be used for creating instances and
       IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6
       ranges from a public delegated prefix and cannot be used to create NetLb.
       - VM_AND_FR: The subnetwork can be used for creating both VM
       instances and Forwarding Rules. It can also be used to reserve IPv6
       addresses with both VM and FR endpoint types. Such a subnetwork gets its
       IPv6 range from Google IP Pool directly.
       Check the Ipv6GceEndpoint enum for the list of possible values.
       
      optional string ipv6_gce_endpoint = 320382307;
      Returns:
      The bytes for ipv6GceEndpoint.
    • hasKind

      boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#subnetwork
       for Subnetwork resources.
       
      optional string kind = 3292052;
      Returns:
      Whether the kind field is set.
    • getKind

      String getKind()
       Output only. [Output Only] Type of the resource. Always compute#subnetwork
       for Subnetwork resources.
       
      optional string kind = 3292052;
      Returns:
      The kind.
    • getKindBytes

      com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#subnetwork
       for Subnetwork resources.
       
      optional string kind = 3292052;
      Returns:
      The bytes for kind.
    • hasLogConfig

      boolean hasLogConfig()
       This field denotes the VPC flow logging options for this subnetwork.
       If logging is enabled, logs are exported to Cloud Logging.
       
      optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
      Returns:
      Whether the logConfig field is set.
    • getLogConfig

      SubnetworkLogConfig getLogConfig()
       This field denotes the VPC flow logging options for this subnetwork.
       If logging is enabled, logs are exported to Cloud Logging.
       
      optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
      Returns:
      The logConfig.
    • getLogConfigOrBuilder

      SubnetworkLogConfigOrBuilder getLogConfigOrBuilder()
       This field denotes the VPC flow logging options for this subnetwork.
       If logging is enabled, logs are exported to Cloud Logging.
       
      optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
    • hasName

      boolean hasName()
       The name of the resource, provided by the client when initially creating
       the resource. The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Returns:
      Whether the name field is set.
    • getName

      String getName()
       The name of the resource, provided by the client when initially creating
       the resource. The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       The name of the resource, provided by the client when initially creating
       the resource. The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Returns:
      The bytes for name.
    • hasNetwork

      boolean hasNetwork()
       The URL of the network to which this subnetwork belongs, provided by the
       client when initially creating the subnetwork. This field can be set only
       at resource creation time.
       
      optional string network = 232872494;
      Returns:
      Whether the network field is set.
    • getNetwork

      String getNetwork()
       The URL of the network to which this subnetwork belongs, provided by the
       client when initially creating the subnetwork. This field can be set only
       at resource creation time.
       
      optional string network = 232872494;
      Returns:
      The network.
    • getNetworkBytes

      com.google.protobuf.ByteString getNetworkBytes()
       The URL of the network to which this subnetwork belongs, provided by the
       client when initially creating the subnetwork. This field can be set only
       at resource creation time.
       
      optional string network = 232872494;
      Returns:
      The bytes for network.
    • hasParams

      boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SubnetworkParams params = 78313862;
      Returns:
      Whether the params field is set.
    • getParams

      SubnetworkParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SubnetworkParams params = 78313862;
      Returns:
      The params.
    • getParamsOrBuilder

      SubnetworkParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SubnetworkParams params = 78313862;
    • hasPrivateIpGoogleAccess

      boolean hasPrivateIpGoogleAccess()
       Whether the VMs in this subnet can access Google services without assigned
       external IP addresses. This field can be both set at resource creation
       time and updated using setPrivateIpGoogleAccess.
       
      optional bool private_ip_google_access = 421491790;
      Returns:
      Whether the privateIpGoogleAccess field is set.
    • getPrivateIpGoogleAccess

      boolean getPrivateIpGoogleAccess()
       Whether the VMs in this subnet can access Google services without assigned
       external IP addresses. This field can be both set at resource creation
       time and updated using setPrivateIpGoogleAccess.
       
      optional bool private_ip_google_access = 421491790;
      Returns:
      The privateIpGoogleAccess.
    • hasPrivateIpv6GoogleAccess

      boolean hasPrivateIpv6GoogleAccess()
       This field is for internal use.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Returns:
      Whether the privateIpv6GoogleAccess field is set.
    • getPrivateIpv6GoogleAccess

      String getPrivateIpv6GoogleAccess()
       This field is for internal use.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Returns:
      The privateIpv6GoogleAccess.
    • getPrivateIpv6GoogleAccessBytes

      com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes()
       This field is for internal use.
      
       This field can be both set at resource creation time and updated usingpatch.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Returns:
      The bytes for privateIpv6GoogleAccess.
    • hasPurpose

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

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

      com.google.protobuf.ByteString getPurposeBytes()
      
       Check the Purpose enum for the list of possible values.
       
      optional string purpose = 316407070;
      Returns:
      The bytes for purpose.
    • hasRegion

      boolean hasRegion()
       URL of the region where the Subnetwork resides. This
       field can be set only at resource creation time.
       
      optional string region = 138946292;
      Returns:
      Whether the region field is set.
    • getRegion

      String getRegion()
       URL of the region where the Subnetwork resides. This
       field can be set only at resource creation time.
       
      optional string region = 138946292;
      Returns:
      The region.
    • getRegionBytes

      com.google.protobuf.ByteString getRegionBytes()
       URL of the region where the Subnetwork resides. This
       field can be set only at resource creation time.
       
      optional string region = 138946292;
      Returns:
      The bytes for region.
    • hasReservedInternalRange

      boolean hasReservedInternalRange()
       The URL of the reserved internal range.
       
      optional string reserved_internal_range = 286248754;
      Returns:
      Whether the reservedInternalRange field is set.
    • getReservedInternalRange

      String getReservedInternalRange()
       The URL of the reserved internal range.
       
      optional string reserved_internal_range = 286248754;
      Returns:
      The reservedInternalRange.
    • getReservedInternalRangeBytes

      com.google.protobuf.ByteString getReservedInternalRangeBytes()
       The URL of the reserved internal range.
       
      optional string reserved_internal_range = 286248754;
      Returns:
      The bytes for reservedInternalRange.
    • hasResolveSubnetMask

      boolean hasResolveSubnetMask()
       Configures subnet mask resolution for this subnetwork.
       Check the ResolveSubnetMask enum for the list of possible values.
       
      optional string resolve_subnet_mask = 517696699;
      Returns:
      Whether the resolveSubnetMask field is set.
    • getResolveSubnetMask

      String getResolveSubnetMask()
       Configures subnet mask resolution for this subnetwork.
       Check the ResolveSubnetMask enum for the list of possible values.
       
      optional string resolve_subnet_mask = 517696699;
      Returns:
      The resolveSubnetMask.
    • getResolveSubnetMaskBytes

      com.google.protobuf.ByteString getResolveSubnetMaskBytes()
       Configures subnet mask resolution for this subnetwork.
       Check the ResolveSubnetMask enum for the list of possible values.
       
      optional string resolve_subnet_mask = 517696699;
      Returns:
      The bytes for resolveSubnetMask.
    • hasRole

      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;
      Returns:
      Whether the role field is set.
    • getRole

      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;
      Returns:
      The role.
    • getRoleBytes

      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;
      Returns:
      The bytes for role.
    • getSecondaryIpRangesList

      List<SubnetworkSecondaryRange> getSecondaryIpRangesList()
       An array of configurations for secondary IP ranges for VM instances
       contained in this subnetwork. The primary IP of such VM must belong to the
       primary ipCidrRange of the subnetwork. The alias IPs may belong to either
       primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges.
       
      repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
    • getSecondaryIpRanges

      SubnetworkSecondaryRange getSecondaryIpRanges(int index)
       An array of configurations for secondary IP ranges for VM instances
       contained in this subnetwork. The primary IP of such VM must belong to the
       primary ipCidrRange of the subnetwork. The alias IPs may belong to either
       primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges.
       
      repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
    • getSecondaryIpRangesCount

      int getSecondaryIpRangesCount()
       An array of configurations for secondary IP ranges for VM instances
       contained in this subnetwork. The primary IP of such VM must belong to the
       primary ipCidrRange of the subnetwork. The alias IPs may belong to either
       primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges.
       
      repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
    • getSecondaryIpRangesOrBuilderList

      List<? extends SubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
       An array of configurations for secondary IP ranges for VM instances
       contained in this subnetwork. The primary IP of such VM must belong to the
       primary ipCidrRange of the subnetwork. The alias IPs may belong to either
       primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges.
       
      repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
    • getSecondaryIpRangesOrBuilder

      SubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
       An array of configurations for secondary IP ranges for VM instances
       contained in this subnetwork. The primary IP of such VM must belong to the
       primary ipCidrRange of the subnetwork. The alias IPs may belong to either
       primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges.
       
      repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
    • hasSelfLink

      boolean hasSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      String getSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      The selfLink.
    • getSelfLinkBytes

      com.google.protobuf.ByteString getSelfLinkBytes()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      The bytes for selfLink.
    • hasStackType

      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;
      Returns:
      Whether the stackType field is set.
    • getStackType

      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;
      Returns:
      The stackType.
    • getStackTypeBytes

      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;
      Returns:
      The bytes for stackType.
    • hasState

      boolean hasState()
       Output only. [Output Only] The state of the subnetwork, which can be one of the
       following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the
       purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that
       connections to the load balancer are being drained. A subnetwork that is
       draining cannot be used or modified until it reaches a status ofREADY
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      Whether the state field is set.
    • getState

      String getState()
       Output only. [Output Only] The state of the subnetwork, which can be one of the
       following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the
       purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that
       connections to the load balancer are being drained. A subnetwork that is
       draining cannot be used or modified until it reaches a status ofREADY
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      The state.
    • getStateBytes

      com.google.protobuf.ByteString getStateBytes()
       Output only. [Output Only] The state of the subnetwork, which can be one of the
       following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the
       purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that
       connections to the load balancer are being drained. A subnetwork that is
       draining cannot be used or modified until it reaches a status ofREADY
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      The bytes for state.
    • getSystemReservedExternalIpv6RangesList

      List<String> getSystemReservedExternalIpv6RangesList()
       Output only. [Output Only] The array of external IPv6 network ranges reserved from
       the subnetwork's external IPv6 range for system use.
       
      repeated string system_reserved_external_ipv6_ranges = 65324129;
      Returns:
      A list containing the systemReservedExternalIpv6Ranges.
    • getSystemReservedExternalIpv6RangesCount

      int getSystemReservedExternalIpv6RangesCount()
       Output only. [Output Only] The array of external IPv6 network ranges reserved from
       the subnetwork's external IPv6 range for system use.
       
      repeated string system_reserved_external_ipv6_ranges = 65324129;
      Returns:
      The count of systemReservedExternalIpv6Ranges.
    • getSystemReservedExternalIpv6Ranges

      String getSystemReservedExternalIpv6Ranges(int index)
       Output only. [Output Only] The array of external IPv6 network ranges reserved from
       the subnetwork's external IPv6 range for system use.
       
      repeated string system_reserved_external_ipv6_ranges = 65324129;
      Parameters:
      index - The index of the element to return.
      Returns:
      The systemReservedExternalIpv6Ranges at the given index.
    • getSystemReservedExternalIpv6RangesBytes

      com.google.protobuf.ByteString getSystemReservedExternalIpv6RangesBytes(int index)
       Output only. [Output Only] The array of external IPv6 network ranges reserved from
       the subnetwork's external IPv6 range for system use.
       
      repeated string system_reserved_external_ipv6_ranges = 65324129;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the systemReservedExternalIpv6Ranges at the given index.
    • getSystemReservedInternalIpv6RangesList

      List<String> getSystemReservedInternalIpv6RangesList()
       Output only. [Output Only] The array of internal IPv6 network ranges reserved from
       the subnetwork's internal IPv6 range for system use.
       
      repeated string system_reserved_internal_ipv6_ranges = 432294995;
      Returns:
      A list containing the systemReservedInternalIpv6Ranges.
    • getSystemReservedInternalIpv6RangesCount

      int getSystemReservedInternalIpv6RangesCount()
       Output only. [Output Only] The array of internal IPv6 network ranges reserved from
       the subnetwork's internal IPv6 range for system use.
       
      repeated string system_reserved_internal_ipv6_ranges = 432294995;
      Returns:
      The count of systemReservedInternalIpv6Ranges.
    • getSystemReservedInternalIpv6Ranges

      String getSystemReservedInternalIpv6Ranges(int index)
       Output only. [Output Only] The array of internal IPv6 network ranges reserved from
       the subnetwork's internal IPv6 range for system use.
       
      repeated string system_reserved_internal_ipv6_ranges = 432294995;
      Parameters:
      index - The index of the element to return.
      Returns:
      The systemReservedInternalIpv6Ranges at the given index.
    • getSystemReservedInternalIpv6RangesBytes

      com.google.protobuf.ByteString getSystemReservedInternalIpv6RangesBytes(int index)
       Output only. [Output Only] The array of internal IPv6 network ranges reserved from
       the subnetwork's internal IPv6 range for system use.
       
      repeated string system_reserved_internal_ipv6_ranges = 432294995;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the systemReservedInternalIpv6Ranges at the given index.
    • hasUtilizationDetails

      boolean hasUtilizationDetails()
       Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains
       the total number of allocated and free IPs in each range.
       
      optional .google.cloud.compute.v1.SubnetworkUtilizationDetails utilization_details = 125404453;
      Returns:
      Whether the utilizationDetails field is set.
    • getUtilizationDetails

      SubnetworkUtilizationDetails getUtilizationDetails()
       Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains
       the total number of allocated and free IPs in each range.
       
      optional .google.cloud.compute.v1.SubnetworkUtilizationDetails utilization_details = 125404453;
      Returns:
      The utilizationDetails.
    • getUtilizationDetailsOrBuilder

      SubnetworkUtilizationDetailsOrBuilder getUtilizationDetailsOrBuilder()
       Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains
       the total number of allocated and free IPs in each range.
       
      optional .google.cloud.compute.v1.SubnetworkUtilizationDetails utilization_details = 125404453;