Class RollbackInstanceRequest.Builder (1.32.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.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)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RollbackInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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];

Parameter
NameDescription
valueString

The name to set.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RollbackInstanceRequest.Builder
Overrides

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
NameDescription
valueString

The targetSnapshot to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetSnapshot to set.

Returns
TypeDescription
RollbackInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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