Class VolumeSnapshot.Builder (0.46.0)

public static final class VolumeSnapshot.Builder extends GeneratedMessageV3.Builder<VolumeSnapshot.Builder> implements VolumeSnapshotOrBuilder

A snapshot of a volume. Only boot volumes can have snapshots.

Protobuf type google.cloud.baremetalsolution.v2.VolumeSnapshot

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VolumeSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VolumeSnapshot.Builder
Overrides

build()

public VolumeSnapshot build()
Returns
Type Description
VolumeSnapshot

buildPartial()

public VolumeSnapshot buildPartial()
Returns
Type Description
VolumeSnapshot

clear()

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

clearCreateTime()

public VolumeSnapshot.Builder clearCreateTime()

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VolumeSnapshot.Builder

clearDescription()

public VolumeSnapshot.Builder clearDescription()

The description of the snapshot.

string description = 2;

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VolumeSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VolumeSnapshot.Builder
Overrides

clearId()

public VolumeSnapshot.Builder clearId()

Output only. An identifier for the snapshot, generated by the backend.

string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clearName()

public VolumeSnapshot.Builder clearName()

The name of the snapshot.

string name = 1;

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VolumeSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VolumeSnapshot.Builder
Overrides

clearStorageVolume()

public VolumeSnapshot.Builder clearStorageVolume()

Output only. The name of the volume which this snapshot belongs to.

string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clearType()

public VolumeSnapshot.Builder clearType()

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

.google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clone()

public VolumeSnapshot.Builder clone()
Returns
Type Description
VolumeSnapshot.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public VolumeSnapshot getDefaultInstanceForType()
Returns
Type Description
VolumeSnapshot

getDescription()

public String getDescription()

The description of the snapshot.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the snapshot.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getId()

public String getId()

Output only. An identifier for the snapshot, generated by the backend.

string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. An identifier for the snapshot, generated by the backend.

string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getName()

public String getName()

The name of the snapshot.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the snapshot.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getStorageVolume()

public String getStorageVolume()

Output only. The name of the volume which this snapshot belongs to.

string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The storageVolume.

getStorageVolumeBytes()

public ByteString getStorageVolumeBytes()

Output only. The name of the volume which this snapshot belongs to.

string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for storageVolume.

getType()

public VolumeSnapshot.SnapshotType getType()

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

.google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VolumeSnapshot.SnapshotType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

.google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public VolumeSnapshot.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VolumeSnapshot.Builder

mergeFrom(VolumeSnapshot other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VolumeSnapshot.Builder
Overrides

setCreateTime(Timestamp value)

public VolumeSnapshot.Builder setCreateTime(Timestamp value)

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VolumeSnapshot.Builder

setCreateTime(Timestamp.Builder builderForValue)

public VolumeSnapshot.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the snapshot.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VolumeSnapshot.Builder

setDescription(String value)

public VolumeSnapshot.Builder setDescription(String value)

The description of the snapshot.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public VolumeSnapshot.Builder setDescriptionBytes(ByteString value)

The description of the snapshot.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VolumeSnapshot.Builder
Overrides

setId(String value)

public VolumeSnapshot.Builder setId(String value)

Output only. An identifier for the snapshot, generated by the backend.

string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VolumeSnapshot.Builder setIdBytes(ByteString value)

Output only. An identifier for the snapshot, generated by the backend.

string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setName(String value)

public VolumeSnapshot.Builder setName(String value)

The name of the snapshot.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VolumeSnapshot.Builder setNameBytes(ByteString value)

The name of the snapshot.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

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

public VolumeSnapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VolumeSnapshot.Builder
Overrides

setStorageVolume(String value)

public VolumeSnapshot.Builder setStorageVolume(String value)

Output only. The name of the volume which this snapshot belongs to.

string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The storageVolume to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setStorageVolumeBytes(ByteString value)

public VolumeSnapshot.Builder setStorageVolumeBytes(ByteString value)

Output only. The name of the volume which this snapshot belongs to.

string storage_volume = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for storageVolume to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setType(VolumeSnapshot.SnapshotType value)

public VolumeSnapshot.Builder setType(VolumeSnapshot.SnapshotType value)

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

.google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VolumeSnapshot.SnapshotType

The type to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setTypeValue(int value)

public VolumeSnapshot.Builder setTypeValue(int value)

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

.google.cloud.baremetalsolution.v2.VolumeSnapshot.SnapshotType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VolumeSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VolumeSnapshot.Builder
Overrides