Package com.google.cloud.gkebackup.v1
Class BackupPlan
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkebackup.v1.BackupPlan
-
- All Implemented Interfaces:
BackupPlanOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BackupPlan extends com.google.protobuf.GeneratedMessageV3 implements BackupPlanOrBuilder
Defines the configuration and scheduling for a "line" of Backups.
Protobuf typegoogle.cloud.gkebackup.v1.BackupPlan- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackupPlan.BackupConfigBackupConfig defines the configuration of Backups created via this BackupPlan.static interfaceBackupPlan.BackupConfigOrBuilderstatic classBackupPlan.BuilderDefines the configuration and scheduling for a "line" of Backups.static classBackupPlan.RetentionPolicyRetentionPolicy defines a Backup retention policy for a BackupPlan.static interfaceBackupPlan.RetentionPolicyOrBuilderstatic classBackupPlan.ScheduleDefines scheduling parameters for automatically creating Backups via this BackupPlan.static interfaceBackupPlan.ScheduleOrBuilderstatic classBackupPlan.StateState-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intBACKUP_CONFIG_FIELD_NUMBERstatic intBACKUP_SCHEDULE_FIELD_NUMBERstatic intCLUSTER_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDEACTIVATED_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intETAG_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPROTECTED_POD_COUNT_FIELD_NUMBERstatic intRETENTION_POLICY_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTATE_REASON_FIELD_NUMBERstatic intUID_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)A set of custom labels supplied by user.booleanequals(Object obj)BackupPlan.BackupConfiggetBackupConfig()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.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.TimestampOrBuildergetCreateTimeOrBuilder()Output only.booleangetDeactivated()This flag indicates whether this BackupPlan has been deactivated.static BackupPlangetDefaultInstance()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()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.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<BackupPlan>getParserForType()intgetProtectedPodCount()Output only.BackupPlan.RetentionPolicygetRetentionPolicy()RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.RetentionPolicyOrBuildergetRetentionPolicyOrBuilder()RetentionPolicy governs lifecycle of Backups created under this plan.intgetSerializedSize()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.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.inthashCode()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)booleanisInitialized()static BackupPlan.BuildernewBuilder()static BackupPlan.BuildernewBuilder(BackupPlan prototype)BackupPlan.BuildernewBuilderForType()protected BackupPlan.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BackupPlanparseDelimitedFrom(InputStream input)static BackupPlanparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackupPlanparseFrom(byte[] data)static BackupPlanparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackupPlanparseFrom(com.google.protobuf.ByteString data)static BackupPlanparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackupPlanparseFrom(com.google.protobuf.CodedInputStream input)static BackupPlanparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackupPlanparseFrom(InputStream input)static BackupPlanparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackupPlanparseFrom(ByteBuffer data)static BackupPlanparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BackupPlan>parser()BackupPlan.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETENTION_POLICY_FIELD_NUMBER
public static final int RETENTION_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BACKUP_SCHEDULE_FIELD_NUMBER
public static final int BACKUP_SCHEDULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEACTIVATED_FIELD_NUMBER
public static final int DEACTIVATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BACKUP_CONFIG_FIELD_NUMBER
public static final int BACKUP_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTECTED_POD_COUNT_FIELD_NUMBER
public static final int PROTECTED_POD_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_REASON_FIELD_NUMBER
public static final int STATE_REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BackupPlan parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackupPlan parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackupPlan parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackupPlan parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackupPlan parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BackupPlan parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackupPlan parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BackupPlan.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BackupPlan.Builder newBuilder()
-
newBuilder
public static BackupPlan.Builder newBuilder(BackupPlan prototype)
-
toBuilder
public BackupPlan.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackupPlan.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BackupPlan getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BackupPlan> parser()
-
getParserForType
public com.google.protobuf.Parser<BackupPlan> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackupPlan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-