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 - PersistentVolumeProtobuf type
google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope| Modifier and Type | Class and Description |
|---|---|
static class |
RestoreConfig.ClusterResourceRestoreScope.Builder
Defines the scope of cluster-scoped resources to restore.
|
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 |
ALL_GROUP_KINDS_FIELD_NUMBER |
static int |
EXCLUDED_GROUP_KINDS_FIELD_NUMBER |
static int |
NO_GROUP_KINDS_FIELD_NUMBER |
static int |
SELECTED_GROUP_KINDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAllGroupKinds()
If True, all valid cluster-scoped resources will be restored.
|
static RestoreConfig.ClusterResourceRestoreScope |
getDefaultInstance() |
RestoreConfig.ClusterResourceRestoreScope |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RestoreConfig.GroupKind |
getExcludedGroupKinds(int index)
A list of cluster-scoped resource group kinds to NOT restore from the
backup.
|
int |
getExcludedGroupKindsCount()
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.GroupKindOrBuilder |
getExcludedGroupKindsOrBuilder(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.
|
boolean |
getNoGroupKinds()
If True, no cluster-scoped resources will be restored.
|
com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> |
getParserForType() |
RestoreConfig.GroupKind |
getSelectedGroupKinds(int index)
A list of cluster-scoped resource group kinds to restore from the
backup.
|
int |
getSelectedGroupKindsCount()
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.GroupKindOrBuilder |
getSelectedGroupKindsOrBuilder(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.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilder() |
static RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype) |
RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilderForType() |
protected RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RestoreConfig.ClusterResourceRestoreScope |
parseDelimitedFrom(InputStream input) |
static RestoreConfig.ClusterResourceRestoreScope |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(byte[] data) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(ByteBuffer data) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(com.google.protobuf.ByteString data) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(InputStream input) |
static RestoreConfig.ClusterResourceRestoreScope |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> |
parser() |
RestoreConfig.ClusterResourceRestoreScope.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, internalGetMapField, 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 SELECTED_GROUP_KINDS_FIELD_NUMBER
public static final int EXCLUDED_GROUP_KINDS_FIELD_NUMBER
public static final int ALL_GROUP_KINDS_FIELD_NUMBER
public static final int NO_GROUP_KINDS_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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;
getSelectedGroupKindsList in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getSelectedGroupKindsOrBuilderList in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getSelectedGroupKindsCount in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getSelectedGroupKinds in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getSelectedGroupKindsOrBuilder in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getExcludedGroupKindsList in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getExcludedGroupKindsOrBuilderList in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getExcludedGroupKindsCount in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getExcludedGroupKinds in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;
getExcludedGroupKindsOrBuilder in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;getAllGroupKinds in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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;getNoGroupKinds in interface RestoreConfig.ClusterResourceRestoreScopeOrBuilderpublic 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 RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input) throws IOException
IOExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RestoreConfig.ClusterResourceRestoreScope parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder()
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
public RestoreConfig.ClusterResourceRestoreScope.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RestoreConfig.ClusterResourceRestoreScope getDefaultInstance()
public static com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> parser()
public com.google.protobuf.Parser<RestoreConfig.ClusterResourceRestoreScope> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.