Class RestoreConfig.SubstitutionRule (0.39.0)

public static final class RestoreConfig.SubstitutionRule extends 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 type google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RestoreConfig.SubstitutionRule

Static Fields

NEW_VALUE_FIELD_NUMBER

public static final int NEW_VALUE_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_VALUE_PATTERN_FIELD_NUMBER

public static final int ORIGINAL_VALUE_PATTERN_FIELD_NUMBER
Field Value
Type Description
int

TARGET_GROUP_KINDS_FIELD_NUMBER

public static final int TARGET_GROUP_KINDS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_JSON_PATH_FIELD_NUMBER

public static final int TARGET_JSON_PATH_FIELD_NUMBER
Field Value
Type Description
int

TARGET_NAMESPACES_FIELD_NUMBER

public static final int TARGET_NAMESPACES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RestoreConfig.SubstitutionRule getDefaultInstance()
Returns
Type Description
RestoreConfig.SubstitutionRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RestoreConfig.SubstitutionRule.Builder newBuilder()
Returns
Type Description
RestoreConfig.SubstitutionRule.Builder

newBuilder(RestoreConfig.SubstitutionRule prototype)

public static RestoreConfig.SubstitutionRule.Builder newBuilder(RestoreConfig.SubstitutionRule prototype)
Parameter
Name Description
prototype RestoreConfig.SubstitutionRule
Returns
Type Description
RestoreConfig.SubstitutionRule.Builder

parseDelimitedFrom(InputStream input)

public static RestoreConfig.SubstitutionRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RestoreConfig.SubstitutionRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreConfig.SubstitutionRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreConfig.SubstitutionRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RestoreConfig.SubstitutionRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RestoreConfig.SubstitutionRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.SubstitutionRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.SubstitutionRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RestoreConfig.SubstitutionRule> parser()
Returns
Type Description
Parser<SubstitutionRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RestoreConfig.SubstitutionRule getDefaultInstanceForType()
Returns
Type Description
RestoreConfig.SubstitutionRule

getNewValue()

public String getNewValue()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The newValue.

getNewValueBytes()

public ByteString getNewValueBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for newValue.

getOriginalValuePattern()

public String getOriginalValuePattern()

Optional. (Filtering parameter) This is a 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The originalValuePattern.

getOriginalValuePatternBytes()

public ByteString getOriginalValuePatternBytes()

Optional. (Filtering parameter) This is a 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for originalValuePattern.

getParserForType()

public Parser<RestoreConfig.SubstitutionRule> getParserForType()
Returns
Type Description
Parser<SubstitutionRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetGroupKinds(int index)

public RestoreConfig.GroupKind getTargetGroupKinds(int index)

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RestoreConfig.GroupKind

getTargetGroupKindsCount()

public int getTargetGroupKindsCount()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTargetGroupKindsList()

public List<RestoreConfig.GroupKind> getTargetGroupKindsList()

Optional. (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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description