public final class BackupPolicy extends com.google.protobuf.GeneratedMessageV3 implements BackupPolicyOrBuilder
Backup Policy.Protobuf type
google.cloud.netapp.v1.BackupPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
BackupPolicy.Builder
Backup Policy.
|
static class |
BackupPolicy.State
Protobuf enum
google.cloud.netapp.v1.BackupPolicy.State |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ASSIGNED_VOLUME_COUNT_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DAILY_BACKUP_LIMIT_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ENABLED_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MONTHLY_BACKUP_LIMIT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
WEEKLY_BACKUP_LIMIT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata.
|
boolean |
equals(Object obj) |
int |
getAssignedVolumeCount()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
int |
getDailyBackupLimit()
Number of daily backups to keep.
|
static BackupPolicy |
getDefaultInstance() |
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() |
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.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<BackupPolicy> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
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) |
boolean |
isInitialized() |
static BackupPolicy.Builder |
newBuilder() |
static BackupPolicy.Builder |
newBuilder(BackupPolicy prototype) |
BackupPolicy.Builder |
newBuilderForType() |
protected BackupPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BackupPolicy |
parseDelimitedFrom(InputStream input) |
static BackupPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BackupPolicy |
parseFrom(byte[] data) |
static BackupPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BackupPolicy |
parseFrom(ByteBuffer data) |
static BackupPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BackupPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static BackupPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BackupPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BackupPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BackupPolicy |
parseFrom(InputStream input) |
static BackupPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BackupPolicy> |
parser() |
BackupPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DAILY_BACKUP_LIMIT_FIELD_NUMBER
public static final int WEEKLY_BACKUP_LIMIT_FIELD_NUMBER
public static final int MONTHLY_BACKUP_LIMIT_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
public static final int ASSIGNED_VOLUME_COUNT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BackupPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BackupPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static BackupPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BackupPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BackupPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BackupPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BackupPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BackupPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BackupPolicy.Builder newBuilder()
public static BackupPolicy.Builder newBuilder(BackupPolicy prototype)
public BackupPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BackupPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BackupPolicy getDefaultInstance()
public static com.google.protobuf.Parser<BackupPolicy> parser()
public com.google.protobuf.Parser<BackupPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BackupPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.