public static final class RestoreConfig.ClusterResourceRestoreScope extends 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 type
google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
SELECTED_GROUP_KINDS_FIELD_NUMBER
public static final int SELECTED_GROUP_KINDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RestoreConfig.ClusterResourceRestoreScope getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder()
newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(CodedInputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RestoreConfig.ClusterResourceRestoreScope> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
getParserForType()
public Parser<RestoreConfig.ClusterResourceRestoreScope> getParserForType()
Overrides
getSelectedGroupKinds(int index)
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.events.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
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.events.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Returns |
---|
Type | Description |
int | |
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.events.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
getSelectedGroupKindsOrBuilder(int index)
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.events.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
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.events.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Returns |
---|
Type | Description |
List<? extends com.google.events.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RestoreConfig.ClusterResourceRestoreScope.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides