Class RestoreConfig.TransformationRule (0.34.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
TypeDescription
int

FIELD_ACTIONS_FIELD_NUMBER

public static final int FIELD_ACTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FILTER_FIELD_NUMBER

public static final int RESOURCE_FILTER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RestoreConfig.TransformationRule getDefaultInstance()
Returns
TypeDescription
RestoreConfig.TransformationRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RestoreConfig.TransformationRule.Builder newBuilder()
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

newBuilder(RestoreConfig.TransformationRule prototype)

public static RestoreConfig.TransformationRule.Builder newBuilder(RestoreConfig.TransformationRule prototype)
Parameter
NameDescription
prototypeRestoreConfig.TransformationRule
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

parseDelimitedFrom(InputStream input)

public static RestoreConfig.TransformationRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RestoreConfig.TransformationRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreConfig.TransformationRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreConfig.TransformationRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RestoreConfig.TransformationRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RestoreConfig.TransformationRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.TransformationRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RestoreConfig.TransformationRule getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig.TransformationRule

getDescription()

public String getDescription()

The description is a user specified string description of the transformation rule.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description is a user specified string description of the transformation rule.

string description = 3;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleActionOrBuilder>

getParserForType()

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

getResourceFilter()

public RestoreConfig.ResourceFilter getResourceFilter()

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;

Returns
TypeDescription
RestoreConfig.ResourceFilter

The resourceFilter.

getResourceFilterOrBuilder()

public RestoreConfig.ResourceFilterOrBuilder getResourceFilterOrBuilder()

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;

Returns
TypeDescription
RestoreConfig.ResourceFilterOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasResourceFilter()

public boolean hasResourceFilter()

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;

Returns
TypeDescription
boolean

Whether the resourceFilter field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RestoreConfig.TransformationRule.Builder newBuilderForType()
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreConfig.TransformationRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RestoreConfig.TransformationRule.Builder toBuilder()
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException