Class RestoreConfig.TransformationRuleAction.Builder (0.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RestoreConfig.TransformationRuleAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder
Overrides

clearFromPath()

public RestoreConfig.TransformationRuleAction.Builder clearFromPath()

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

string from_path = 2;

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.TransformationRuleAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearPath()

public RestoreConfig.TransformationRuleAction.Builder clearPath()

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

string path = 3;

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clearValue()

public RestoreConfig.TransformationRuleAction.Builder clearValue()

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

string value = 4;

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

clone()

public RestoreConfig.TransformationRuleAction.Builder clone()
Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFromPath()

public String getFromPath()

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

string from_path = 2;

Returns
TypeDescription
String

The fromPath.

getFromPathBytes()

public ByteString getFromPathBytes()

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

string from_path = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for op.

getPath()

public String getPath()

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

string path = 3;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

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

string path = 3;

Returns
TypeDescription
ByteString

The bytes for path.

getValue()

public String getValue()

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

string value = 4;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

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

string value = 4;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreConfig.TransformationRuleAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreConfig.TransformationRuleAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFromPath(String value)

public RestoreConfig.TransformationRuleAction.Builder setFromPath(String value)

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

string from_path = 2;

Parameter
NameDescription
valueString

The fromPath to set.

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setFromPathBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setFromPathBytes(ByteString value)

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

string from_path = 2;

Parameter
NameDescription
valueByteString

The bytes for fromPath to set.

Returns
TypeDescription
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
NameDescription
valueRestoreConfig.TransformationRuleAction.Op

The op to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setPath(String value)

public RestoreConfig.TransformationRuleAction.Builder setPath(String value)

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

string path = 3;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setPathBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setPathBytes(ByteString value)

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

string path = 3;

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public RestoreConfig.TransformationRuleAction.Builder setValue(String value)

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

string value = 4;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.

setValueBytes(ByteString value)

public RestoreConfig.TransformationRuleAction.Builder setValueBytes(ByteString value)

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

string value = 4;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
RestoreConfig.TransformationRuleAction.Builder

This builder for chaining.