Class RestoreConfig.ResourceFilter.Builder (0.41.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
Type Description
Descriptor

Methods

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

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind>
Returns
Type Description
RestoreConfig.ResourceFilter.Builder

addAllNamespaces(Iterable<String> values)

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

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The namespaces to add.

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addGroupKinds(RestoreConfig.GroupKind value)

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RestoreConfig.GroupKind
Returns
Type Description
RestoreConfig.ResourceFilter.Builder

addGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RestoreConfig.GroupKind.Builder
Returns
Type Description
RestoreConfig.ResourceFilter.Builder

addGroupKinds(int index, RestoreConfig.GroupKind value)

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

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

addGroupKindsBuilder()

public RestoreConfig.GroupKind.Builder addGroupKindsBuilder()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.GroupKind.Builder

addGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder addGroupKindsBuilder(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.GroupKind.Builder

addNamespaces(String value)

public RestoreConfig.ResourceFilter.Builder addNamespaces(String value)

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The namespaces to add.

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addNamespacesBytes(ByteString value)

public RestoreConfig.ResourceFilter.Builder addNamespacesBytes(ByteString value)

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the namespaces to add.

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGroupKinds()

public RestoreConfig.ResourceFilter.Builder clearGroupKinds()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

clearJsonPath()

public RestoreConfig.ResourceFilter.Builder clearJsonPath()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

clearNamespaces()

public RestoreConfig.ResourceFilter.Builder clearNamespaces()

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroupKinds(int index)

public RestoreConfig.GroupKind getGroupKinds(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.GroupKind

getGroupKindsBuilder(int index)

public RestoreConfig.GroupKind.Builder getGroupKindsBuilder(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.GroupKind.Builder

getGroupKindsBuilderList()

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getGroupKindsCount()

public int getGroupKindsCount()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getGroupKindsList()

public List<RestoreConfig.GroupKind> getGroupKindsList()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<GroupKind>

getGroupKindsOrBuilder(int index)

public RestoreConfig.GroupKindOrBuilder getGroupKindsOrBuilder(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.GroupKindOrBuilder

getGroupKindsOrBuilderList()

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

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

getJsonPath()

public String getJsonPath()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The jsonPath.

getJsonPathBytes()

public ByteString getJsonPathBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for jsonPath.

getNamespaces(int index)

public String getNamespaces(int index)

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The namespaces at the given index.

getNamespacesBytes(int index)

public ByteString getNamespacesBytes(int index)

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the namespaces at the given index.

getNamespacesCount()

public int getNamespacesCount()

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of namespaces.

getNamespacesList()

public ProtocolStringList getNamespacesList()

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the namespaces.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.ResourceFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGroupKinds(int index)

public RestoreConfig.ResourceFilter.Builder removeGroupKinds(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.ResourceFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroupKinds(int index, RestoreConfig.GroupKind value)

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

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

setJsonPath(String value)

public RestoreConfig.ResourceFilter.Builder setJsonPath(String value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The jsonPath to set.

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

setJsonPathBytes(ByteString value)

public RestoreConfig.ResourceFilter.Builder setJsonPathBytes(ByteString value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for jsonPath to set.

Returns
Type Description
RestoreConfig.ResourceFilter.Builder

This builder for chaining.

setNamespaces(int index, String value)

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

Optional. (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).

repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The namespaces to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RestoreConfig.ResourceFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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