public static final class BackupPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder> implements BackupPolicyOrBuilder
Backup Policy.Protobuf type
google.cloud.netapp.v1.BackupPolicy| Modifier and Type | Method and Description |
|---|---|
BackupPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPolicy |
build() |
BackupPolicy |
buildPartial() |
BackupPolicy.Builder |
clear() |
BackupPolicy.Builder |
clearAssignedVolumeCount()
Output only.
|
BackupPolicy.Builder |
clearCreateTime()
Output only.
|
BackupPolicy.Builder |
clearDailyBackupLimit()
Number of daily backups to keep.
|
BackupPolicy.Builder |
clearDescription()
Description of the backup policy.
|
BackupPolicy.Builder |
clearEnabled()
If enabled, make backups automatically according to the schedules.
|
BackupPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BackupPolicy.Builder |
clearLabels() |
BackupPolicy.Builder |
clearMonthlyBackupLimit()
Number of monthly backups to keep.
|
BackupPolicy.Builder |
clearName()
Identifier.
|
BackupPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BackupPolicy.Builder |
clearState()
Output only.
|
BackupPolicy.Builder |
clearWeeklyBackupLimit()
Number of weekly backups to keep.
|
BackupPolicy.Builder |
clone() |
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata.
|
int |
getAssignedVolumeCount()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
int |
getDailyBackupLimit()
Number of daily backups to keep.
|
BackupPolicy |
getDefaultInstanceForType() |
String |
getDescription()
Description of the backup policy.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Description of the backup policy.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnabled()
If enabled, make backups automatically according to the schedules.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Resource labels to represent user provided metadata.
|
Map<String,String> |
getLabelsMap()
Resource labels to represent user provided metadata.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Resource labels to represent user provided metadata.
|
String |
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
|
int |
getMonthlyBackupLimit()
Number of monthly backups to keep.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
BackupPolicy.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
int |
getWeeklyBackupLimit()
Number of weekly backups to keep.
|
boolean |
hasAssignedVolumeCount()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDailyBackupLimit()
Number of daily backups to keep.
|
boolean |
hasDescription()
Description of the backup policy.
|
boolean |
hasEnabled()
If enabled, make backups automatically according to the schedules.
|
boolean |
hasMonthlyBackupLimit()
Number of monthly backups to keep.
|
boolean |
hasWeeklyBackupLimit()
Number of weekly backups to keep.
|
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() |
BackupPolicy.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
BackupPolicy.Builder |
mergeFrom(BackupPolicy other) |
BackupPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BackupPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
BackupPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackupPolicy.Builder |
putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
|
BackupPolicy.Builder |
putLabels(String key,
String value)
Resource labels to represent user provided metadata.
|
BackupPolicy.Builder |
removeLabels(String key)
Resource labels to represent user provided metadata.
|
BackupPolicy.Builder |
setAssignedVolumeCount(int value)
Output only.
|
BackupPolicy.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
BackupPolicy.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
BackupPolicy.Builder |
setDailyBackupLimit(int value)
Number of daily backups to keep.
|
BackupPolicy.Builder |
setDescription(String value)
Description of the backup policy.
|
BackupPolicy.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the backup policy.
|
BackupPolicy.Builder |
setEnabled(boolean value)
If enabled, make backups automatically according to the schedules.
|
BackupPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPolicy.Builder |
setMonthlyBackupLimit(int value)
Number of monthly backups to keep.
|
BackupPolicy.Builder |
setName(String value)
Identifier.
|
BackupPolicy.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
BackupPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BackupPolicy.Builder |
setState(BackupPolicy.State value)
Output only.
|
BackupPolicy.Builder |
setStateValue(int value)
Output only.
|
BackupPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackupPolicy.Builder |
setWeeklyBackupLimit(int value)
Number of weekly backups to keep.
|
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<BackupPolicy.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public BackupPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.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<BackupPolicy.Builder>public BackupPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BackupPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BackupPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BackupPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public BackupPolicy.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<BackupPolicy.Builder>public BackupPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public BackupPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public BackupPolicy.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<BackupPolicy.Builder>public BackupPolicy.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<BackupPolicy.Builder>public BackupPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackupPolicy.Builder>public BackupPolicy.Builder mergeFrom(BackupPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public BackupPolicy.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<BackupPolicy.Builder>IOExceptionpublic String getName()
Identifier. The resource name of the backup policy.
Format:
`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface BackupPolicyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. The resource name of the backup policy.
Format:
`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setName(String value)
Identifier. The resource name of the backup policy.
Format:
`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The name to set.public BackupPolicy.Builder clearName()
Identifier. The resource name of the backup policy.
Format:
`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];public BackupPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
Identifier. The resource name of the backup policy.
Format:
`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The bytes for name to set.public boolean hasDailyBackupLimit()
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
optional int32 daily_backup_limit = 2;hasDailyBackupLimit in interface BackupPolicyOrBuilderpublic int getDailyBackupLimit()
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
optional int32 daily_backup_limit = 2;getDailyBackupLimit in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setDailyBackupLimit(int value)
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
optional int32 daily_backup_limit = 2;value - The dailyBackupLimit to set.public BackupPolicy.Builder clearDailyBackupLimit()
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
optional int32 daily_backup_limit = 2;public boolean hasWeeklyBackupLimit()
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 weekly_backup_limit = 3;hasWeeklyBackupLimit in interface BackupPolicyOrBuilderpublic int getWeeklyBackupLimit()
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 weekly_backup_limit = 3;getWeeklyBackupLimit in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setWeeklyBackupLimit(int value)
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 weekly_backup_limit = 3;value - The weeklyBackupLimit to set.public BackupPolicy.Builder clearWeeklyBackupLimit()
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 weekly_backup_limit = 3;public boolean hasMonthlyBackupLimit()
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 monthly_backup_limit = 4;hasMonthlyBackupLimit in interface BackupPolicyOrBuilderpublic int getMonthlyBackupLimit()
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 monthly_backup_limit = 4;getMonthlyBackupLimit in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setMonthlyBackupLimit(int value)
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 monthly_backup_limit = 4;value - The monthlyBackupLimit to set.public BackupPolicy.Builder clearMonthlyBackupLimit()
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
optional int32 monthly_backup_limit = 4;public boolean hasDescription()
Description of the backup policy.
optional string description = 5;hasDescription in interface BackupPolicyOrBuilderpublic String getDescription()
Description of the backup policy.
optional string description = 5;getDescription in interface BackupPolicyOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Description of the backup policy.
optional string description = 5;getDescriptionBytes in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setDescription(String value)
Description of the backup policy.
optional string description = 5;value - The description to set.public BackupPolicy.Builder clearDescription()
Description of the backup policy.
optional string description = 5;public BackupPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the backup policy.
optional string description = 5;value - The bytes for description to set.public boolean hasEnabled()
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
optional bool enabled = 6;hasEnabled in interface BackupPolicyOrBuilderpublic boolean getEnabled()
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
optional bool enabled = 6;getEnabled in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setEnabled(boolean value)
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
optional bool enabled = 6;value - The enabled to set.public BackupPolicy.Builder clearEnabled()
If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
optional bool enabled = 6;public boolean hasAssignedVolumeCount()
Output only. The total number of volumes assigned by this backup policy.
optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasAssignedVolumeCount in interface BackupPolicyOrBuilderpublic int getAssignedVolumeCount()
Output only. The total number of volumes assigned by this backup policy.
optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAssignedVolumeCount in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setAssignedVolumeCount(int value)
Output only. The total number of volumes assigned by this backup policy.
optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The assignedVolumeCount to set.public BackupPolicy.Builder clearAssignedVolumeCount()
Output only. The total number of volumes assigned by this backup policy.
optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasCreateTime()
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface BackupPolicyOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BackupPolicy.Builder clearCreateTime()
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the backup policy was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface BackupPolicyOrBuilderpublic int getLabelsCount()
BackupPolicyOrBuilderResource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsCount in interface BackupPolicyOrBuilderpublic boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;containsLabels in interface BackupPolicyOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface BackupPolicyOrBuilderpublic Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsMap in interface BackupPolicyOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsOrDefault in interface BackupPolicyOrBuilderpublic String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;getLabelsOrThrow in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder clearLabels()
public BackupPolicy.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;@Deprecated public Map<String,String> getMutableLabels()
public BackupPolicy.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;public BackupPolicy.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;public int getStateValue()
Output only. The backup policy state.
.google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setStateValue(int value)
Output only. The backup policy state.
.google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public BackupPolicy.State getState()
Output only. The backup policy state.
.google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface BackupPolicyOrBuilderpublic BackupPolicy.Builder setState(BackupPolicy.State value)
Output only. The backup policy state.
.google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public BackupPolicy.Builder clearState()
Output only. The backup policy state.
.google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final BackupPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>public final BackupPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPolicy.Builder>Copyright © 2024 Google LLC. All rights reserved.