Class InstantSnapshotGroup.Builder (1.105.0)

public static final class InstantSnapshotGroup.Builder extends GeneratedMessage.Builder<InstantSnapshotGroup.Builder> implements InstantSnapshotGroupOrBuilder

Represents an InstantSnapshotGroup resource.

An instant snapshot group is a set of instant snapshots that represents a point in time state of a consistency group.

Protobuf type google.cloud.compute.v1.InstantSnapshotGroup

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public InstantSnapshotGroup build()
Returns
Type Description
InstantSnapshotGroup

buildPartial()

public InstantSnapshotGroup buildPartial()
Returns
Type Description
InstantSnapshotGroup

clear()

public InstantSnapshotGroup.Builder clear()
Returns
Type Description
InstantSnapshotGroup.Builder
Overrides

clearCreationTimestamp()

public InstantSnapshotGroup.Builder clearCreationTimestamp()

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearDescription()

public InstantSnapshotGroup.Builder clearDescription()

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

optional string description = 422937596;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearId()

public InstantSnapshotGroup.Builder clearId()

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

optional uint64 id = 3355;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearKind()

public InstantSnapshotGroup.Builder clearKind()

Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearName()

public InstantSnapshotGroup.Builder clearName()

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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
InstantSnapshotGroup.Builder

This builder for chaining.

clearRegion()

public InstantSnapshotGroup.Builder clearRegion()

Output only. [Output Only] URL of the region where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.

clearResourceStatus()

public InstantSnapshotGroup.Builder clearResourceStatus()

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

Returns
Type Description
InstantSnapshotGroup.Builder
public InstantSnapshotGroup.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearSelfLinkWithId()

public InstantSnapshotGroup.Builder clearSelfLinkWithId()

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

optional string self_link_with_id = 44520962;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearSourceConsistencyGroup()

public InstantSnapshotGroup.Builder clearSourceConsistencyGroup()

optional string source_consistency_group = 531359348;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearStatus()

public InstantSnapshotGroup.Builder clearStatus()

Output only. [Output Only] Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

clearZone()

public InstantSnapshotGroup.Builder clearZone()

Output only. [Output Only] URL of the zone where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.

getCreationTimestamp()

public String getCreationTimestamp()

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public InstantSnapshotGroup getDefaultInstanceForType()
Returns
Type Description
InstantSnapshotGroup

getDescription()

public String getDescription()

Optional. 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()

Optional. 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
Overrides

getId()

public long getId()

Output only. [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. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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()

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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. [Output Only] URL of the region where the instant snapshot group 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. [Output Only] URL of the region where the instant snapshot group 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 InstantSnapshotGroupResourceStatus getResourceStatus()

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

Returns
Type Description
InstantSnapshotGroupResourceStatus

The resourceStatus.

getResourceStatusBuilder()

public InstantSnapshotGroupResourceStatus.Builder getResourceStatusBuilder()

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

Returns
Type Description
InstantSnapshotGroupResourceStatus.Builder

getResourceStatusOrBuilder()

public InstantSnapshotGroupResourceStatusOrBuilder getResourceStatusOrBuilder()

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

Returns
Type Description
InstantSnapshotGroupResourceStatusOrBuilder
public String getSelfLink()

Output only. [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. [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. [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. [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.

getSourceConsistencyGroup()

public String getSourceConsistencyGroup()

optional string source_consistency_group = 531359348;

Returns
Type Description
String

The sourceConsistencyGroup.

getSourceConsistencyGroupBytes()

public ByteString getSourceConsistencyGroupBytes()

optional string source_consistency_group = 531359348;

Returns
Type Description
ByteString

The bytes for sourceConsistencyGroup.

getStatus()

public String getStatus()

Output only. [Output Only] 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. [Output Only] 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. [Output Only] URL of the zone where the instant snapshot group 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. [Output Only] URL of the zone where the instant snapshot group 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.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

Optional. 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.

hasId()

public boolean hasId()

Output only. [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. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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. [Output Only] URL of the region where the instant snapshot group 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()

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

Returns
Type Description
boolean

Whether the resourceStatus field is set.

public boolean hasSelfLink()

Output only. [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. [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.

hasSourceConsistencyGroup()

public boolean hasSourceConsistencyGroup()

optional string source_consistency_group = 531359348;

Returns
Type Description
boolean

Whether the sourceConsistencyGroup field is set.

hasStatus()

public boolean hasStatus()

Output only. [Output Only] 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. [Output Only] URL of the zone where the instant snapshot group 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstantSnapshotGroup other)

public InstantSnapshotGroup.Builder mergeFrom(InstantSnapshotGroup other)
Parameter
Name Description
other InstantSnapshotGroup
Returns
Type Description
InstantSnapshotGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstantSnapshotGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstantSnapshotGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstantSnapshotGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstantSnapshotGroup.Builder
Overrides

mergeResourceStatus(InstantSnapshotGroupResourceStatus value)

public InstantSnapshotGroup.Builder mergeResourceStatus(InstantSnapshotGroupResourceStatus value)

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

Parameter
Name Description
value InstantSnapshotGroupResourceStatus
Returns
Type Description
InstantSnapshotGroup.Builder

setCreationTimestamp(String value)

public InstantSnapshotGroup.Builder setCreationTimestamp(String value)

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public InstantSnapshotGroup.Builder setCreationTimestampBytes(ByteString value)

Output only. [Output Only] Creation timestamp inRFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setDescription(String value)

public InstantSnapshotGroup.Builder setDescription(String value)

Optional. 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
InstantSnapshotGroup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InstantSnapshotGroup.Builder setDescriptionBytes(ByteString value)

Optional. 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
InstantSnapshotGroup.Builder

This builder for chaining.

setId(long value)

public InstantSnapshotGroup.Builder setId(long value)

Output only. [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
InstantSnapshotGroup.Builder

This builder for chaining.

setKind(String value)

public InstantSnapshotGroup.Builder setKind(String value)

Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setKindBytes(ByteString value)

public InstantSnapshotGroup.Builder setKindBytes(ByteString value)

Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setName(String value)

public InstantSnapshotGroup.Builder setName(String value)

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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
InstantSnapshotGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstantSnapshotGroup.Builder setNameBytes(ByteString value)

Identifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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
InstantSnapshotGroup.Builder

This builder for chaining.

setRegion(String value)

public InstantSnapshotGroup.Builder setRegion(String value)

Output only. [Output Only] URL of the region where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public InstantSnapshotGroup.Builder setRegionBytes(ByteString value)

Output only. [Output Only] URL of the region where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.

setResourceStatus(InstantSnapshotGroupResourceStatus value)

public InstantSnapshotGroup.Builder setResourceStatus(InstantSnapshotGroupResourceStatus value)

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

Parameter
Name Description
value InstantSnapshotGroupResourceStatus
Returns
Type Description
InstantSnapshotGroup.Builder

setResourceStatus(InstantSnapshotGroupResourceStatus.Builder builderForValue)

public InstantSnapshotGroup.Builder setResourceStatus(InstantSnapshotGroupResourceStatus.Builder builderForValue)

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

Parameter
Name Description
builderForValue InstantSnapshotGroupResourceStatus.Builder
Returns
Type Description
InstantSnapshotGroup.Builder
public InstantSnapshotGroup.Builder setSelfLink(String value)

Output only. [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
InstantSnapshotGroup.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public InstantSnapshotGroup.Builder setSelfLinkBytes(ByteString value)

Output only. [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
InstantSnapshotGroup.Builder

This builder for chaining.

setSelfLinkWithId(String value)

public InstantSnapshotGroup.Builder setSelfLinkWithId(String value)

Output only. [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
InstantSnapshotGroup.Builder

This builder for chaining.

setSelfLinkWithIdBytes(ByteString value)

public InstantSnapshotGroup.Builder setSelfLinkWithIdBytes(ByteString value)

Output only. [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
InstantSnapshotGroup.Builder

This builder for chaining.

setSourceConsistencyGroup(String value)

public InstantSnapshotGroup.Builder setSourceConsistencyGroup(String value)

optional string source_consistency_group = 531359348;

Parameter
Name Description
value String

The sourceConsistencyGroup to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setSourceConsistencyGroupBytes(ByteString value)

public InstantSnapshotGroup.Builder setSourceConsistencyGroupBytes(ByteString value)

optional string source_consistency_group = 531359348;

Parameter
Name Description
value ByteString

The bytes for sourceConsistencyGroup to set.

Returns
Type Description
InstantSnapshotGroup.Builder

This builder for chaining.

setStatus(String value)

public InstantSnapshotGroup.Builder setStatus(String value)

Output only. [Output Only] 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
InstantSnapshotGroup.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public InstantSnapshotGroup.Builder setStatusBytes(ByteString value)

Output only. [Output Only] 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
InstantSnapshotGroup.Builder

This builder for chaining.

setZone(String value)

public InstantSnapshotGroup.Builder setZone(String value)

Output only. [Output Only] URL of the zone where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public InstantSnapshotGroup.Builder setZoneBytes(ByteString value)

Output only. [Output Only] URL of the zone where the instant snapshot group 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
InstantSnapshotGroup.Builder

This builder for chaining.