Class Restore.Builder (2.84.0)

public static final class Restore.Builder extends GeneratedMessage.Builder<Restore.Builder> implements RestoreOrBuilder

The details of a metadata restore operation.

Protobuf type google.cloud.metastore.v1alpha.Restore

Implements

RestoreOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Restore build()
Returns
Type Description
Restore

buildPartial()

public Restore buildPartial()
Returns
Type Description
Restore

clear()

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

clearBackup()

public Restore.Builder clearBackup()

Output only. The relative resource name of the metastore service backup to restore from, in the following form:

projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.

string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Restore.Builder

This builder for chaining.

clearDetails()

public Restore.Builder clearDetails()

Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.Builder

This builder for chaining.

clearEndTime()

public Restore.Builder clearEndTime()

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.Builder

clearStartTime()

public Restore.Builder clearStartTime()

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.Builder

clearState()

public Restore.Builder clearState()

Output only. The current state of the restore.

.google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.Builder

This builder for chaining.

clearType()

public Restore.Builder clearType()

Output only. The type of restore.

.google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.Builder

This builder for chaining.

getBackup()

public String getBackup()

Output only. The relative resource name of the metastore service backup to restore from, in the following form:

projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.

string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Output only. The relative resource name of the metastore service backup to restore from, in the following form:

projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.

string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backup.

getDefaultInstanceForType()

public Restore getDefaultInstanceForType()
Returns
Type Description
Restore

getDescriptorForType()

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

getDetails()

public String getDetails()

Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for details.

getEndTime()

public Timestamp getEndTime()

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public Restore.State getState()

Output only. The current state of the restore.

.google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the restore.

.google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public Restore.RestoreType getType()

Output only. The type of restore.

.google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Restore.RestoreType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of restore.

.google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasEndTime()

public boolean hasEndTime()

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Restore.Builder mergeEndTime(Timestamp value)

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Restore.Builder

mergeFrom(Restore other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public Restore.Builder mergeStartTime(Timestamp value)

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Restore.Builder

setBackup(String value)

public Restore.Builder setBackup(String value)

Output only. The relative resource name of the metastore service backup to restore from, in the following form:

projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.

string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backup to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public Restore.Builder setBackupBytes(ByteString value)

Output only. The relative resource name of the metastore service backup to restore from, in the following form:

projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.

string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backup to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setDetails(String value)

public Restore.Builder setDetails(String value)

Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The details to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public Restore.Builder setDetailsBytes(ByteString value)

Output only. The restore details containing the revision of the service to be restored to, in format of JSON.

string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for details to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setEndTime(Timestamp value)

public Restore.Builder setEndTime(Timestamp value)

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Restore.Builder

setEndTime(Timestamp.Builder builderForValue)

public Restore.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The time when the restore ended.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Restore.Builder

setStartTime(Timestamp value)

public Restore.Builder setStartTime(Timestamp value)

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Restore.Builder

setStartTime(Timestamp.Builder builderForValue)

public Restore.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The time when the restore started.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Restore.Builder

setState(Restore.State value)

public Restore.Builder setState(Restore.State value)

Output only. The current state of the restore.

.google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Restore.State

The state to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setStateValue(int value)

public Restore.Builder setStateValue(int value)

Output only. The current state of the restore.

.google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setType(Restore.RestoreType value)

public Restore.Builder setType(Restore.RestoreType value)

Output only. The type of restore.

.google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Restore.RestoreType

The type to set.

Returns
Type Description
Restore.Builder

This builder for chaining.

setTypeValue(int value)

public Restore.Builder setTypeValue(int value)

Output only. The type of restore.

.google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Restore.Builder

This builder for chaining.