Class RollbackInstanceRequest.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class RollbackInstanceRequest.Builder extends GeneratedMessageV3.Builder<RollbackInstanceRequest.Builder> implements RollbackInstanceRequestOrBuilder

Request for rollbacking a notebook instance

Protobuf type google.cloud.notebooks.v1.RollbackInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RollbackInstanceRequest build()
Returns
TypeDescription
RollbackInstanceRequest

buildPartial()

public RollbackInstanceRequest buildPartial()
Returns
TypeDescription
RollbackInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RollbackInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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];

Returns
TypeDescription
RollbackInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
RollbackInstanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RollbackInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RollbackInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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];

Returns
TypeDescription
ByteString

The bytes for name.

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

The bytes for targetSnapshot.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RollbackInstanceRequest other)

public RollbackInstanceRequest.Builder mergeFrom(RollbackInstanceRequest other)
Parameter
NameDescription
otherRollbackInstanceRequest
Returns
TypeDescription
RollbackInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)