public final class RestoreTemplate extends GeneratedMessage implements RestoreTemplateOrBuilder
A RestoreTemplate encapsulates DR readiness configurations for validating
backups.
Protobuf type google.cloud.backupdr.v1beta.RestoreTemplate
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
BACKUP_SELECTION_CONFIG_FIELD_NUMBER
public static final int BACKUP_SELECTION_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXECUTION_SUMMARY_FIELD_NUMBER
public static final int EXECUTION_SUMMARY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POST_RESTORE_CONFIG_FIELD_NUMBER
public static final int POST_RESTORE_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PRE_RESTORE_CONFIG_FIELD_NUMBER
public static final int PRE_RESTORE_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESTORE_PROPERTIES_FIELD_NUMBER
public static final int RESTORE_PROPERTIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VERIFICATION_CONFIG_FIELD_NUMBER
public static final int VERIFICATION_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RestoreTemplate getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RestoreTemplate.Builder newBuilder()
newBuilder(RestoreTemplate prototype)
public static RestoreTemplate.Builder newBuilder(RestoreTemplate prototype)
public static RestoreTemplate parseDelimitedFrom(InputStream input)
public static RestoreTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RestoreTemplate parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RestoreTemplate parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreTemplate parseFrom(CodedInputStream input)
public static RestoreTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreTemplate parseFrom(InputStream input)
public static RestoreTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RestoreTemplate parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RestoreTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RestoreTemplate> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Optional. User-defined labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBackupSelectionConfig()
public BackupSelectionConfig getBackupSelectionConfig()
Required. Backup selection configuration.
.google.cloud.backupdr.v1beta.BackupSelectionConfig backup_selection_config = 7 [(.google.api.field_behavior) = REQUIRED];
getBackupSelectionConfigOrBuilder()
public BackupSelectionConfigOrBuilder getBackupSelectionConfigOrBuilder()
Required. Backup selection configuration.
.google.cloud.backupdr.v1beta.BackupSelectionConfig backup_selection_config = 7 [(.google.api.field_behavior) = REQUIRED];
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the restore template was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the restore template was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public RestoreTemplate getDefaultInstanceForType()
getDescription()
public String getDescription()
Optional. User-provided description of the restore template.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. User-provided description of the restore template.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
getEtag()
Optional. Etag for concurrency control.
string etag = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Optional. Etag for concurrency control.
string etag = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for etag.
|
getExecutionSummary()
public ExecutionSummary getExecutionSummary()
Output only. Summary of the last execution.
.google.cloud.backupdr.v1beta.ExecutionSummary execution_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExecutionSummaryOrBuilder()
public ExecutionSummaryOrBuilder getExecutionSummaryOrBuilder()
Output only. Summary of the last execution.
.google.cloud.backupdr.v1beta.ExecutionSummary execution_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. User-defined labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. User-defined labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. User-defined labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. User-defined labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
getName()
Identifier. The resource name of the RestoreTemplate.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the RestoreTemplate.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<RestoreTemplate> getParserForType()
Overrides
getPostRestoreConfig()
public PostRestoreConfig getPostRestoreConfig()
Optional. Post-restore configuration.
.google.cloud.backupdr.v1beta.PostRestoreConfig post_restore_config = 9 [(.google.api.field_behavior) = OPTIONAL];
getPostRestoreConfigOrBuilder()
public PostRestoreConfigOrBuilder getPostRestoreConfigOrBuilder()
Optional. Post-restore configuration.
.google.cloud.backupdr.v1beta.PostRestoreConfig post_restore_config = 9 [(.google.api.field_behavior) = OPTIONAL];
getPreRestoreConfig()
public PreRestoreConfig getPreRestoreConfig()
Optional. Pre-restore configuration.
.google.cloud.backupdr.v1beta.PreRestoreConfig pre_restore_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getPreRestoreConfigOrBuilder()
public PreRestoreConfigOrBuilder getPreRestoreConfigOrBuilder()
Optional. Pre-restore configuration.
.google.cloud.backupdr.v1beta.PreRestoreConfig pre_restore_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getResourceType()
public String getResourceType()
Required. Immutable. The specific type of the workload being restored.
The format is "{service_name}/{resource_kind}", for example,
"compute.googleapis.com/Instance".
string resource_type = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The resourceType.
|
getResourceTypeBytes()
public ByteString getResourceTypeBytes()
Required. Immutable. The specific type of the workload being restored.
The format is "{service_name}/{resource_kind}", for example,
"compute.googleapis.com/Instance".
string resource_type = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for resourceType.
|
getRestoreProperties()
public Struct getRestoreProperties()
Required. Defines target environments where the resource will be restored.
The target resource name in restore_properties supports the
{EXECUTION_ID} token to dynamically generate unique resource names for
each execution. During restore execution, every occurrence of
{EXECUTION_ID} in the target resource name is replaced with the
8-character RestoreTemplateExecution ID (for example,
"restored-resource-{EXECUTION_ID}" or
"restored-{EXECUTION_ID}-resource" resolves to
"restored-resource-5d437b06" or "restored-5d437b06-resource").
.google.protobuf.Struct restore_properties = 11 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Struct |
The restoreProperties.
|
getRestorePropertiesOrBuilder()
public StructOrBuilder getRestorePropertiesOrBuilder()
Required. Defines target environments where the resource will be restored.
The target resource name in restore_properties supports the
{EXECUTION_ID} token to dynamically generate unique resource names for
each execution. During restore execution, every occurrence of
{EXECUTION_ID} in the target resource name is replaced with the
8-character RestoreTemplateExecution ID (for example,
"restored-resource-{EXECUTION_ID}" or
"restored-{EXECUTION_ID}-resource" resolves to
"restored-resource-5d437b06" or "restored-5d437b06-resource").
.google.protobuf.Struct restore_properties = 11 [(.google.api.field_behavior) = REQUIRED];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getState()
public RestoreTemplate.State getState()
Output only. The state of the restore template.
.google.cloud.backupdr.v1beta.RestoreTemplate.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
public int getStateValue()
Output only. The state of the restore template.
.google.cloud.backupdr.v1beta.RestoreTemplate.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for state.
|
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time when the restore template was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the restore template was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVerificationConfig()
public VerificationConfig getVerificationConfig()
Optional. Verification configuration.
.google.cloud.backupdr.v1beta.VerificationConfig verification_config = 10 [(.google.api.field_behavior) = OPTIONAL];
getVerificationConfigOrBuilder()
public VerificationConfigOrBuilder getVerificationConfigOrBuilder()
Optional. Verification configuration.
.google.cloud.backupdr.v1beta.VerificationConfig verification_config = 10 [(.google.api.field_behavior) = OPTIONAL];
hasBackupSelectionConfig()
public boolean hasBackupSelectionConfig()
Required. Backup selection configuration.
.google.cloud.backupdr.v1beta.BackupSelectionConfig backup_selection_config = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the backupSelectionConfig field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. The time when the restore template was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
hasExecutionSummary()
public boolean hasExecutionSummary()
Output only. Summary of the last execution.
.google.cloud.backupdr.v1beta.ExecutionSummary execution_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the executionSummary field is set.
|
hasPostRestoreConfig()
public boolean hasPostRestoreConfig()
Optional. Post-restore configuration.
.google.cloud.backupdr.v1beta.PostRestoreConfig post_restore_config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the postRestoreConfig field is set.
|
hasPreRestoreConfig()
public boolean hasPreRestoreConfig()
Optional. Pre-restore configuration.
.google.cloud.backupdr.v1beta.PreRestoreConfig pre_restore_config = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the preRestoreConfig field is set.
|
hasRestoreProperties()
public boolean hasRestoreProperties()
Required. Defines target environments where the resource will be restored.
The target resource name in restore_properties supports the
{EXECUTION_ID} token to dynamically generate unique resource names for
each execution. During restore execution, every occurrence of
{EXECUTION_ID} in the target resource name is replaced with the
8-character RestoreTemplateExecution ID (for example,
"restored-resource-{EXECUTION_ID}" or
"restored-{EXECUTION_ID}-resource" resolves to
"restored-resource-5d437b06" or "restored-5d437b06-resource").
.google.protobuf.Struct restore_properties = 11 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the restoreProperties field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time when the restore template was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hasVerificationConfig()
public boolean hasVerificationConfig()
Optional. Verification configuration.
.google.cloud.backupdr.v1beta.VerificationConfig verification_config = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the verificationConfig field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RestoreTemplate.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RestoreTemplate.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RestoreTemplate.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides