Class Subnetwork.Builder

  • All Implemented Interfaces:
    SubnetworkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Subnetwork

    public static final class Subnetwork.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
    implements SubnetworkOrBuilder
     Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.
     
    Protobuf type google.cloud.compute.v1.Subnetwork
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • clear

        public Subnetwork.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • getDefaultInstanceForType

        public Subnetwork getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Subnetwork build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Subnetwork buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Subnetwork.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • setField

        public Subnetwork.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • clearField

        public Subnetwork.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • clearOneof

        public Subnetwork.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • setRepeatedField

        public Subnetwork.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • addRepeatedField

        public Subnetwork.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • mergeFrom

        public Subnetwork.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subnetwork.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • mergeFrom

        public Subnetwork.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Subnetwork.Builder>
        Throws:
        IOException
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface SubnetworkOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface SubnetworkOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • setCreationTimestamp

        public Subnetwork.Builder setCreationTimestamp​(String value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public Subnetwork.Builder clearCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        public Subnetwork.Builder setCreationTimestampBytes​(com.google.protobuf.ByteString value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The bytes for creationTimestamp to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public 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;
        Specified by:
        hasDescription in interface SubnetworkOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public 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;
        Specified by:
        getDescription in interface SubnetworkOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public 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;
        Specified by:
        getDescriptionBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Subnetwork.Builder setDescription​(String value)
         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;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Subnetwork.Builder clearDescription()
         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:
        This builder for chaining.
      • setDescriptionBytes

        public Subnetwork.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasEnableFlowLogs

        public 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 to REGIONAL_MANAGED_PROXY.
         
        optional bool enable_flow_logs = 151544420;
        Specified by:
        hasEnableFlowLogs in interface SubnetworkOrBuilder
        Returns:
        Whether the enableFlowLogs field is set.
      • getEnableFlowLogs

        public 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 to REGIONAL_MANAGED_PROXY.
         
        optional bool enable_flow_logs = 151544420;
        Specified by:
        getEnableFlowLogs in interface SubnetworkOrBuilder
        Returns:
        The enableFlowLogs.
      • setEnableFlowLogs

        public Subnetwork.Builder setEnableFlowLogs​(boolean value)
         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 to REGIONAL_MANAGED_PROXY.
         
        optional bool enable_flow_logs = 151544420;
        Parameters:
        value - The enableFlowLogs to set.
        Returns:
        This builder for chaining.
      • clearEnableFlowLogs

        public Subnetwork.Builder clearEnableFlowLogs()
         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 to REGIONAL_MANAGED_PROXY.
         
        optional bool enable_flow_logs = 151544420;
        Returns:
        This builder for chaining.
      • hasExternalIpv6Prefix

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

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

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

        public Subnetwork.Builder setExternalIpv6Prefix​(String value)
         The external IPv6 address range that is owned by this subnetwork.
         
        optional string external_ipv6_prefix = 139299190;
        Parameters:
        value - The externalIpv6Prefix to set.
        Returns:
        This builder for chaining.
      • clearExternalIpv6Prefix

        public Subnetwork.Builder clearExternalIpv6Prefix()
         The external IPv6 address range that is owned by this subnetwork.
         
        optional string external_ipv6_prefix = 139299190;
        Returns:
        This builder for chaining.
      • setExternalIpv6PrefixBytes

        public Subnetwork.Builder setExternalIpv6PrefixBytes​(com.google.protobuf.ByteString value)
         The external IPv6 address range that is owned by this subnetwork.
         
        optional string external_ipv6_prefix = 139299190;
        Parameters:
        value - The bytes for externalIpv6Prefix to set.
        Returns:
        This builder for chaining.
      • hasFingerprint

        public 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;
        Specified by:
        hasFingerprint in interface SubnetworkOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • getFingerprint

        public 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;
        Specified by:
        getFingerprint in interface SubnetworkOrBuilder
        Returns:
        The fingerprint.
      • getFingerprintBytes

        public 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;
        Specified by:
        getFingerprintBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for fingerprint.
      • setFingerprint

        public Subnetwork.Builder setFingerprint​(String value)
         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;
        Parameters:
        value - The fingerprint to set.
        Returns:
        This builder for chaining.
      • clearFingerprint

        public Subnetwork.Builder clearFingerprint()
         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:
        This builder for chaining.
      • setFingerprintBytes

        public Subnetwork.Builder setFingerprintBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for fingerprint to set.
        Returns:
        This builder for chaining.
      • hasGatewayAddress

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

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

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

        public Subnetwork.Builder setGatewayAddress​(String value)
         [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
         
        optional string gateway_address = 459867385;
        Parameters:
        value - The gatewayAddress to set.
        Returns:
        This builder for chaining.
      • clearGatewayAddress

        public Subnetwork.Builder clearGatewayAddress()
         [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
         
        optional string gateway_address = 459867385;
        Returns:
        This builder for chaining.
      • setGatewayAddressBytes

        public Subnetwork.Builder setGatewayAddressBytes​(com.google.protobuf.ByteString value)
         [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
         
        optional string gateway_address = 459867385;
        Parameters:
        value - The bytes for gatewayAddress to set.
        Returns:
        This builder for chaining.
      • hasId

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

        public long getId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface SubnetworkOrBuilder
        Returns:
        The id.
      • setId

        public Subnetwork.Builder setId​(long value)
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Subnetwork.Builder clearId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Returns:
        This builder for chaining.
      • hasInternalIpv6Prefix

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

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

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

        public Subnetwork.Builder setInternalIpv6Prefix​(String value)
         [Output Only] The internal IPv6 address range that is assigned to this subnetwork.
         
        optional string internal_ipv6_prefix = 506270056;
        Parameters:
        value - The internalIpv6Prefix to set.
        Returns:
        This builder for chaining.
      • clearInternalIpv6Prefix

        public Subnetwork.Builder clearInternalIpv6Prefix()
         [Output Only] The internal IPv6 address range that is assigned to this subnetwork.
         
        optional string internal_ipv6_prefix = 506270056;
        Returns:
        This builder for chaining.
      • setInternalIpv6PrefixBytes

        public Subnetwork.Builder setInternalIpv6PrefixBytes​(com.google.protobuf.ByteString value)
         [Output Only] The internal IPv6 address range that is assigned to this subnetwork.
         
        optional string internal_ipv6_prefix = 506270056;
        Parameters:
        value - The bytes for internalIpv6Prefix to set.
        Returns:
        This builder for chaining.
      • hasIpCidrRange

        public 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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        hasIpCidrRange in interface SubnetworkOrBuilder
        Returns:
        Whether the ipCidrRange field is set.
      • getIpCidrRange

        public 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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRange in interface SubnetworkOrBuilder
        Returns:
        The ipCidrRange.
      • getIpCidrRangeBytes

        public 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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRangeBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for ipCidrRange.
      • setIpCidrRange

        public Subnetwork.Builder setIpCidrRange​(String value)
         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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Parameters:
        value - The ipCidrRange to set.
        Returns:
        This builder for chaining.
      • clearIpCidrRange

        public Subnetwork.Builder clearIpCidrRange()
         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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Returns:
        This builder for chaining.
      • setIpCidrRangeBytes

        public Subnetwork.Builder setIpCidrRangeBytes​(com.google.protobuf.ByteString value)
         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 the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
         
        optional string ip_cidr_range = 98117322;
        Parameters:
        value - The bytes for ipCidrRange to set.
        Returns:
        This builder for chaining.
      • 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 SubnetworkOrBuilder
        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 SubnetworkOrBuilder
        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 SubnetworkOrBuilder
        Returns:
        The bytes for ipv6AccessType.
      • setIpv6AccessType

        public Subnetwork.Builder setIpv6AccessType​(String value)
         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;
        Parameters:
        value - The ipv6AccessType to set.
        Returns:
        This builder for chaining.
      • clearIpv6AccessType

        public Subnetwork.Builder clearIpv6AccessType()
         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:
        This builder for chaining.
      • setIpv6AccessTypeBytes

        public Subnetwork.Builder setIpv6AccessTypeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for ipv6AccessType to set.
        Returns:
        This builder for chaining.
      • hasIpv6CidrRange

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

        public String getIpv6CidrRange()
         [Output Only] This field is for internal use.
         
        optional string ipv6_cidr_range = 273141258;
        Specified by:
        getIpv6CidrRange in interface SubnetworkOrBuilder
        Returns:
        The ipv6CidrRange.
      • getIpv6CidrRangeBytes

        public com.google.protobuf.ByteString getIpv6CidrRangeBytes()
         [Output Only] This field is for internal use.
         
        optional string ipv6_cidr_range = 273141258;
        Specified by:
        getIpv6CidrRangeBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for ipv6CidrRange.
      • setIpv6CidrRange

        public Subnetwork.Builder setIpv6CidrRange​(String value)
         [Output Only] This field is for internal use.
         
        optional string ipv6_cidr_range = 273141258;
        Parameters:
        value - The ipv6CidrRange to set.
        Returns:
        This builder for chaining.
      • clearIpv6CidrRange

        public Subnetwork.Builder clearIpv6CidrRange()
         [Output Only] This field is for internal use.
         
        optional string ipv6_cidr_range = 273141258;
        Returns:
        This builder for chaining.
      • setIpv6CidrRangeBytes

        public Subnetwork.Builder setIpv6CidrRangeBytes​(com.google.protobuf.ByteString value)
         [Output Only] This field is for internal use.
         
        optional string ipv6_cidr_range = 273141258;
        Parameters:
        value - The bytes for ipv6CidrRange to set.
        Returns:
        This builder for chaining.
      • hasKind

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

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

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public Subnetwork.Builder setKind​(String value)
         [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public Subnetwork.Builder clearKind()
         [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public Subnetwork.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasLogConfig

        public 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;
        Specified by:
        hasLogConfig in interface SubnetworkOrBuilder
        Returns:
        Whether the logConfig field is set.
      • getLogConfig

        public 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;
        Specified by:
        getLogConfig in interface SubnetworkOrBuilder
        Returns:
        The logConfig.
      • setLogConfig

        public Subnetwork.Builder setLogConfig​(SubnetworkLogConfig value)
         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;
      • setLogConfig

        public Subnetwork.Builder setLogConfig​(SubnetworkLogConfig.Builder builderForValue)
         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;
      • mergeLogConfig

        public Subnetwork.Builder mergeLogConfig​(SubnetworkLogConfig value)
         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;
      • clearLogConfig

        public Subnetwork.Builder clearLogConfig()
         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;
      • getLogConfigBuilder

        public SubnetworkLogConfig.Builder getLogConfigBuilder()
         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;
      • getLogConfigOrBuilder

        public 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;
        Specified by:
        getLogConfigOrBuilder in interface SubnetworkOrBuilder
      • hasName

        public 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 with RFC1035. 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;
        Specified by:
        hasName in interface SubnetworkOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public 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 with RFC1035. 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;
        Specified by:
        getName in interface SubnetworkOrBuilder
        Returns:
        The name.
      • getNameBytes

        public 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 with RFC1035. 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;
        Specified by:
        getNameBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Subnetwork.Builder setName​(String value)
         The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. 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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Subnetwork.Builder clearName()
         The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. 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:
        This builder for chaining.
      • setNameBytes

        public Subnetwork.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. 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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNetwork

        public 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;
        Specified by:
        hasNetwork in interface SubnetworkOrBuilder
        Returns:
        Whether the network field is set.
      • getNetwork

        public 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;
        Specified by:
        getNetwork in interface SubnetworkOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public 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;
        Specified by:
        getNetworkBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public Subnetwork.Builder setNetwork​(String value)
         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;
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public Subnetwork.Builder clearNetwork()
         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:
        This builder for chaining.
      • setNetworkBytes

        public Subnetwork.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • hasPrivateIpGoogleAccess

        public 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;
        Specified by:
        hasPrivateIpGoogleAccess in interface SubnetworkOrBuilder
        Returns:
        Whether the privateIpGoogleAccess field is set.
      • getPrivateIpGoogleAccess

        public 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;
        Specified by:
        getPrivateIpGoogleAccess in interface SubnetworkOrBuilder
        Returns:
        The privateIpGoogleAccess.
      • setPrivateIpGoogleAccess

        public Subnetwork.Builder setPrivateIpGoogleAccess​(boolean value)
         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;
        Parameters:
        value - The privateIpGoogleAccess to set.
        Returns:
        This builder for chaining.
      • clearPrivateIpGoogleAccess

        public Subnetwork.Builder clearPrivateIpGoogleAccess()
         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:
        This builder for chaining.
      • hasPrivateIpv6GoogleAccess

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

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

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

        public Subnetwork.Builder setPrivateIpv6GoogleAccess​(String value)
         This field is for internal use. This field can be both set at resource creation time and updated using patch.
         Check the PrivateIpv6GoogleAccess enum for the list of possible values.
         
        optional string private_ipv6_google_access = 48277006;
        Parameters:
        value - The privateIpv6GoogleAccess to set.
        Returns:
        This builder for chaining.
      • clearPrivateIpv6GoogleAccess

        public Subnetwork.Builder clearPrivateIpv6GoogleAccess()
         This field is for internal use. This field can be both set at resource creation time and updated using patch.
         Check the PrivateIpv6GoogleAccess enum for the list of possible values.
         
        optional string private_ipv6_google_access = 48277006;
        Returns:
        This builder for chaining.
      • setPrivateIpv6GoogleAccessBytes

        public Subnetwork.Builder setPrivateIpv6GoogleAccessBytes​(com.google.protobuf.ByteString value)
         This field is for internal use. This field can be both set at resource creation time and updated using patch.
         Check the PrivateIpv6GoogleAccess enum for the list of possible values.
         
        optional string private_ipv6_google_access = 48277006;
        Parameters:
        value - The bytes for privateIpv6GoogleAccess to set.
        Returns:
        This builder for chaining.
      • hasPurpose

        public boolean hasPurpose()
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Specified by:
        hasPurpose in interface SubnetworkOrBuilder
        Returns:
        Whether the purpose field is set.
      • getPurpose

        public String getPurpose()
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Specified by:
        getPurpose in interface SubnetworkOrBuilder
        Returns:
        The purpose.
      • getPurposeBytes

        public com.google.protobuf.ByteString getPurposeBytes()
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Specified by:
        getPurposeBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for purpose.
      • setPurpose

        public Subnetwork.Builder setPurpose​(String value)
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Parameters:
        value - The purpose to set.
        Returns:
        This builder for chaining.
      • clearPurpose

        public Subnetwork.Builder clearPurpose()
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Returns:
        This builder for chaining.
      • setPurposeBytes

        public Subnetwork.Builder setPurposeBytes​(com.google.protobuf.ByteString value)
         The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         Check the Purpose enum for the list of possible values.
         
        optional string purpose = 316407070;
        Parameters:
        value - The bytes for purpose to set.
        Returns:
        This builder for chaining.
      • hasRegion

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

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

        public 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;
        Specified by:
        getRegionBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public Subnetwork.Builder setRegion​(String value)
         URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
         
        optional string region = 138946292;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public Subnetwork.Builder clearRegion()
         URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
         
        optional string region = 138946292;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public Subnetwork.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
         
        optional string region = 138946292;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • hasRole

        public boolean hasRole()
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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 SubnetworkOrBuilder
        Returns:
        Whether the role field is set.
      • getRole

        public String getRole()
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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 SubnetworkOrBuilder
        Returns:
        The role.
      • getRoleBytes

        public com.google.protobuf.ByteString getRoleBytes()
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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 SubnetworkOrBuilder
        Returns:
        The bytes for role.
      • setRole

        public Subnetwork.Builder setRole​(String value)
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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;
        Parameters:
        value - The role to set.
        Returns:
        This builder for chaining.
      • clearRole

        public Subnetwork.Builder clearRole()
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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:
        This builder for chaining.
      • setRoleBytes

        public Subnetwork.Builder setRoleBytes​(com.google.protobuf.ByteString value)
         The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE 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;
        Parameters:
        value - The bytes for role to set.
        Returns:
        This builder for chaining.
      • getSecondaryIpRangesList

        public 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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
        Specified by:
        getSecondaryIpRangesList in interface SubnetworkOrBuilder
      • getSecondaryIpRangesCount

        public 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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
        Specified by:
        getSecondaryIpRangesCount in interface SubnetworkOrBuilder
      • getSecondaryIpRanges

        public 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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
        Specified by:
        getSecondaryIpRanges in interface SubnetworkOrBuilder
      • setSecondaryIpRanges

        public Subnetwork.Builder setSecondaryIpRanges​(int index,
                                                       SubnetworkSecondaryRange value)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • setSecondaryIpRanges

        public Subnetwork.Builder setSecondaryIpRanges​(int index,
                                                       SubnetworkSecondaryRange.Builder builderForValue)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addSecondaryIpRanges

        public Subnetwork.Builder addSecondaryIpRanges​(SubnetworkSecondaryRange value)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addSecondaryIpRanges

        public Subnetwork.Builder addSecondaryIpRanges​(int index,
                                                       SubnetworkSecondaryRange value)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addSecondaryIpRanges

        public Subnetwork.Builder addSecondaryIpRanges​(SubnetworkSecondaryRange.Builder builderForValue)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addSecondaryIpRanges

        public Subnetwork.Builder addSecondaryIpRanges​(int index,
                                                       SubnetworkSecondaryRange.Builder builderForValue)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addAllSecondaryIpRanges

        public Subnetwork.Builder addAllSecondaryIpRanges​(Iterable<? extends SubnetworkSecondaryRange> values)
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • clearSecondaryIpRanges

        public Subnetwork.Builder clearSecondaryIpRanges()
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • removeSecondaryIpRanges

        public Subnetwork.Builder removeSecondaryIpRanges​(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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • getSecondaryIpRangesBuilder

        public SubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder​(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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • getSecondaryIpRangesOrBuilder

        public 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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
        Specified by:
        getSecondaryIpRangesOrBuilder in interface SubnetworkOrBuilder
      • getSecondaryIpRangesOrBuilderList

        public 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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
        Specified by:
        getSecondaryIpRangesOrBuilderList in interface SubnetworkOrBuilder
      • addSecondaryIpRangesBuilder

        public SubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder()
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • addSecondaryIpRangesBuilder

        public SubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder​(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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • getSecondaryIpRangesBuilderList

        public List<SubnetworkSecondaryRange.Builder> getSecondaryIpRangesBuilderList()
         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 a patch request.
         
        repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
      • hasSelfLink

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

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

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public Subnetwork.Builder setSelfLink​(String value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public Subnetwork.Builder clearSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public Subnetwork.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • 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 to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Specified by:
        hasStackType in interface SubnetworkOrBuilder
        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 to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Specified by:
        getStackType in interface SubnetworkOrBuilder
        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 to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Specified by:
        getStackTypeBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for stackType.
      • setStackType

        public Subnetwork.Builder setStackType​(String value)
         The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Parameters:
        value - The stackType to set.
        Returns:
        This builder for chaining.
      • clearStackType

        public Subnetwork.Builder clearStackType()
         The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Returns:
        This builder for chaining.
      • setStackTypeBytes

        public Subnetwork.Builder setStackTypeBytes​(com.google.protobuf.ByteString value)
         The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_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 using patch.
         Check the StackType enum for the list of possible values.
         
        optional string stack_type = 425908881;
        Parameters:
        value - The bytes for stackType to set.
        Returns:
        This builder for chaining.
      • hasState

        public boolean hasState()
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Specified by:
        hasState in interface SubnetworkOrBuilder
        Returns:
        Whether the state field is set.
      • getState

        public String getState()
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Specified by:
        getState in interface SubnetworkOrBuilder
        Returns:
        The state.
      • getStateBytes

        public com.google.protobuf.ByteString getStateBytes()
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Specified by:
        getStateBytes in interface SubnetworkOrBuilder
        Returns:
        The bytes for state.
      • setState

        public Subnetwork.Builder setState​(String value)
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Subnetwork.Builder clearState()
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Returns:
        This builder for chaining.
      • setStateBytes

        public Subnetwork.Builder setStateBytes​(com.google.protobuf.ByteString value)
         [Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: 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 of READY
         Check the State enum for the list of possible values.
         
        optional string state = 109757585;
        Parameters:
        value - The bytes for state to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Subnetwork.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>
      • mergeUnknownFields

        public final Subnetwork.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Subnetwork.Builder>