Class VolumeSnapshot.Builder (0.2.0)

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

Optional. The creation time of the storage volume snapshot.

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

Returns
TypeDescription
VolumeSnapshot.Builder

clearDescription()

public VolumeSnapshot.Builder clearDescription()

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

clearName()

public VolumeSnapshot.Builder clearName()

Output only. The name of the storage volume snapshot.

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

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

clearSizeBytes()

public VolumeSnapshot.Builder clearSizeBytes()

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Returns
TypeDescription
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
TypeDescription
VolumeSnapshot.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VolumeSnapshot getDefaultInstanceForType()
Returns
TypeDescription
VolumeSnapshot

getDescription()

public String getDescription()

The description of the storage volume snapshot.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the storage volume snapshot.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

The bytes for name.

getSizeBytes()

public long getSizeBytes()

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Returns
TypeDescription
long

The sizeBytes.

getStorageVolume()

public String getStorageVolume()

The storage volume this snapshot belongs to.

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

Returns
TypeDescription
String

The storageVolume.

getStorageVolumeBytes()

public ByteString getStorageVolumeBytes()

The storage volume this snapshot belongs to.

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

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

Optional. The creation time of the storage volume snapshot.

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

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)

Optional. The creation time of the storage volume snapshot.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
VolumeSnapshot.Builder

setDescription(String value)

public VolumeSnapshot.Builder setDescription(String value)

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

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
NameDescription
valueString

The name to set.

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

setSizeBytes(long value)

public VolumeSnapshot.Builder setSizeBytes(long value)

The size of the storage volume snapshot, in bytes.

int64 size_bytes = 3;

Parameter
NameDescription
valuelong

The sizeBytes to set.

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

The storageVolume to set.

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

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