Class RollbackInstanceRequest.Builder (1.43.0)

public static final class RollbackInstanceRequest.Builder extends GeneratedMessageV3.Builder<RollbackInstanceRequest.Builder> implements RollbackInstanceRequestOrBuilder

Request for rollbacking a notebook instance

Protobuf type google.cloud.notebooks.v2.RollbackInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RollbackInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

build()

public RollbackInstanceRequest build()
Returns
Type Description
RollbackInstanceRequest

buildPartial()

public RollbackInstanceRequest buildPartial()
Returns
Type Description
RollbackInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RollbackInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

clearName()

public RollbackInstanceRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RollbackInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

clearRevisionId()

public RollbackInstanceRequest.Builder clearRevisionId()

Required. Output only. Revision Id

string revision_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

clearTargetSnapshot()

public RollbackInstanceRequest.Builder clearTargetSnapshot()

Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

clone()

public RollbackInstanceRequest.Builder clone()
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

getDefaultInstanceForType()

public RollbackInstanceRequest getDefaultInstanceForType()
Returns
Type Description
RollbackInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getRevisionId()

public String getRevisionId()

Required. Output only. Revision Id

string revision_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Required. Output only. Revision Id

string revision_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for revisionId.

getTargetSnapshot()

public String getTargetSnapshot()

Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The targetSnapshot.

getTargetSnapshotBytes()

public ByteString getTargetSnapshotBytes()

Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for targetSnapshot.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RollbackInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RollbackInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

setName(String value)

public RollbackInstanceRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RollbackInstanceRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

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

public RollbackInstanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides

setRevisionId(String value)

public RollbackInstanceRequest.Builder setRevisionId(String value)

Required. Output only. Revision Id

string revision_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public RollbackInstanceRequest.Builder setRevisionIdBytes(ByteString value)

Required. Output only. Revision Id

string revision_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

setTargetSnapshot(String value)

public RollbackInstanceRequest.Builder setTargetSnapshot(String value)

Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The targetSnapshot to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

setTargetSnapshotBytes(ByteString value)

public RollbackInstanceRequest.Builder setTargetSnapshotBytes(ByteString value)

Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril".

string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for targetSnapshot to set.

Returns
Type Description
RollbackInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RollbackInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RollbackInstanceRequest.Builder
Overrides