Class AccessConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccessConfig.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public AccessConfig.Builder mergeFrom(AccessConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 inexternalIpv6PrefixLength 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 inexternalIpv6PrefixLength 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 inexternalIpv6PrefixLength 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 inexternalIpv6PrefixLength 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 inexternalIpv6PrefixLength 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 inexternalIpv6PrefixLength 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. [Output Only] Type of the resource. Alwayscompute#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. [Output Only] Type of the resource. Alwayscompute#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. [Output Only] Type of the resource. Alwayscompute#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. [Output Only] Type of the resource. Alwayscompute#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. [Output Only] Type of the resource. Alwayscompute#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. [Output Only] Type of the resource. Alwayscompute#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 orNetwork 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 orNetwork 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 orNetwork 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 orNetwork 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 orNetwork 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 orNetwork 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. Anexternal 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. Anexternal 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. Anexternal 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. Anexternal 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. Anexternal 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. Anexternal 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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 inaccessConfig. If this field is unspecified inipv6AccessConfig, a default PTR record will be created 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.
    • hasSecurityPolicy

      public boolean hasSecurityPolicy()
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Specified by:
      hasSecurityPolicy in interface AccessConfigOrBuilder
      Returns:
      Whether the securityPolicy field is set.
    • getSecurityPolicy

      public String getSecurityPolicy()
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Specified by:
      getSecurityPolicy in interface AccessConfigOrBuilder
      Returns:
      The securityPolicy.
    • getSecurityPolicyBytes

      public com.google.protobuf.ByteString getSecurityPolicyBytes()
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Specified by:
      getSecurityPolicyBytes in interface AccessConfigOrBuilder
      Returns:
      The bytes for securityPolicy.
    • setSecurityPolicy

      public AccessConfig.Builder setSecurityPolicy(String value)
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Parameters:
      value - The securityPolicy to set.
      Returns:
      This builder for chaining.
    • clearSecurityPolicy

      public AccessConfig.Builder clearSecurityPolicy()
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Returns:
      This builder for chaining.
    • setSecurityPolicyBytes

      public AccessConfig.Builder setSecurityPolicyBytes(com.google.protobuf.ByteString value)
       The resource URL for the security policy associated with this access
       config.
       
      optional string security_policy = 171082513;
      Parameters:
      value - The bytes for securityPolicy 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. Inipv6AccessConfigs, the default and only option isDIRECT_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. Inipv6AccessConfigs, the default and only option isDIRECT_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. Inipv6AccessConfigs, the default and only option isDIRECT_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. Inipv6AccessConfigs, the default and only option isDIRECT_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. Inipv6AccessConfigs, the default and only option isDIRECT_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. Inipv6AccessConfigs, the default and only option isDIRECT_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.