Class VolumeSnapshot.Builder (0.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VolumeSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VolumeSnapshot.Builder
Overrides

build()

public VolumeSnapshot build()
Returns
TypeDescription
VolumeSnapshot

buildPartial()

public VolumeSnapshot buildPartial()
Returns
TypeDescription
VolumeSnapshot

clear()

public VolumeSnapshot.Builder clear()
Returns
TypeDescription
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
TypeDescription
VolumeSnapshot.Builder

clearDescription()

public VolumeSnapshot.Builder clearDescription()

The description of the snapshot.

string description = 2;

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VolumeSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

clearName()

public VolumeSnapshot.Builder clearName()

The name of the snapshot.

string name = 1;

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VolumeSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

clone()

public VolumeSnapshot.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public VolumeSnapshot getDefaultInstanceForType()
Returns
TypeDescription
VolumeSnapshot

getDescription()

public String getDescription()

The description of the snapshot.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the snapshot.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

getName()

public String getName()

The name of the snapshot.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the snapshot.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
VolumeSnapshot.Builder

mergeFrom(VolumeSnapshot other)

public VolumeSnapshot.Builder mergeFrom(VolumeSnapshot other)
Parameter
NameDescription
otherVolumeSnapshot
Returns
TypeDescription
VolumeSnapshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VolumeSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeSnapshot.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VolumeSnapshot.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VolumeSnapshot.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
VolumeSnapshot.Builder

setDescription(String value)

public VolumeSnapshot.Builder setDescription(String value)

The description of the snapshot.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public VolumeSnapshot.Builder setDescriptionBytes(ByteString value)

The description of the snapshot.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

setName(String value)

public VolumeSnapshot.Builder setName(String value)

The name of the snapshot.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VolumeSnapshot.Builder setNameBytes(ByteString value)

The name of the snapshot.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The storageVolume to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for storageVolume to set.

Returns
TypeDescription
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
NameDescription
valueVolumeSnapshot.SnapshotType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VolumeSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VolumeSnapshot.Builder
Overrides