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.BuilderaddAllTargetGroupKinds(Iterable<? extends RestoreConfig.GroupKind> values)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderaddAllTargetNamespaces(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RestoreConfig.SubstitutionRule.BuilderaddTargetGroupKinds(int index, RestoreConfig.GroupKind value)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderaddTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderaddTargetGroupKinds(RestoreConfig.GroupKind value)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderaddTargetGroupKinds(RestoreConfig.GroupKind.Builder builderForValue)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.BuilderaddTargetGroupKindsBuilder()(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.BuilderaddTargetGroupKindsBuilder(int index)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderaddTargetNamespaces(String value)(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.BuilderaddTargetNamespacesBytes(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.SubstitutionRulebuild()RestoreConfig.SubstitutionRulebuildPartial()RestoreConfig.SubstitutionRule.Builderclear()RestoreConfig.SubstitutionRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RestoreConfig.SubstitutionRule.BuilderclearNewValue()This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RestoreConfig.SubstitutionRule.BuilderclearOriginalValuePattern()(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.BuilderclearTargetGroupKinds()(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuilderclearTargetJsonPath()Required.RestoreConfig.SubstitutionRule.BuilderclearTargetNamespaces()(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.RestoreConfig.SubstitutionRule.Builderclone()RestoreConfig.SubstitutionRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNewValue()This is the new value to set for any fields that pass the filtering and selection criteria.com.google.protobuf.ByteStringgetNewValueBytes()This is the new value to set for any fields that pass the filtering and selection criteria.StringgetOriginalValuePattern()(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.ByteStringgetOriginalValuePatternBytes()(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.GroupKindgetTargetGroupKinds(int index)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKind.BuildergetTargetGroupKindsBuilder(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".intgetTargetGroupKindsCount()(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.GroupKindOrBuildergetTargetGroupKindsOrBuilder(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".StringgetTargetJsonPath()Required.com.google.protobuf.ByteStringgetTargetJsonPathBytes()Required.StringgetTargetNamespaces(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.ByteStringgetTargetNamespacesBytes(int index)(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.intgetTargetNamespacesCount()(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.com.google.protobuf.ProtocolStringListgetTargetNamespacesList()(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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RestoreConfig.SubstitutionRule.BuildermergeFrom(RestoreConfig.SubstitutionRule other)RestoreConfig.SubstitutionRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RestoreConfig.SubstitutionRule.BuildermergeFrom(com.google.protobuf.Message other)RestoreConfig.SubstitutionRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RestoreConfig.SubstitutionRule.BuilderremoveTargetGroupKinds(int index)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RestoreConfig.SubstitutionRule.BuildersetNewValue(String value)This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.BuildersetNewValueBytes(com.google.protobuf.ByteString value)This is the new value to set for any fields that pass the filtering and selection criteria.RestoreConfig.SubstitutionRule.BuildersetOriginalValuePattern(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.BuildersetOriginalValuePatternBytes(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RestoreConfig.SubstitutionRule.BuildersetTargetGroupKinds(int index, RestoreConfig.GroupKind value)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuildersetTargetGroupKinds(int index, RestoreConfig.GroupKind.Builder builderForValue)(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.SubstitutionRule.BuildersetTargetJsonPath(String value)Required.RestoreConfig.SubstitutionRule.BuildersetTargetJsonPathBytes(com.google.protobuf.ByteString value)Required.RestoreConfig.SubstitutionRule.BuildersetTargetNamespaces(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.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clear
public RestoreConfig.SubstitutionRule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.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.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
getDefaultInstanceForType
public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RestoreConfig.SubstitutionRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RestoreConfig.SubstitutionRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RestoreConfig.SubstitutionRule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
setField
public RestoreConfig.SubstitutionRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clearField
public RestoreConfig.SubstitutionRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
clearOneof
public RestoreConfig.SubstitutionRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
addRepeatedField
public RestoreConfig.SubstitutionRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeFrom
public RestoreConfig.SubstitutionRule.Builder mergeFrom(RestoreConfig.SubstitutionRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getTargetNamespacesListin 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:
getTargetNamespacesCountin 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:
getTargetNamespacesin 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:
getTargetNamespacesBytesin 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:
getTargetGroupKindsListin 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:
getTargetGroupKindsCountin 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:
getTargetGroupKindsin 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:
getTargetGroupKindsOrBuilderin 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:
getTargetGroupKindsOrBuilderListin 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:
getTargetJsonPathin 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:
getTargetJsonPathBytesin 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:
getOriginalValuePatternin 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:
getOriginalValuePatternBytesin 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:
getNewValuein 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:
getNewValueBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
mergeUnknownFields
public final RestoreConfig.SubstitutionRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.SubstitutionRule.Builder>
-
-