Class Restore.Builder (2.4.4)

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

The details of a metadata restore operation.

Protobuf type google.cloud.metastore.v1beta.Restore

Implements

RestoreOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Restore build()
Returns
TypeDescription
Restore

buildPartial()

public Restore buildPartial()
Returns
TypeDescription
Restore

clear()

public Restore.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Restore.Builder

clearField(Descriptors.FieldDescriptor field)

public Restore.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Restore.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clearState()

public Restore.Builder clearState()

Output only. The current state of the restore.

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

Returns
TypeDescription
Restore.Builder

This builder for chaining.

clearType()

public Restore.Builder clearType()

Output only. The type of restore.

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

Returns
TypeDescription
Restore.Builder

This builder for chaining.

clone()

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

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

The bytes for backup.

getDefaultInstanceForType()

public Restore getDefaultInstanceForType()
Returns
TypeDescription
Restore

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getState()

public Restore.State getState()

Output only. The current state of the restore.

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

Returns
TypeDescription
Restore.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the restore.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getType()

public Restore.RestoreType getType()

Output only. The type of restore.

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

Returns
TypeDescription
Restore.RestoreType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of restore.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Restore.Builder

mergeFrom(Restore other)

public Restore.Builder mergeFrom(Restore other)
Parameter
NameDescription
otherRestore
Returns
TypeDescription
Restore.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Restore.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Restore.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

The backup to set.

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

The bytes for backup to set.

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

The details to set.

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

The bytes for details to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Restore.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Restore.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Restore.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Restore.Builder

setState(Restore.State value)

public Restore.Builder setState(Restore.State value)

Output only. The current state of the restore.

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

Parameter
NameDescription
valueRestore.State

The state to set.

Returns
TypeDescription
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.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueRestore.RestoreType

The type to set.

Returns
TypeDescription
Restore.Builder

This builder for chaining.

setTypeValue(int value)

public Restore.Builder setTypeValue(int value)

Output only. The type of restore.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Restore.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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