public static final class RestorePlan.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder> implements RestorePlanOrBuilder
The configuration of a potential series of Restore operations to be performed against Backups belong to a particular BackupPlan. Next id: 13Protobuf type
google.cloud.gkebackup.v1.RestorePlan| Modifier and Type | Method and Description |
|---|---|
RestorePlan.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RestorePlan |
build() |
RestorePlan |
buildPartial() |
RestorePlan.Builder |
clear() |
RestorePlan.Builder |
clearBackupPlan()
Required.
|
RestorePlan.Builder |
clearCluster()
Required.
|
RestorePlan.Builder |
clearCreateTime()
Output only.
|
RestorePlan.Builder |
clearDescription()
User specified descriptive string for this RestorePlan.
|
RestorePlan.Builder |
clearEtag()
Output only.
|
RestorePlan.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RestorePlan.Builder |
clearLabels() |
RestorePlan.Builder |
clearName()
Output only.
|
RestorePlan.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RestorePlan.Builder |
clearRestoreConfig()
Required.
|
RestorePlan.Builder |
clearState()
Output only.
|
RestorePlan.Builder |
clearStateReason()
Output only.
|
RestorePlan.Builder |
clearUid()
Output only.
|
RestorePlan.Builder |
clearUpdateTime()
Output only.
|
RestorePlan.Builder |
clone() |
boolean |
containsLabels(String key)
A set of custom labels supplied by user.
|
String |
getBackupPlan()
Required.
|
com.google.protobuf.ByteString |
getBackupPlanBytes()
Required.
|
String |
getCluster()
Required.
|
com.google.protobuf.ByteString |
getClusterBytes()
Required.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
RestorePlan |
getDefaultInstanceForType() |
String |
getDescription()
User specified descriptive string for this RestorePlan.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
User specified descriptive string for this RestorePlan.
|
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.
|
RestoreConfig |
getRestoreConfig()
Required.
|
RestoreConfig.Builder |
getRestoreConfigBuilder()
Required.
|
RestoreConfigOrBuilder |
getRestoreConfigOrBuilder()
Required.
|
RestorePlan.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.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasRestoreConfig()
Required.
|
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() |
RestorePlan.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
RestorePlan.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RestorePlan.Builder |
mergeFrom(com.google.protobuf.Message other) |
RestorePlan.Builder |
mergeFrom(RestorePlan other) |
RestorePlan.Builder |
mergeRestoreConfig(RestoreConfig value)
Required.
|
RestorePlan.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RestorePlan.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
RestorePlan.Builder |
putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
|
RestorePlan.Builder |
putLabels(String key,
String value)
A set of custom labels supplied by user.
|
RestorePlan.Builder |
removeLabels(String key)
A set of custom labels supplied by user.
|
RestorePlan.Builder |
setBackupPlan(String value)
Required.
|
RestorePlan.Builder |
setBackupPlanBytes(com.google.protobuf.ByteString value)
Required.
|
RestorePlan.Builder |
setCluster(String value)
Required.
|
RestorePlan.Builder |
setClusterBytes(com.google.protobuf.ByteString value)
Required.
|
RestorePlan.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
RestorePlan.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
RestorePlan.Builder |
setDescription(String value)
User specified descriptive string for this RestorePlan.
|
RestorePlan.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this RestorePlan.
|
RestorePlan.Builder |
setEtag(String value)
Output only.
|
RestorePlan.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Output only.
|
RestorePlan.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RestorePlan.Builder |
setName(String value)
Output only.
|
RestorePlan.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
RestorePlan.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RestorePlan.Builder |
setRestoreConfig(RestoreConfig.Builder builderForValue)
Required.
|
RestorePlan.Builder |
setRestoreConfig(RestoreConfig value)
Required.
|
RestorePlan.Builder |
setState(RestorePlan.State value)
Output only.
|
RestorePlan.Builder |
setStateReason(String value)
Output only.
|
RestorePlan.Builder |
setStateReasonBytes(com.google.protobuf.ByteString value)
Output only.
|
RestorePlan.Builder |
setStateValue(int value)
Output only.
|
RestorePlan.Builder |
setUid(String value)
Output only.
|
RestorePlan.Builder |
setUidBytes(com.google.protobuf.ByteString value)
Output only.
|
RestorePlan.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RestorePlan.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
RestorePlan.Builder |
setUpdateTime(com.google.protobuf.Timestamp 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<RestorePlan.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public RestorePlan.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.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<RestorePlan.Builder>public RestorePlan getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RestorePlan build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RestorePlan buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RestorePlan.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public RestorePlan.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<RestorePlan.Builder>public RestorePlan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public RestorePlan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public RestorePlan.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<RestorePlan.Builder>public RestorePlan.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<RestorePlan.Builder>public RestorePlan.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RestorePlan.Builder>public RestorePlan.Builder mergeFrom(RestorePlan other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public RestorePlan.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<RestorePlan.Builder>IOExceptionpublic String getName()
Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface RestorePlanOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface RestorePlanOrBuilderpublic RestorePlan.Builder setName(String value)
Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public RestorePlan.Builder clearName()
Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public RestorePlan.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`.
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 RestorePlanOrBuilderpublic 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 RestorePlanOrBuilderpublic RestorePlan.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 RestorePlan.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 RestorePlan.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 RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface RestorePlanOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when this RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface RestorePlanOrBuilderpublic RestorePlan.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder clearCreateTime()
Output only. The timestamp when this RestorePlan 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 RestorePlan 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 RestorePlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface RestorePlanOrBuilderpublic boolean hasUpdateTime()
Output only. The timestamp when this RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface RestorePlanOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when this RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface RestorePlanOrBuilderpublic RestorePlan.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RestorePlan.Builder clearUpdateTime()
Output only. The timestamp when this RestorePlan 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 RestorePlan 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 RestorePlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface RestorePlanOrBuilderpublic String getDescription()
User specified descriptive string for this RestorePlan.
string description = 5;getDescription in interface RestorePlanOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this RestorePlan.
string description = 5;getDescriptionBytes in interface RestorePlanOrBuilderpublic RestorePlan.Builder setDescription(String value)
User specified descriptive string for this RestorePlan.
string description = 5;value - The description to set.public RestorePlan.Builder clearDescription()
User specified descriptive string for this RestorePlan.
string description = 5;public RestorePlan.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this RestorePlan.
string description = 5;value - The bytes for description to set.public String getBackupPlan()
Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBackupPlan in interface RestorePlanOrBuilderpublic com.google.protobuf.ByteString getBackupPlanBytes()
Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getBackupPlanBytes in interface RestorePlanOrBuilderpublic RestorePlan.Builder setBackupPlan(String value)
Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The backupPlan to set.public RestorePlan.Builder clearBackupPlan()
Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public RestorePlan.Builder setBackupPlanBytes(com.google.protobuf.ByteString value)
Required. Immutable. A reference to the [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`.
string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for backupPlan to set.public String getCluster()
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getCluster in interface RestorePlanOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getClusterBytes in interface RestorePlanOrBuilderpublic RestorePlan.Builder setCluster(String value)
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The cluster to set.public RestorePlan.Builder clearCluster()
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public RestorePlan.Builder setClusterBytes(com.google.protobuf.ByteString value)
Required. Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for cluster to set.public boolean hasRestoreConfig()
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
hasRestoreConfig in interface RestorePlanOrBuilderpublic RestoreConfig getRestoreConfig()
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
getRestoreConfig in interface RestorePlanOrBuilderpublic RestorePlan.Builder setRestoreConfig(RestoreConfig value)
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
public RestorePlan.Builder setRestoreConfig(RestoreConfig.Builder builderForValue)
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
public RestorePlan.Builder mergeRestoreConfig(RestoreConfig value)
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
public RestorePlan.Builder clearRestoreConfig()
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
public RestoreConfig.Builder getRestoreConfigBuilder()
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
public RestoreConfigOrBuilder getRestoreConfigOrBuilder()
Required. Configuration of Restores created via this RestorePlan.
.google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
getRestoreConfigOrBuilder in interface RestorePlanOrBuilderpublic int getLabelsCount()
RestorePlanOrBuilderA set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsCount in interface RestorePlanOrBuilderpublic boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;containsLabels in interface RestorePlanOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface RestorePlanOrBuilderpublic Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsMap in interface RestorePlanOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsOrDefault in interface RestorePlanOrBuilderpublic String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;getLabelsOrThrow in interface RestorePlanOrBuilderpublic RestorePlan.Builder clearLabels()
public RestorePlan.Builder removeLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 9;@Deprecated public Map<String,String> getMutableLabels()
public RestorePlan.Builder putLabels(String key, String value)
A set of custom labels supplied by user.
map<string, string> labels = 9;public RestorePlan.Builder putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
map<string, string> labels = 9;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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.
string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtag in interface RestorePlanOrBuilderpublic 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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.
string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtagBytes in interface RestorePlanOrBuilderpublic RestorePlan.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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.
string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The etag to set.public RestorePlan.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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.
string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];public RestorePlan.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 `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource.
string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for etag to set.public int getStateValue()
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
.google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface RestorePlanOrBuilderpublic RestorePlan.Builder setStateValue(int value)
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
.google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public RestorePlan.State getState()
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
.google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface RestorePlanOrBuilderpublic RestorePlan.Builder setState(RestorePlan.State value)
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
.google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public RestorePlan.Builder clearState()
Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.
.google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStateReason()
Output only. Human-readable description of why RestorePlan is in the current `state`
string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReason in interface RestorePlanOrBuilderpublic com.google.protobuf.ByteString getStateReasonBytes()
Output only. Human-readable description of why RestorePlan is in the current `state`
string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReasonBytes in interface RestorePlanOrBuilderpublic RestorePlan.Builder setStateReason(String value)
Output only. Human-readable description of why RestorePlan is in the current `state`
string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateReason to set.public RestorePlan.Builder clearStateReason()
Output only. Human-readable description of why RestorePlan is in the current `state`
string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];public RestorePlan.Builder setStateReasonBytes(com.google.protobuf.ByteString value)
Output only. Human-readable description of why RestorePlan is in the current `state`
string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateReason to set.public final RestorePlan.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>public final RestorePlan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestorePlan.Builder>Copyright © 2023 Google LLC. All rights reserved.