Class RestoreConfig.TransformationRuleAction.Builder (0.52.0)

public static final class RestoreConfig.TransformationRuleAction.Builder extends GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder> implements RestoreConfig.TransformationRuleActionOrBuilder

TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFromPath()

public RestoreConfig.TransformationRuleAction.Builder clearFromPath()

Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.

string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOp()

public RestoreConfig.TransformationRuleAction.Builder clearOp()

Required. op specifies the operation to perform.

.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearPath()

public RestoreConfig.TransformationRuleAction.Builder clearPath()

Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.

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

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearValue()

public RestoreConfig.TransformationRuleAction.Builder clearValue()

Optional. A string that specifies the desired value in string format to use for transformation.

string value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clone()

public RestoreConfig.TransformationRuleAction.Builder clone()
Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFromPath()

public String getFromPath()

Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.

string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fromPath.

getFromPathBytes()

public ByteString getFromPathBytes()

Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.

string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fromPath.

getOp()

public RestoreConfig.TransformationRuleAction.Op getOp()

Required. op specifies the operation to perform.

.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestoreConfig.TransformationRuleAction.Op

The op.

getOpValue()

public int getOpValue()

Required. op specifies the operation to perform.

.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for op.

getPath()

public String getPath()

Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.

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

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.

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

Returns
Type Description
ByteString

The bytes for path.

getValue()

public String getValue()

Optional. A string that specifies the desired value in string format to use for transformation.

string value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Optional. A string that specifies the desired value in string format to use for transformation.

string value = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.TransformationRuleAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFromPath(String value)

public RestoreConfig.TransformationRuleAction.Builder setFromPath(String value)

Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.

string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fromPath to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setFromPathBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setFromPathBytes(ByteString value)

Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.

string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for fromPath to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setOp(RestoreConfig.TransformationRuleAction.Op value)

public RestoreConfig.TransformationRuleAction.Builder setOp(RestoreConfig.TransformationRuleAction.Op value)

Required. op specifies the operation to perform.

.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RestoreConfig.TransformationRuleAction.Op

The op to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setOpValue(int value)

public RestoreConfig.TransformationRuleAction.Builder setOpValue(int value)

Required. op specifies the operation to perform.

.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for op to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setPath(String value)

public RestoreConfig.TransformationRuleAction.Builder setPath(String value)

Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.

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

Parameter
Name Description
value String

The path to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setPathBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setPathBytes(ByteString value)

Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.

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

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public RestoreConfig.TransformationRuleAction.Builder setValue(String value)

Optional. A string that specifies the desired value in string format to use for transformation.

string value = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setValueBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setValueBytes(ByteString value)

Optional. A string that specifies the desired value in string format to use for transformation.

string value = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.