Class RestoreConfig.TransformationRule.Builder (0.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction>
Returns
TypeDescription
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
NameDescription
valueRestoreConfig.TransformationRuleAction
Returns
TypeDescription
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
NameDescription
builderForValueRestoreConfig.TransformationRuleAction.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRestoreConfig.TransformationRuleAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestoreConfig.TransformationRuleAction.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.TransformationRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

build()

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

buildPartial()

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

clear()

public RestoreConfig.TransformationRule.Builder clear()
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

clearDescription()

public RestoreConfig.TransformationRule.Builder clearDescription()

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

string description = 3;

Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.TransformationRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RestoreConfig.TransformationRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.TransformationRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

clearResourceFilter()

public RestoreConfig.TransformationRule.Builder clearResourceFilter()

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

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>

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.

getResourceFilterBuilder()

public RestoreConfig.ResourceFilter.Builder getResourceFilterBuilder()

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

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreConfig.TransformationRule other)

public RestoreConfig.TransformationRule.Builder mergeFrom(RestoreConfig.TransformationRule other)
Parameter
NameDescription
otherRestoreConfig.TransformationRule
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreConfig.TransformationRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreConfig.TransformationRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

mergeResourceFilter(RestoreConfig.ResourceFilter value)

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

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;

Parameter
NameDescription
valueRestoreConfig.ResourceFilter
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.TransformationRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

setDescription(String value)

public RestoreConfig.TransformationRule.Builder setDescription(String value)

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

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public RestoreConfig.TransformationRule.Builder setDescriptionBytes(ByteString value)

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

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.TransformationRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRestoreConfig.TransformationRuleAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRestoreConfig.TransformationRuleAction.Builder
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

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

public RestoreConfig.TransformationRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides

setResourceFilter(RestoreConfig.ResourceFilter value)

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

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;

Parameter
NameDescription
valueRestoreConfig.ResourceFilter
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

setResourceFilter(RestoreConfig.ResourceFilter.Builder builderForValue)

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

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;

Parameter
NameDescription
builderForValueRestoreConfig.ResourceFilter.Builder
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.TransformationRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.TransformationRule.Builder
Overrides