Package com.google.cloud.gkebackup.v1
Class RestoreConfig.TransformationRuleAction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
- com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Builder
-
- All Implemented Interfaces:
RestoreConfig.TransformationRuleActionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RestoreConfig.TransformationRuleAction
public static final class RestoreConfig.TransformationRuleAction.Builder extends com.google.protobuf.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 typegoogle.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RestoreConfig.TransformationRuleAction.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RestoreConfig.TransformationRuleAction
build()
RestoreConfig.TransformationRuleAction
buildPartial()
RestoreConfig.TransformationRuleAction.Builder
clear()
RestoreConfig.TransformationRuleAction.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RestoreConfig.TransformationRuleAction.Builder
clearFromPath()
A string containing a JSON Pointer value that references the location in the target document to move the value from.RestoreConfig.TransformationRuleAction.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RestoreConfig.TransformationRuleAction.Builder
clearOp()
Required.RestoreConfig.TransformationRuleAction.Builder
clearPath()
A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.RestoreConfig.TransformationRuleAction.Builder
clearValue()
A string that specifies the desired value in string format to use for transformation.RestoreConfig.TransformationRuleAction.Builder
clone()
RestoreConfig.TransformationRuleAction
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFromPath()
A string containing a JSON Pointer value that references the location in the target document to move the value from.com.google.protobuf.ByteString
getFromPathBytes()
A string containing a JSON Pointer value that references the location in the target document to move the value from.RestoreConfig.TransformationRuleAction.Op
getOp()
Required.int
getOpValue()
Required.String
getPath()
A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.com.google.protobuf.ByteString
getPathBytes()
A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.String
getValue()
A string that specifies the desired value in string format to use for transformation.com.google.protobuf.ByteString
getValueBytes()
A string that specifies the desired value in string format to use for transformation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RestoreConfig.TransformationRuleAction.Builder
mergeFrom(RestoreConfig.TransformationRuleAction other)
RestoreConfig.TransformationRuleAction.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RestoreConfig.TransformationRuleAction.Builder
mergeFrom(com.google.protobuf.Message other)
RestoreConfig.TransformationRuleAction.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RestoreConfig.TransformationRuleAction.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.RestoreConfig.TransformationRuleAction.Builder
setFromPathBytes(com.google.protobuf.ByteString value)
A string containing a JSON Pointer value that references the location in the target document to move the value from.RestoreConfig.TransformationRuleAction.Builder
setOp(RestoreConfig.TransformationRuleAction.Op value)
Required.RestoreConfig.TransformationRuleAction.Builder
setOpValue(int value)
Required.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.RestoreConfig.TransformationRuleAction.Builder
setPathBytes(com.google.protobuf.ByteString value)
A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.RestoreConfig.TransformationRuleAction.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RestoreConfig.TransformationRuleAction.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RestoreConfig.TransformationRuleAction.Builder
setValue(String value)
A string that specifies the desired value in string format to use for transformation.RestoreConfig.TransformationRuleAction.Builder
setValueBytes(com.google.protobuf.ByteString value)
A string that specifies the desired value in string format to use for transformation.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
clear
public RestoreConfig.TransformationRuleAction.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
getDefaultInstanceForType
public RestoreConfig.TransformationRuleAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RestoreConfig.TransformationRuleAction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RestoreConfig.TransformationRuleAction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RestoreConfig.TransformationRuleAction.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
setField
public RestoreConfig.TransformationRuleAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
clearField
public RestoreConfig.TransformationRuleAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
clearOneof
public RestoreConfig.TransformationRuleAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
setRepeatedField
public RestoreConfig.TransformationRuleAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
addRepeatedField
public RestoreConfig.TransformationRuleAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
mergeFrom
public RestoreConfig.TransformationRuleAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
mergeFrom
public RestoreConfig.TransformationRuleAction.Builder mergeFrom(RestoreConfig.TransformationRuleAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
mergeFrom
public RestoreConfig.TransformationRuleAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RestoreConfig.TransformationRuleAction.Builder>
- Throws:
IOException
-
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];
- Specified by:
getOpValue
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The enum numeric value on the wire for op.
-
setOpValue
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];
- Parameters:
value
- The enum numeric value on the wire for op to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getOp
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The op.
-
setOp
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];
- Parameters:
value
- The op to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getFromPath
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The fromPath.
-
getFromPathBytes
public com.google.protobuf.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;
- Specified by:
getFromPathBytes
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The bytes for fromPath.
-
setFromPath
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;
- Parameters:
value
- The fromPath to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFromPathBytes
public RestoreConfig.TransformationRuleAction.Builder setFromPathBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for fromPath to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getPath
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.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;
- Specified by:
getPathBytes
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The bytes for path.
-
setPath
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;
- Parameters:
value
- The path to set.- Returns:
- 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:
- This builder for chaining.
-
setPathBytes
public RestoreConfig.TransformationRuleAction.Builder setPathBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getValue
public String getValue()
A string that specifies the desired value in string format to use for transformation.
string value = 4;
- Specified by:
getValue
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
A string that specifies the desired value in string format to use for transformation.
string value = 4;
- Specified by:
getValueBytes
in interfaceRestoreConfig.TransformationRuleActionOrBuilder
- Returns:
- The bytes for value.
-
setValue
public RestoreConfig.TransformationRuleAction.Builder setValue(String value)
A string that specifies the desired value in string format to use for transformation.
string value = 4;
- Parameters:
value
- The value to set.- Returns:
- 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:
- This builder for chaining.
-
setValueBytes
public RestoreConfig.TransformationRuleAction.Builder setValueBytes(com.google.protobuf.ByteString value)
A string that specifies the desired value in string format to use for transformation.
string value = 4;
- Parameters:
value
- The bytes for value to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RestoreConfig.TransformationRuleAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
mergeUnknownFields
public final RestoreConfig.TransformationRuleAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreConfig.TransformationRuleAction.Builder>
-
-