Class VolumeSnapshot.Builder (0.2.1)

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

Snapshot registered for a given storage volume.

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

Optional. The creation time of the storage volume snapshot.

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

Returns
Type Description
VolumeSnapshot.Builder

clearDescription()

public VolumeSnapshot.Builder clearDescription()

The description of the storage volume 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

clearName()

public VolumeSnapshot.Builder clearName()

Output only. The name of the storage volume snapshot.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

clearSizeBytes()

public VolumeSnapshot.Builder clearSizeBytes()

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clearStorageVolume()

public VolumeSnapshot.Builder clearStorageVolume()

The storage volume this snapshot belongs to.

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

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Optional. The creation time of the storage volume snapshot.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Optional. The creation time of the storage volume snapshot.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Optional. The creation time of the storage volume snapshot.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public VolumeSnapshot getDefaultInstanceForType()
Returns
Type Description
VolumeSnapshot

getDescription()

public String getDescription()

The description of the storage volume snapshot.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the storage volume snapshot.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Output only. The name of the storage volume snapshot.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the storage volume snapshot.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getSizeBytes()

public long getSizeBytes()

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Returns
Type Description
long

The sizeBytes.

getStorageVolume()

public String getStorageVolume()

The storage volume this snapshot belongs to.

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

Returns
Type Description
String

The storageVolume.

getStorageVolumeBytes()

public ByteString getStorageVolumeBytes()

The storage volume this snapshot belongs to.

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

Returns
Type Description
ByteString

The bytes for storageVolume.

hasCreateTime()

public boolean hasCreateTime()

Optional. The creation time of the storage volume snapshot.

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

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)

Optional. The creation time of the storage volume snapshot.

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

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)

Optional. The creation time of the storage volume snapshot.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
VolumeSnapshot.Builder

setCreateTime(Timestamp.Builder builderForValue)

public VolumeSnapshot.Builder setCreateTime(Timestamp.Builder builderForValue)

Optional. The creation time of the storage volume snapshot.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VolumeSnapshot.Builder

setDescription(String value)

public VolumeSnapshot.Builder setDescription(String value)

The description of the storage volume 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 storage volume 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

setName(String value)

public VolumeSnapshot.Builder setName(String value)

Output only. The name of the storage volume snapshot.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

Output only. The name of the storage volume snapshot.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setSizeBytes(long value)

public VolumeSnapshot.Builder setSizeBytes(long value)

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Parameter
Name Description
value long

The sizeBytes to set.

Returns
Type Description
VolumeSnapshot.Builder

This builder for chaining.

setStorageVolume(String value)

public VolumeSnapshot.Builder setStorageVolume(String value)

The storage volume this snapshot belongs to.

string storage_volume = 5 [(.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)

The storage volume this snapshot belongs to.

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

Parameter
Name Description
value ByteString

The bytes for storageVolume 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