Class AttachedDisk.InitializeParams.Builder (0.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass AttachedDisk.InitializeParams.BuilderextendsGeneratedMessageV3.Builder<AttachedDisk.InitializeParams.Builder>implementsAttachedDisk.InitializeParamsOrBuilderSpecifies the parameters to initialize this disk.
Protobuf type google.cloud.backupdr.v1.AttachedDisk.InitializeParams
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttachedDisk.InitializeParams.BuilderImplements
AttachedDisk.InitializeParamsOrBuilderInherited Members
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 |
|
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 |
|
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 |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicAttachedDisk.InitializeParams.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams.Builder |
|
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 |
|
getDefaultInstanceForType()
publicAttachedDisk.InitializeParamsgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAttachedDisk.InitializeParams.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAttachedDisk.InitializeParams.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams.Builder |
|
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 |
|
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 |
|
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 |
|