Class RestoreConfig.TransformationRule.Builder (0.42.0)

public static final class RestoreConfig.TransformationRule.Builder extends GeneratedMessageV3.Builder<RestoreConfig.TransformationRule.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAllFieldActions(Iterable<? extends RestoreConfig.TransformationRuleAction> values)

public RestoreConfig.TransformationRule.Builder addAllFieldActions(Iterable<? extends RestoreConfig.TransformationRuleAction> values)

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
values Iterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction>
Returns
Type Description
RestoreConfig.TransformationRule.Builder

addFieldActions(RestoreConfig.TransformationRuleAction value)

public RestoreConfig.TransformationRule.Builder addFieldActions(RestoreConfig.TransformationRuleAction value)

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

addFieldActions(RestoreConfig.TransformationRuleAction.Builder builderForValue)

public RestoreConfig.TransformationRule.Builder addFieldActions(RestoreConfig.TransformationRuleAction.Builder builderForValue)

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

addFieldActions(int index, RestoreConfig.TransformationRuleAction value)

public RestoreConfig.TransformationRule.Builder addFieldActions(int index, RestoreConfig.TransformationRuleAction value)

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

Parameters
Name Description
index int
value RestoreConfig.TransformationRuleAction
Returns
Type Description
RestoreConfig.TransformationRule.Builder

addFieldActions(int index, RestoreConfig.TransformationRuleAction.Builder builderForValue)

public RestoreConfig.TransformationRule.Builder addFieldActions(int index, RestoreConfig.TransformationRuleAction.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue RestoreConfig.TransformationRuleAction.Builder
Returns
Type Description
RestoreConfig.TransformationRule.Builder

addFieldActionsBuilder()

public RestoreConfig.TransformationRuleAction.Builder addFieldActionsBuilder()

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
RestoreConfig.TransformationRuleAction.Builder

addFieldActionsBuilder(int index)

public RestoreConfig.TransformationRuleAction.Builder addFieldActionsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.TransformationRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

build()

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

buildPartial()

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

clear()

public RestoreConfig.TransformationRule.Builder clear()
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

clearDescription()

public RestoreConfig.TransformationRule.Builder clearDescription()

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

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.TransformationRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.TransformationRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

clearFieldActions()

public RestoreConfig.TransformationRule.Builder clearFieldActions()

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
RestoreConfig.TransformationRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.TransformationRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

clearResourceFilter()

public RestoreConfig.TransformationRule.Builder clearResourceFilter()

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.TransformationRule.Builder

clone()

public RestoreConfig.TransformationRule.Builder clone()
Returns
Type Description
RestoreConfig.TransformationRule.Builder
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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getFieldActionsBuilder(int index)

public RestoreConfig.TransformationRuleAction.Builder getFieldActionsBuilder(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.Builder

getFieldActionsBuilderList()

public List<RestoreConfig.TransformationRuleAction.Builder> getFieldActionsBuilderList()

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<Builder>

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>

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.

getResourceFilterBuilder()

public RestoreConfig.ResourceFilter.Builder getResourceFilterBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.TransformationRule other)

public RestoreConfig.TransformationRule.Builder mergeFrom(RestoreConfig.TransformationRule other)
Parameter
Name Description
other RestoreConfig.TransformationRule
Returns
Type Description
RestoreConfig.TransformationRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreConfig.TransformationRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RestoreConfig.TransformationRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

mergeResourceFilter(RestoreConfig.ResourceFilter value)

public RestoreConfig.TransformationRule.Builder mergeResourceFilter(RestoreConfig.ResourceFilter value)

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

Parameter
Name Description
value RestoreConfig.ResourceFilter
Returns
Type Description
RestoreConfig.TransformationRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.TransformationRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

removeFieldActions(int index)

public RestoreConfig.TransformationRule.Builder removeFieldActions(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.TransformationRule.Builder

setDescription(String value)

public RestoreConfig.TransformationRule.Builder setDescription(String value)

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

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
RestoreConfig.TransformationRule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public RestoreConfig.TransformationRule.Builder setDescriptionBytes(ByteString value)

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

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
RestoreConfig.TransformationRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.TransformationRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

setFieldActions(int index, RestoreConfig.TransformationRuleAction value)

public RestoreConfig.TransformationRule.Builder setFieldActions(int index, RestoreConfig.TransformationRuleAction value)

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

Parameters
Name Description
index int
value RestoreConfig.TransformationRuleAction
Returns
Type Description
RestoreConfig.TransformationRule.Builder

setFieldActions(int index, RestoreConfig.TransformationRuleAction.Builder builderForValue)

public RestoreConfig.TransformationRule.Builder setFieldActions(int index, RestoreConfig.TransformationRuleAction.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue RestoreConfig.TransformationRuleAction.Builder
Returns
Type Description
RestoreConfig.TransformationRule.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreConfig.TransformationRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides

setResourceFilter(RestoreConfig.ResourceFilter value)

public RestoreConfig.TransformationRule.Builder setResourceFilter(RestoreConfig.ResourceFilter value)

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

Parameter
Name Description
value RestoreConfig.ResourceFilter
Returns
Type Description
RestoreConfig.TransformationRule.Builder

setResourceFilter(RestoreConfig.ResourceFilter.Builder builderForValue)

public RestoreConfig.TransformationRule.Builder setResourceFilter(RestoreConfig.ResourceFilter.Builder builderForValue)

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

Parameter
Name Description
builderForValue RestoreConfig.ResourceFilter.Builder
Returns
Type Description
RestoreConfig.TransformationRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.TransformationRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RestoreConfig.TransformationRule.Builder
Overrides