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 class
BackupPlan.BackupConfig
BackupConfig defines the configuration of Backups created via this BackupPlan.static interface
BackupPlan.BackupConfigOrBuilder
static class
BackupPlan.Builder
Defines the configuration and scheduling for a "line" of Backups.static class
BackupPlan.RetentionPolicy
RetentionPolicy defines a Backup retention policy for a BackupPlan.static interface
BackupPlan.RetentionPolicyOrBuilder
static class
BackupPlan.Schedule
Defines scheduling parameters for automatically creating Backups via this BackupPlan.static interface
BackupPlan.ScheduleOrBuilder
static class
BackupPlan.State
State-
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 int
BACKUP_CONFIG_FIELD_NUMBER
static int
BACKUP_SCHEDULE_FIELD_NUMBER
static int
CLUSTER_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DEACTIVATED_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
ETAG_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PROTECTED_POD_COUNT_FIELD_NUMBER
static int
RETENTION_POLICY_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STATE_REASON_FIELD_NUMBER
static int
UID_FIELD_NUMBER
static int
UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
A set of custom labels supplied by user.boolean
equals(Object obj)
BackupPlan.BackupConfig
getBackupConfig()
Defines the configuration of Backups created via this BackupPlan.BackupPlan.BackupConfigOrBuilder
getBackupConfigOrBuilder()
Defines the configuration of Backups created via this BackupPlan.BackupPlan.Schedule
getBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.BackupPlan.ScheduleOrBuilder
getBackupScheduleOrBuilder()
Defines a schedule for automatic Backup creation via this BackupPlan.String
getCluster()
Required.com.google.protobuf.ByteString
getClusterBytes()
Required.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.boolean
getDeactivated()
This flag indicates whether this BackupPlan has been deactivated.static BackupPlan
getDefaultInstance()
BackupPlan
getDefaultInstanceForType()
String
getDescription()
User specified descriptive string for this BackupPlan.com.google.protobuf.ByteString
getDescriptionBytes()
User specified descriptive string for this BackupPlan.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getEtag()
Output only.com.google.protobuf.ByteString
getEtagBytes()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
A set of custom labels supplied by user.Map<String,String>
getLabelsMap()
A set of custom labels supplied by user.String
getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.String
getLabelsOrThrow(String key)
A set of custom labels supplied by user.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<BackupPlan>
getParserForType()
int
getProtectedPodCount()
Output only.BackupPlan.RetentionPolicy
getRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.BackupPlan.RetentionPolicyOrBuilder
getRetentionPolicyOrBuilder()
RetentionPolicy governs lifecycle of Backups created under this plan.int
getSerializedSize()
BackupPlan.State
getState()
Output only.String
getStateReason()
Output only.com.google.protobuf.ByteString
getStateReasonBytes()
Output only.int
getStateValue()
Output only.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasBackupConfig()
Defines the configuration of Backups created via this BackupPlan.boolean
hasBackupSchedule()
Defines a schedule for automatic Backup creation via this BackupPlan.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasRetentionPolicy()
RetentionPolicy governs lifecycle of Backups created under this plan.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static BackupPlan.Builder
newBuilder()
static BackupPlan.Builder
newBuilder(BackupPlan prototype)
BackupPlan.Builder
newBuilderForType()
protected BackupPlan.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static BackupPlan
parseDelimitedFrom(InputStream input)
static BackupPlan
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackupPlan
parseFrom(byte[] data)
static BackupPlan
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackupPlan
parseFrom(com.google.protobuf.ByteString data)
static BackupPlan
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackupPlan
parseFrom(com.google.protobuf.CodedInputStream input)
static BackupPlan
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackupPlan
parseFrom(InputStream input)
static BackupPlan
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackupPlan
parseFrom(ByteBuffer data)
static BackupPlan
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<BackupPlan>
parser()
BackupPlan.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getUid
in 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:
getUidBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in interfaceBackupPlanOrBuilder
-
getDescription
public String getDescription()
User specified descriptive string for this BackupPlan.
string description = 5;
- Specified by:
getDescription
in interfaceBackupPlanOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
User specified descriptive string for this BackupPlan.
string description = 5;
- Specified by:
getDescriptionBytes
in 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:
getCluster
in 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:
getClusterBytes
in 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:
hasRetentionPolicy
in 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:
getRetentionPolicy
in 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:
getRetentionPolicyOrBuilder
in interfaceBackupPlanOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:BackupPlanOrBuilder
A set of custom labels supplied by user.
map<string, string> labels = 8;
- Specified by:
getLabelsCount
in interfaceBackupPlanOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;
- Specified by:
containsLabels
in interfaceBackupPlanOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceBackupPlanOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A set of custom labels supplied by user.
map<string, string> labels = 8;
- Specified by:
getLabelsMap
in interfaceBackupPlanOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
A set of custom labels supplied by user.
map<string, string> labels = 8;
- Specified by:
getLabelsOrDefault
in interfaceBackupPlanOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A set of custom labels supplied by user.
map<string, string> labels = 8;
- Specified by:
getLabelsOrThrow
in 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:
hasBackupSchedule
in 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:
getBackupSchedule
in 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:
getBackupScheduleOrBuilder
in 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:
getEtag
in 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:
getEtagBytes
in 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:
getDeactivated
in 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:
hasBackupConfig
in 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:
getBackupConfig
in 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:
getBackupConfigOrBuilder
in 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:
getProtectedPodCount
in 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:
getStateValue
in 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:
getState
in 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:
getStateReason
in 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:
getStateReasonBytes
in interfaceBackupPlanOrBuilder
- Returns:
- The bytes for stateReason.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackupPlan.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackupPlan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-