- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstantSnapshot.BuilderImplements
InstantSnapshotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstantSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
build()
public InstantSnapshot build()
Returns | |
---|---|
Type | Description |
InstantSnapshot |
buildPartial()
public InstantSnapshot buildPartial()
Returns | |
---|---|
Type | Description |
InstantSnapshot |
clear()
public InstantSnapshot.Builder clear()
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InstantSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clearLabels()
public InstantSnapshot.Builder clearLabels()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstantSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshot.Builder |
clearSatisfiesPzi()
public InstantSnapshot.Builder clearSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clearSatisfiesPzs()
public InstantSnapshot.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clearSelfLink()
public InstantSnapshot.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
clone()
public InstantSnapshot.Builder clone()
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for architecture. |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
String |
The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for creationTimestamp. |
getDefaultInstanceForType()
public InstantSnapshot getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstantSnapshot |
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDiskSizeGb()
public long getDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
long |
The id. |
getKind()
public String getKind()
[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for labelFingerprint. |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
InstantSnapshotResourceStatusOrBuilder |
getSatisfiesPzi()
public boolean getSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
boolean |
The satisfiesPzi. |
getSatisfiesPzs()
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
boolean |
The satisfiesPzs. |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the resourceStatus field is set. |
hasSatisfiesPzi()
public boolean hasSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
boolean |
Whether the satisfiesPzi field is set. |
hasSatisfiesPzs()
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
boolean |
Whether the satisfiesPzs field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the zone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InstantSnapshot other)
public InstantSnapshot.Builder mergeFrom(InstantSnapshot other)
Parameter | |
---|---|
Name | Description |
other |
InstantSnapshot |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstantSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InstantSnapshot.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
value |
InstantSnapshotResourceStatus |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstantSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The architecture to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for architecture to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
long The diskSizeGb to set. |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InstantSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
value |
long The id to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The kind to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for kind to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The labelFingerprint to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for labelFingerprint to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The region to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for region to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
value |
InstantSnapshotResourceStatus |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
InstantSnapshotResourceStatus.Builder |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
setSatisfiesPzi(boolean value)
public InstantSnapshot.Builder setSatisfiesPzi(boolean value)
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Parameter | |
---|---|
Name | Description |
value |
boolean The satisfiesPzi to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
boolean The satisfiesPzs to set. |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
setSelfLink(String value)
public InstantSnapshot.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
value |
String The selfLink to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for selfLink to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The selfLinkWithId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for selfLinkWithId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The sourceDisk to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for sourceDisk to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The sourceDiskId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for sourceDiskId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The status to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for status to set. |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InstantSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
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 | |
---|---|
Name | Description |
value |
String The zone to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for zone to set. |
Returns | |
---|---|
Type | Description |
InstantSnapshot.Builder |
This builder for chaining. |