public static final class BackupPlan.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder> implements BackupPlanOrBuilder
Defines the configuration and scheduling for a "line" of Backups.Protobuf type
google.cloud.gkebackup.v1.BackupPlan| Modifier and Type | Method and Description |
|---|---|
BackupPlan.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPlan |
build() |
BackupPlan |
buildPartial() |
BackupPlan.Builder |
clear() |
BackupPlan.Builder |
clearBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.Builder |
clearBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.Builder |
clearCluster()
Required.
|
BackupPlan.Builder |
clearCreateTime()
Output only.
|
BackupPlan.Builder |
clearDeactivated()
This flag indicates whether this BackupPlan has been deactivated.
|
BackupPlan.Builder |
clearDescription()
User specified descriptive string for this BackupPlan.
|
BackupPlan.Builder |
clearEtag()
Output only.
|
BackupPlan.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BackupPlan.Builder |
clearLabels() |
BackupPlan.Builder |
clearName()
Output only.
|
BackupPlan.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BackupPlan.Builder |
clearProtectedPodCount()
Output only.
|
BackupPlan.Builder |
clearRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.Builder |
clearState()
Output only.
|
BackupPlan.Builder |
clearStateReason()
Output only.
|
BackupPlan.Builder |
clearUid()
Output only.
|
BackupPlan.Builder |
clearUpdateTime()
Output only.
|
BackupPlan.Builder |
clone() |
boolean |
containsLabels(String key)
A set of custom labels supplied by user.
|
BackupPlan.BackupConfig |
getBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.BackupConfig.Builder |
getBackupConfigBuilder()
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.BackupConfigOrBuilder |
getBackupConfigOrBuilder()
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.Schedule |
getBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.Schedule.Builder |
getBackupScheduleBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.ScheduleOrBuilder |
getBackupScheduleOrBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
|
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.
|
boolean |
getDeactivated()
This flag indicates whether this BackupPlan has been deactivated.
|
BackupPlan |
getDefaultInstanceForType() |
String |
getDescription()
User specified descriptive string for this BackupPlan.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
User specified descriptive string for this BackupPlan.
|
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 |
getProtectedPodCount()
Output only.
|
BackupPlan.RetentionPolicy |
getRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.RetentionPolicy.Builder |
getRetentionPolicyBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.RetentionPolicyOrBuilder |
getRetentionPolicyOrBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.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 |
hasBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
|
boolean |
hasBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
|
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() |
BackupPlan.Builder |
mergeBackupConfig(BackupPlan.BackupConfig value)
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.Builder |
mergeBackupSchedule(BackupPlan.Schedule value)
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
BackupPlan.Builder |
mergeFrom(BackupPlan other) |
BackupPlan.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BackupPlan.Builder |
mergeFrom(com.google.protobuf.Message other) |
BackupPlan.Builder |
mergeRetentionPolicy(BackupPlan.RetentionPolicy value)
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackupPlan.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
BackupPlan.Builder |
putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
|
BackupPlan.Builder |
putLabels(String key,
String value)
A set of custom labels supplied by user.
|
BackupPlan.Builder |
removeLabels(String key)
A set of custom labels supplied by user.
|
BackupPlan.Builder |
setBackupConfig(BackupPlan.BackupConfig.Builder builderForValue)
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.Builder |
setBackupConfig(BackupPlan.BackupConfig value)
Defines the configuration of Backups created via this BackupPlan.
|
BackupPlan.Builder |
setBackupSchedule(BackupPlan.Schedule.Builder builderForValue)
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.Builder |
setBackupSchedule(BackupPlan.Schedule value)
Defines a schedule for automatic Backup creation via this BackupPlan.
|
BackupPlan.Builder |
setCluster(String value)
Required.
|
BackupPlan.Builder |
setClusterBytes(com.google.protobuf.ByteString value)
Required.
|
BackupPlan.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
BackupPlan.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
BackupPlan.Builder |
setDeactivated(boolean value)
This flag indicates whether this BackupPlan has been deactivated.
|
BackupPlan.Builder |
setDescription(String value)
User specified descriptive string for this BackupPlan.
|
BackupPlan.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this BackupPlan.
|
BackupPlan.Builder |
setEtag(String value)
Output only.
|
BackupPlan.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
Output only.
|
BackupPlan.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPlan.Builder |
setName(String value)
Output only.
|
BackupPlan.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
BackupPlan.Builder |
setProtectedPodCount(int value)
Output only.
|
BackupPlan.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BackupPlan.Builder |
setRetentionPolicy(BackupPlan.RetentionPolicy.Builder builderForValue)
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.Builder |
setRetentionPolicy(BackupPlan.RetentionPolicy value)
RetentionPolicy governs lifecycle of Backups created under this plan.
|
BackupPlan.Builder |
setState(BackupPlan.State value)
Output only.
|
BackupPlan.Builder |
setStateReason(String value)
Output only.
|
BackupPlan.Builder |
setStateReasonBytes(com.google.protobuf.ByteString value)
Output only.
|
BackupPlan.Builder |
setStateValue(int value)
Output only.
|
BackupPlan.Builder |
setUid(String value)
Output only.
|
BackupPlan.Builder |
setUidBytes(com.google.protobuf.ByteString value)
Output only.
|
BackupPlan.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackupPlan.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
BackupPlan.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<BackupPlan.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public BackupPlan.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.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<BackupPlan.Builder>public BackupPlan getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BackupPlan build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BackupPlan buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BackupPlan.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public BackupPlan.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<BackupPlan.Builder>public BackupPlan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public BackupPlan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public BackupPlan.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<BackupPlan.Builder>public BackupPlan.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<BackupPlan.Builder>public BackupPlan.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackupPlan.Builder>public BackupPlan.Builder mergeFrom(BackupPlan other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public BackupPlan.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<BackupPlan.Builder>IOExceptionpublic String getName()
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface BackupPlanOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface BackupPlanOrBuilderpublic BackupPlan.Builder setName(String value)
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public BackupPlan.Builder clearName()
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public BackupPlan.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
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 BackupPlanOrBuilderpublic 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 BackupPlanOrBuilderpublic BackupPlan.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 BackupPlan.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 BackupPlan.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 BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface BackupPlanOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when this BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface BackupPlanOrBuilderpublic BackupPlan.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder clearCreateTime()
Output only. The timestamp when this BackupPlan 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 BackupPlan 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 BackupPlan resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface BackupPlanOrBuilderpublic boolean hasUpdateTime()
Output only. The timestamp when this BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface BackupPlanOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when this BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface BackupPlanOrBuilderpublic BackupPlan.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when this BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when this BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPlan.Builder clearUpdateTime()
Output only. The timestamp when this BackupPlan 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 BackupPlan 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 BackupPlan resource was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface BackupPlanOrBuilderpublic String getDescription()
User specified descriptive string for this BackupPlan.
string description = 5;getDescription in interface BackupPlanOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this BackupPlan.
string description = 5;getDescriptionBytes in interface BackupPlanOrBuilderpublic BackupPlan.Builder setDescription(String value)
User specified descriptive string for this BackupPlan.
string description = 5;value - The description to set.public BackupPlan.Builder clearDescription()
User specified descriptive string for this BackupPlan.
string description = 5;public BackupPlan.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this BackupPlan.
string description = 5;value - The bytes for description to set.public String getCluster()
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getCluster in interface BackupPlanOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getClusterBytes in interface BackupPlanOrBuilderpublic BackupPlan.Builder setCluster(String value)
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The cluster to set.public BackupPlan.Builder clearCluster()
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public BackupPlan.Builder setClusterBytes(com.google.protobuf.ByteString value)
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`
string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for cluster to set.public boolean hasRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;hasRetentionPolicy in interface BackupPlanOrBuilderpublic BackupPlan.RetentionPolicy getRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;getRetentionPolicy in interface BackupPlanOrBuilderpublic BackupPlan.Builder setRetentionPolicy(BackupPlan.RetentionPolicy value)
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;public BackupPlan.Builder setRetentionPolicy(BackupPlan.RetentionPolicy.Builder builderForValue)
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;public BackupPlan.Builder mergeRetentionPolicy(BackupPlan.RetentionPolicy value)
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;public BackupPlan.Builder clearRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;public BackupPlan.RetentionPolicy.Builder getRetentionPolicyBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;public BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;getRetentionPolicyOrBuilder in interface BackupPlanOrBuilderpublic int getLabelsCount()
BackupPlanOrBuilderA set of custom labels supplied by user.
map<string, string> labels = 8;getLabelsCount in interface BackupPlanOrBuilderpublic boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;containsLabels in interface BackupPlanOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface BackupPlanOrBuilderpublic Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 8;getLabelsMap in interface BackupPlanOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 8;getLabelsOrDefault in interface BackupPlanOrBuilderpublic String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;getLabelsOrThrow in interface BackupPlanOrBuilderpublic BackupPlan.Builder clearLabels()
public BackupPlan.Builder removeLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;@Deprecated public Map<String,String> getMutableLabels()
public BackupPlan.Builder putLabels(String key, String value)
A set of custom labels supplied by user.
map<string, string> labels = 8;public BackupPlan.Builder putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
map<string, string> labels = 8;public boolean hasBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;hasBackupSchedule in interface BackupPlanOrBuilderpublic BackupPlan.Schedule getBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;getBackupSchedule in interface BackupPlanOrBuilderpublic BackupPlan.Builder setBackupSchedule(BackupPlan.Schedule value)
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;public BackupPlan.Builder setBackupSchedule(BackupPlan.Schedule.Builder builderForValue)
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;public BackupPlan.Builder mergeBackupSchedule(BackupPlan.Schedule value)
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;public BackupPlan.Builder clearBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;public BackupPlan.Schedule.Builder getBackupScheduleBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;public BackupPlan.ScheduleOrBuilder getBackupScheduleOrBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;getBackupScheduleOrBuilder in interface BackupPlanOrBuilderpublic String getEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` 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 BackupPlanOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` 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 BackupPlanOrBuilderpublic BackupPlan.Builder setEtag(String value)
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` 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 BackupPlan.Builder clearEtag()
Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` 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 BackupPlan.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 backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackupPlan`, and systems are expected to put that etag in the request to `UpdateBackupPlan` or `DeleteBackupPlan` 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 boolean getDeactivated()
This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
bool deactivated = 11;getDeactivated in interface BackupPlanOrBuilderpublic BackupPlan.Builder setDeactivated(boolean value)
This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
bool deactivated = 11;value - The deactivated to set.public BackupPlan.Builder clearDeactivated()
This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
bool deactivated = 11;public boolean hasBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;hasBackupConfig in interface BackupPlanOrBuilderpublic BackupPlan.BackupConfig getBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;getBackupConfig in interface BackupPlanOrBuilderpublic BackupPlan.Builder setBackupConfig(BackupPlan.BackupConfig value)
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;public BackupPlan.Builder setBackupConfig(BackupPlan.BackupConfig.Builder builderForValue)
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;public BackupPlan.Builder mergeBackupConfig(BackupPlan.BackupConfig value)
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;public BackupPlan.Builder clearBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;public BackupPlan.BackupConfig.Builder getBackupConfigBuilder()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;public BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;getBackupConfigOrBuilder in interface BackupPlanOrBuilderpublic int getProtectedPodCount()
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];getProtectedPodCount in interface BackupPlanOrBuilderpublic BackupPlan.Builder setProtectedPodCount(int value)
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The protectedPodCount to set.public BackupPlan.Builder clearProtectedPodCount()
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getStateValue()
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
.google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface BackupPlanOrBuilderpublic BackupPlan.Builder setStateValue(int value)
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
.google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public BackupPlan.State getState()
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
.google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface BackupPlanOrBuilderpublic BackupPlan.Builder setState(BackupPlan.State value)
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
.google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public BackupPlan.Builder clearState()
Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update
.google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStateReason()
Output only. Human-readable description of why BackupPlan is in the current `state`
string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReason in interface BackupPlanOrBuilderpublic com.google.protobuf.ByteString getStateReasonBytes()
Output only. Human-readable description of why BackupPlan is in the current `state`
string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateReasonBytes in interface BackupPlanOrBuilderpublic BackupPlan.Builder setStateReason(String value)
Output only. Human-readable description of why BackupPlan is in the current `state`
string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateReason to set.public BackupPlan.Builder clearStateReason()
Output only. Human-readable description of why BackupPlan is in the current `state`
string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];public BackupPlan.Builder setStateReasonBytes(com.google.protobuf.ByteString value)
Output only. Human-readable description of why BackupPlan is in the current `state`
string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateReason to set.public final BackupPlan.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>public final BackupPlan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>Copyright © 2023 Google LLC. All rights reserved.