Package com.google.cloud.compute.v1
Class AccessConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.cloud.compute.v1.AccessConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AccessConfig
build()
AccessConfig
buildPartial()
AccessConfig.Builder
clear()
AccessConfig.Builder
clearExternalIpv6()
Applies to ipv6AccessConfigs only.AccessConfig.Builder
clearExternalIpv6PrefixLength()
Applies to ipv6AccessConfigs only.AccessConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AccessConfig.Builder
clearKind()
[Output Only] Type of the resource.AccessConfig.Builder
clearName()
The name of this access configuration.AccessConfig.Builder
clearNatIP()
Applies to accessConfigs (IPv4) only.AccessConfig.Builder
clearNetworkTier()
This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD.AccessConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AccessConfig.Builder
clearPublicPtrDomainName()
The DNS domain name for the public PTR record.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.AccessConfig.Builder
clearType()
The type of configuration.AccessConfig.Builder
clone()
AccessConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExternalIpv6()
Applies to ipv6AccessConfigs only.com.google.protobuf.ByteString
getExternalIpv6Bytes()
Applies to ipv6AccessConfigs only.int
getExternalIpv6PrefixLength()
Applies to ipv6AccessConfigs only.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getName()
The name of this access configuration.com.google.protobuf.ByteString
getNameBytes()
The name of this access configuration.String
getNatIP()
Applies to accessConfigs (IPv4) only.com.google.protobuf.ByteString
getNatIPBytes()
Applies to accessConfigs (IPv4) only.String
getNetworkTier()
This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD.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.String
getPublicPtrDomainName()
The DNS domain name for the public PTR record.com.google.protobuf.ByteString
getPublicPtrDomainNameBytes()
The DNS domain name for the public PTR record.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.String
getType()
The type of configuration.com.google.protobuf.ByteString
getTypeBytes()
The type of configuration.boolean
hasExternalIpv6()
Applies to ipv6AccessConfigs only.boolean
hasExternalIpv6PrefixLength()
Applies to ipv6AccessConfigs only.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasName()
The name of this access configuration.boolean
hasNatIP()
Applies to accessConfigs (IPv4) only.boolean
hasNetworkTier()
This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD.boolean
hasPublicPtrDomainName()
The DNS domain name for the public PTR record.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.boolean
hasType()
The type of configuration.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AccessConfig.Builder
mergeFrom(AccessConfig other)
AccessConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AccessConfig.Builder
mergeFrom(com.google.protobuf.Message other)
AccessConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AccessConfig.Builder
setExternalIpv6(String value)
Applies to ipv6AccessConfigs only.AccessConfig.Builder
setExternalIpv6Bytes(com.google.protobuf.ByteString value)
Applies to ipv6AccessConfigs only.AccessConfig.Builder
setExternalIpv6PrefixLength(int value)
Applies to ipv6AccessConfigs only.AccessConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AccessConfig.Builder
setKind(String value)
[Output Only] Type of the resource.AccessConfig.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.AccessConfig.Builder
setName(String value)
The name of this access configuration.AccessConfig.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of this access configuration.AccessConfig.Builder
setNatIP(String value)
Applies to accessConfigs (IPv4) only.AccessConfig.Builder
setNatIPBytes(com.google.protobuf.ByteString value)
Applies to accessConfigs (IPv4) only.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.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.AccessConfig.Builder
setPublicPtrDomainName(String value)
The DNS domain name for the public PTR record.AccessConfig.Builder
setPublicPtrDomainNameBytes(com.google.protobuf.ByteString value)
The DNS domain name for the public PTR record.AccessConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.AccessConfig.Builder
setType(String value)
The type of configuration.AccessConfig.Builder
setTypeBytes(com.google.protobuf.ByteString value)
The type of configuration.AccessConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
clear
public AccessConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
getDefaultInstanceForType
public AccessConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AccessConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AccessConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AccessConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
setField
public AccessConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
clearField
public AccessConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
clearOneof
public AccessConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
addRepeatedField
public AccessConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
mergeFrom
public AccessConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccessConfig.Builder>
-
mergeFrom
public AccessConfig.Builder mergeFrom(AccessConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfaceAccessConfigOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
mergeUnknownFields
public final AccessConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AccessConfig.Builder>
-
-