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.
Protobuf type google.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
ALL_GROUP_KINDS_FIELD_NUMBER
public static final int ALL_GROUP_KINDS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EXCLUDED_GROUP_KINDS_FIELD_NUMBER
public static final int EXCLUDED_GROUP_KINDS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NO_GROUP_KINDS_FIELD_NUMBER
public static final int NO_GROUP_KINDS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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
getAllGroupKinds()
public boolean getAllGroupKinds()
Optional. If True, all valid cluster-scoped resources will be restored.
Mutually exclusive to any other field in the message.
bool all_group_kinds = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The allGroupKinds.
|
getDefaultInstanceForType()
public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
getExcludedGroupKinds(int index)
public RestoreConfig.GroupKind getExcludedGroupKinds(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getExcludedGroupKindsCount()
public int getExcludedGroupKindsCount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getExcludedGroupKindsList()
public List<RestoreConfig.GroupKind> getExcludedGroupKindsList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getExcludedGroupKindsOrBuilder(int index)
public RestoreConfig.GroupKindOrBuilder getExcludedGroupKindsOrBuilder(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getExcludedGroupKindsOrBuilderList()
public List<? extends RestoreConfig.GroupKindOrBuilder> getExcludedGroupKindsOrBuilderList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> |
|
getNoGroupKinds()
public boolean getNoGroupKinds()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The noGroupKinds.
|
getParserForType()
public Parser<RestoreConfig.ClusterResourceRestoreScope> getParserForType()
Overrides
getSelectedGroupKinds(int index)
public RestoreConfig.GroupKind getSelectedGroupKinds(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getSelectedGroupKindsCount()
public int getSelectedGroupKindsCount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getSelectedGroupKindsList()
public List<RestoreConfig.GroupKind> getSelectedGroupKindsList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getSelectedGroupKindsOrBuilder(int index)
public RestoreConfig.GroupKindOrBuilder getSelectedGroupKindsOrBuilder(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getSelectedGroupKindsOrBuilderList()
public List<? extends RestoreConfig.GroupKindOrBuilder> getSelectedGroupKindsOrBuilderList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
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)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RestoreConfig.ClusterResourceRestoreScope.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides