public static final class Restore.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder> implements RestoreOrBuilder
Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself. Next id: 18Protobuf type
google.cloud.gkebackup.v1.Restore| Modifier and Type | Method and Description |
|---|---|
Restore.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Restore |
build() |
Restore |
buildPartial() |
Restore.Builder |
clear() |
Restore.Builder |
clearBackup()
Required.
|
Restore.Builder |
clearCluster()
Output only.
|
Restore.Builder |
clearCompleteTime()
Output only.
|
Restore.Builder |
clearCreateTime()
Output only.
|
Restore.Builder |
clearDescription()
User specified descriptive string for this Restore.
|
Restore.Builder |
clearEtag()
Output only.
|
Restore.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Restore.Builder |
clearLabels() |
Restore.Builder |
clearName()
Output only.
|
Restore.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Restore.Builder |
clearResourcesExcludedCount()
Output only.
|
Restore.Builder |
clearResourcesFailedCount()
Output only.
|
Restore.Builder |
clearResourcesRestoredCount()
Output only.
|
Restore.Builder |
clearRestoreConfig()
Output only.
|
Restore.Builder |
clearState()
Output only.
|
Restore.Builder |
clearStateReason()
Output only.
|
Restore.Builder |
clearUid()
Output only.
|
Restore.Builder |
clearUpdateTime()
Output only.
|
Restore.Builder |
clearVolumesRestoredCount()
Output only.
|
Restore.Builder |
clone() |
boolean |
containsLabels(String key)
A set of custom labels supplied by user.
|
String |
getBackup()
Required.
|
com.google.protobuf.ByteString |
getBackupBytes()
Required.
|
String |
getCluster()
Output only.
|
com.google.protobuf.ByteString |
getClusterBytes()
Output only.
|
com.google.protobuf.Timestamp |
getCompleteTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCompleteTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCompleteTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Restore |
getDefaultInstanceForType() |
String |
getDescription()
User specified descriptive string for this Restore.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
User specified descriptive string for this Restore.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEtag()
Output only.
|
com.google.protobuf.ByteString |
getEtagBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
A set of custom labels supplied by user.
|
Map<String,String> |
getLabelsMap()
A set of custom labels supplied by user.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
A set of custom labels supplied by user.
|
String |
getLabelsOrThrow(String key)
A set of custom labels supplied by user.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
int |
getResourcesExcludedCount()
Output only.
|
int |
getResourcesFailedCount()
Output only.
|
int |
getResourcesRestoredCount()
Output only.
|
RestoreConfig |
getRestoreConfig()
Output only.
|
RestoreConfig.Builder |
getRestoreConfigBuilder()
Output only.
|
RestoreConfigOrBuilder |
getRestoreConfigOrBuilder()
Output only.
|
Restore.State |
getState()
Output only.
|
String |
getStateReason()
Output only.
|
com.google.protobuf.ByteString |
getStateReasonBytes()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
int |
getVolumesRestoredCount()
Output only.
|
boolean |
hasCompleteTime()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasRestoreConfig()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Restore.Builder |
mergeCompleteTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Restore.Builder |
mergeFrom(com.google.protobuf.Message other) |
Restore.Builder |
mergeFrom(Restore other) |
Restore.Builder |
mergeRestoreConfig(RestoreConfig value)
Output only.
|
Restore.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Restore.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
|
Restore.Builder |
putLabels(String key,
String value)
A set of custom labels supplied by user.
|
Restore.Builder |
removeLabels(String key)
A set of custom labels supplied by user.
|
Restore.Builder |
setBackup(String value)
Required.
|
Restore.Builder |
setBackupBytes(com.google.protobuf.ByteString value)
Required.
|
Restore.Builder |
setCluster(String value)
Output only.
|
Restore.Builder |
setClusterBytes(com.google.protobuf.ByteString value)
Output only.
|
Restore.Builder |
setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Restore.Builder |
setCompleteTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Restore.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
setDescription(String value)
User specified descriptive string for this Restore.
|
Restore.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this Restore.
|
Restore.Builder |
setEtag(String value)
Output only.
|
Restore.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Output only.
|
Restore.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Restore.Builder |
setName(String value)
Output only.
|
Restore.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Restore.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Restore.Builder |
setResourcesExcludedCount(int value)
Output only.
|
Restore.Builder |
setResourcesFailedCount(int value)
Output only.
|
Restore.Builder |
setResourcesRestoredCount(int value)
Output only.
|
Restore.Builder |
setRestoreConfig(RestoreConfig.Builder builderForValue)
Output only.
|
Restore.Builder |
setRestoreConfig(RestoreConfig value)
Output only.
|
Restore.Builder |
setState(Restore.State value)
Output only.
|
Restore.Builder |
setStateReason(String value)
Output only.
|
Restore.Builder |
setStateReasonBytes(com.google.protobuf.ByteString value)
Output only.
|
Restore.Builder |
setStateValue(int value)
Output only.
|
Restore.Builder |
setUid(String value)
Output only.
|
Restore.Builder |
setUidBytes(com.google.protobuf.ByteString value)
Output only.
|
Restore.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Restore.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Restore.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Restore.Builder |
setVolumesRestoredCount(int value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Restore build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Restore buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Restore.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Restore.Builder>public Restore.Builder mergeFrom(Restore other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public Restore.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Restore.Builder>IOExceptionpublic String getName()
Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface RestoreOrBuilderpublic Restore.Builder setName(String value)
Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Restore.Builder clearName()
Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Restore.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the Restore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getUid()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface RestoreOrBuilderpublic Restore.Builder setUid(String value)
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The uid to set.public Restore.Builder clearUid()
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public Restore.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for uid to set.public boolean hasCreateTime()
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface RestoreOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface RestoreOrBuilderpublic Restore.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder clearCreateTime()
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when this Restore resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface RestoreOrBuilderpublic boolean hasUpdateTime()
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface RestoreOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface RestoreOrBuilderpublic Restore.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder clearUpdateTime()
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when this Restore resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface RestoreOrBuilderpublic String getDescription()
User specified descriptive string for this Restore.
string description = 5;getDescription in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this Restore.
string description = 5;getDescriptionBytes in interface RestoreOrBuilderpublic Restore.Builder setDescription(String value)
User specified descriptive string for this Restore.
string description = 5;value - The description to set.public Restore.Builder clearDescription()
User specified descriptive string for this Restore.
string description = 5;public Restore.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this Restore.
string description = 5;value - The bytes for description to set.public String getBackup()
Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.
string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBackup in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getBackupBytes()
Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.
string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBackupBytes in interface RestoreOrBuilderpublic Restore.Builder setBackup(String value)
Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.
string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The backup to set.public Restore.Builder clearBackup()
Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.
string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public Restore.Builder setBackupBytes(com.google.protobuf.ByteString value)
Required. Immutable. A reference to the [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which this Restore will restore. Note that this Backup must be a sub-resource of the RestorePlan's [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format: `projects/*/locations/*/backupPlans/*/backups/*`.
string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for backup to set.public String getCluster()
Output only. The target cluster into which this Restore will restore data. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getCluster in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Output only. The target cluster into which this Restore will restore data. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getClusterBytes in interface RestoreOrBuilderpublic Restore.Builder setCluster(String value)
Output only. The target cluster into which this Restore will restore data. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The cluster to set.public Restore.Builder clearCluster()
Output only. The target cluster into which this Restore will restore data. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
public Restore.Builder setClusterBytes(com.google.protobuf.ByteString value)
Output only. The target cluster into which this Restore will restore data. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` Inherited from parent RestorePlan's [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The bytes for cluster to set.public boolean hasRestoreConfig()
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasRestoreConfig in interface RestoreOrBuilderpublic RestoreConfig getRestoreConfig()
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRestoreConfig in interface RestoreOrBuilderpublic Restore.Builder setRestoreConfig(RestoreConfig value)
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder setRestoreConfig(RestoreConfig.Builder builderForValue)
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder mergeRestoreConfig(RestoreConfig value)
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder clearRestoreConfig()
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestoreConfig.Builder getRestoreConfigBuilder()
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestoreConfigOrBuilder getRestoreConfigOrBuilder()
Output only. Configuration of the Restore. Inherited from parent RestorePlan's [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRestoreConfigOrBuilder in interface RestoreOrBuilderpublic int getLabelsCount()
RestoreOrBuilderA set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsCount in interface RestoreOrBuilderpublic boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;containsLabels in interface RestoreOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface RestoreOrBuilderpublic Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsMap in interface RestoreOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsOrDefault in interface RestoreOrBuilderpublic String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsOrThrow in interface RestoreOrBuilderpublic Restore.Builder clearLabels()
public Restore.Builder removeLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;@Deprecated public Map<String,String> getMutableLabels()
public Restore.Builder putLabels(String key, String value)
A set of custom labels supplied by user.
map<string, string> labels = 9;public Restore.Builder putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
map<string, string> labels = 9;public int getStateValue()
Output only. The current state of the Restore.
.google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface RestoreOrBuilderpublic Restore.Builder setStateValue(int value)
Output only. The current state of the Restore.
.google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public Restore.State getState()
Output only. The current state of the Restore.
.google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface RestoreOrBuilderpublic Restore.Builder setState(Restore.State value)
Output only. The current state of the Restore.
.google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public Restore.Builder clearState()
Output only. The current state of the Restore.
.google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStateReason()
Output only. Human-readable description of why the Restore is in its current state.
string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReason in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getStateReasonBytes()
Output only. Human-readable description of why the Restore is in its current state.
string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReasonBytes in interface RestoreOrBuilderpublic Restore.Builder setStateReason(String value)
Output only. Human-readable description of why the Restore is in its current state.
string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateReason to set.public Restore.Builder clearStateReason()
Output only. Human-readable description of why the Restore is in its current state.
string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];public Restore.Builder setStateReasonBytes(com.google.protobuf.ByteString value)
Output only. Human-readable description of why the Restore is in its current state.
string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateReason to set.public boolean hasCompleteTime()
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCompleteTime in interface RestoreOrBuilderpublic com.google.protobuf.Timestamp getCompleteTime()
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCompleteTime in interface RestoreOrBuilderpublic Restore.Builder setCompleteTime(com.google.protobuf.Timestamp value)
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder mergeCompleteTime(com.google.protobuf.Timestamp value)
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Restore.Builder clearCompleteTime()
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder()
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder()
Output only. Timestamp of when the restore operation completed.
.google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCompleteTimeOrBuilder in interface RestoreOrBuilderpublic int getResourcesRestoredCount()
Output only. Number of resources restored during the restore execution.
int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourcesRestoredCount in interface RestoreOrBuilderpublic Restore.Builder setResourcesRestoredCount(int value)
Output only. Number of resources restored during the restore execution.
int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The resourcesRestoredCount to set.public Restore.Builder clearResourcesRestoredCount()
Output only. Number of resources restored during the restore execution.
int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getResourcesExcludedCount()
Output only. Number of resources excluded during the restore execution.
int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getResourcesExcludedCount in interface RestoreOrBuilderpublic Restore.Builder setResourcesExcludedCount(int value)
Output only. Number of resources excluded during the restore execution.
int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The resourcesExcludedCount to set.public Restore.Builder clearResourcesExcludedCount()
Output only. Number of resources excluded during the restore execution.
int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getResourcesFailedCount()
Output only. Number of resources that failed to be restored during the restore execution.
int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getResourcesFailedCount in interface RestoreOrBuilderpublic Restore.Builder setResourcesFailedCount(int value)
Output only. Number of resources that failed to be restored during the restore execution.
int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The resourcesFailedCount to set.public Restore.Builder clearResourcesFailedCount()
Output only. Number of resources that failed to be restored during the restore execution.
int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getVolumesRestoredCount()
Output only. Number of volumes restored during the restore execution.
int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];getVolumesRestoredCount in interface RestoreOrBuilderpublic Restore.Builder setVolumesRestoredCount(int value)
Output only. Number of volumes restored during the restore execution.
int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The volumesRestoredCount to set.public Restore.Builder clearVolumesRestoredCount()
Output only. Number of volumes restored during the restore execution.
int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];public String getEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.
string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtag in interface RestoreOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.
string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtagBytes in interface RestoreOrBuilderpublic Restore.Builder setEtag(String value)
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.
string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The etag to set.public Restore.Builder clearEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.
string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];public Restore.Builder setEtagBytes(com.google.protobuf.ByteString value)
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestore`, and systems are expected to put that etag in the request to `UpdateRestore` or `DeleteRestore` to ensure that their change will be applied to the same version of the resource.
string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for etag to set.public final Restore.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>public final Restore.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Restore.Builder>Copyright © 2023 Google LLC. All rights reserved.