Package com.google.cloud.gkebackup.v1
Class RestoreConfig.SubstitutionRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
- com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder
-
- All Implemented Interfaces:
RestoreConfig.SubstitutionRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RestoreConfig.SubstitutionRule
public static final class RestoreConfig.SubstitutionRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder> implements RestoreConfig.SubstitutionRuleOrBuilder
A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to substitution) and substitution logic.
Protobuf typegoogle.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RestoreConfig.SubstitutionRule.Builder
addAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
addAllTargetNamespaces(Iterable<String> values)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RestoreConfig.SubstitutionRule.Builder
addTargetGroupKinds(int index, RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
addTargetGroupKinds(RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.Builder
addTargetGroupKindsBuilder()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.Builder
addTargetGroupKindsBuilder(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
addTargetNamespaces(String value)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.Builder
addTargetNamespacesBytes(com.google.protobuf.ByteString value)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule
build()
RestoreConfig.SubstitutionRule
buildPartial()
RestoreConfig.SubstitutionRule.Builder
clear()
RestoreConfig.SubstitutionRule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RestoreConfig.SubstitutionRule.Builder
clearNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RestoreConfig.SubstitutionRule.Builder
clearOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).RestoreConfig.SubstitutionRule.Builder
clearTargetGroupKinds()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
clearTargetJsonPath()
Required.RestoreConfig.SubstitutionRule.Builder
clearTargetNamespaces()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.Builder
clone()
RestoreConfig.SubstitutionRule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria.com.google.protobuf.ByteString
getNewValueBytes()
This is the new value to set for any fields that pass the filtering and selection criteria.String
getOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).com.google.protobuf.ByteString
getOriginalValuePatternBytes()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).RestoreConfig.GroupKind
getTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.Builder
getTargetGroupKindsBuilder(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".List<RestoreConfig.GroupKind.Builder>
getTargetGroupKindsBuilderList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".int
getTargetGroupKindsCount()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".List<RestoreConfig.GroupKind>
getTargetGroupKindsList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKindOrBuilder
getTargetGroupKindsOrBuilder(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".List<? extends RestoreConfig.GroupKindOrBuilder>
getTargetGroupKindsOrBuilderList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".String
getTargetJsonPath()
Required.com.google.protobuf.ByteString
getTargetJsonPathBytes()
Required.String
getTargetNamespaces(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.com.google.protobuf.ByteString
getTargetNamespacesBytes(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.int
getTargetNamespacesCount()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.com.google.protobuf.ProtocolStringList
getTargetNamespacesList()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RestoreConfig.SubstitutionRule.Builder
mergeFrom(RestoreConfig.SubstitutionRule other)
RestoreConfig.SubstitutionRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RestoreConfig.SubstitutionRule.Builder
mergeFrom(com.google.protobuf.Message other)
RestoreConfig.SubstitutionRule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RestoreConfig.SubstitutionRule.Builder
removeTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RestoreConfig.SubstitutionRule.Builder
setNewValue(String value)
This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.Builder
setNewValueBytes(com.google.protobuf.ByteString value)
This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.Builder
setOriginalValuePattern(String value)
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).RestoreConfig.SubstitutionRule.Builder
setOriginalValuePatternBytes(com.google.protobuf.ByteString value)
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).RestoreConfig.SubstitutionRule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RestoreConfig.SubstitutionRule.Builder
setTargetGroupKinds(int index, RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.Builder
setTargetJsonPath(String value)
Required.RestoreConfig.SubstitutionRule.Builder
setTargetJsonPathBytes(com.google.protobuf.ByteString value)
Required.RestoreConfig.SubstitutionRule.Builder
setTargetNamespaces(int index, String value)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clear
public RestoreConfig.SubstitutionRule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
getDefaultInstanceForType
public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RestoreConfig.SubstitutionRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RestoreConfig.SubstitutionRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RestoreConfig.SubstitutionRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
setField
public RestoreConfig.SubstitutionRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clearField
public RestoreConfig.SubstitutionRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clearOneof
public RestoreConfig.SubstitutionRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
setRepeatedField
public RestoreConfig.SubstitutionRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
addRepeatedField
public RestoreConfig.SubstitutionRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(RestoreConfig.SubstitutionRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
- Throws:
IOException
-
getTargetNamespacesList
public com.google.protobuf.ProtocolStringList getTargetNamespacesList()
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Specified by:
getTargetNamespacesList
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- A list containing the targetNamespaces.
-
getTargetNamespacesCount
public int getTargetNamespacesCount()
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Specified by:
getTargetNamespacesCount
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The count of targetNamespaces.
-
getTargetNamespaces
public String getTargetNamespaces(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Specified by:
getTargetNamespaces
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetNamespaces at the given index.
-
getTargetNamespacesBytes
public com.google.protobuf.ByteString getTargetNamespacesBytes(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Specified by:
getTargetNamespacesBytes
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetNamespaces at the given index.
-
setTargetNamespaces
public RestoreConfig.SubstitutionRule.Builder setTargetNamespaces(int index, String value)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
index
- The index to set the value at.value
- The targetNamespaces to set.- Returns:
- This builder for chaining.
-
addTargetNamespaces
public RestoreConfig.SubstitutionRule.Builder addTargetNamespaces(String value)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
value
- The targetNamespaces to add.- Returns:
- This builder for chaining.
-
addAllTargetNamespaces
public RestoreConfig.SubstitutionRule.Builder addAllTargetNamespaces(Iterable<String> values)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
values
- The targetNamespaces to add.- Returns:
- This builder for chaining.
-
clearTargetNamespaces
public RestoreConfig.SubstitutionRule.Builder clearTargetNamespaces()
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Returns:
- This builder for chaining.
-
addTargetNamespacesBytes
public RestoreConfig.SubstitutionRule.Builder addTargetNamespacesBytes(com.google.protobuf.ByteString value)
(Filtering parameter) Any resource subject to substitution 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 substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
value
- The bytes of the targetNamespaces to add.- Returns:
- This builder for chaining.
-
getTargetGroupKindsList
public List<RestoreConfig.GroupKind> getTargetGroupKindsList()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
- Specified by:
getTargetGroupKindsList
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKindsCount
public int getTargetGroupKindsCount()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
- Specified by:
getTargetGroupKindsCount
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKinds
public RestoreConfig.GroupKind getTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
- Specified by:
getTargetGroupKinds
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
setTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
setTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder setTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind value)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addAllTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder addAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
clearTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder clearTargetGroupKinds()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
removeTargetGroupKinds
public RestoreConfig.SubstitutionRule.Builder removeTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsBuilder
public RestoreConfig.GroupKind.Builder getTargetGroupKindsBuilder(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsOrBuilder
public RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
- Specified by:
getTargetGroupKindsOrBuilder
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
getTargetGroupKindsOrBuilderList
public List<? extends RestoreConfig.GroupKindOrBuilder> getTargetGroupKindsOrBuilderList()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
- Specified by:
getTargetGroupKindsOrBuilderList
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
-
addTargetGroupKindsBuilder
public RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
addTargetGroupKindsBuilder
public RestoreConfig.GroupKind.Builder addTargetGroupKindsBuilder(int index)
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsBuilderList
public List<RestoreConfig.GroupKind.Builder> getTargetGroupKindsBuilderList()
(Filtering parameter) Any resource subject to substitution 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 substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetJsonPath
public String getTargetJsonPath()
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetJsonPath
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The targetJsonPath.
-
getTargetJsonPathBytes
public com.google.protobuf.ByteString getTargetJsonPathBytes()
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetJsonPathBytes
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The bytes for targetJsonPath.
-
setTargetJsonPath
public RestoreConfig.SubstitutionRule.Builder setTargetJsonPath(String value)
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The targetJsonPath to set.- Returns:
- This builder for chaining.
-
clearTargetJsonPath
public RestoreConfig.SubstitutionRule.Builder clearTargetJsonPath()
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setTargetJsonPathBytes
public RestoreConfig.SubstitutionRule.Builder setTargetJsonPathBytes(com.google.protobuf.ByteString value)
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for targetJsonPath to set.- Returns:
- This builder for chaining.
-
getOriginalValuePattern
public String getOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Specified by:
getOriginalValuePattern
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The originalValuePattern.
-
getOriginalValuePatternBytes
public com.google.protobuf.ByteString getOriginalValuePatternBytes()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Specified by:
getOriginalValuePatternBytes
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The bytes for originalValuePattern.
-
setOriginalValuePattern
public RestoreConfig.SubstitutionRule.Builder setOriginalValuePattern(String value)
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Parameters:
value
- The originalValuePattern to set.- Returns:
- This builder for chaining.
-
clearOriginalValuePattern
public RestoreConfig.SubstitutionRule.Builder clearOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Returns:
- This builder for chaining.
-
setOriginalValuePatternBytes
public RestoreConfig.SubstitutionRule.Builder setOriginalValuePatternBytes(com.google.protobuf.ByteString value)
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Parameters:
value
- The bytes for originalValuePattern to set.- Returns:
- This builder for chaining.
-
getNewValue
public String getNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Specified by:
getNewValue
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The newValue.
-
getNewValueBytes
public com.google.protobuf.ByteString getNewValueBytes()
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Specified by:
getNewValueBytes
in interfaceRestoreConfig.SubstitutionRuleOrBuilder
- Returns:
- The bytes for newValue.
-
setNewValue
public RestoreConfig.SubstitutionRule.Builder setNewValue(String value)
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Parameters:
value
- The newValue to set.- Returns:
- This builder for chaining.
-
clearNewValue
public RestoreConfig.SubstitutionRule.Builder clearNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Returns:
- This builder for chaining.
-
setNewValueBytes
public RestoreConfig.SubstitutionRule.Builder setNewValueBytes(com.google.protobuf.ByteString value)
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Parameters:
value
- The bytes for newValue to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RestoreConfig.SubstitutionRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeUnknownFields
public final RestoreConfig.SubstitutionRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
-