Class InstantSnapshot.Builder (1.51.0)

public static final class InstantSnapshot.Builder extends GeneratedMessageV3.Builder<InstantSnapshot.Builder> implements InstantSnapshotOrBuilder

Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..

Protobuf type google.cloud.compute.v1.InstantSnapshot

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstantSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

build()

public InstantSnapshot build()
Returns
TypeDescription
InstantSnapshot

buildPartial()

public InstantSnapshot buildPartial()
Returns
TypeDescription
InstantSnapshot

clear()

public InstantSnapshot.Builder clear()
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

clearArchitecture()

public InstantSnapshot.Builder clearArchitecture()

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearCreationTimestamp()

public InstantSnapshot.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearDescription()

public InstantSnapshot.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearDiskSizeGb()

public InstantSnapshot.Builder clearDiskSizeGb()

[Output Only] Size of the source disk, specified in GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InstantSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

clearId()

public InstantSnapshot.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearKind()

public InstantSnapshot.Builder clearKind()

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearLabelFingerprint()

public InstantSnapshot.Builder clearLabelFingerprint()

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearLabels()

public InstantSnapshot.Builder clearLabels()
Returns
TypeDescription
InstantSnapshot.Builder

clearName()

public InstantSnapshot.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? 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
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstantSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

clearRegion()

public InstantSnapshot.Builder clearRegion()

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearResourceStatus()

public InstantSnapshot.Builder clearResourceStatus()

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Returns
TypeDescription
InstantSnapshot.Builder

clearSatisfiesPzi()

public InstantSnapshot.Builder clearSatisfiesPzi()

Output only. Reserved for future use.

optional bool satisfies_pzi = 480964257;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearSatisfiesPzs()

public InstantSnapshot.Builder clearSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

public InstantSnapshot.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearSelfLinkWithId()

public InstantSnapshot.Builder clearSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearSourceDisk()

public InstantSnapshot.Builder clearSourceDisk()

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearSourceDiskId()

public InstantSnapshot.Builder clearSourceDiskId()

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearStatus()

public InstantSnapshot.Builder clearStatus()

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clearZone()

public InstantSnapshot.Builder clearZone()

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

clone()

public InstantSnapshot.Builder clone()
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getArchitecture()

public String getArchitecture()

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Returns
TypeDescription
String

The architecture.

getArchitectureBytes()

public ByteString getArchitectureBytes()

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Returns
TypeDescription
ByteString

The bytes for architecture.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public InstantSnapshot getDefaultInstanceForType()
Returns
TypeDescription
InstantSnapshot

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskSizeGb()

public long getDiskSizeGb()

[Output Only] Size of the source disk, specified in GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
long

The diskSizeGb.

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getLabelFingerprint()

public String getLabelFingerprint()

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
String

The labelFingerprint.

getLabelFingerprintBytes()

public ByteString getLabelFingerprintBytes()

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
ByteString

The bytes for labelFingerprint.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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? 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
TypeDescription
String

The name.

getNameBytes()

public 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? 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
TypeDescription
ByteString

The bytes for name.

getRegion()

public String getRegion()

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

getResourceStatus()

public InstantSnapshotResourceStatus getResourceStatus()

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Returns
TypeDescription
InstantSnapshotResourceStatus

The resourceStatus.

getResourceStatusBuilder()

public InstantSnapshotResourceStatus.Builder getResourceStatusBuilder()

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Returns
TypeDescription
InstantSnapshotResourceStatus.Builder

getResourceStatusOrBuilder()

public InstantSnapshotResourceStatusOrBuilder getResourceStatusOrBuilder()

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Returns
TypeDescription
InstantSnapshotResourceStatusOrBuilder

getSatisfiesPzi()

public boolean getSatisfiesPzi()

Output only. Reserved for future use.

optional bool satisfies_pzi = 480964257;

Returns
TypeDescription
boolean

The satisfiesPzi.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
boolean

The satisfiesPzs.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
TypeDescription
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
TypeDescription
ByteString

The bytes for selfLinkWithId.

getSourceDisk()

public String getSourceDisk()

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Returns
TypeDescription
String

The sourceDisk.

getSourceDiskBytes()

public ByteString getSourceDiskBytes()

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Returns
TypeDescription
ByteString

The bytes for sourceDisk.

getSourceDiskId()

public String getSourceDiskId()

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Returns
TypeDescription
String

The sourceDiskId.

getSourceDiskIdBytes()

public ByteString getSourceDiskIdBytes()

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Returns
TypeDescription
ByteString

The bytes for sourceDiskId.

getStatus()

public String getStatus()

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

getZone()

public String getZone()

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
TypeDescription
ByteString

The bytes for zone.

hasArchitecture()

public boolean hasArchitecture()

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Returns
TypeDescription
boolean

Whether the architecture field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasDiskSizeGb()

public boolean hasDiskSizeGb()

[Output Only] Size of the source disk, specified in GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
boolean

Whether the diskSizeGb field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasLabelFingerprint()

public boolean hasLabelFingerprint()

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Returns
TypeDescription
boolean

Whether the labelFingerprint field is set.

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? 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
TypeDescription
boolean

Whether the name field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

hasResourceStatus()

public boolean hasResourceStatus()

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Returns
TypeDescription
boolean

Whether the resourceStatus field is set.

hasSatisfiesPzi()

public boolean hasSatisfiesPzi()

Output only. Reserved for future use.

optional bool satisfies_pzi = 480964257;

Returns
TypeDescription
boolean

Whether the satisfiesPzi field is set.

hasSatisfiesPzs()

public boolean hasSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
boolean

Whether the satisfiesPzs field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
TypeDescription
boolean

Whether the selfLinkWithId field is set.

hasSourceDisk()

public boolean hasSourceDisk()

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Returns
TypeDescription
boolean

Whether the sourceDisk field is set.

hasSourceDiskId()

public boolean hasSourceDiskId()

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Returns
TypeDescription
boolean

Whether the sourceDiskId field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

hasZone()

public boolean hasZone()

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
TypeDescription
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstantSnapshot other)

public InstantSnapshot.Builder mergeFrom(InstantSnapshot other)
Parameter
NameDescription
otherInstantSnapshot
Returns
TypeDescription
InstantSnapshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstantSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstantSnapshot.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstantSnapshot.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

mergeResourceStatus(InstantSnapshotResourceStatus value)

public InstantSnapshot.Builder mergeResourceStatus(InstantSnapshotResourceStatus value)

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Parameter
NameDescription
valueInstantSnapshotResourceStatus
Returns
TypeDescription
InstantSnapshot.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstantSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

putAllLabels(Map<String,String> values)

public InstantSnapshot.Builder putAllLabels(Map<String,String> values)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InstantSnapshot.Builder

putLabels(String key, String value)

public InstantSnapshot.Builder putLabels(String key, String value)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstantSnapshot.Builder

removeLabels(String key)

public InstantSnapshot.Builder removeLabels(String key)

Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
InstantSnapshot.Builder

setArchitecture(String value)

public InstantSnapshot.Builder setArchitecture(String value)

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Parameter
NameDescription
valueString

The architecture to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setArchitectureBytes(ByteString value)

public InstantSnapshot.Builder setArchitectureBytes(ByteString value)

[Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.

optional string architecture = 302803283;

Parameter
NameDescription
valueByteString

The bytes for architecture to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setCreationTimestamp(String value)

public InstantSnapshot.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public InstantSnapshot.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setDescription(String value)

public InstantSnapshot.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InstantSnapshot.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setDiskSizeGb(long value)

public InstantSnapshot.Builder setDiskSizeGb(long value)

[Output Only] Size of the source disk, specified in GB.

optional int64 disk_size_gb = 316263735;

Parameter
NameDescription
valuelong

The diskSizeGb to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstantSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

setId(long value)

public InstantSnapshot.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setKind(String value)

public InstantSnapshot.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setKindBytes(ByteString value)

public InstantSnapshot.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setLabelFingerprint(String value)

public InstantSnapshot.Builder setLabelFingerprint(String value)

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Parameter
NameDescription
valueString

The labelFingerprint to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setLabelFingerprintBytes(ByteString value)

public InstantSnapshot.Builder setLabelFingerprintBytes(ByteString value)

A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.

optional string label_fingerprint = 178124825;

Parameter
NameDescription
valueByteString

The bytes for labelFingerprint to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setName(String value)

public InstantSnapshot.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? 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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstantSnapshot.Builder setNameBytes(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? 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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setRegion(String value)

public InstantSnapshot.Builder setRegion(String value)

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public InstantSnapshot.Builder setRegionBytes(ByteString value)

[Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstantSnapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

setResourceStatus(InstantSnapshotResourceStatus value)

public InstantSnapshot.Builder setResourceStatus(InstantSnapshotResourceStatus value)

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Parameter
NameDescription
valueInstantSnapshotResourceStatus
Returns
TypeDescription
InstantSnapshot.Builder

setResourceStatus(InstantSnapshotResourceStatus.Builder builderForValue)

public InstantSnapshot.Builder setResourceStatus(InstantSnapshotResourceStatus.Builder builderForValue)

[Output Only] Status information for the instant snapshot resource.

optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315;

Parameter
NameDescription
builderForValueInstantSnapshotResourceStatus.Builder
Returns
TypeDescription
InstantSnapshot.Builder

setSatisfiesPzi(boolean value)

public InstantSnapshot.Builder setSatisfiesPzi(boolean value)

Output only. Reserved for future use.

optional bool satisfies_pzi = 480964257;

Parameter
NameDescription
valueboolean

The satisfiesPzi to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSatisfiesPzs(boolean value)

public InstantSnapshot.Builder setSatisfiesPzs(boolean value)

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Parameter
NameDescription
valueboolean

The satisfiesPzs to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

public InstantSnapshot.Builder setSelfLink(String value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public InstantSnapshot.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSelfLinkWithId(String value)

public InstantSnapshot.Builder setSelfLinkWithId(String value)

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Parameter
NameDescription
valueString

The selfLinkWithId to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSelfLinkWithIdBytes(ByteString value)

public InstantSnapshot.Builder setSelfLinkWithIdBytes(ByteString value)

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Parameter
NameDescription
valueByteString

The bytes for selfLinkWithId to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSourceDisk(String value)

public InstantSnapshot.Builder setSourceDisk(String value)

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Parameter
NameDescription
valueString

The sourceDisk to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSourceDiskBytes(ByteString value)

public InstantSnapshot.Builder setSourceDiskBytes(ByteString value)

URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string source_disk = 451753793;

Parameter
NameDescription
valueByteString

The bytes for sourceDisk to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSourceDiskId(String value)

public InstantSnapshot.Builder setSourceDiskId(String value)

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Parameter
NameDescription
valueString

The sourceDiskId to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setSourceDiskIdBytes(ByteString value)

public InstantSnapshot.Builder setSourceDiskIdBytes(ByteString value)

[Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.

optional string source_disk_id = 454190809;

Parameter
NameDescription
valueByteString

The bytes for sourceDiskId to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setStatus(String value)

public InstantSnapshot.Builder setStatus(String value)

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public InstantSnapshot.Builder setStatusBytes(ByteString value)

[Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstantSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstantSnapshot.Builder
Overrides

setZone(String value)

public InstantSnapshot.Builder setZone(String value)

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public InstantSnapshot.Builder setZoneBytes(ByteString value)

[Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
InstantSnapshot.Builder

This builder for chaining.