Class RestoreConfig.TransformationRule (0.53.0)

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

Inheritance

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

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

FIELD_ACTIONS_FIELD_NUMBER

public static final int FIELD_ACTIONS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FILTER_FIELD_NUMBER

public static final int RESOURCE_FILTER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(RestoreConfig.TransformationRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getDescription()

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.

getDescriptionBytes()

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.

getFieldActions(int index)

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
Returns
Type Description
RestoreConfig.TransformationRuleAction

getFieldActionsCount()

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

getFieldActionsList()

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];

Returns
Type Description
List<TransformationRuleAction>

getFieldActionsOrBuilder(int index)

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
Returns
Type Description
RestoreConfig.TransformationRuleActionOrBuilder

getFieldActionsOrBuilderList()

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>

getParserForType()

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

getResourceFilter()

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];

Returns
Type Description
RestoreConfig.ResourceFilter

The resourceFilter.

getResourceFilterOrBuilder()

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];

Returns
Type Description
RestoreConfig.ResourceFilterOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasResourceFilter()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RestoreConfig.TransformationRule.Builder newBuilderForType()
Returns
Type Description
RestoreConfig.TransformationRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreConfig.TransformationRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RestoreConfig.TransformationRule.Builder toBuilder()
Returns
Type Description
RestoreConfig.TransformationRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException