public static final class VolumeSnapshot.Builder extends GeneratedMessageV3.Builder<VolumeSnapshot.Builder> implements VolumeSnapshotOrBuilderSnapshot registered for a given storage volume.
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()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VolumeSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| VolumeSnapshot.Builder |
build()
public VolumeSnapshot build()| Type | Description |
| VolumeSnapshot |
buildPartial()
public VolumeSnapshot buildPartial()| Type | Description |
| VolumeSnapshot |
clear()
public VolumeSnapshot.Builder clear()| Type | Description |
| VolumeSnapshot.Builder |
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];
| Type | Description |
| VolumeSnapshot.Builder |
clearDescription()
public VolumeSnapshot.Builder clearDescription()The description of the storage volume snapshot.
string description = 2;
| Type | Description |
| VolumeSnapshot.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public VolumeSnapshot.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| VolumeSnapshot.Builder |
clearName()
public VolumeSnapshot.Builder clearName()Output only. The name of the storage volume snapshot.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Type | Description |
| VolumeSnapshot.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public VolumeSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| VolumeSnapshot.Builder |
clearSizeBytes()
public VolumeSnapshot.Builder clearSizeBytes()The size of the storage volume snapshot, in bytes.
int64 size_bytes = 3;
| 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) = { ... }
| Type | Description |
| VolumeSnapshot.Builder | This builder for chaining. |
clone()
public VolumeSnapshot.Builder clone()| Type | Description |
| VolumeSnapshot.Builder |
getCreateTime()
public Timestamp getCreateTime()Optional. The creation time of the storage volume snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL];
| 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];
| 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];
| Type | Description |
| TimestampOrBuilder |
getDefaultInstanceForType()
public VolumeSnapshot getDefaultInstanceForType()| Type | Description |
| VolumeSnapshot |
getDescription()
public String getDescription()The description of the storage volume snapshot.
string description = 2;
| Type | Description |
| String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()The description of the storage volume snapshot.
string description = 2;
| Type | Description |
| ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getName()
public String getName()Output only. The name of the storage volume snapshot.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| 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];
| Type | Description |
| ByteString | The bytes for name. |
getSizeBytes()
public long getSizeBytes()The size of the storage volume snapshot, in bytes.
int64 size_bytes = 3;
| Type | Description |
| long | The sizeBytes. |
getStorageVolume()
public String getStorageVolume()The storage volume this snapshot belongs to.
string storage_volume = 5 [(.google.api.resource_reference) = { ... }
| Type | Description |
| String | The storageVolume. |
getStorageVolumeBytes()
public ByteString getStorageVolumeBytes()The storage volume this snapshot belongs to.
string storage_volume = 5 [(.google.api.resource_reference) = { ... }
| 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];
| Type | Description |
| boolean | Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
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];
| Name | Description |
| value | Timestamp |
| Type | Description |
| VolumeSnapshot.Builder |
mergeFrom(VolumeSnapshot other)
public VolumeSnapshot.Builder mergeFrom(VolumeSnapshot other)| Name | Description |
| other | VolumeSnapshot |
| Type | Description |
| VolumeSnapshot.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VolumeSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| VolumeSnapshot.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public VolumeSnapshot.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| VolumeSnapshot.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VolumeSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| VolumeSnapshot.Builder |
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];
| Name | Description |
| value | Timestamp |
| 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];
| Name | Description |
| builderForValue | Builder |
| Type | Description |
| VolumeSnapshot.Builder |
setDescription(String value)
public VolumeSnapshot.Builder setDescription(String value)The description of the storage volume snapshot.
string description = 2;
| Name | Description |
| value | StringThe description to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for description to set. |
| Type | Description |
| VolumeSnapshot.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public VolumeSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| VolumeSnapshot.Builder |
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];
| Name | Description |
| value | StringThe name to set. |
| 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];
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| 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)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| VolumeSnapshot.Builder |
setSizeBytes(long value)
public VolumeSnapshot.Builder setSizeBytes(long value)The size of the storage volume snapshot, in bytes.
int64 size_bytes = 3;
| Name | Description |
| value | longThe sizeBytes to set. |
| 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) = { ... }
| Name | Description |
| value | StringThe storageVolume to set. |
| 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) = { ... }
| Name | Description |
| value | ByteStringThe bytes for storageVolume to set. |
| Type | Description |
| VolumeSnapshot.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final VolumeSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| VolumeSnapshot.Builder |