Class NetworkConfig.Builder (0.39.0)

publicstaticfinalclass NetworkConfig.BuilderextendsGeneratedMessageV3.Builder<NetworkConfig.Builder>implementsNetworkConfigOrBuilder

Network configuration for ManagementServer instance.

Protobuf type google.cloud.backupdr.v1.NetworkConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicNetworkConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

build()

publicNetworkConfigbuild()
Returns
Type Description
NetworkConfig

buildPartial()

publicNetworkConfigbuildPartial()
Returns
Type Description
NetworkConfig

clear()

publicNetworkConfig.Builderclear()
Returns
Type Description
NetworkConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicNetworkConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkConfig.Builder
Overrides

clearNetwork()

publicNetworkConfig.BuilderclearNetwork()

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected.

string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicNetworkConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkConfig.Builder
Overrides

clearPeeringMode()

publicNetworkConfig.BuilderclearPeeringMode()

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.

.google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

clone()

publicNetworkConfig.Builderclone()
Returns
Type Description
NetworkConfig.Builder
Overrides

getDefaultInstanceForType()

publicNetworkConfiggetDefaultInstanceForType()
Returns
Type Description
NetworkConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetwork()

publicStringgetNetwork()

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected.

string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The network.

getNetworkBytes()

publicByteStringgetNetworkBytes()

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected.

string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for network.

getPeeringMode()

publicNetworkConfig.PeeringModegetPeeringMode()

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.

.google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NetworkConfig.PeeringMode

The peeringMode.

getPeeringModeValue()

publicintgetPeeringModeValue()

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.

.google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for peeringMode.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkConfig other)

publicNetworkConfig.BuildermergeFrom(NetworkConfigother)
Parameter
Name Description
other NetworkConfig
Returns
Type Description
NetworkConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicNetworkConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicNetworkConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
NetworkConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalNetworkConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicNetworkConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

setNetwork(String value)

publicNetworkConfig.BuildersetNetwork(Stringvalue)

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected.

string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

publicNetworkConfig.BuildersetNetworkBytes(ByteStringvalue)

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected.

string network = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setPeeringMode(NetworkConfig.PeeringMode value)

publicNetworkConfig.BuildersetPeeringMode(NetworkConfig.PeeringModevalue)

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.

.google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value NetworkConfig.PeeringMode

The peeringMode to set.

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setPeeringModeValue(int value)

publicNetworkConfig.BuildersetPeeringModeValue(intvalue)

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.

.google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
NetworkConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicNetworkConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NetworkConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalNetworkConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkConfig.Builder
Overrides

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.