public static final class RestoreConfig.TransformationRule extends GeneratedMessageV3 implements RestoreConfig.TransformationRuleOrBuilder
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 transform) and transformation logic.
Protobuf type google.cloud.gkebackup.v1.RestoreConfig.TransformationRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FIELD_ACTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RESOURCE_FILTER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static RestoreConfig.TransformationRule getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RestoreConfig.TransformationRule.Builder newBuilder()
public static RestoreConfig.TransformationRule.Builder newBuilder(RestoreConfig.TransformationRule prototype)
public static RestoreConfig.TransformationRule parseDelimitedFrom(InputStream input)
public static RestoreConfig.TransformationRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.TransformationRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static RestoreConfig.TransformationRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.TransformationRule parseFrom(ByteString data)
public static RestoreConfig.TransformationRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.TransformationRule parseFrom(CodedInputStream input)
public static RestoreConfig.TransformationRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.TransformationRule parseFrom(InputStream input)
public static RestoreConfig.TransformationRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.TransformationRule parseFrom(ByteBuffer data)
public static RestoreConfig.TransformationRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RestoreConfig.TransformationRule> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public RestoreConfig.TransformationRule getDefaultInstanceForType()
public String getDescription()
Optional. The description is a user specified string description of the
transformation rule.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The description.
|
public ByteString getDescriptionBytes()
Optional. The description is a user specified string description of the
transformation rule.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for description.
|
public RestoreConfig.TransformationRuleAction getFieldActions(int index)
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public int getFieldActionsCount()
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public List<RestoreConfig.TransformationRuleAction> getFieldActionsList()
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
public RestoreConfig.TransformationRuleActionOrBuilder getFieldActionsOrBuilder(int index)
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public List<? extends RestoreConfig.TransformationRuleActionOrBuilder> getFieldActionsOrBuilderList()
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as
they could potentially interfere with each other and the first operation
could affect the outcome of the second operation.
repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleActionOrBuilder> |
|
public Parser<RestoreConfig.TransformationRule> getParserForType()
Overrides
public RestoreConfig.ResourceFilter getResourceFilter()
Optional. This field is used to specify a set of fields that should be
used to determine which resources in backup should be acted upon by the
supplied transformation rule actions, and this will ensure that only
specific resources are affected by transformation rule actions.
.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
public RestoreConfig.ResourceFilterOrBuilder getResourceFilterOrBuilder()
Optional. This field is used to specify a set of fields that should be
used to determine which resources in backup should be acted upon by the
supplied transformation rule actions, and this will ensure that only
specific resources are affected by transformation rule actions.
.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasResourceFilter()
Optional. This field is used to specify a set of fields that should be
used to determine which resources in backup should be acted upon by the
supplied transformation rule actions, and this will ensure that only
specific resources are affected by transformation rule actions.
.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the resourceFilter field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RestoreConfig.TransformationRule.Builder newBuilderForType()
protected RestoreConfig.TransformationRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public RestoreConfig.TransformationRule.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides