Class AccessConfig.Builder (0.32.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass AccessConfig.BuilderextendsGeneratedMessageV3.Builder<AccessConfig.Builder>implementsAccessConfigOrBuilderAn access configuration attached to an instance's network interface. Only one access config per instance is supported.
Protobuf type google.cloud.backupdr.v1.AccessConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AccessConfig.BuilderImplements
AccessConfigOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAccessConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
build()
publicAccessConfigbuild()| Returns | |
|---|---|
| Type | Description |
AccessConfig |
|
buildPartial()
publicAccessConfigbuildPartial()| Returns | |
|---|---|
| Type | Description |
AccessConfig |
|
clear()
publicAccessConfig.Builderclear()| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
clearExternalIp()
publicAccessConfig.BuilderclearExternalIp()Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
This builder for chaining. |
clearExternalIpv6()
publicAccessConfig.BuilderclearExternalIpv6()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()
publicAccessConfig.BuilderclearExternalIpv6PrefixLength()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)
publicAccessConfig.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
clearName()
publicAccessConfig.BuilderclearName()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()
publicAccessConfig.BuilderclearNetworkTier()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)
publicAccessConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
clearPublicPtrDomainName()
publicAccessConfig.BuilderclearPublicPtrDomainName()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()
publicAccessConfig.BuilderclearSetPublicPtr()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()
publicAccessConfig.BuilderclearType()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()
publicAccessConfig.Builderclone()| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
getDefaultInstanceForType()
publicAccessConfiggetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AccessConfig |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExternalIp()
publicStringgetExternalIp()Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The externalIp. |
getExternalIpBytes()
publicByteStringgetExternalIpBytes()Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for externalIp. |
getExternalIpv6()
publicStringgetExternalIpv6()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()
publicByteStringgetExternalIpv6Bytes()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()
publicintgetExternalIpv6PrefixLength()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()
publicStringgetName()Optional. The name of this access configuration.
optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes()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()
publicAccessConfig.NetworkTiergetNetworkTier()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()
publicintgetNetworkTierValue()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()
publicStringgetPublicPtrDomainName()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()
publicByteStringgetPublicPtrDomainNameBytes()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()
publicbooleangetSetPublicPtr()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()
publicAccessConfig.AccessTypegetType()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()
publicintgetTypeValue()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()
publicbooleanhasExternalIp()Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the externalIp field is set. |
hasExternalIpv6()
publicbooleanhasExternalIpv6()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()
publicbooleanhasExternalIpv6PrefixLength()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()
publicbooleanhasName()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()
publicbooleanhasNetworkTier()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()
publicbooleanhasPublicPtrDomainName()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()
publicbooleanhasSetPublicPtr()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()
publicbooleanhasType()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()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AccessConfig other)
publicAccessConfig.BuildermergeFrom(AccessConfigother)| Parameter | |
|---|---|
| Name | Description |
other |
AccessConfig |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAccessConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAccessConfig.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAccessConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
setExternalIp(String value)
publicAccessConfig.BuildersetExternalIp(Stringvalue)Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.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)
publicAccessConfig.BuildersetExternalIpBytes(ByteStringvalue)Optional. The external IP address of this access configuration.
optional string external_ip = 3 [json_name = "natIP", (.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)
publicAccessConfig.BuildersetExternalIpv6(Stringvalue)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)
publicAccessConfig.BuildersetExternalIpv6Bytes(ByteStringvalue)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)
publicAccessConfig.BuildersetExternalIpv6PrefixLength(intvalue)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)
publicAccessConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
setName(String value)
publicAccessConfig.BuildersetName(Stringvalue)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)
publicAccessConfig.BuildersetNameBytes(ByteStringvalue)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)
publicAccessConfig.BuildersetNetworkTier(AccessConfig.NetworkTiervalue)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)
publicAccessConfig.BuildersetNetworkTierValue(intvalue)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)
publicAccessConfig.BuildersetPublicPtrDomainName(Stringvalue)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)
publicAccessConfig.BuildersetPublicPtrDomainNameBytes(ByteStringvalue)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)
publicAccessConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|
setSetPublicPtr(boolean value)
publicAccessConfig.BuildersetSetPublicPtr(booleanvalue)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)
publicAccessConfig.BuildersetType(AccessConfig.AccessTypevalue)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)
publicAccessConfig.BuildersetTypeValue(intvalue)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)
publicfinalAccessConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AccessConfig.Builder |
|