Class RestoreConfig.ResourceFilter.Builder (0.40.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)

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

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

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
NameDescription
valueRestoreConfig.GroupKind
Returns
TypeDescription
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
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)

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

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
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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)

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

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
TypeDescription
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
TypeDescription
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
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)

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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)

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

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
TypeDescription
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
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)

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

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

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
NameDescription
indexint
builderForValueRestoreConfig.GroupKind.Builder
Returns
TypeDescription
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
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)

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

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