public static final class VolumeSnapshot.Builder extends GeneratedMessage.Builder<VolumeSnapshot.Builder> implements VolumeSnapshotOrBuilderA snapshot of a volume. Only boot volumes can have snapshots.
Protobuf type google.cloud.baremetalsolution.v2.VolumeSnapshot
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VolumeSnapshot.BuilderImplements
VolumeSnapshotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VolumeSnapshot.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VolumeSnapshot.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
VolumeSnapshot.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
VolumeSnapshot.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe 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.SnapshotTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
VolumeSnapshot.Builder |
This builder for chaining. |