Class AccessConfig.Builder (0.13.0)

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.backupdr.v1.AccessConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessConfig.Builder
Overrides

build()

public AccessConfig build()
Returns
Type Description
AccessConfig

buildPartial()

public AccessConfig buildPartial()
Returns
Type Description
AccessConfig

clear()

public AccessConfig.Builder clear()
Returns
Type Description
AccessConfig.Builder
Overrides

clearExternalIp()

public AccessConfig.Builder clearExternalIp()

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearExternalIpv6()

public AccessConfig.Builder clearExternalIpv6()

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearExternalIpv6PrefixLength()

public AccessConfig.Builder clearExternalIpv6PrefixLength()

Optional. The prefix length of the external IPv6 range.

optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccessConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccessConfig.Builder
Overrides

clearName()

public AccessConfig.Builder clearName()

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearNetworkTier()

public AccessConfig.Builder clearNetworkTier()

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AccessConfig.Builder
Overrides

clearPublicPtrDomainName()

public AccessConfig.Builder clearPublicPtrDomainName()

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearSetPublicPtr()

public AccessConfig.Builder clearSetPublicPtr()

Optional. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clearType()

public AccessConfig.Builder clearType()

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

clone()

public AccessConfig.Builder clone()
Returns
Type Description
AccessConfig.Builder
Overrides

getDefaultInstanceForType()

public AccessConfig getDefaultInstanceForType()
Returns
Type Description
AccessConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExternalIp()

public String getExternalIp()

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The externalIp.

getExternalIpBytes()

public ByteString getExternalIpBytes()

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for externalIp.

getExternalIpv6()

public String getExternalIpv6()

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The externalIpv6.

getExternalIpv6Bytes()

public ByteString getExternalIpv6Bytes()

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for externalIpv6.

getExternalIpv6PrefixLength()

public int getExternalIpv6PrefixLength()

Optional. The prefix length of the external IPv6 range.

optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The externalIpv6PrefixLength.

getName()

public String getName()

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getNetworkTier()

public AccessConfig.NetworkTier getNetworkTier()

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.NetworkTier

The networkTier.

getNetworkTierValue()

public int getNetworkTierValue()

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for networkTier.

getPublicPtrDomainName()

public String getPublicPtrDomainName()

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The publicPtrDomainName.

getPublicPtrDomainNameBytes()

public ByteString getPublicPtrDomainNameBytes()

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for publicPtrDomainName.

getSetPublicPtr()

public boolean getSetPublicPtr()

Optional. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The setPublicPtr.

getType()

public AccessConfig.AccessType getType()

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccessConfig.AccessType

The type.

getTypeValue()

public int getTypeValue()

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasExternalIp()

public boolean hasExternalIp()

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the externalIp field is set.

hasExternalIpv6()

public boolean hasExternalIpv6()

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the externalIpv6 field is set.

hasExternalIpv6PrefixLength()

public boolean hasExternalIpv6PrefixLength()

Optional. The prefix length of the external IPv6 range.

optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the externalIpv6PrefixLength field is set.

hasName()

public boolean hasName()

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the name field is set.

hasNetworkTier()

public boolean hasNetworkTier()

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the networkTier field is set.

hasPublicPtrDomainName()

public boolean hasPublicPtrDomainName()

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the publicPtrDomainName field is set.

hasSetPublicPtr()

public boolean hasSetPublicPtr()

Optional. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the setPublicPtr field is set.

hasType()

public boolean hasType()

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessConfig other)

public AccessConfig.Builder mergeFrom(AccessConfig other)
Parameter
Name Description
other AccessConfig
Returns
Type Description
AccessConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AccessConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AccessConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessConfig.Builder
Overrides

setExternalIp(String value)

public AccessConfig.Builder setExternalIp(String value)

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The externalIp to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setExternalIpBytes(ByteString value)

public AccessConfig.Builder setExternalIpBytes(ByteString value)

Optional. The external IP address of this access configuration.

optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for externalIp to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setExternalIpv6(String value)

public AccessConfig.Builder setExternalIpv6(String value)

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The externalIpv6 to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setExternalIpv6Bytes(ByteString value)

public AccessConfig.Builder setExternalIpv6Bytes(ByteString value)

Optional. The external IPv6 address of this access configuration.

optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for externalIpv6 to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setExternalIpv6PrefixLength(int value)

public AccessConfig.Builder setExternalIpv6PrefixLength(int value)

Optional. The prefix length of the external IPv6 range.

optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The externalIpv6PrefixLength to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AccessConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AccessConfig.Builder
Overrides

setName(String value)

public AccessConfig.Builder setName(String value)

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccessConfig.Builder setNameBytes(ByteString value)

Optional. The name of this access configuration.

optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setNetworkTier(AccessConfig.NetworkTier value)

public AccessConfig.Builder setNetworkTier(AccessConfig.NetworkTier value)

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AccessConfig.NetworkTier

The networkTier to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setNetworkTierValue(int value)

public AccessConfig.Builder setNetworkTierValue(int value)

Optional. This signifies the networking tier used for configuring this access

optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for networkTier to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setPublicPtrDomainName(String value)

public AccessConfig.Builder setPublicPtrDomainName(String value)

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The publicPtrDomainName to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setPublicPtrDomainNameBytes(ByteString value)

public AccessConfig.Builder setPublicPtrDomainNameBytes(ByteString value)

Optional. The DNS domain name for the public PTR record.

optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for publicPtrDomainName to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccessConfig.Builder
Overrides

setSetPublicPtr(boolean value)

public AccessConfig.Builder setSetPublicPtr(boolean value)

Optional. 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The setPublicPtr to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setType(AccessConfig.AccessType value)

public AccessConfig.Builder setType(AccessConfig.AccessType value)

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AccessConfig.AccessType

The type to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setTypeValue(int value)

public AccessConfig.Builder setTypeValue(int value)

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
AccessConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AccessConfig.Builder
Overrides