Class RestoreConfig.ResourceFilter.Builder (0.30.0)

public static final class RestoreConfig.ResourceFilter.Builder extends GeneratedMessageV3.Builder<RestoreConfig.ResourceFilter.Builder> implements RestoreConfig.ResourceFilterOrBuilder

ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

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

public RestoreConfig.ResourceFilter.Builder addAllGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

addAllNamespaces(Iterable<String> values)

public RestoreConfig.ResourceFilter.Builder addAllNamespaces(Iterable<String> values)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
valuesIterable<String>

The namespaces to add.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addGroupKinds(RestoreConfig.GroupKind value)

public RestoreConfig.ResourceFilter.Builder addGroupKinds(RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

addGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

public RestoreConfig.ResourceFilter.Builder addGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

addGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.ResourceFilter.Builder addGroupKinds(int index, RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameters
NameDescription
indexint
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

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

public RestoreConfig.ResourceFilter.Builder addGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameters
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

addGroupKindsBuilder()

public RestoreConfig.GroupKind.Builder addGroupKindsBuilder()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
RestoreConfig.GroupKind.Builder

addGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder addGroupKindsBuilder(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind.Builder

addNamespaces(String value)

public RestoreConfig.ResourceFilter.Builder addNamespaces(String value)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
valueString

The namespaces to add.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addNamespacesBytes(ByteString value)

public RestoreConfig.ResourceFilter.Builder addNamespacesBytes(ByteString value)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
valueByteString

The bytes of the namespaces to add.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.ResourceFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

build()

public RestoreConfig.ResourceFilter build()
Returns
TypeDescription
RestoreConfig.ResourceFilter

buildPartial()

public RestoreConfig.ResourceFilter buildPartial()
Returns
TypeDescription
RestoreConfig.ResourceFilter

clear()

public RestoreConfig.ResourceFilter.Builder clear()
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.ResourceFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

clearGroupKinds()

public RestoreConfig.ResourceFilter.Builder clearGroupKinds()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

clearJsonPath()

public RestoreConfig.ResourceFilter.Builder clearJsonPath()

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

clearNamespaces()

public RestoreConfig.ResourceFilter.Builder clearNamespaces()

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.ResourceFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

clone()

public RestoreConfig.ResourceFilter.Builder clone()
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.ResourceFilter getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig.ResourceFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroupKinds(int index)

public RestoreConfig.GroupKind getGroupKinds(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind

getGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder getGroupKindsBuilder(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind.Builder

getGroupKindsBuilderList()

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

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
List<Builder>

getGroupKindsCount()

public int getGroupKindsCount()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
int

getGroupKindsList()

public List<RestoreConfig.GroupKind> getGroupKindsList()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
List<GroupKind>

getGroupKindsOrBuilder(int index)

public RestoreConfig.GroupKindOrBuilder getGroupKindsOrBuilder(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKindOrBuilder

getGroupKindsOrBuilderList()

public List<? extends RestoreConfig.GroupKindOrBuilder> getGroupKindsOrBuilderList()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>

getJsonPath()

public String getJsonPath()

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Returns
TypeDescription
String

The jsonPath.

getJsonPathBytes()

public ByteString getJsonPathBytes()

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Returns
TypeDescription
ByteString

The bytes for jsonPath.

getNamespaces(int index)

public String getNamespaces(int index)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The namespaces at the given index.

getNamespacesBytes(int index)

public ByteString getNamespacesBytes(int index)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the namespaces at the given index.

getNamespacesCount()

public int getNamespacesCount()

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Returns
TypeDescription
int

The count of namespaces.

getNamespacesList()

public ProtocolStringList getNamespacesList()

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the namespaces.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreConfig.ResourceFilter other)

public RestoreConfig.ResourceFilter.Builder mergeFrom(RestoreConfig.ResourceFilter other)
Parameter
NameDescription
otherRestoreConfig.ResourceFilter
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreConfig.ResourceFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreConfig.ResourceFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.ResourceFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

removeGroupKinds(int index)

public RestoreConfig.ResourceFilter.Builder removeGroupKinds(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.ResourceFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

setGroupKinds(int index, RestoreConfig.GroupKind value)

public RestoreConfig.ResourceFilter.Builder setGroupKinds(int index, RestoreConfig.GroupKind value)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameters
NameDescription
indexint
valueRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

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

public RestoreConfig.ResourceFilter.Builder setGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameters
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

setJsonPath(String value)

public RestoreConfig.ResourceFilter.Builder setJsonPath(String value)

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Parameter
NameDescription
valueString

The jsonPath to set.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

setJsonPathBytes(ByteString value)

public RestoreConfig.ResourceFilter.Builder setJsonPathBytes(ByteString value)

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Parameter
NameDescription
valueByteString

The bytes for jsonPath to set.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

setNamespaces(int index, String value)

public RestoreConfig.ResourceFilter.Builder setNamespaces(int index, String value)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The namespaces to set.

Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

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

public RestoreConfig.ResourceFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.ResourceFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides