Class AccessConfig (0.10.0)

publicfinalclass AccessConfigextendsGeneratedMessageV3implementsAccessConfigOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

EXTERNAL_IPV6_FIELD_NUMBER

publicstaticfinalintEXTERNAL_IPV6_FIELD_NUMBER
Field Value
Type Description
int

EXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER

publicstaticfinalintEXTERNAL_IPV6_PREFIX_LENGTH_FIELD_NUMBER
Field Value
Type Description
int

EXTERNAL_IP_FIELD_NUMBER

publicstaticfinalintEXTERNAL_IP_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_TIER_FIELD_NUMBER

publicstaticfinalintNETWORK_TIER_FIELD_NUMBER
Field Value
Type Description
int

PUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER

publicstaticfinalintPUBLIC_PTR_DOMAIN_NAME_FIELD_NUMBER
Field Value
Type Description
int

SET_PUBLIC_PTR_FIELD_NUMBER

publicstaticfinalintSET_PUBLIC_PTR_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAccessConfiggetDefaultInstance()
Returns
Type Description
AccessConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAccessConfig.BuildernewBuilder()
Returns
Type Description
AccessConfig.Builder

newBuilder(AccessConfig prototype)

publicstaticAccessConfig.BuildernewBuilder(AccessConfigprototype)
Parameter
Name Description
prototype AccessConfig
Returns
Type Description
AccessConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticAccessConfigparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAccessConfigparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAccessConfigparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAccessConfigparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAccessConfigparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAccessConfigparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AccessConfig>parser()
Returns
Type Description
Parser<AccessConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAccessConfiggetDefaultInstanceForType()
Returns
Type Description
AccessConfig

getExternalIp()

publicStringgetExternalIp()

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()

publicByteStringgetExternalIpBytes()

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()

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.

getParserForType()

publicParser<AccessConfig>getParserForType()
Returns
Type Description
Parser<AccessConfig>
Overrides

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.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

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 [(.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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAccessConfig.BuildernewBuilderForType()
Returns
Type Description
AccessConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAccessConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AccessConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAccessConfig.BuildertoBuilder()
Returns
Type Description
AccessConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.