Class RestoreConfig.ClusterResourceRestoreScope.Builder (0.16.0)

public static final class RestoreConfig.ClusterResourceRestoreScope.Builder extends GeneratedMessageV3.Builder<RestoreConfig.ClusterResourceRestoreScope.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSelectedGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)

public RestoreConfig.ClusterResourceRestoreScope.Builder addAllSelectedGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)

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
values Iterable<? extends com.google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind>
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.ClusterResourceRestoreScope.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

addSelectedGroupKinds(RestoreConfig.GroupKind value)

public RestoreConfig.ClusterResourceRestoreScope.Builder addSelectedGroupKinds(RestoreConfig.GroupKind value)

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
value RestoreConfig.GroupKind
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

addSelectedGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.ClusterResourceRestoreScope.Builder addSelectedGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

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
builderForValue RestoreConfig.GroupKind.Builder
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

addSelectedGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.ClusterResourceRestoreScope.Builder addSelectedGroupKinds(int index, RestoreConfig.GroupKind value)

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;

Parameters
Name Description
index int
value RestoreConfig.GroupKind
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

addSelectedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.ClusterResourceRestoreScope.Builder addSelectedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue RestoreConfig.GroupKind.Builder
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

addSelectedGroupKindsBuilder()

public RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder()

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
RestoreConfig.GroupKind.Builder

addSelectedGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder addSelectedGroupKindsBuilder(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.Builder

build()

public RestoreConfig.ClusterResourceRestoreScope build()
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope

buildPartial()

public RestoreConfig.ClusterResourceRestoreScope buildPartial()
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope

clear()

public RestoreConfig.ClusterResourceRestoreScope.Builder clear()
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.ClusterResourceRestoreScope.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.ClusterResourceRestoreScope.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

clearSelectedGroupKinds()

public RestoreConfig.ClusterResourceRestoreScope.Builder clearSelectedGroupKinds()

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
RestoreConfig.ClusterResourceRestoreScope.Builder

clone()

public RestoreConfig.ClusterResourceRestoreScope.Builder clone()
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
RestoreConfig.GroupKind

getSelectedGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder getSelectedGroupKindsBuilder(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.Builder

getSelectedGroupKindsBuilderList()

public List<RestoreConfig.GroupKind.Builder> getSelectedGroupKindsBuilderList()

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<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.ClusterResourceRestoreScope other)

public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(RestoreConfig.ClusterResourceRestoreScope other)
Parameter
Name Description
other RestoreConfig.ClusterResourceRestoreScope
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.ClusterResourceRestoreScope.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

removeSelectedGroupKinds(int index)

public RestoreConfig.ClusterResourceRestoreScope.Builder removeSelectedGroupKinds(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.ClusterResourceRestoreScope.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.ClusterResourceRestoreScope.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreConfig.ClusterResourceRestoreScope.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides

setSelectedGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.ClusterResourceRestoreScope.Builder setSelectedGroupKinds(int index, RestoreConfig.GroupKind value)

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;

Parameters
Name Description
index int
value RestoreConfig.GroupKind
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

setSelectedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.ClusterResourceRestoreScope.Builder setSelectedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue RestoreConfig.GroupKind.Builder
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.ClusterResourceRestoreScope.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreConfig.ClusterResourceRestoreScope.Builder
Overrides