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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RestoreConfig.ClusterResourceRestoreScopeStatic 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()
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder()
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
public static RestoreConfig.ClusterResourceRestoreScope.Builder newBuilder(RestoreConfig.ClusterResourceRestoreScope prototype)
Parameter | |
---|---|
Name | Description |
prototype |
RestoreConfig.ClusterResourceRestoreScope |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope.Builder |
parseDelimitedFrom(InputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ClusterResourceRestoreScope parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<RestoreConfig.ClusterResourceRestoreScope> parser()
Returns | |
---|---|
Type | Description |
Parser<ClusterResourceRestoreScope> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope |
getParserForType()
public Parser<RestoreConfig.ClusterResourceRestoreScope> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ClusterResourceRestoreScope> |
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 |
Returns | |
---|---|
Type | Description |
RestoreConfig.GroupKind |
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;
Returns | |
---|---|
Type | Description |
List<GroupKind> |
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 |
Returns | |
---|---|
Type | Description |
RestoreConfig.GroupKindOrBuilder |
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 |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RestoreConfig.ClusterResourceRestoreScope.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public RestoreConfig.ClusterResourceRestoreScope.Builder toBuilder()
Returns | |
---|---|
Type | Description |
RestoreConfig.ClusterResourceRestoreScope.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |