Package com.google.firestore.v1
Class DocumentTransform.FieldTransform
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.DocumentTransform.FieldTransform
- All Implemented Interfaces:
DocumentTransform.FieldTransformOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- DocumentTransform
public static final class DocumentTransform.FieldTransform
extends com.google.protobuf.GeneratedMessageV3
implements DocumentTransform.FieldTransformOrBuilder
A transformation of a field of the document.Protobuf type
google.firestore.v1.DocumentTransform.FieldTransform- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA transformation of a field of the document.static enumA value that is calculated by the server.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAppend the given elements in order if they are not already present in the current field value.Append the given elements in order if they are not already present in the current field value.static final com.google.protobuf.Descriptors.DescriptorThe path of the field.com.google.protobuf.ByteStringThe path of the field.Adds the given value to the field's current value.Adds the given value to the field's current value.Sets the field to the maximum of its current value and the given value.Sets the field to the maximum of its current value and the given value.Sets the field to the minimum of its current value and the given value.Sets the field to the minimum of its current value and the given value.com.google.protobuf.Parser<DocumentTransform.FieldTransform>Remove all of the given elements from the array in the field.Remove all of the given elements from the array in the field.intSets the field to the given server value.intSets the field to the given server value.booleanAppend the given elements in order if they are not already present in the current field value.inthashCode()booleanAdds the given value to the field's current value.booleanSets the field to the maximum of its current value and the given value.booleanSets the field to the minimum of its current value and the given value.booleanRemove all of the given elements from the array in the field.booleanSets the field to the given server value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(DocumentTransform.FieldTransform prototype) protected DocumentTransform.FieldTransform.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DocumentTransform.FieldTransform>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FIELD_PATH_FIELD_NUMBER
public static final int FIELD_PATH_FIELD_NUMBER- See Also:
-
SET_TO_SERVER_VALUE_FIELD_NUMBER
public static final int SET_TO_SERVER_VALUE_FIELD_NUMBER- See Also:
-
INCREMENT_FIELD_NUMBER
public static final int INCREMENT_FIELD_NUMBER- See Also:
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER- See Also:
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER- See Also:
-
APPEND_MISSING_ELEMENTS_FIELD_NUMBER
public static final int APPEND_MISSING_ELEMENTS_FIELD_NUMBER- See Also:
-
REMOVE_ALL_FROM_ARRAY_FIELD_NUMBER
public static final int REMOVE_ALL_FROM_ARRAY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTransformTypeCase
- Specified by:
getTransformTypeCasein interfaceDocumentTransform.FieldTransformOrBuilder
-
getFieldPath
The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax reference.
string field_path = 1;- Specified by:
getFieldPathin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The fieldPath.
-
getFieldPathBytes
public com.google.protobuf.ByteString getFieldPathBytes()The path of the field. See [Document.fields][google.firestore.v1.Document.fields] for the field path syntax reference.
string field_path = 1;- Specified by:
getFieldPathBytesin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The bytes for fieldPath.
-
hasSetToServerValue
public boolean hasSetToServerValue()Sets the field to the given server value.
.google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;- Specified by:
hasSetToServerValuein interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the setToServerValue field is set.
-
getSetToServerValueValue
public int getSetToServerValueValue()Sets the field to the given server value.
.google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;- Specified by:
getSetToServerValueValuein interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The enum numeric value on the wire for setToServerValue.
-
getSetToServerValue
Sets the field to the given server value.
.google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;- Specified by:
getSetToServerValuein interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The setToServerValue.
-
hasIncrement
public boolean hasIncrement()Adds the given value to the field's current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
.google.firestore.v1.Value increment = 3;- Specified by:
hasIncrementin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the increment field is set.
-
getIncrement
Adds the given value to the field's current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
.google.firestore.v1.Value increment = 3;- Specified by:
getIncrementin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The increment.
-
getIncrementOrBuilder
Adds the given value to the field's current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
.google.firestore.v1.Value increment = 3;- Specified by:
getIncrementOrBuilderin interfaceDocumentTransform.FieldTransformOrBuilder
-
hasMaximum
public boolean hasMaximum()Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value maximum = 4;- Specified by:
hasMaximumin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the maximum field is set.
-
getMaximum
Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value maximum = 4;- Specified by:
getMaximumin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The maximum.
-
getMaximumOrBuilder
Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value maximum = 4;- Specified by:
getMaximumOrBuilderin interfaceDocumentTransform.FieldTransformOrBuilder
-
hasMinimum
public boolean hasMinimum()Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value minimum = 5;- Specified by:
hasMinimumin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the minimum field is set.
-
getMinimum
Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value minimum = 5;- Specified by:
getMinimumin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The minimum.
-
getMinimumOrBuilder
Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
.google.firestore.v1.Value minimum = 5;- Specified by:
getMinimumOrBuilderin interfaceDocumentTransform.FieldTransformOrBuilder
-
hasAppendMissingElements
public boolean hasAppendMissingElements()Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue append_missing_elements = 6;- Specified by:
hasAppendMissingElementsin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the appendMissingElements field is set.
-
getAppendMissingElements
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue append_missing_elements = 6;- Specified by:
getAppendMissingElementsin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The appendMissingElements.
-
getAppendMissingElementsOrBuilder
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue append_missing_elements = 6;- Specified by:
getAppendMissingElementsOrBuilderin interfaceDocumentTransform.FieldTransformOrBuilder
-
hasRemoveAllFromArray
public boolean hasRemoveAllFromArray()Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
hasRemoveAllFromArrayin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- Whether the removeAllFromArray field is set.
-
getRemoveAllFromArray
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
getRemoveAllFromArrayin interfaceDocumentTransform.FieldTransformOrBuilder- Returns:
- The removeAllFromArray.
-
getRemoveAllFromArrayOrBuilder
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1.ArrayValue remove_all_from_array = 7;- Specified by:
getRemoveAllFromArrayOrBuilderin interfaceDocumentTransform.FieldTransformOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DocumentTransform.FieldTransform parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DocumentTransform.FieldTransform parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentTransform.FieldTransform parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static DocumentTransform.FieldTransform.Builder newBuilder(DocumentTransform.FieldTransform prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DocumentTransform.FieldTransform.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-