Package com.google.cloud.gkebackup.v1
Class BackupPlan.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
- com.google.cloud.gkebackup.v1.BackupPlan.Builder
-
- All Implemented Interfaces:
BackupPlanOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackupPlan
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 typegoogle.cloud.gkebackup.v1.BackupPlan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BackupPlan.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BackupPlanbuild()BackupPlanbuildPartial()BackupPlan.Builderclear()BackupPlan.BuilderclearBackupConfig()Defines the configuration of Backups created via this BackupPlan.BackupPlan.BuilderclearBackupSchedule()Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.BuilderclearCluster()Required.BackupPlan.BuilderclearCreateTime()Output only.BackupPlan.BuilderclearDeactivated()This flag indicates whether this BackupPlan has been deactivated.BackupPlan.BuilderclearDescription()User specified descriptive string for this BackupPlan.BackupPlan.BuilderclearEtag()Output only.BackupPlan.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BackupPlan.BuilderclearLabels()BackupPlan.BuilderclearName()Output only.BackupPlan.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BackupPlan.BuilderclearProtectedPodCount()Output only.BackupPlan.BuilderclearRetentionPolicy()RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.BuilderclearState()Output only.BackupPlan.BuilderclearStateReason()Output only.BackupPlan.BuilderclearUid()Output only.BackupPlan.BuilderclearUpdateTime()Output only.BackupPlan.Builderclone()booleancontainsLabels(String key)A set of custom labels supplied by user.BackupPlan.BackupConfiggetBackupConfig()Defines the configuration of Backups created via this BackupPlan.BackupPlan.BackupConfig.BuildergetBackupConfigBuilder()Defines the configuration of Backups created via this BackupPlan.BackupPlan.BackupConfigOrBuildergetBackupConfigOrBuilder()Defines the configuration of Backups created via this BackupPlan.BackupPlan.SchedulegetBackupSchedule()Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.Schedule.BuildergetBackupScheduleBuilder()Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.ScheduleOrBuildergetBackupScheduleOrBuilder()Defines a schedule for automatic Backup creation via this BackupPlan.StringgetCluster()Required.com.google.protobuf.ByteStringgetClusterBytes()Required.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.booleangetDeactivated()This flag indicates whether this BackupPlan has been deactivated.BackupPlangetDefaultInstanceForType()StringgetDescription()User specified descriptive string for this BackupPlan.com.google.protobuf.ByteStringgetDescriptionBytes()User specified descriptive string for this BackupPlan.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEtag()Output only.com.google.protobuf.ByteStringgetEtagBytes()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()A set of custom labels supplied by user.Map<String,String>getLabelsMap()A set of custom labels supplied by user.StringgetLabelsOrDefault(String key, String defaultValue)A set of custom labels supplied by user.StringgetLabelsOrThrow(String key)A set of custom labels supplied by user.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.intgetProtectedPodCount()Output only.BackupPlan.RetentionPolicygetRetentionPolicy()RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.RetentionPolicy.BuildergetRetentionPolicyBuilder()RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.RetentionPolicyOrBuildergetRetentionPolicyOrBuilder()RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.StategetState()Output only.StringgetStateReason()Output only.com.google.protobuf.ByteStringgetStateReasonBytes()Output only.intgetStateValue()Output only.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasBackupConfig()Defines the configuration of Backups created via this BackupPlan.booleanhasBackupSchedule()Defines a schedule for automatic Backup creation via this BackupPlan.booleanhasCreateTime()Output only.booleanhasRetentionPolicy()RetentionPolicy governs lifecycle of Backups created under this plan.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BackupPlan.BuildermergeBackupConfig(BackupPlan.BackupConfig value)Defines the configuration of Backups created via this BackupPlan.BackupPlan.BuildermergeBackupSchedule(BackupPlan.Schedule value)Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.BackupPlan.BuildermergeFrom(BackupPlan other)BackupPlan.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BackupPlan.BuildermergeFrom(com.google.protobuf.Message other)BackupPlan.BuildermergeRetentionPolicy(BackupPlan.RetentionPolicy value)RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BackupPlan.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.BackupPlan.BuilderputAllLabels(Map<String,String> values)A set of custom labels supplied by user.BackupPlan.BuilderputLabels(String key, String value)A set of custom labels supplied by user.BackupPlan.BuilderremoveLabels(String key)A set of custom labels supplied by user.BackupPlan.BuildersetBackupConfig(BackupPlan.BackupConfig value)Defines the configuration of Backups created via this BackupPlan.BackupPlan.BuildersetBackupConfig(BackupPlan.BackupConfig.Builder builderForValue)Defines the configuration of Backups created via this BackupPlan.BackupPlan.BuildersetBackupSchedule(BackupPlan.Schedule value)Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.BuildersetBackupSchedule(BackupPlan.Schedule.Builder builderForValue)Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.BuildersetCluster(String value)Required.BackupPlan.BuildersetClusterBytes(com.google.protobuf.ByteString value)Required.BackupPlan.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.BackupPlan.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.BackupPlan.BuildersetDeactivated(boolean value)This flag indicates whether this BackupPlan has been deactivated.BackupPlan.BuildersetDescription(String value)User specified descriptive string for this BackupPlan.BackupPlan.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)User specified descriptive string for this BackupPlan.BackupPlan.BuildersetEtag(String value)Output only.BackupPlan.BuildersetEtagBytes(com.google.protobuf.ByteString value)Output only.BackupPlan.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BackupPlan.BuildersetName(String value)Output only.BackupPlan.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.BackupPlan.BuildersetProtectedPodCount(int value)Output only.BackupPlan.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BackupPlan.BuildersetRetentionPolicy(BackupPlan.RetentionPolicy value)RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.BuildersetRetentionPolicy(BackupPlan.RetentionPolicy.Builder builderForValue)RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.BuildersetState(BackupPlan.State value)Output only.BackupPlan.BuildersetStateReason(String value)Output only.BackupPlan.BuildersetStateReasonBytes(com.google.protobuf.ByteString value)Output only.BackupPlan.BuildersetStateValue(int value)Output only.BackupPlan.BuildersetUid(String value)Output only.BackupPlan.BuildersetUidBytes(com.google.protobuf.ByteString value)Output only.BackupPlan.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BackupPlan.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.BackupPlan.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
clear
public BackupPlan.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
getDefaultInstanceForType
public BackupPlan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BackupPlan build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BackupPlan buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BackupPlan.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
setField
public BackupPlan.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
clearField
public BackupPlan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
clearOneof
public BackupPlan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
setRepeatedField
public BackupPlan.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
addRepeatedField
public BackupPlan.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
mergeFrom
public BackupPlan.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupPlan.Builder>
-
mergeFrom
public BackupPlan.Builder mergeFrom(BackupPlan other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
mergeFrom
public BackupPlan.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackupPlan.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceBackupPlanOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for name.
-
setName
public 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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
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];- Specified by:
getUidin interfaceBackupPlanOrBuilder- Returns:
- The uid.
-
getUidBytes
public 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];- Specified by:
getUidBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for uid.
-
setUid
public 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];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
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];- Returns:
- This builder for chaining.
-
setUidBytes
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];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasCreateTime
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];- Specified by:
hasCreateTimein interfaceBackupPlanOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceBackupPlanOrBuilder- Returns:
- The createTime.
-
setCreateTime
public 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];
-
setCreateTime
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];
-
mergeCreateTime
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];
-
clearCreateTime
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];
-
getCreateTimeBuilder
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];
-
getCreateTimeOrBuilder
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];- Specified by:
getCreateTimeOrBuilderin interfaceBackupPlanOrBuilder
-
hasUpdateTime
public 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];- Specified by:
hasUpdateTimein interfaceBackupPlanOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public 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];- Specified by:
getUpdateTimein interfaceBackupPlanOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public 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];
-
setUpdateTime
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];
-
mergeUpdateTime
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];
-
clearUpdateTime
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];
-
getUpdateTimeBuilder
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];
-
getUpdateTimeOrBuilder
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];- Specified by:
getUpdateTimeOrBuilderin interfaceBackupPlanOrBuilder
-
getDescription
public String getDescription()
User specified descriptive string for this BackupPlan.
string description = 5;- Specified by:
getDescriptionin interfaceBackupPlanOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this BackupPlan.
string description = 5;- Specified by:
getDescriptionBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for description.
-
setDescription
public BackupPlan.Builder setDescription(String value)
User specified descriptive string for this BackupPlan.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public BackupPlan.Builder clearDescription()
User specified descriptive string for this BackupPlan.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public BackupPlan.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
User specified descriptive string for this BackupPlan.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getCluster
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) = { ... }- Specified by:
getClusterin interfaceBackupPlanOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public 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) = { ... }- Specified by:
getClusterBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
public 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) = { ... }- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
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) = { ... }- Returns:
- This builder for chaining.
-
setClusterBytes
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) = { ... }- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
hasRetentionPolicy
public boolean hasRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;- Specified by:
hasRetentionPolicyin interfaceBackupPlanOrBuilder- Returns:
- Whether the retentionPolicy field is set.
-
getRetentionPolicy
public BackupPlan.RetentionPolicy getRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;- Specified by:
getRetentionPolicyin interfaceBackupPlanOrBuilder- Returns:
- The retentionPolicy.
-
setRetentionPolicy
public BackupPlan.Builder setRetentionPolicy(BackupPlan.RetentionPolicy value)
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;
-
setRetentionPolicy
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;
-
mergeRetentionPolicy
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;
-
clearRetentionPolicy
public BackupPlan.Builder clearRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;
-
getRetentionPolicyBuilder
public BackupPlan.RetentionPolicy.Builder getRetentionPolicyBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;
-
getRetentionPolicyOrBuilder
public BackupPlan.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.
.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7;- Specified by:
getRetentionPolicyOrBuilderin interfaceBackupPlanOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:BackupPlanOrBuilderA set of custom labels supplied by user.
map<string, string> labels = 8;- Specified by:
getLabelsCountin interfaceBackupPlanOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;- Specified by:
containsLabelsin interfaceBackupPlanOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceBackupPlanOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 8;- Specified by:
getLabelsMapin interfaceBackupPlanOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 8;- Specified by:
getLabelsOrDefaultin interfaceBackupPlanOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;- Specified by:
getLabelsOrThrowin interfaceBackupPlanOrBuilder
-
clearLabels
public BackupPlan.Builder clearLabels()
-
removeLabels
public BackupPlan.Builder removeLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public BackupPlan.Builder putLabels(String key, String value)
A set of custom labels supplied by user.
map<string, string> labels = 8;
-
putAllLabels
public BackupPlan.Builder putAllLabels(Map<String,String> values)
A set of custom labels supplied by user.
map<string, string> labels = 8;
-
hasBackupSchedule
public boolean hasBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;- Specified by:
hasBackupSchedulein interfaceBackupPlanOrBuilder- Returns:
- Whether the backupSchedule field is set.
-
getBackupSchedule
public BackupPlan.Schedule getBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;- Specified by:
getBackupSchedulein interfaceBackupPlanOrBuilder- Returns:
- The backupSchedule.
-
setBackupSchedule
public 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;
-
setBackupSchedule
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;
-
mergeBackupSchedule
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;
-
clearBackupSchedule
public BackupPlan.Builder clearBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;
-
getBackupScheduleBuilder
public BackupPlan.Schedule.Builder getBackupScheduleBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;
-
getBackupScheduleOrBuilder
public BackupPlan.ScheduleOrBuilder getBackupScheduleOrBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9;- Specified by:
getBackupScheduleOrBuilderin interfaceBackupPlanOrBuilder
-
getEtag
public 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];- Specified by:
getEtagin interfaceBackupPlanOrBuilder- Returns:
- The etag.
-
getEtagBytes
public 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];- Specified by:
getEtagBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for etag.
-
setEtag
public 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];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
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];- Returns:
- This builder for chaining.
-
setEtagBytes
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];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getDeactivated
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;- Specified by:
getDeactivatedin interfaceBackupPlanOrBuilder- Returns:
- The deactivated.
-
setDeactivated
public 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;- Parameters:
value- The deactivated to set.- Returns:
- This builder for chaining.
-
clearDeactivated
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;- Returns:
- This builder for chaining.
-
hasBackupConfig
public boolean hasBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;- Specified by:
hasBackupConfigin interfaceBackupPlanOrBuilder- Returns:
- Whether the backupConfig field is set.
-
getBackupConfig
public BackupPlan.BackupConfig getBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;- Specified by:
getBackupConfigin interfaceBackupPlanOrBuilder- Returns:
- The backupConfig.
-
setBackupConfig
public BackupPlan.Builder setBackupConfig(BackupPlan.BackupConfig value)
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;
-
setBackupConfig
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;
-
mergeBackupConfig
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;
-
clearBackupConfig
public BackupPlan.Builder clearBackupConfig()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;
-
getBackupConfigBuilder
public BackupPlan.BackupConfig.Builder getBackupConfigBuilder()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;
-
getBackupConfigOrBuilder
public BackupPlan.BackupConfigOrBuilder getBackupConfigOrBuilder()
Defines the configuration of Backups created via this BackupPlan.
.google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12;- Specified by:
getBackupConfigOrBuilderin interfaceBackupPlanOrBuilder
-
getProtectedPodCount
public 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];- Specified by:
getProtectedPodCountin interfaceBackupPlanOrBuilder- Returns:
- The protectedPodCount.
-
setProtectedPodCount
public 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];- Parameters:
value- The protectedPodCount to set.- Returns:
- This builder for chaining.
-
clearProtectedPodCount
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];- Returns:
- This builder for chaining.
-
getStateValue
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];- Specified by:
getStateValuein interfaceBackupPlanOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public 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];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
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];- Specified by:
getStatein interfaceBackupPlanOrBuilder- Returns:
- The state.
-
setState
public 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];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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];- Returns:
- This builder for chaining.
-
getStateReason
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];- Specified by:
getStateReasonin interfaceBackupPlanOrBuilder- Returns:
- The stateReason.
-
getStateReasonBytes
public 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];- Specified by:
getStateReasonBytesin interfaceBackupPlanOrBuilder- Returns:
- The bytes for stateReason.
-
setStateReason
public 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];- Parameters:
value- The stateReason to set.- Returns:
- This builder for chaining.
-
clearStateReason
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];- Returns:
- This builder for chaining.
-
setStateReasonBytes
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];- Parameters:
value- The bytes for stateReason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BackupPlan.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
mergeUnknownFields
public final BackupPlan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.Builder>
-
-