Class AttachedDisk.InitializeParams.Builder (0.29.0)

publicstaticfinalclass AttachedDisk.InitializeParams.BuilderextendsGeneratedMessageV3.Builder<AttachedDisk.InitializeParams.Builder>implementsAttachedDisk.InitializeParamsOrBuilder

Specifies the parameters to initialize this disk.

Protobuf type google.cloud.backupdr.v1.AttachedDisk.InitializeParams

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

addAllReplicaZones(Iterable<String> values)

publicAttachedDisk.InitializeParams.BuilderaddAllReplicaZones(Iterable<String>values)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The replicaZones to add.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAttachedDisk.InitializeParams.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

addReplicaZones(String value)

publicAttachedDisk.InitializeParams.BuilderaddReplicaZones(Stringvalue)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The replicaZones to add.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

addReplicaZonesBytes(ByteString value)

publicAttachedDisk.InitializeParams.BuilderaddReplicaZonesBytes(ByteStringvalue)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the replicaZones to add.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

build()

publicAttachedDisk.InitializeParamsbuild()
Returns
Type Description
AttachedDisk.InitializeParams

buildPartial()

publicAttachedDisk.InitializeParamsbuildPartial()
Returns
Type Description
AttachedDisk.InitializeParams

clear()

publicAttachedDisk.InitializeParams.Builderclear()
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

clearDiskName()

publicAttachedDisk.InitializeParams.BuilderclearDiskName()

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicAttachedDisk.InitializeParams.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAttachedDisk.InitializeParams.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

clearReplicaZones()

publicAttachedDisk.InitializeParams.BuilderclearReplicaZones()

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

clone()

publicAttachedDisk.InitializeParams.Builderclone()
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

getDefaultInstanceForType()

publicAttachedDisk.InitializeParamsgetDefaultInstanceForType()
Returns
Type Description
AttachedDisk.InitializeParams

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskName()

publicStringgetDiskName()

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Returns
Type Description
String

The diskName.

getDiskNameBytes()

publicByteStringgetDiskNameBytes()

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Returns
Type Description
ByteString

The bytes for diskName.

getReplicaZones(int index)

publicStringgetReplicaZones(intindex)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The replicaZones at the given index.

getReplicaZonesBytes(int index)

publicByteStringgetReplicaZonesBytes(intindex)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the replicaZones at the given index.

getReplicaZonesCount()

publicintgetReplicaZonesCount()

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of replicaZones.

getReplicaZonesList()

publicProtocolStringListgetReplicaZonesList()

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the replicaZones.

hasDiskName()

publicbooleanhasDiskName()

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Returns
Type Description
boolean

Whether the diskName field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttachedDisk.InitializeParams other)

publicAttachedDisk.InitializeParams.BuildermergeFrom(AttachedDisk.InitializeParamsother)
Parameter
Name Description
other AttachedDisk.InitializeParams
Returns
Type Description
AttachedDisk.InitializeParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicAttachedDisk.InitializeParams.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAttachedDisk.InitializeParams.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

setDiskName(String value)

publicAttachedDisk.InitializeParams.BuildersetDiskName(Stringvalue)

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Parameter
Name Description
value String

The diskName to set.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

setDiskNameBytes(ByteString value)

publicAttachedDisk.InitializeParams.BuildersetDiskNameBytes(ByteStringvalue)

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

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

Parameter
Name Description
value ByteString

The bytes for diskName to set.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicAttachedDisk.InitializeParams.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachedDisk.InitializeParams.Builder
Overrides

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

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

setReplicaZones(int index, String value)

publicAttachedDisk.InitializeParams.BuildersetReplicaZones(intindex,Stringvalue)

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The replicaZones to set.

Returns
Type Description
AttachedDisk.InitializeParams.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAttachedDisk.InitializeParams.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachedDisk.InitializeParams.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.