Package com.google.cloud.compute.v1
Class Snapshot.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
- com.google.cloud.compute.v1.Snapshot.Builder
-
- All Implemented Interfaces:
SnapshotOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Snapshot
public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder> implements SnapshotOrBuilder
Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.
Protobuf typegoogle.cloud.compute.v1.Snapshot
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Snapshot.BuilderaddAllLicenseCodes(Iterable<? extends Long> values)[Output Only] Integer license codes indicating which licenses are attached to this snapshot.Snapshot.BuilderaddAllLicenses(Iterable<String> values)[Output Only] A list of public visible licenses that apply to this snapshot.Snapshot.BuilderaddAllStorageLocations(Iterable<String> values)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).Snapshot.BuilderaddLicenseCodes(long value)[Output Only] Integer license codes indicating which licenses are attached to this snapshot.Snapshot.BuilderaddLicenses(String value)[Output Only] A list of public visible licenses that apply to this snapshot.Snapshot.BuilderaddLicensesBytes(com.google.protobuf.ByteString value)[Output Only] A list of public visible licenses that apply to this snapshot.Snapshot.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Snapshot.BuilderaddStorageLocations(String value)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).Snapshot.BuilderaddStorageLocationsBytes(com.google.protobuf.ByteString value)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).Snapshotbuild()SnapshotbuildPartial()Snapshot.Builderclear()Snapshot.BuilderclearArchitecture()[Output Only] The architecture of the snapshot.Snapshot.BuilderclearAutoCreated()[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.Snapshot.BuilderclearChainName()Creates the new snapshot in the snapshot chain labeled with the specified name.Snapshot.BuilderclearCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time.Snapshot.BuilderclearCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.Snapshot.BuilderclearDescription()An optional description of this resource.Snapshot.BuilderclearDiskSizeGb()[Output Only] Size of the source disk, specified in GB.Snapshot.BuilderclearDownloadBytes()[Output Only] Number of bytes downloaded to restore a snapshot to a disk.Snapshot.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Snapshot.BuilderclearId()[Output Only] The unique identifier for the resource.Snapshot.BuilderclearKind()[Output Only] Type of the resource.Snapshot.BuilderclearLabelFingerprint()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.Snapshot.BuilderclearLabels()Snapshot.BuilderclearLicenseCodes()[Output Only] Integer license codes indicating which licenses are attached to this snapshot.Snapshot.BuilderclearLicenses()[Output Only] A list of public visible licenses that apply to this snapshot.Snapshot.BuilderclearLocationHint()An opaque location hint used to place the snapshot close to other resources.Snapshot.BuilderclearName()Name of the resource; provided by the client when the resource is created.Snapshot.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Snapshot.BuilderclearSatisfiesPzs()[Output Only] Reserved for future use.Snapshot.BuilderclearSelfLink()[Output Only] Server-defined URL for the resource.Snapshot.BuilderclearSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key.Snapshot.BuilderclearSnapshotType()Indicates the type of the snapshot.Snapshot.BuilderclearSourceDisk()The source disk used to create this snapshot.Snapshot.BuilderclearSourceDiskEncryptionKey()The customer-supplied encryption key of the source disk.Snapshot.BuilderclearSourceDiskId()[Output Only] The ID value of the disk used to create this snapshot.Snapshot.BuilderclearSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot.Snapshot.BuilderclearSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled snapshot.Snapshot.BuilderclearStatus()[Output Only] The status of the snapshot.Snapshot.BuilderclearStorageBytes()[Output Only] A size of the storage used by the snapshot.Snapshot.BuilderclearStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.Snapshot.BuilderclearStorageLocations()Cloud Storage bucket storage location of the snapshot (regional or multi-regional).Snapshot.Builderclone()booleancontainsLabels(String key)Labels to apply to this snapshot.StringgetArchitecture()[Output Only] The architecture of the snapshot.com.google.protobuf.ByteStringgetArchitectureBytes()[Output Only] The architecture of the snapshot.booleangetAutoCreated()[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.StringgetChainName()Creates the new snapshot in the snapshot chain labeled with the specified name.com.google.protobuf.ByteStringgetChainNameBytes()Creates the new snapshot in the snapshot chain labeled with the specified name.longgetCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.SnapshotgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetDiskSizeGb()[Output Only] Size of the source disk, specified in GB.longgetDownloadBytes()[Output Only] Number of bytes downloaded to restore a snapshot to a disk.longgetId()[Output Only] The unique identifier for the resource.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetLabelFingerprint()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteStringgetLabelFingerprintBytes()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels to apply to this snapshot.Map<String,String>getLabelsMap()Labels to apply to this snapshot.StringgetLabelsOrDefault(String key, String defaultValue)Labels to apply to this snapshot.StringgetLabelsOrThrow(String key)Labels to apply to this snapshot.longgetLicenseCodes(int index)[Output Only] Integer license codes indicating which licenses are attached to this snapshot.intgetLicenseCodesCount()[Output Only] Integer license codes indicating which licenses are attached to this snapshot.List<Long>getLicenseCodesList()[Output Only] Integer license codes indicating which licenses are attached to this snapshot.StringgetLicenses(int index)[Output Only] A list of public visible licenses that apply to this snapshot.com.google.protobuf.ByteStringgetLicensesBytes(int index)[Output Only] A list of public visible licenses that apply to this snapshot.intgetLicensesCount()[Output Only] A list of public visible licenses that apply to this snapshot.com.google.protobuf.ProtocolStringListgetLicensesList()[Output Only] A list of public visible licenses that apply to this snapshot.StringgetLocationHint()An opaque location hint used to place the snapshot close to other resources.com.google.protobuf.ByteStringgetLocationHintBytes()An opaque location hint used to place the snapshot close to other resources.Map<String,String>getMutableLabels()Deprecated.StringgetName()Name of the resource; provided by the client when the resource is created.com.google.protobuf.ByteStringgetNameBytes()Name of the resource; provided by the client when the resource is created.booleangetSatisfiesPzs()[Output Only] Reserved for future use.StringgetSelfLink()[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for the resource.CustomerEncryptionKeygetSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key.CustomerEncryptionKey.BuildergetSnapshotEncryptionKeyBuilder()Encrypts the snapshot using a customer-supplied encryption key.CustomerEncryptionKeyOrBuildergetSnapshotEncryptionKeyOrBuilder()Encrypts the snapshot using a customer-supplied encryption key.StringgetSnapshotType()Indicates the type of the snapshot.com.google.protobuf.ByteStringgetSnapshotTypeBytes()Indicates the type of the snapshot.StringgetSourceDisk()The source disk used to create this snapshot.com.google.protobuf.ByteStringgetSourceDiskBytes()The source disk used to create this snapshot.CustomerEncryptionKeygetSourceDiskEncryptionKey()The customer-supplied encryption key of the source disk.CustomerEncryptionKey.BuildergetSourceDiskEncryptionKeyBuilder()The customer-supplied encryption key of the source disk.CustomerEncryptionKeyOrBuildergetSourceDiskEncryptionKeyOrBuilder()The customer-supplied encryption key of the source disk.StringgetSourceDiskId()[Output Only] The ID value of the disk used to create this snapshot.com.google.protobuf.ByteStringgetSourceDiskIdBytes()[Output Only] The ID value of the disk used to create this snapshot.StringgetSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot.com.google.protobuf.ByteStringgetSourceSnapshotSchedulePolicyBytes()[Output Only] URL of the resource policy which created this scheduled snapshot.StringgetSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled snapshot.com.google.protobuf.ByteStringgetSourceSnapshotSchedulePolicyIdBytes()[Output Only] ID of the resource policy which created this scheduled snapshot.StringgetStatus()[Output Only] The status of the snapshot.com.google.protobuf.ByteStringgetStatusBytes()[Output Only] The status of the snapshot.longgetStorageBytes()[Output Only] A size of the storage used by the snapshot.StringgetStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.com.google.protobuf.ByteStringgetStorageBytesStatusBytes()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.StringgetStorageLocations(int index)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).com.google.protobuf.ByteStringgetStorageLocationsBytes(int index)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).intgetStorageLocationsCount()Cloud Storage bucket storage location of the snapshot (regional or multi-regional).com.google.protobuf.ProtocolStringListgetStorageLocationsList()Cloud Storage bucket storage location of the snapshot (regional or multi-regional).booleanhasArchitecture()[Output Only] The architecture of the snapshot.booleanhasAutoCreated()[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.booleanhasChainName()Creates the new snapshot in the snapshot chain labeled with the specified name.booleanhasCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDescription()An optional description of this resource.booleanhasDiskSizeGb()[Output Only] Size of the source disk, specified in GB.booleanhasDownloadBytes()[Output Only] Number of bytes downloaded to restore a snapshot to a disk.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()[Output Only] Type of the resource.booleanhasLabelFingerprint()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.booleanhasLocationHint()An opaque location hint used to place the snapshot close to other resources.booleanhasName()Name of the resource; provided by the client when the resource is created.booleanhasSatisfiesPzs()[Output Only] Reserved for future use.booleanhasSelfLink()[Output Only] Server-defined URL for the resource.booleanhasSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key.booleanhasSnapshotType()Indicates the type of the snapshot.booleanhasSourceDisk()The source disk used to create this snapshot.booleanhasSourceDiskEncryptionKey()The customer-supplied encryption key of the source disk.booleanhasSourceDiskId()[Output Only] The ID value of the disk used to create this snapshot.booleanhasSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot.booleanhasSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled snapshot.booleanhasStatus()[Output Only] The status of the snapshot.booleanhasStorageBytes()[Output Only] A size of the storage used by the snapshot.booleanhasStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Snapshot.BuildermergeFrom(Snapshot other)Snapshot.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Snapshot.BuildermergeFrom(com.google.protobuf.Message other)Snapshot.BuildermergeSnapshotEncryptionKey(CustomerEncryptionKey value)Encrypts the snapshot using a customer-supplied encryption key.Snapshot.BuildermergeSourceDiskEncryptionKey(CustomerEncryptionKey value)The customer-supplied encryption key of the source disk.Snapshot.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Snapshot.BuilderputAllLabels(Map<String,String> values)Labels to apply to this snapshot.Snapshot.BuilderputLabels(String key, String value)Labels to apply to this snapshot.Snapshot.BuilderremoveLabels(String key)Labels to apply to this snapshot.Snapshot.BuildersetArchitecture(String value)[Output Only] The architecture of the snapshot.Snapshot.BuildersetArchitectureBytes(com.google.protobuf.ByteString value)[Output Only] The architecture of the snapshot.Snapshot.BuildersetAutoCreated(boolean value)[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.Snapshot.BuildersetChainName(String value)Creates the new snapshot in the snapshot chain labeled with the specified name.Snapshot.BuildersetChainNameBytes(com.google.protobuf.ByteString value)Creates the new snapshot in the snapshot chain labeled with the specified name.Snapshot.BuildersetCreationSizeBytes(long value)[Output Only] Size in bytes of the snapshot at creation time.Snapshot.BuildersetCreationTimestamp(String value)[Output Only] Creation timestamp in RFC3339 text format.Snapshot.BuildersetCreationTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Creation timestamp in RFC3339 text format.Snapshot.BuildersetDescription(String value)An optional description of this resource.Snapshot.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.Snapshot.BuildersetDiskSizeGb(long value)[Output Only] Size of the source disk, specified in GB.Snapshot.BuildersetDownloadBytes(long value)[Output Only] Number of bytes downloaded to restore a snapshot to a disk.Snapshot.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Snapshot.BuildersetId(long value)[Output Only] The unique identifier for the resource.Snapshot.BuildersetKind(String value)[Output Only] Type of the resource.Snapshot.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output Only] Type of the resource.Snapshot.BuildersetLabelFingerprint(String value)A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.Snapshot.BuildersetLabelFingerprintBytes(com.google.protobuf.ByteString value)A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.Snapshot.BuildersetLicenseCodes(int index, long value)[Output Only] Integer license codes indicating which licenses are attached to this snapshot.Snapshot.BuildersetLicenses(int index, String value)[Output Only] A list of public visible licenses that apply to this snapshot.Snapshot.BuildersetLocationHint(String value)An opaque location hint used to place the snapshot close to other resources.Snapshot.BuildersetLocationHintBytes(com.google.protobuf.ByteString value)An opaque location hint used to place the snapshot close to other resources.Snapshot.BuildersetName(String value)Name of the resource; provided by the client when the resource is created.Snapshot.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the resource; provided by the client when the resource is created.Snapshot.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Snapshot.BuildersetSatisfiesPzs(boolean value)[Output Only] Reserved for future use.Snapshot.BuildersetSelfLink(String value)[Output Only] Server-defined URL for the resource.Snapshot.BuildersetSelfLinkBytes(com.google.protobuf.ByteString value)[Output Only] Server-defined URL for the resource.Snapshot.BuildersetSnapshotEncryptionKey(CustomerEncryptionKey value)Encrypts the snapshot using a customer-supplied encryption key.Snapshot.BuildersetSnapshotEncryptionKey(CustomerEncryptionKey.Builder builderForValue)Encrypts the snapshot using a customer-supplied encryption key.Snapshot.BuildersetSnapshotType(String value)Indicates the type of the snapshot.Snapshot.BuildersetSnapshotTypeBytes(com.google.protobuf.ByteString value)Indicates the type of the snapshot.Snapshot.BuildersetSourceDisk(String value)The source disk used to create this snapshot.Snapshot.BuildersetSourceDiskBytes(com.google.protobuf.ByteString value)The source disk used to create this snapshot.Snapshot.BuildersetSourceDiskEncryptionKey(CustomerEncryptionKey value)The customer-supplied encryption key of the source disk.Snapshot.BuildersetSourceDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)The customer-supplied encryption key of the source disk.Snapshot.BuildersetSourceDiskId(String value)[Output Only] The ID value of the disk used to create this snapshot.Snapshot.BuildersetSourceDiskIdBytes(com.google.protobuf.ByteString value)[Output Only] The ID value of the disk used to create this snapshot.Snapshot.BuildersetSourceSnapshotSchedulePolicy(String value)[Output Only] URL of the resource policy which created this scheduled snapshot.Snapshot.BuildersetSourceSnapshotSchedulePolicyBytes(com.google.protobuf.ByteString value)[Output Only] URL of the resource policy which created this scheduled snapshot.Snapshot.BuildersetSourceSnapshotSchedulePolicyId(String value)[Output Only] ID of the resource policy which created this scheduled snapshot.Snapshot.BuildersetSourceSnapshotSchedulePolicyIdBytes(com.google.protobuf.ByteString value)[Output Only] ID of the resource policy which created this scheduled snapshot.Snapshot.BuildersetStatus(String value)[Output Only] The status of the snapshot.Snapshot.BuildersetStatusBytes(com.google.protobuf.ByteString value)[Output Only] The status of the snapshot.Snapshot.BuildersetStorageBytes(long value)[Output Only] A size of the storage used by the snapshot.Snapshot.BuildersetStorageBytesStatus(String value)[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.Snapshot.BuildersetStorageBytesStatusBytes(com.google.protobuf.ByteString value)[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.Snapshot.BuildersetStorageLocations(int index, String value)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).Snapshot.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
clear
public Snapshot.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<Snapshot.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<Snapshot.Builder>
-
getDefaultInstanceForType
public Snapshot getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Snapshot build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Snapshot buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Snapshot.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<Snapshot.Builder>
-
setField
public Snapshot.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<Snapshot.Builder>
-
clearField
public Snapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
clearOneof
public Snapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
setRepeatedField
public Snapshot.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<Snapshot.Builder>
-
addRepeatedField
public Snapshot.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<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(Snapshot other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.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<Snapshot.Builder>- Throws:
IOException
-
hasArchitecture
public boolean hasArchitecture()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
hasArchitecturein interfaceSnapshotOrBuilder- Returns:
- Whether the architecture field is set.
-
getArchitecture
public String getArchitecture()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
getArchitecturein interfaceSnapshotOrBuilder- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
getArchitectureBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for architecture.
-
setArchitecture
public Snapshot.Builder setArchitecture(String value)
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Parameters:
value- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
public Snapshot.Builder clearArchitecture()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Returns:
- This builder for chaining.
-
setArchitectureBytes
public Snapshot.Builder setArchitectureBytes(com.google.protobuf.ByteString value)
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Parameters:
value- The bytes for architecture to set.- Returns:
- This builder for chaining.
-
hasAutoCreated
public boolean hasAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Specified by:
hasAutoCreatedin interfaceSnapshotOrBuilder- Returns:
- Whether the autoCreated field is set.
-
getAutoCreated
public boolean getAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Specified by:
getAutoCreatedin interfaceSnapshotOrBuilder- Returns:
- The autoCreated.
-
setAutoCreated
public Snapshot.Builder setAutoCreated(boolean value)
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Parameters:
value- The autoCreated to set.- Returns:
- This builder for chaining.
-
clearAutoCreated
public Snapshot.Builder clearAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Returns:
- This builder for chaining.
-
hasChainName
public boolean hasChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Specified by:
hasChainNamein interfaceSnapshotOrBuilder- Returns:
- Whether the chainName field is set.
-
getChainName
public String getChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Specified by:
getChainNamein interfaceSnapshotOrBuilder- Returns:
- The chainName.
-
getChainNameBytes
public com.google.protobuf.ByteString getChainNameBytes()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Specified by:
getChainNameBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for chainName.
-
setChainName
public Snapshot.Builder setChainName(String value)
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Parameters:
value- The chainName to set.- Returns:
- This builder for chaining.
-
clearChainName
public Snapshot.Builder clearChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Returns:
- This builder for chaining.
-
setChainNameBytes
public Snapshot.Builder setChainNameBytes(com.google.protobuf.ByteString value)
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Parameters:
value- The bytes for chainName to set.- Returns:
- This builder for chaining.
-
hasCreationSizeBytes
public boolean hasCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Specified by:
hasCreationSizeBytesin interfaceSnapshotOrBuilder- Returns:
- Whether the creationSizeBytes field is set.
-
getCreationSizeBytes
public long getCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Specified by:
getCreationSizeBytesin interfaceSnapshotOrBuilder- Returns:
- The creationSizeBytes.
-
setCreationSizeBytes
public Snapshot.Builder setCreationSizeBytes(long value)
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Parameters:
value- The creationSizeBytes to set.- Returns:
- This builder for chaining.
-
clearCreationSizeBytes
public Snapshot.Builder clearCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceSnapshotOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceSnapshotOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Snapshot.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Snapshot.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Snapshot.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceSnapshotOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceSnapshotOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Snapshot.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Snapshot.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Snapshot.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
hasDiskSizeGbin interfaceSnapshotOrBuilder- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Specified by:
getDiskSizeGbin interfaceSnapshotOrBuilder- Returns:
- The diskSizeGb.
-
setDiskSizeGb
public Snapshot.Builder setDiskSizeGb(long value)
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Parameters:
value- The diskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDiskSizeGb
public Snapshot.Builder clearDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Returns:
- This builder for chaining.
-
hasDownloadBytes
public boolean hasDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Specified by:
hasDownloadBytesin interfaceSnapshotOrBuilder- Returns:
- Whether the downloadBytes field is set.
-
getDownloadBytes
public long getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Specified by:
getDownloadBytesin interfaceSnapshotOrBuilder- Returns:
- The downloadBytes.
-
setDownloadBytes
public Snapshot.Builder setDownloadBytes(long value)
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Parameters:
value- The downloadBytes to set.- Returns:
- This builder for chaining.
-
clearDownloadBytes
public Snapshot.Builder clearDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceSnapshotOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceSnapshotOrBuilder- Returns:
- The id.
-
setId
public Snapshot.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Snapshot.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Specified by:
hasKindin interfaceSnapshotOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Specified by:
getKindin interfaceSnapshotOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Snapshot.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Snapshot.Builder clearKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public Snapshot.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLabelFingerprint
public boolean hasLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceSnapshotOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
public String getLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceSnapshotOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
public Snapshot.Builder setLabelFingerprint(String value)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
public Snapshot.Builder clearLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
public Snapshot.Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:SnapshotOrBuilderLabels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceSnapshotOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceSnapshotOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceSnapshotOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceSnapshotOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceSnapshotOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceSnapshotOrBuilder
-
clearLabels
public Snapshot.Builder clearLabels()
-
removeLabels
public Snapshot.Builder removeLabels(String key)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Snapshot.Builder putLabels(String key, String value)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
putAllLabels
public Snapshot.Builder putAllLabels(Map<String,String> values)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getLicenseCodesList
public List<Long> getLicenseCodesList()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Specified by:
getLicenseCodesListin interfaceSnapshotOrBuilder- Returns:
- A list containing the licenseCodes.
-
getLicenseCodesCount
public int getLicenseCodesCount()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Specified by:
getLicenseCodesCountin interfaceSnapshotOrBuilder- Returns:
- The count of licenseCodes.
-
getLicenseCodes
public long getLicenseCodes(int index)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Specified by:
getLicenseCodesin interfaceSnapshotOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The licenseCodes at the given index.
-
setLicenseCodes
public Snapshot.Builder setLicenseCodes(int index, long value)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Parameters:
index- The index to set the value at.value- The licenseCodes to set.- Returns:
- This builder for chaining.
-
addLicenseCodes
public Snapshot.Builder addLicenseCodes(long value)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Parameters:
value- The licenseCodes to add.- Returns:
- This builder for chaining.
-
addAllLicenseCodes
public Snapshot.Builder addAllLicenseCodes(Iterable<? extends Long> values)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Parameters:
values- The licenseCodes to add.- Returns:
- This builder for chaining.
-
clearLicenseCodes
public Snapshot.Builder clearLicenseCodes()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Specified by:
getLicensesListin interfaceSnapshotOrBuilder- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Specified by:
getLicensesCountin interfaceSnapshotOrBuilder- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Specified by:
getLicensesin interfaceSnapshotOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Specified by:
getLicensesBytesin interfaceSnapshotOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
public Snapshot.Builder setLicenses(int index, String value)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
index- The index to set the value at.value- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
public Snapshot.Builder addLicenses(String value)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
value- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
public Snapshot.Builder addAllLicenses(Iterable<String> values)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
values- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
public Snapshot.Builder clearLicenses()
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Returns:
- This builder for chaining.
-
addLicensesBytes
public Snapshot.Builder addLicensesBytes(com.google.protobuf.ByteString value)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
value- The bytes of the licenses to add.- Returns:
- This builder for chaining.
-
hasLocationHint
public boolean hasLocationHint()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Specified by:
hasLocationHintin interfaceSnapshotOrBuilder- Returns:
- Whether the locationHint field is set.
-
getLocationHint
public String getLocationHint()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Specified by:
getLocationHintin interfaceSnapshotOrBuilder- Returns:
- The locationHint.
-
getLocationHintBytes
public com.google.protobuf.ByteString getLocationHintBytes()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Specified by:
getLocationHintBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for locationHint.
-
setLocationHint
public Snapshot.Builder setLocationHint(String value)
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Parameters:
value- The locationHint to set.- Returns:
- This builder for chaining.
-
clearLocationHint
public Snapshot.Builder clearLocationHint()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Returns:
- This builder for chaining.
-
setLocationHintBytes
public Snapshot.Builder setLocationHintBytes(com.google.protobuf.ByteString value)
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Parameters:
value- The bytes for locationHint to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
hasNamein interfaceSnapshotOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNamein interfaceSnapshotOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for name.
-
setName
public Snapshot.Builder setName(String value)
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Snapshot.Builder clearName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
hasSatisfiesPzsin interfaceSnapshotOrBuilder- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
getSatisfiesPzsin interfaceSnapshotOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
public Snapshot.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
public Snapshot.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceSnapshotOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceSnapshotOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
public Snapshot.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Snapshot.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Snapshot.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSnapshotEncryptionKey
public boolean hasSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;- Specified by:
hasSnapshotEncryptionKeyin interfaceSnapshotOrBuilder- Returns:
- Whether the snapshotEncryptionKey field is set.
-
getSnapshotEncryptionKey
public CustomerEncryptionKey getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;- Specified by:
getSnapshotEncryptionKeyin interfaceSnapshotOrBuilder- Returns:
- The snapshotEncryptionKey.
-
setSnapshotEncryptionKey
public Snapshot.Builder setSnapshotEncryptionKey(CustomerEncryptionKey value)
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
setSnapshotEncryptionKey
public Snapshot.Builder setSnapshotEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
mergeSnapshotEncryptionKey
public Snapshot.Builder mergeSnapshotEncryptionKey(CustomerEncryptionKey value)
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
clearSnapshotEncryptionKey
public Snapshot.Builder clearSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
getSnapshotEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getSnapshotEncryptionKeyBuilder()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
getSnapshotEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getSnapshotEncryptionKeyOrBuilder()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;- Specified by:
getSnapshotEncryptionKeyOrBuilderin interfaceSnapshotOrBuilder
-
hasSnapshotType
public boolean hasSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Specified by:
hasSnapshotTypein interfaceSnapshotOrBuilder- Returns:
- Whether the snapshotType field is set.
-
getSnapshotType
public String getSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Specified by:
getSnapshotTypein interfaceSnapshotOrBuilder- Returns:
- The snapshotType.
-
getSnapshotTypeBytes
public com.google.protobuf.ByteString getSnapshotTypeBytes()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Specified by:
getSnapshotTypeBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for snapshotType.
-
setSnapshotType
public Snapshot.Builder setSnapshotType(String value)
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Parameters:
value- The snapshotType to set.- Returns:
- This builder for chaining.
-
clearSnapshotType
public Snapshot.Builder clearSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Returns:
- This builder for chaining.
-
setSnapshotTypeBytes
public Snapshot.Builder setSnapshotTypeBytes(com.google.protobuf.ByteString value)
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Parameters:
value- The bytes for snapshotType to set.- Returns:
- This builder for chaining.
-
hasSourceDisk
public boolean hasSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Specified by:
hasSourceDiskin interfaceSnapshotOrBuilder- Returns:
- Whether the sourceDisk field is set.
-
getSourceDisk
public String getSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Specified by:
getSourceDiskin interfaceSnapshotOrBuilder- Returns:
- The sourceDisk.
-
getSourceDiskBytes
public com.google.protobuf.ByteString getSourceDiskBytes()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Specified by:
getSourceDiskBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for sourceDisk.
-
setSourceDisk
public Snapshot.Builder setSourceDisk(String value)
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Parameters:
value- The sourceDisk to set.- Returns:
- This builder for chaining.
-
clearSourceDisk
public Snapshot.Builder clearSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Returns:
- This builder for chaining.
-
setSourceDiskBytes
public Snapshot.Builder setSourceDiskBytes(com.google.protobuf.ByteString value)
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Parameters:
value- The bytes for sourceDisk to set.- Returns:
- This builder for chaining.
-
hasSourceDiskEncryptionKey
public boolean hasSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;- Specified by:
hasSourceDiskEncryptionKeyin interfaceSnapshotOrBuilder- Returns:
- Whether the sourceDiskEncryptionKey field is set.
-
getSourceDiskEncryptionKey
public CustomerEncryptionKey getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;- Specified by:
getSourceDiskEncryptionKeyin interfaceSnapshotOrBuilder- Returns:
- The sourceDiskEncryptionKey.
-
setSourceDiskEncryptionKey
public Snapshot.Builder setSourceDiskEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
-
setSourceDiskEncryptionKey
public Snapshot.Builder setSourceDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
-
mergeSourceDiskEncryptionKey
public Snapshot.Builder mergeSourceDiskEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
-
clearSourceDiskEncryptionKey
public Snapshot.Builder clearSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
-
getSourceDiskEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getSourceDiskEncryptionKeyBuilder()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
-
getSourceDiskEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getSourceDiskEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;- Specified by:
getSourceDiskEncryptionKeyOrBuilderin interfaceSnapshotOrBuilder
-
hasSourceDiskId
public boolean hasSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Specified by:
hasSourceDiskIdin interfaceSnapshotOrBuilder- Returns:
- Whether the sourceDiskId field is set.
-
getSourceDiskId
public String getSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Specified by:
getSourceDiskIdin interfaceSnapshotOrBuilder- Returns:
- The sourceDiskId.
-
getSourceDiskIdBytes
public com.google.protobuf.ByteString getSourceDiskIdBytes()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Specified by:
getSourceDiskIdBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for sourceDiskId.
-
setSourceDiskId
public Snapshot.Builder setSourceDiskId(String value)
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Parameters:
value- The sourceDiskId to set.- Returns:
- This builder for chaining.
-
clearSourceDiskId
public Snapshot.Builder clearSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Returns:
- This builder for chaining.
-
setSourceDiskIdBytes
public Snapshot.Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value)
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Parameters:
value- The bytes for sourceDiskId to set.- Returns:
- This builder for chaining.
-
hasSourceSnapshotSchedulePolicy
public boolean hasSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Specified by:
hasSourceSnapshotSchedulePolicyin interfaceSnapshotOrBuilder- Returns:
- Whether the sourceSnapshotSchedulePolicy field is set.
-
getSourceSnapshotSchedulePolicy
public String getSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Specified by:
getSourceSnapshotSchedulePolicyin interfaceSnapshotOrBuilder- Returns:
- The sourceSnapshotSchedulePolicy.
-
getSourceSnapshotSchedulePolicyBytes
public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyBytes()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Specified by:
getSourceSnapshotSchedulePolicyBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for sourceSnapshotSchedulePolicy.
-
setSourceSnapshotSchedulePolicy
public Snapshot.Builder setSourceSnapshotSchedulePolicy(String value)
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Parameters:
value- The sourceSnapshotSchedulePolicy to set.- Returns:
- This builder for chaining.
-
clearSourceSnapshotSchedulePolicy
public Snapshot.Builder clearSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Returns:
- This builder for chaining.
-
setSourceSnapshotSchedulePolicyBytes
public Snapshot.Builder setSourceSnapshotSchedulePolicyBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Parameters:
value- The bytes for sourceSnapshotSchedulePolicy to set.- Returns:
- This builder for chaining.
-
hasSourceSnapshotSchedulePolicyId
public boolean hasSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Specified by:
hasSourceSnapshotSchedulePolicyIdin interfaceSnapshotOrBuilder- Returns:
- Whether the sourceSnapshotSchedulePolicyId field is set.
-
getSourceSnapshotSchedulePolicyId
public String getSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Specified by:
getSourceSnapshotSchedulePolicyIdin interfaceSnapshotOrBuilder- Returns:
- The sourceSnapshotSchedulePolicyId.
-
getSourceSnapshotSchedulePolicyIdBytes
public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyIdBytes()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Specified by:
getSourceSnapshotSchedulePolicyIdBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for sourceSnapshotSchedulePolicyId.
-
setSourceSnapshotSchedulePolicyId
public Snapshot.Builder setSourceSnapshotSchedulePolicyId(String value)
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Parameters:
value- The sourceSnapshotSchedulePolicyId to set.- Returns:
- This builder for chaining.
-
clearSourceSnapshotSchedulePolicyId
public Snapshot.Builder clearSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Returns:
- This builder for chaining.
-
setSourceSnapshotSchedulePolicyIdBytes
public Snapshot.Builder setSourceSnapshotSchedulePolicyIdBytes(com.google.protobuf.ByteString value)
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Parameters:
value- The bytes for sourceSnapshotSchedulePolicyId to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceSnapshotOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public String getStatus()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceSnapshotOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for status.
-
setStatus
public Snapshot.Builder setStatus(String value)
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public Snapshot.Builder clearStatus()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
public Snapshot.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasStorageBytes
public boolean hasStorageBytes()
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Specified by:
hasStorageBytesin interfaceSnapshotOrBuilder- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
public long getStorageBytes()
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Specified by:
getStorageBytesin interfaceSnapshotOrBuilder- Returns:
- The storageBytes.
-
setStorageBytes
public Snapshot.Builder setStorageBytes(long value)
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Parameters:
value- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
public Snapshot.Builder clearStorageBytes()
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Returns:
- This builder for chaining.
-
hasStorageBytesStatus
public boolean hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
hasStorageBytesStatusin interfaceSnapshotOrBuilder- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
getStorageBytesStatusin interfaceSnapshotOrBuilder- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
public com.google.protobuf.ByteString getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
getStorageBytesStatusBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for storageBytesStatus.
-
setStorageBytesStatus
public Snapshot.Builder setStorageBytesStatus(String value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Parameters:
value- The storageBytesStatus to set.- Returns:
- This builder for chaining.
-
clearStorageBytesStatus
public Snapshot.Builder clearStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Returns:
- This builder for chaining.
-
setStorageBytesStatusBytes
public Snapshot.Builder setStorageBytesStatusBytes(com.google.protobuf.ByteString value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Parameters:
value- The bytes for storageBytesStatus to set.- Returns:
- This builder for chaining.
-
getStorageLocationsList
public com.google.protobuf.ProtocolStringList getStorageLocationsList()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsListin interfaceSnapshotOrBuilder- Returns:
- A list containing the storageLocations.
-
getStorageLocationsCount
public int getStorageLocationsCount()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsCountin interfaceSnapshotOrBuilder- Returns:
- The count of storageLocations.
-
getStorageLocations
public String getStorageLocations(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsin interfaceSnapshotOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The storageLocations at the given index.
-
getStorageLocationsBytes
public com.google.protobuf.ByteString getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsBytesin interfaceSnapshotOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the storageLocations at the given index.
-
setStorageLocations
public Snapshot.Builder setStorageLocations(int index, String value)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
index- The index to set the value at.value- The storageLocations to set.- Returns:
- This builder for chaining.
-
addStorageLocations
public Snapshot.Builder addStorageLocations(String value)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
value- The storageLocations to add.- Returns:
- This builder for chaining.
-
addAllStorageLocations
public Snapshot.Builder addAllStorageLocations(Iterable<String> values)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
values- The storageLocations to add.- Returns:
- This builder for chaining.
-
clearStorageLocations
public Snapshot.Builder clearStorageLocations()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Returns:
- This builder for chaining.
-
addStorageLocationsBytes
public Snapshot.Builder addStorageLocationsBytes(com.google.protobuf.ByteString value)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
value- The bytes of the storageLocations to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Snapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
mergeUnknownFields
public final Snapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Snapshot.Builder>
-
-