Package com.google.cloud.gkebackup.v1
Class RestoreConfig.ClusterResourceRestoreScope
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
-
- All Implemented Interfaces:
RestoreConfig.ClusterResourceRestoreScopeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- RestoreConfig
public static final class RestoreConfig.ClusterResourceRestoreScope extends com.google.protobuf.GeneratedMessageV3 implements RestoreConfig.ClusterResourceRestoreScopeOrBuilder
Defines the scope of cluster-scoped resources to restore. Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore "all valid" resources automatically excludes these group kinds. - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - migration.k8s.io/StorageVersionMigration - Node - snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here. - Namespace - PersistentVolume
Protobuf typegoogle.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestoreConfig.ClusterResourceRestoreScope.BuilderDefines the scope of cluster-scoped resources to restore.-
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 intALL_GROUP_KINDS_FIELD_NUMBERstatic intEXCLUDED_GROUP_KINDS_FIELD_NUMBERstatic intNO_GROUP_KINDS_FIELD_NUMBERstatic intSELECTED_GROUP_KINDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAllGroupKinds()If True, all valid cluster-scoped resources will be restored.static RestoreConfig.ClusterResourceRestoreScopegetDefaultInstance()RestoreConfig.ClusterResourceRestoreScopegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()RestoreConfig.GroupKindgetExcludedGroupKinds(int index)A list of cluster-scoped resource group kinds to NOT restore from the backup.intgetExcludedGroupKindsCount()A list of cluster-scoped resource group kinds to NOT restore from the backup.List<RestoreConfig.GroupKind>getExcludedGroupKindsList()A list of cluster-scoped resource group kinds to NOT restore from the backup.RestoreConfig.GroupKindOrBuildergetExcludedGroupKindsOrBuilder(int index)A list of cluster-scoped resource group kinds to NOT restore from the backup.List<? extends RestoreConfig.GroupKindOrBuilder>getExcludedGroupKindsOrBuilderList()A list of cluster-scoped resource group kinds to NOT restore from the backup.booleangetNoGroupKinds()If True, no cluster-scoped resources will be restored.com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope>getParserForType()RestoreConfig.GroupKindgetSelectedGroupKinds(int index)A list of cluster-scoped resource group kinds to restore from the backup.intgetSelectedGroupKindsCount()A list of cluster-scoped resource group kinds to restore from the backup.List<RestoreConfig.GroupKind>getSelectedGroupKindsList()A list of cluster-scoped resource group kinds to restore from the backup.RestoreConfig.GroupKindOrBuildergetSelectedGroupKindsOrBuilder(int index)A list of cluster-scoped resource group kinds to restore from the backup.List<? extends RestoreConfig.GroupKindOrBuilder>getSelectedGroupKindsOrBuilderList()A list of cluster-scoped resource group kinds to restore from the backup.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RestoreConfig.ClusterResourceRestoreScope.BuildernewBuilder()static RestoreConfig.ClusterResourceRestoreScope.BuildernewBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)RestoreConfig.ClusterResourceRestoreScope.BuildernewBuilderForType()protected RestoreConfig.ClusterResourceRestoreScope.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RestoreConfig.ClusterResourceRestoreScopeparseDelimitedFrom(InputStream input)static RestoreConfig.ClusterResourceRestoreScopeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(byte[] data)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(com.google.protobuf.ByteString data)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(com.google.protobuf.CodedInputStream input)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(InputStream input)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(ByteBuffer data)static RestoreConfig.ClusterResourceRestoreScopeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope>parser()RestoreConfig.ClusterResourceRestoreScope.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, internalGetMapField, 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
-
SELECTED_GROUP_KINDS_FIELD_NUMBER
public static final int SELECTED_GROUP_KINDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUDED_GROUP_KINDS_FIELD_NUMBER
public static final int EXCLUDED_GROUP_KINDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALL_GROUP_KINDS_FIELD_NUMBER
public static final int ALL_GROUP_KINDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NO_GROUP_KINDS_FIELD_NUMBER
public static final int NO_GROUP_KINDS_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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSelectedGroupKindsList
public List<RestoreConfig.GroupKind> getSelectedGroupKindsList()
A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;- Specified by:
getSelectedGroupKindsListin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getSelectedGroupKindsOrBuilderList
public List<? extends RestoreConfig.GroupKindOrBuilder> getSelectedGroupKindsOrBuilderList()
A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;- Specified by:
getSelectedGroupKindsOrBuilderListin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getSelectedGroupKindsCount
public int getSelectedGroupKindsCount()
A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;- Specified by:
getSelectedGroupKindsCountin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getSelectedGroupKinds
public RestoreConfig.GroupKind getSelectedGroupKinds(int index)
A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;- Specified by:
getSelectedGroupKindsin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getSelectedGroupKindsOrBuilder
public RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder(int index)
A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;- Specified by:
getSelectedGroupKindsOrBuilderin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getExcludedGroupKindsList
public List<RestoreConfig.GroupKind> getExcludedGroupKindsList()
A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2;- Specified by:
getExcludedGroupKindsListin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getExcludedGroupKindsOrBuilderList
public List<? extends RestoreConfig.GroupKindOrBuilder> getExcludedGroupKindsOrBuilderList()
A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2;- Specified by:
getExcludedGroupKindsOrBuilderListin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getExcludedGroupKindsCount
public int getExcludedGroupKindsCount()
A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2;- Specified by:
getExcludedGroupKindsCountin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getExcludedGroupKinds
public RestoreConfig.GroupKind getExcludedGroupKinds(int index)
A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2;- Specified by:
getExcludedGroupKindsin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getExcludedGroupKindsOrBuilder
public RestoreConfig.GroupKindOrBuilder getExcludedGroupKindsOrBuilder(int index)
A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2;- Specified by:
getExcludedGroupKindsOrBuilderin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder
-
getAllGroupKinds
public boolean getAllGroupKinds()
If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.
bool all_group_kinds = 3;- Specified by:
getAllGroupKindsin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder- Returns:
- The allGroupKinds.
-
getNoGroupKinds
public boolean getNoGroupKinds()
If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.
bool no_group_kinds = 4;- Specified by:
getNoGroupKindsin interfaceRestoreConfig.ClusterResourceRestoreScopeOrBuilder- Returns:
- The noGroupKinds.
-
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 RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder()
-
newBuilder
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
-
toBuilder
public RestoreConfig.ClusterResourceRestoreScope.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RestoreConfig.ClusterResourceRestoreScope getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> parser()
-
getParserForType
public com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-