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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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];
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];
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];
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];
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];
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
|
public RestoreConfig.TransformationRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RestoreConfig.TransformationRule build()
public RestoreConfig.TransformationRule buildPartial()
public RestoreConfig.TransformationRule.Builder clear()
Overrides
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];
public RestoreConfig.TransformationRule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public RestoreConfig.TransformationRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public RestoreConfig.TransformationRule.Builder clone()
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 Descriptors.Descriptor getDescriptorForType()
Overrides
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 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
|
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];
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 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.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];
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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RestoreConfig.TransformationRule.Builder mergeFrom(RestoreConfig.TransformationRule other)
public RestoreConfig.TransformationRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RestoreConfig.TransformationRule.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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];
public final RestoreConfig.TransformationRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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.
|
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.
|
public RestoreConfig.TransformationRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
public RestoreConfig.TransformationRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
public final RestoreConfig.TransformationRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides