Class VolumeSnapshot.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
- com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder
-
- All Implemented Interfaces:
VolumeSnapshotOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VolumeSnapshot
public static final class VolumeSnapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder> implements VolumeSnapshotOrBuilder
A snapshot of a volume. Only boot volumes can have snapshots.
Protobuf typegoogle.cloud.baremetalsolution.v2.VolumeSnapshot
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeSnapshot.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VolumeSnapshotbuild()VolumeSnapshotbuildPartial()VolumeSnapshot.Builderclear()VolumeSnapshot.BuilderclearCreateTime()Output only.VolumeSnapshot.BuilderclearDescription()The description of the snapshot.VolumeSnapshot.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VolumeSnapshot.BuilderclearId()Output only.VolumeSnapshot.BuilderclearName()The name of the snapshot.VolumeSnapshot.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VolumeSnapshot.BuilderclearStorageVolume()Output only.VolumeSnapshot.BuilderclearType()Output only.VolumeSnapshot.Builderclone()com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.VolumeSnapshotgetDefaultInstanceForType()StringgetDescription()The description of the snapshot.com.google.protobuf.ByteStringgetDescriptionBytes()The description of the snapshot.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetId()Output only.com.google.protobuf.ByteStringgetIdBytes()Output only.StringgetName()The name of the snapshot.com.google.protobuf.ByteStringgetNameBytes()The name of the snapshot.StringgetStorageVolume()Output only.com.google.protobuf.ByteStringgetStorageVolumeBytes()Output only.VolumeSnapshot.SnapshotTypegetType()Output only.intgetTypeValue()Output only.booleanhasCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VolumeSnapshot.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.VolumeSnapshot.BuildermergeFrom(VolumeSnapshot other)VolumeSnapshot.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VolumeSnapshot.BuildermergeFrom(com.google.protobuf.Message other)VolumeSnapshot.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VolumeSnapshot.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.VolumeSnapshot.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.VolumeSnapshot.BuildersetDescription(String value)The description of the snapshot.VolumeSnapshot.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the snapshot.VolumeSnapshot.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VolumeSnapshot.BuildersetId(String value)Output only.VolumeSnapshot.BuildersetIdBytes(com.google.protobuf.ByteString value)Output only.VolumeSnapshot.BuildersetName(String value)The name of the snapshot.VolumeSnapshot.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the snapshot.VolumeSnapshot.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VolumeSnapshot.BuildersetStorageVolume(String value)Output only.VolumeSnapshot.BuildersetStorageVolumeBytes(com.google.protobuf.ByteString value)Output only.VolumeSnapshot.BuildersetType(VolumeSnapshot.SnapshotType value)Output only.VolumeSnapshot.BuildersetTypeValue(int value)Output only.VolumeSnapshot.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
clear
public VolumeSnapshot.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
getDefaultInstanceForType
public VolumeSnapshot getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VolumeSnapshot build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VolumeSnapshot buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VolumeSnapshot.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
setField
public VolumeSnapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
clearField
public VolumeSnapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
clearOneof
public VolumeSnapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
setRepeatedField
public VolumeSnapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
addRepeatedField
public VolumeSnapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
mergeFrom
public VolumeSnapshot.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VolumeSnapshot.Builder>
-
mergeFrom
public VolumeSnapshot.Builder mergeFrom(VolumeSnapshot other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
mergeFrom
public VolumeSnapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VolumeSnapshot.Builder>- Throws:
IOException
-
getName
public String getName()
The name of the snapshot.
string name = 1;- Specified by:
getNamein interfaceVolumeSnapshotOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the snapshot.
string name = 1;- Specified by:
getNameBytesin interfaceVolumeSnapshotOrBuilder- Returns:
- The bytes for name.
-
setName
public VolumeSnapshot.Builder setName(String value)
The name of the snapshot.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public VolumeSnapshot.Builder clearName()
The name of the snapshot.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public VolumeSnapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the snapshot.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
public String getId()
Output only. An identifier for the snapshot, generated by the backend.
string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceVolumeSnapshotOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Output only. An identifier for the snapshot, generated by the backend.
string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceVolumeSnapshotOrBuilder- Returns:
- The bytes for id.
-
setId
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];- Parameters:
value- The id to set.- Returns:
- 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:
- This builder for chaining.
-
setIdBytes
public VolumeSnapshot.Builder setIdBytes(com.google.protobuf.ByteString value)
Output only. An identifier for the snapshot, generated by the backend.
string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
The description of the snapshot.
string description = 2;- Specified by:
getDescriptionin interfaceVolumeSnapshotOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The description of the snapshot.
string description = 2;- Specified by:
getDescriptionBytesin interfaceVolumeSnapshotOrBuilder- Returns:
- The bytes for description.
-
setDescription
public VolumeSnapshot.Builder setDescription(String value)
The description of the snapshot.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public VolumeSnapshot.Builder clearDescription()
The description of the snapshot.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public VolumeSnapshot.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the snapshot.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVolumeSnapshotOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVolumeSnapshotOrBuilder- Returns:
- The createTime.
-
setCreateTime
public VolumeSnapshot.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public VolumeSnapshot.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public VolumeSnapshot.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time of the snapshot.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVolumeSnapshotOrBuilder
-
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) = { ... }- Specified by:
getStorageVolumein interfaceVolumeSnapshotOrBuilder- Returns:
- The storageVolume.
-
getStorageVolumeBytes
public com.google.protobuf.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) = { ... }- Specified by:
getStorageVolumeBytesin interfaceVolumeSnapshotOrBuilder- Returns:
- The bytes for storageVolume.
-
setStorageVolume
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) = { ... }- Parameters:
value- The storageVolume to set.- Returns:
- 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:
- This builder for chaining.
-
setStorageVolumeBytes
public VolumeSnapshot.Builder setStorageVolumeBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for storageVolume to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTypeValuein interfaceVolumeSnapshotOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTypein interfaceVolumeSnapshotOrBuilder- Returns:
- The type.
-
setType
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];- Parameters:
value- The type to set.- Returns:
- 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:
- This builder for chaining.
-
setUnknownFields
public final VolumeSnapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
mergeUnknownFields
public final VolumeSnapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeSnapshot.Builder>
-
-