public final class Restore extends GeneratedMessageV3 implements RestoreOrBuilder
The details of a metadata restore operation.
Protobuf type google.cloud.metastore.v1alpha.Restore
Static Fields
public static final int BACKUP_FIELD_NUMBER
Field Value
public static final int DETAILS_FIELD_NUMBER
Field Value
public static final int END_TIME_FIELD_NUMBER
Field Value
public static final int START_TIME_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
public static Restore getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Restore.Builder newBuilder()
Returns
public static Restore.Builder newBuilder(Restore prototype)
Parameter
Returns
public static Restore parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Restore parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Restore parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Restore parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Restore parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Restore parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Restore parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Restore parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Restore parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Restore parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Restore parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Restore parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Restore> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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.
|
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
public Restore getDefaultInstanceForType()
Returns
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.
|
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
public Timestamp getEndTime()
Output only. The time when the restore ended.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time when the restore ended.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Parser<Restore> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public Timestamp getStartTime()
Output only. The time when the restore started.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time when the restore started.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
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.
|
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
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.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Restore.Builder newBuilderForType()
Returns
protected Restore.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Restore.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions