Class AccessConfig.Builder

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

    public static final class AccessConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
    implements AccessConfigOrBuilder
     An access configuration attached to an instance's network interface. Only one access config per instance is supported.
     
    Protobuf type google.cloud.compute.v1.AccessConfig
    • 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<AccessConfig.Builder>
      • clear

        public AccessConfig.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<AccessConfig.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<AccessConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public AccessConfig.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<AccessConfig.Builder>
      • setField

        public AccessConfig.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<AccessConfig.Builder>
      • clearField

        public AccessConfig.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<AccessConfig.Builder>
      • clearOneof

        public AccessConfig.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<AccessConfig.Builder>
      • setRepeatedField

        public AccessConfig.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<AccessConfig.Builder>
      • addRepeatedField

        public AccessConfig.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<AccessConfig.Builder>
      • mergeFrom

        public AccessConfig.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<AccessConfig.Builder>
      • isInitialized

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

        public AccessConfig.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<AccessConfig.Builder>
        Throws:
        IOException
      • hasExternalIpv6

        public boolean hasExternalIpv6()
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Specified by:
        hasExternalIpv6 in interface AccessConfigOrBuilder
        Returns:
        Whether the externalIpv6 field is set.
      • getExternalIpv6

        public String getExternalIpv6()
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Specified by:
        getExternalIpv6 in interface AccessConfigOrBuilder
        Returns:
        The externalIpv6.
      • getExternalIpv6Bytes

        public com.google.protobuf.ByteString getExternalIpv6Bytes()
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Specified by:
        getExternalIpv6Bytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for externalIpv6.
      • setExternalIpv6

        public AccessConfig.Builder setExternalIpv6​(String value)
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Parameters:
        value - The externalIpv6 to set.
        Returns:
        This builder for chaining.
      • clearExternalIpv6

        public AccessConfig.Builder clearExternalIpv6()
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Returns:
        This builder for chaining.
      • setExternalIpv6Bytes

        public AccessConfig.Builder setExternalIpv6Bytes​(com.google.protobuf.ByteString value)
         Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
         
        optional string external_ipv6 = 532703707;
        Parameters:
        value - The bytes for externalIpv6 to set.
        Returns:
        This builder for chaining.
      • hasExternalIpv6PrefixLength

        public boolean hasExternalIpv6PrefixLength()
         Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.
         
        optional int32 external_ipv6_prefix_length = 425672143;
        Specified by:
        hasExternalIpv6PrefixLength in interface AccessConfigOrBuilder
        Returns:
        Whether the externalIpv6PrefixLength field is set.
      • getExternalIpv6PrefixLength

        public int getExternalIpv6PrefixLength()
         Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.
         
        optional int32 external_ipv6_prefix_length = 425672143;
        Specified by:
        getExternalIpv6PrefixLength in interface AccessConfigOrBuilder
        Returns:
        The externalIpv6PrefixLength.
      • setExternalIpv6PrefixLength

        public AccessConfig.Builder setExternalIpv6PrefixLength​(int value)
         Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.
         
        optional int32 external_ipv6_prefix_length = 425672143;
        Parameters:
        value - The externalIpv6PrefixLength to set.
        Returns:
        This builder for chaining.
      • clearExternalIpv6PrefixLength

        public AccessConfig.Builder clearExternalIpv6PrefixLength()
         Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.
         
        optional int32 external_ipv6_prefix_length = 425672143;
        Returns:
        This builder for chaining.
      • hasKind

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

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

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

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

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

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

        public boolean hasName()
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Specified by:
        hasName in interface AccessConfigOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Specified by:
        getName in interface AccessConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Specified by:
        getNameBytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for name.
      • setName

        public AccessConfig.Builder setName​(String value)
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public AccessConfig.Builder clearName()
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Returns:
        This builder for chaining.
      • setNameBytes

        public AccessConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNatIP

        public boolean hasNatIP()
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Specified by:
        hasNatIP in interface AccessConfigOrBuilder
        Returns:
        Whether the natIP field is set.
      • getNatIP

        public String getNatIP()
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Specified by:
        getNatIP in interface AccessConfigOrBuilder
        Returns:
        The natIP.
      • getNatIPBytes

        public com.google.protobuf.ByteString getNatIPBytes()
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Specified by:
        getNatIPBytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for natIP.
      • setNatIP

        public AccessConfig.Builder setNatIP​(String value)
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Parameters:
        value - The natIP to set.
        Returns:
        This builder for chaining.
      • clearNatIP

        public AccessConfig.Builder clearNatIP()
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Returns:
        This builder for chaining.
      • setNatIPBytes

        public AccessConfig.Builder setNatIPBytes​(com.google.protobuf.ByteString value)
         Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
         
        optional string nat_i_p = 117634556;
        Parameters:
        value - The bytes for natIP to set.
        Returns:
        This builder for chaining.
      • hasNetworkTier

        public boolean hasNetworkTier()
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Specified by:
        hasNetworkTier in interface AccessConfigOrBuilder
        Returns:
        Whether the networkTier field is set.
      • getNetworkTier

        public String getNetworkTier()
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Specified by:
        getNetworkTier in interface AccessConfigOrBuilder
        Returns:
        The networkTier.
      • getNetworkTierBytes

        public com.google.protobuf.ByteString getNetworkTierBytes()
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Specified by:
        getNetworkTierBytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for networkTier.
      • setNetworkTier

        public AccessConfig.Builder setNetworkTier​(String value)
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Parameters:
        value - The networkTier to set.
        Returns:
        This builder for chaining.
      • clearNetworkTier

        public AccessConfig.Builder clearNetworkTier()
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Returns:
        This builder for chaining.
      • setNetworkTierBytes

        public AccessConfig.Builder setNetworkTierBytes​(com.google.protobuf.ByteString value)
         This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
         Check the NetworkTier enum for the list of possible values.
         
        optional string network_tier = 517397843;
        Parameters:
        value - The bytes for networkTier to set.
        Returns:
        This builder for chaining.
      • hasPublicPtrDomainName

        public boolean hasPublicPtrDomainName()
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Specified by:
        hasPublicPtrDomainName in interface AccessConfigOrBuilder
        Returns:
        Whether the publicPtrDomainName field is set.
      • getPublicPtrDomainName

        public String getPublicPtrDomainName()
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Specified by:
        getPublicPtrDomainName in interface AccessConfigOrBuilder
        Returns:
        The publicPtrDomainName.
      • getPublicPtrDomainNameBytes

        public com.google.protobuf.ByteString getPublicPtrDomainNameBytes()
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Specified by:
        getPublicPtrDomainNameBytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for publicPtrDomainName.
      • setPublicPtrDomainName

        public AccessConfig.Builder setPublicPtrDomainName​(String value)
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Parameters:
        value - The publicPtrDomainName to set.
        Returns:
        This builder for chaining.
      • clearPublicPtrDomainName

        public AccessConfig.Builder clearPublicPtrDomainName()
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Returns:
        This builder for chaining.
      • setPublicPtrDomainNameBytes

        public AccessConfig.Builder setPublicPtrDomainNameBytes​(com.google.protobuf.ByteString value)
         The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range.
         
        optional string public_ptr_domain_name = 316599167;
        Parameters:
        value - The bytes for publicPtrDomainName to set.
        Returns:
        This builder for chaining.
      • hasSetPublicPtr

        public boolean hasSetPublicPtr()
         Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
         
        optional bool set_public_ptr = 523870229;
        Specified by:
        hasSetPublicPtr in interface AccessConfigOrBuilder
        Returns:
        Whether the setPublicPtr field is set.
      • getSetPublicPtr

        public boolean getSetPublicPtr()
         Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
         
        optional bool set_public_ptr = 523870229;
        Specified by:
        getSetPublicPtr in interface AccessConfigOrBuilder
        Returns:
        The setPublicPtr.
      • setSetPublicPtr

        public AccessConfig.Builder setSetPublicPtr​(boolean value)
         Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
         
        optional bool set_public_ptr = 523870229;
        Parameters:
        value - The setPublicPtr to set.
        Returns:
        This builder for chaining.
      • clearSetPublicPtr

        public AccessConfig.Builder clearSetPublicPtr()
         Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated.
         
        optional bool set_public_ptr = 523870229;
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        hasType in interface AccessConfigOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public String getType()
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        getType in interface AccessConfigOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Specified by:
        getTypeBytes in interface AccessConfigOrBuilder
        Returns:
        The bytes for type.
      • setType

        public AccessConfig.Builder setType​(String value)
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public AccessConfig.Builder clearType()
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public AccessConfig.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
         Check the Type enum for the list of possible values.
         
        optional string type = 3575610;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AccessConfig.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<AccessConfig.Builder>
      • mergeUnknownFields

        public final AccessConfig.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<AccessConfig.Builder>