Class SnapshotGroupParameters.Builder (1.105.0)

public static final class SnapshotGroupParameters.Builder extends GeneratedMessage.Builder<SnapshotGroupParameters.Builder> implements SnapshotGroupParametersOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotGroupParameters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReplicaZones(Iterable<String> values)

public SnapshotGroupParameters.Builder addAllReplicaZones(Iterable<String> values)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Parameter
Name Description
values Iterable<String>

The replicaZones to add.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

addReplicaZones(String value)

public SnapshotGroupParameters.Builder addReplicaZones(String value)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Parameter
Name Description
value String

The replicaZones to add.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

addReplicaZonesBytes(ByteString value)

public SnapshotGroupParameters.Builder addReplicaZonesBytes(ByteString value)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Parameter
Name Description
value ByteString

The bytes of the replicaZones to add.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

build()

public SnapshotGroupParameters build()
Returns
Type Description
SnapshotGroupParameters

buildPartial()

public SnapshotGroupParameters buildPartial()
Returns
Type Description
SnapshotGroupParameters

clear()

public SnapshotGroupParameters.Builder clear()
Returns
Type Description
SnapshotGroupParameters.Builder
Overrides

clearReplicaZones()

public SnapshotGroupParameters.Builder clearReplicaZones()

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

clearSourceSnapshotGroup()

public SnapshotGroupParameters.Builder clearSourceSnapshotGroup()

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

clearType()

public SnapshotGroupParameters.Builder clearType()

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

getDefaultInstanceForType()

public SnapshotGroupParameters getDefaultInstanceForType()
Returns
Type Description
SnapshotGroupParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getReplicaZones(int index)

public String getReplicaZones(int index)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

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)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

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

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Returns
Type Description
int

The count of replicaZones.

getReplicaZonesList()

public ProtocolStringList getReplicaZonesList()

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Returns
Type Description
ProtocolStringList

A list containing the replicaZones.

getSourceSnapshotGroup()

public String getSourceSnapshotGroup()

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Returns
Type Description
String

The sourceSnapshotGroup.

getSourceSnapshotGroupBytes()

public ByteString getSourceSnapshotGroupBytes()

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Returns
Type Description
ByteString

The bytes for sourceSnapshotGroup.

getType()

public String getType()

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasSourceSnapshotGroup()

public boolean hasSourceSnapshotGroup()

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Returns
Type Description
boolean

Whether the sourceSnapshotGroup field is set.

hasType()

public boolean hasType()

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SnapshotGroupParameters other)

public SnapshotGroupParameters.Builder mergeFrom(SnapshotGroupParameters other)
Parameter
Name Description
other SnapshotGroupParameters
Returns
Type Description
SnapshotGroupParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotGroupParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SnapshotGroupParameters.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SnapshotGroupParameters.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SnapshotGroupParameters.Builder
Overrides

setReplicaZones(int index, String value)

public SnapshotGroupParameters.Builder setReplicaZones(int index, String value)

URLs of the zones where disks should be replicated to. Only applicable for regional resources.

repeated string replica_zones = 48438272;

Parameters
Name Description
index int

The index to set the value at.

value String

The replicaZones to set.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

setSourceSnapshotGroup(String value)

public SnapshotGroupParameters.Builder setSourceSnapshotGroup(String value)

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Parameter
Name Description
value String

The sourceSnapshotGroup to set.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

setSourceSnapshotGroupBytes(ByteString value)

public SnapshotGroupParameters.Builder setSourceSnapshotGroupBytes(ByteString value)

The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

optional string source_snapshot_group = 225130728;

Parameter
Name Description
value ByteString

The bytes for sourceSnapshotGroup to set.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

setType(String value)

public SnapshotGroupParameters.Builder setType(String value)

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SnapshotGroupParameters.Builder setTypeBytes(ByteString value)

URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
SnapshotGroupParameters.Builder

This builder for chaining.