- 1.74.0 (latest)
- 1.73.0
- 1.72.0
- 1.70.0
- 1.68.0
- 1.67.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.60.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.5
- 1.2.0
- 1.1.1
- 1.0.5
public static final class ComputeEngineDisk.Builder extends GeneratedMessageV3.Builder<ComputeEngineDisk.Builder> implements ComputeEngineDiskOrBuilder
Compute Engine disk target details.
Protobuf type google.cloud.vmmigration.v1.ComputeEngineDisk
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ComputeEngineDisk.BuilderImplements
ComputeEngineDiskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllReplicaZones(Iterable<String> values)
public ComputeEngineDisk.Builder addAllReplicaZones(Iterable<String> values)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The replicaZones to add. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeEngineDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
addReplicaZones(String value)
public ComputeEngineDisk.Builder addReplicaZones(String value)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The replicaZones to add. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
addReplicaZonesBytes(ByteString value)
public ComputeEngineDisk.Builder addReplicaZonesBytes(ByteString value)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the replicaZones to add. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
build()
public ComputeEngineDisk build()
Returns | |
---|---|
Type | Description |
ComputeEngineDisk |
buildPartial()
public ComputeEngineDisk buildPartial()
Returns | |
---|---|
Type | Description |
ComputeEngineDisk |
clear()
public ComputeEngineDisk.Builder clear()
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
clearDiskId()
public ComputeEngineDisk.Builder clearDiskId()
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
clearDiskType()
public ComputeEngineDisk.Builder clearDiskType()
Required. The disk type to use.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ComputeEngineDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeEngineDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
clearReplicaZones()
public ComputeEngineDisk.Builder clearReplicaZones()
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
clearZone()
public ComputeEngineDisk.Builder clearZone()
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
clone()
public ComputeEngineDisk.Builder clone()
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
getDefaultInstanceForType()
public ComputeEngineDisk getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ComputeEngineDisk |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDiskId()
public String getDiskId()
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The diskId. |
getDiskIdBytes()
public ByteString getDiskIdBytes()
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for diskId. |
getDiskType()
public ComputeEngineDiskType getDiskType()
Required. The disk type to use.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ComputeEngineDiskType |
The diskType. |
getDiskTypeValue()
public int getDiskTypeValue()
Required. The disk type to use.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for diskType. |
getReplicaZones(int index)
public String getReplicaZones(int index)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
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)
public ByteString getReplicaZonesBytes(int index)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
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()
public int getReplicaZonesCount()
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
int |
The count of replicaZones. |
getReplicaZonesList()
public ProtocolStringList getReplicaZonesList()
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the replicaZones. |
getZone()
public String getZone()
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for zone. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ComputeEngineDisk other)
public ComputeEngineDisk.Builder mergeFrom(ComputeEngineDisk other)
Parameter | |
---|---|
Name | Description |
other |
ComputeEngineDisk |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ComputeEngineDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ComputeEngineDisk.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeEngineDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
setDiskId(String value)
public ComputeEngineDisk.Builder setDiskId(String value)
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The diskId to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setDiskIdBytes(ByteString value)
public ComputeEngineDisk.Builder setDiskIdBytes(ByteString value)
Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 "disk1" is the resource ID for the disk.
string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for diskId to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setDiskType(ComputeEngineDiskType value)
public ComputeEngineDisk.Builder setDiskType(ComputeEngineDiskType value)
Required. The disk type to use.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ComputeEngineDiskType The diskType to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setDiskTypeValue(int value)
public ComputeEngineDisk.Builder setDiskTypeValue(int value)
Required. The disk type to use.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for diskType to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeEngineDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeEngineDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
setReplicaZones(int index, String value)
public ComputeEngineDisk.Builder setReplicaZones(int index, String value)
Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The replicaZones to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeEngineDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
setZone(String value)
public ComputeEngineDisk.Builder setZone(String value)
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The zone to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public ComputeEngineDisk.Builder setZoneBytes(ByteString value)
Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for zone to set. |
Returns | |
---|---|
Type | Description |
ComputeEngineDisk.Builder |
This builder for chaining. |