- 0.47.0 (latest)
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.8
- 0.2.1
- 0.1.1
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VolumeSnapshot.BuilderImplements
VolumeSnapshotOrBuilderStatic 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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public VolumeSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
VolumeSnapshot.Builder |
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 |
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 |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VolumeSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
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 |
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 |
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 |