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.
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllExcludedGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)
public RestoreConfig.ClusterResourceRestoreScope.Builder addAllExcludedGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)
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;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>
|
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>
|
addExcludedGroupKinds(RestoreConfig.GroupKind value)
public RestoreConfig.ClusterResourceRestoreScope.Builder addExcludedGroupKinds(RestoreConfig.GroupKind value)
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;
addExcludedGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)
public RestoreConfig.ClusterResourceRestoreScope.Builder addExcludedGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)
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;
addExcludedGroupKinds(int index, RestoreConfig.GroupKind value)
public RestoreConfig.ClusterResourceRestoreScope.Builder addExcludedGroupKinds(int index, RestoreConfig.GroupKind value)
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;
addExcludedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
public RestoreConfig.ClusterResourceRestoreScope.Builder addExcludedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
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;
addExcludedGroupKindsBuilder()
public RestoreConfig.GroupKind.Builder addExcludedGroupKindsBuilder()
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;
addExcludedGroupKindsBuilder(int index)
public RestoreConfig.GroupKind.Builder addExcludedGroupKindsBuilder(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;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RestoreConfig.ClusterResourceRestoreScope.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public RestoreConfig.ClusterResourceRestoreScope build()
buildPartial()
public RestoreConfig.ClusterResourceRestoreScope buildPartial()
clear()
public RestoreConfig.ClusterResourceRestoreScope.Builder clear()
Overrides
clearAllGroupKinds()
public RestoreConfig.ClusterResourceRestoreScope.Builder clearAllGroupKinds()
If True, all valid cluster-scoped resources will be restored.
Mutually exclusive to any other field in the message.
bool all_group_kinds = 3;
clearExcludedGroupKinds()
public RestoreConfig.ClusterResourceRestoreScope.Builder clearExcludedGroupKinds()
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;
clearField(Descriptors.FieldDescriptor field)
public RestoreConfig.ClusterResourceRestoreScope.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNoGroupKinds()
public RestoreConfig.ClusterResourceRestoreScope.Builder clearNoGroupKinds()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public RestoreConfig.ClusterResourceRestoreScope.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
clone()
public RestoreConfig.ClusterResourceRestoreScope.Builder clone()
Overrides
getAllGroupKinds()
public 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;
Returns |
---|
Type | Description |
boolean | The allGroupKinds.
|
getDefaultInstanceForType()
public RestoreConfig.ClusterResourceRestoreScope getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExcludedGroupKinds(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
|
getExcludedGroupKindsBuilder(int index)
public RestoreConfig.GroupKind.Builder getExcludedGroupKindsBuilder(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;
Parameter |
---|
Name | Description |
index | int
|
getExcludedGroupKindsBuilderList()
public List<RestoreConfig.GroupKind.Builder> getExcludedGroupKindsBuilderList()
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()
public 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;
Returns |
---|
Type | Description |
int | |
getExcludedGroupKindsList()
public 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;
getExcludedGroupKindsOrBuilder(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
|
getExcludedGroupKindsOrBuilderList()
public 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;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> | |
getNoGroupKinds()
public 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;
Returns |
---|
Type | Description |
boolean | The noGroupKinds.
|
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.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.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.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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RestoreConfig.ClusterResourceRestoreScope other)
public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(RestoreConfig.ClusterResourceRestoreScope other)
public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RestoreConfig.ClusterResourceRestoreScope.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestoreConfig.ClusterResourceRestoreScope.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeExcludedGroupKinds(int index)
public RestoreConfig.ClusterResourceRestoreScope.Builder removeExcludedGroupKinds(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;
Parameter |
---|
Name | Description |
index | int
|
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
Parameter |
---|
Name | Description |
index | int
|
setAllGroupKinds(boolean value)
public RestoreConfig.ClusterResourceRestoreScope.Builder setAllGroupKinds(boolean value)
If True, all valid cluster-scoped resources will be restored.
Mutually exclusive to any other field in the message.
bool all_group_kinds = 3;
Parameter |
---|
Name | Description |
value | boolean
The allGroupKinds to set.
|
setExcludedGroupKinds(int index, RestoreConfig.GroupKind value)
public RestoreConfig.ClusterResourceRestoreScope.Builder setExcludedGroupKinds(int index, RestoreConfig.GroupKind value)
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;
setExcludedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
public RestoreConfig.ClusterResourceRestoreScope.Builder setExcludedGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public RestoreConfig.ClusterResourceRestoreScope.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNoGroupKinds(boolean value)
public RestoreConfig.ClusterResourceRestoreScope.Builder setNoGroupKinds(boolean value)
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;
Parameter |
---|
Name | Description |
value | boolean
The noGroupKinds to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RestoreConfig.ClusterResourceRestoreScope.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
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.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final RestoreConfig.ClusterResourceRestoreScope.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides