public static final class RollbackInstanceRequest.Builder extends GeneratedMessage.Builder<RollbackInstanceRequest.Builder> implements RollbackInstanceRequestOrBuilderRequest for rollbacking a notebook instance
Protobuf type google.cloud.notebooks.v1.RollbackInstanceRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RollbackInstanceRequest.BuilderImplements
RollbackInstanceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearName()
public RollbackInstanceRequest.Builder clearName() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.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. |
getDefaultInstanceForType()
public RollbackInstanceRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RollbackInstanceRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| 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];
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RollbackInstanceRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RollbackInstanceRequest.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name 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 |
StringThe 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 |
ByteStringThe bytes for targetSnapshot to set. |
| Returns | |
|---|---|
| Type | Description |
RollbackInstanceRequest.Builder |
This builder for chaining. |