- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class AccessConfig.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AccessConfig.BuilderImplements
AccessConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AccessConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AccessConfig.Builder |
build()
public AccessConfig build()
Type | Description |
AccessConfig |
buildPartial()
public AccessConfig buildPartial()
Type | Description |
AccessConfig |
clear()
public AccessConfig.Builder clear()
Type | Description |
AccessConfig.Builder |
clearExternalIpv6()
public AccessConfig.Builder clearExternalIpv6()
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearExternalIpv6PrefixLength()
public AccessConfig.Builder clearExternalIpv6PrefixLength()
[Output Only] The prefix length of the external IPv6 range.
optional int32 external_ipv6_prefix_length = 425672143;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AccessConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AccessConfig.Builder |
clearKind()
public AccessConfig.Builder clearKind()
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearName()
public AccessConfig.Builder clearName()
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearNatIP()
public AccessConfig.Builder clearNatIP()
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;
Type | Description |
AccessConfig.Builder | 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;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AccessConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AccessConfig.Builder |
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.
optional string public_ptr_domain_name = 316599167;
Type | Description |
AccessConfig.Builder | 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.
optional bool set_public_ptr = 523870229;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clearType()
public AccessConfig.Builder clearType()
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
AccessConfig.Builder | This builder for chaining. |
clone()
public AccessConfig.Builder clone()
Type | Description |
AccessConfig.Builder |
getDefaultInstanceForType()
public AccessConfig getDefaultInstanceForType()
Type | Description |
AccessConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExternalIpv6()
public String getExternalIpv6()
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Type | Description |
String | The externalIpv6. |
getExternalIpv6Bytes()
public ByteString getExternalIpv6Bytes()
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Type | Description |
ByteString | The bytes for externalIpv6. |
getExternalIpv6PrefixLength()
public int getExternalIpv6PrefixLength()
[Output Only] The prefix length of the external IPv6 range.
optional int32 external_ipv6_prefix_length = 425672143;
Type | Description |
int | The externalIpv6PrefixLength. |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Type | Description |
String | The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Type | Description |
ByteString | The bytes for kind. |
getName()
public String getName()
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Type | Description |
ByteString | The bytes for name. |
getNatIP()
public String getNatIP()
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;
Type | Description |
String | The natIP. |
getNatIPBytes()
public ByteString getNatIPBytes()
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;
Type | Description |
ByteString | The bytes for natIP. |
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;
Type | Description |
String | The networkTier. |
getNetworkTierBytes()
public 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;
Type | Description |
ByteString | The bytes for networkTier. |
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.
optional string public_ptr_domain_name = 316599167;
Type | Description |
String | The publicPtrDomainName. |
getPublicPtrDomainNameBytes()
public ByteString getPublicPtrDomainNameBytes()
The DNS domain name for the public PTR record. You can set this field only if the setPublicPtr
field is enabled.
optional string public_ptr_domain_name = 316599167;
Type | Description |
ByteString | The bytes for publicPtrDomainName. |
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.
optional bool set_public_ptr = 523870229;
Type | Description |
boolean | The setPublicPtr. |
getType()
public String getType()
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
String | The type. |
getTypeBytes()
public ByteString getTypeBytes()
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
ByteString | The bytes for type. |
hasExternalIpv6()
public boolean hasExternalIpv6()
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Type | Description |
boolean | Whether the externalIpv6 field is set. |
hasExternalIpv6PrefixLength()
public boolean hasExternalIpv6PrefixLength()
[Output Only] The prefix length of the external IPv6 range.
optional int32 external_ipv6_prefix_length = 425672143;
Type | Description |
boolean | Whether the externalIpv6PrefixLength field is set. |
hasKind()
public boolean hasKind()
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Type | Description |
boolean | Whether the kind field is set. |
hasName()
public boolean hasName()
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Type | Description |
boolean | Whether the name field is set. |
hasNatIP()
public boolean hasNatIP()
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;
Type | Description |
boolean | Whether the natIP field is set. |
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;
Type | Description |
boolean | Whether the networkTier field is set. |
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.
optional string public_ptr_domain_name = 316599167;
Type | Description |
boolean | Whether the publicPtrDomainName field is set. |
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.
optional bool set_public_ptr = 523870229;
Type | Description |
boolean | Whether the setPublicPtr field is set. |
hasType()
public boolean hasType()
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Type | Description |
boolean | Whether the type field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AccessConfig other)
public AccessConfig.Builder mergeFrom(AccessConfig other)
Name | Description |
other | AccessConfig |
Type | Description |
AccessConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AccessConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AccessConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AccessConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AccessConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AccessConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AccessConfig.Builder |
setExternalIpv6(String value)
public AccessConfig.Builder setExternalIpv6(String value)
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Name | Description |
value | String The externalIpv6 to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setExternalIpv6Bytes(ByteString value)
public AccessConfig.Builder setExternalIpv6Bytes(ByteString value)
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
optional string external_ipv6 = 532703707;
Name | Description |
value | ByteString The bytes for externalIpv6 to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setExternalIpv6PrefixLength(int value)
public AccessConfig.Builder setExternalIpv6PrefixLength(int value)
[Output Only] The prefix length of the external IPv6 range.
optional int32 external_ipv6_prefix_length = 425672143;
Name | Description |
value | int The externalIpv6PrefixLength to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AccessConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AccessConfig.Builder |
setKind(String value)
public AccessConfig.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Name | Description |
value | String The kind to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public AccessConfig.Builder setKindBytes(ByteString value)
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
optional string kind = 3292052;
Name | Description |
value | ByteString The bytes for kind to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setName(String value)
public AccessConfig.Builder setName(String value)
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Name | Description |
value | String The name to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public AccessConfig.Builder setNameBytes(ByteString value)
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
optional string name = 3373707;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setNatIP(String value)
public AccessConfig.Builder setNatIP(String value)
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;
Name | Description |
value | String The natIP to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setNatIPBytes(ByteString value)
public AccessConfig.Builder setNatIPBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for natIP to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setNetworkTier(String value)
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;
Name | Description |
value | String The networkTier to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setNetworkTierBytes(ByteString value)
public AccessConfig.Builder setNetworkTierBytes(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;
Name | Description |
value | ByteString The bytes for networkTier to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setPublicPtrDomainName(String value)
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.
optional string public_ptr_domain_name = 316599167;
Name | Description |
value | String The publicPtrDomainName to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setPublicPtrDomainNameBytes(ByteString value)
public AccessConfig.Builder setPublicPtrDomainNameBytes(ByteString value)
The DNS domain name for the public PTR record. You can set this field only if the setPublicPtr
field is enabled.
optional string public_ptr_domain_name = 316599167;
Name | Description |
value | ByteString The bytes for publicPtrDomainName to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AccessConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AccessConfig.Builder |
setSetPublicPtr(boolean value)
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.
optional bool set_public_ptr = 523870229;
Name | Description |
value | boolean The setPublicPtr to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setType(String value)
public AccessConfig.Builder setType(String value)
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Name | Description |
value | String The type to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setTypeBytes(ByteString value)
public AccessConfig.Builder setTypeBytes(ByteString value)
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
optional string type = 3575610;
Name | Description |
value | ByteString The bytes for type to set. |
Type | Description |
AccessConfig.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AccessConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AccessConfig.Builder |