Package com.google.cloud.gkebackup.v1
Class RestoreConfig.ResourceFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder>
com.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter.Builder
- All Implemented Interfaces:
RestoreConfig.ResourceFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RestoreConfig.ResourceFilter
public static final class RestoreConfig.ResourceFilter.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values) Optional.addAllNamespaces(Iterable<String> values) Optional.addGroupKinds(int index, RestoreConfig.GroupKind value) Optional.addGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional.Optional.addGroupKinds(RestoreConfig.GroupKind.Builder builderForValue) Optional.Optional.addGroupKindsBuilder(int index) Optional.addNamespaces(String value) Optional.addNamespacesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGroupKinds(int index) Optional.getGroupKindsBuilder(int index) Optional.Optional.intOptional.Optional.getGroupKindsOrBuilder(int index) Optional.List<? extends RestoreConfig.GroupKindOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.getNamespaces(int index) Optional.com.google.protobuf.ByteStringgetNamespacesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeGroupKinds(int index) Optional.setGroupKinds(int index, RestoreConfig.GroupKind value) Optional.setGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue) Optional.setJsonPath(String value) Optional.setJsonPathBytes(com.google.protobuf.ByteString value) Optional.setNamespaces(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.ResourceFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RestoreConfig.ResourceFilter.Builder>
-
mergeFrom
public RestoreConfig.ResourceFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.ResourceFilter.Builder>- Throws:
IOException
-
getNamespacesList
public com.google.protobuf.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];- Specified by:
getNamespacesListin interfaceRestoreConfig.ResourceFilterOrBuilder- Returns:
- A list containing the namespaces.
-
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];- Specified by:
getNamespacesCountin interfaceRestoreConfig.ResourceFilterOrBuilder- Returns:
- The count of namespaces.
-
getNamespaces
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];- Specified by:
getNamespacesin interfaceRestoreConfig.ResourceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The namespaces at the given index.
-
getNamespacesBytes
public com.google.protobuf.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];- Specified by:
getNamespacesBytesin interfaceRestoreConfig.ResourceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaces at the given index.
-
setNamespaces
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:
index- The index to set the value at.value- The namespaces to set.- Returns:
- This builder for chaining.
-
addNamespaces
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:
value- The namespaces to add.- Returns:
- This builder for chaining.
-
addAllNamespaces
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:
values- The namespaces to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addNamespacesBytes
public RestoreConfig.ResourceFilter.Builder addNamespacesBytes(com.google.protobuf.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];- Parameters:
value- The bytes of the namespaces to add.- Returns:
- This builder for chaining.
-
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];- Specified by:
getGroupKindsListin interfaceRestoreConfig.ResourceFilterOrBuilder
-
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];- Specified by:
getGroupKindsCountin interfaceRestoreConfig.ResourceFilterOrBuilder
-
getGroupKinds
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];- Specified by:
getGroupKindsin interfaceRestoreConfig.ResourceFilterOrBuilder
-
setGroupKinds
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]; -
setGroupKinds
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]; -
addGroupKinds
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]; -
addGroupKinds
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]; -
addGroupKinds
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]; -
addGroupKinds
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]; -
addAllGroupKinds
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]; -
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]; -
removeGroupKinds
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]; -
getGroupKindsBuilder
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]; -
getGroupKindsOrBuilder
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];- Specified by:
getGroupKindsOrBuilderin interfaceRestoreConfig.ResourceFilterOrBuilder
-
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];- Specified by:
getGroupKindsOrBuilderListin interfaceRestoreConfig.ResourceFilterOrBuilder
-
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]; -
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]; -
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]; -
getJsonPath
Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) 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];- Specified by:
getJsonPathin interfaceRestoreConfig.ResourceFilterOrBuilder- Returns:
- The jsonPath.
-
getJsonPathBytes
public com.google.protobuf.ByteString getJsonPathBytes()Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) 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];- Specified by:
getJsonPathBytesin interfaceRestoreConfig.ResourceFilterOrBuilder- Returns:
- The bytes for jsonPath.
-
setJsonPath
Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) 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];- Parameters:
value- The jsonPath to set.- Returns:
- This builder for chaining.
-
clearJsonPath
Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) 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:
- This builder for chaining.
-
setJsonPathBytes
Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) 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];- Parameters:
value- The bytes for jsonPath to set.- Returns:
- This builder for chaining.
-