Package com.google.cloud.gkebackup.v1
Class RestoreConfig.SubstitutionRule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule
-
- All Implemented Interfaces:
RestoreConfig.SubstitutionRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- RestoreConfig
public static final class RestoreConfig.SubstitutionRule extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestoreConfig.SubstitutionRule.BuilderA transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intNEW_VALUE_FIELD_NUMBERstatic intORIGINAL_VALUE_PATTERN_FIELD_NUMBERstatic intTARGET_GROUP_KINDS_FIELD_NUMBERstatic intTARGET_JSON_PATH_FIELD_NUMBERstatic intTARGET_NAMESPACES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RestoreConfig.SubstitutionRulegetDefaultInstance()RestoreConfig.SubstitutionRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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).com.google.protobuf.Parser<RestoreConfig.SubstitutionRule>getParserForType()intgetSerializedSize()RestoreConfig.GroupKindgetTargetGroupKinds(int index)(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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RestoreConfig.SubstitutionRule.BuildernewBuilder()static RestoreConfig.SubstitutionRule.BuildernewBuilder(RestoreConfig.SubstitutionRule prototype)RestoreConfig.SubstitutionRule.BuildernewBuilderForType()protected RestoreConfig.SubstitutionRule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RestoreConfig.SubstitutionRuleparseDelimitedFrom(InputStream input)static RestoreConfig.SubstitutionRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.SubstitutionRuleparseFrom(byte[] data)static RestoreConfig.SubstitutionRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.SubstitutionRuleparseFrom(com.google.protobuf.ByteString data)static RestoreConfig.SubstitutionRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.SubstitutionRuleparseFrom(com.google.protobuf.CodedInputStream input)static RestoreConfig.SubstitutionRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.SubstitutionRuleparseFrom(InputStream input)static RestoreConfig.SubstitutionRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RestoreConfig.SubstitutionRuleparseFrom(ByteBuffer data)static RestoreConfig.SubstitutionRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RestoreConfig.SubstitutionRule>parser()RestoreConfig.SubstitutionRule.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TARGET_NAMESPACES_FIELD_NUMBER
public static final int TARGET_NAMESPACES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_GROUP_KINDS_FIELD_NUMBER
public static final int TARGET_GROUP_KINDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_JSON_PATH_FIELD_NUMBER
public static final int TARGET_JSON_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIGINAL_VALUE_PATTERN_FIELD_NUMBER
public static final int ORIGINAL_VALUE_PATTERN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEW_VALUE_FIELD_NUMBER
public static final int NEW_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RestoreConfig.SubstitutionRule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RestoreConfig.SubstitutionRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RestoreConfig.SubstitutionRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RestoreConfig.SubstitutionRule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RestoreConfig.SubstitutionRule.Builder newBuilder()
-
newBuilder
public static RestoreConfig.SubstitutionRule.Builder newBuilder(RestoreConfig.SubstitutionRule prototype)
-
toBuilder
public RestoreConfig.SubstitutionRule.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RestoreConfig.SubstitutionRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RestoreConfig.SubstitutionRule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RestoreConfig.SubstitutionRule> parser()
-
getParserForType
public com.google.protobuf.Parser<RestoreConfig.SubstitutionRule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-