diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java index 6472c0292658..06581b27b1a1 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/DocumentTransform.java @@ -162,6 +162,183 @@ public interface FieldTransformOrBuilder */ com.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue getSetToServerValue(); + /** + * + * + *
+     * 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.v1beta1.Value increment = 3; + */ + 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.v1beta1.Value increment = 3; + */ + com.google.firestore.v1beta1.Value 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.v1beta1.Value increment = 3; + */ + com.google.firestore.v1beta1.ValueOrBuilder getIncrementOrBuilder(); + + /** + * + * + *
+     * 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.v1beta1.Value maximum = 4; + */ + 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.v1beta1.Value maximum = 4; + */ + com.google.firestore.v1beta1.Value 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.v1beta1.Value maximum = 4; + */ + com.google.firestore.v1beta1.ValueOrBuilder getMaximumOrBuilder(); + + /** + * + * + *
+     * 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.v1beta1.Value minimum = 5; + */ + 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.v1beta1.Value minimum = 5; + */ + com.google.firestore.v1beta1.Value 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.v1beta1.Value minimum = 5; + */ + com.google.firestore.v1beta1.ValueOrBuilder getMinimumOrBuilder(); + /** * * @@ -336,6 +513,54 @@ private FieldTransform( transformType_ = rawValue; break; } + case 26: + { + com.google.firestore.v1beta1.Value.Builder subBuilder = null; + if (transformTypeCase_ == 3) { + subBuilder = ((com.google.firestore.v1beta1.Value) transformType_).toBuilder(); + } + transformType_ = + input.readMessage( + com.google.firestore.v1beta1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.firestore.v1beta1.Value) transformType_); + transformType_ = subBuilder.buildPartial(); + } + transformTypeCase_ = 3; + break; + } + case 34: + { + com.google.firestore.v1beta1.Value.Builder subBuilder = null; + if (transformTypeCase_ == 4) { + subBuilder = ((com.google.firestore.v1beta1.Value) transformType_).toBuilder(); + } + transformType_ = + input.readMessage( + com.google.firestore.v1beta1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.firestore.v1beta1.Value) transformType_); + transformType_ = subBuilder.buildPartial(); + } + transformTypeCase_ = 4; + break; + } + case 42: + { + com.google.firestore.v1beta1.Value.Builder subBuilder = null; + if (transformTypeCase_ == 5) { + subBuilder = ((com.google.firestore.v1beta1.Value) transformType_).toBuilder(); + } + transformType_ = + input.readMessage( + com.google.firestore.v1beta1.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.firestore.v1beta1.Value) transformType_); + transformType_ = subBuilder.buildPartial(); + } + transformTypeCase_ = 5; + break; + } case 50: { com.google.firestore.v1beta1.ArrayValue.Builder subBuilder = null; @@ -536,6 +761,9 @@ private ServerValue(int value) { public enum TransformTypeCase implements com.google.protobuf.Internal.EnumLite { SET_TO_SERVER_VALUE(2), + INCREMENT(3), + MAXIMUM(4), + MINIMUM(5), APPEND_MISSING_ELEMENTS(6), REMOVE_ALL_FROM_ARRAY(7), TRANSFORMTYPE_NOT_SET(0); @@ -554,6 +782,12 @@ public static TransformTypeCase forNumber(int value) { switch (value) { case 2: return SET_TO_SERVER_VALUE; + case 3: + return INCREMENT; + case 4: + return MAXIMUM; + case 5: + return MINIMUM; case 6: return APPEND_MISSING_ELEMENTS; case 7: @@ -663,6 +897,222 @@ public int getSetToServerValueValue() { .SERVER_VALUE_UNSPECIFIED; } + public static final int INCREMENT_FIELD_NUMBER = 3; + /** + * + * + *
+     * 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.v1beta1.Value increment = 3; + */ + public boolean hasIncrement() { + return transformTypeCase_ == 3; + } + /** + * + * + *
+     * 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.v1beta1.Value increment = 3; + */ + public com.google.firestore.v1beta1.Value getIncrement() { + if (transformTypeCase_ == 3) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + /** + * + * + *
+     * 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.v1beta1.Value increment = 3; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getIncrementOrBuilder() { + if (transformTypeCase_ == 3) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + + public static final int MAXIMUM_FIELD_NUMBER = 4; + /** + * + * + *
+     * 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.v1beta1.Value maximum = 4; + */ + public boolean hasMaximum() { + return transformTypeCase_ == 4; + } + /** + * + * + *
+     * 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.v1beta1.Value maximum = 4; + */ + public com.google.firestore.v1beta1.Value getMaximum() { + if (transformTypeCase_ == 4) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + /** + * + * + *
+     * 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.v1beta1.Value maximum = 4; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getMaximumOrBuilder() { + if (transformTypeCase_ == 4) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + + public static final int MINIMUM_FIELD_NUMBER = 5; + /** + * + * + *
+     * 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.v1beta1.Value minimum = 5; + */ + public boolean hasMinimum() { + return transformTypeCase_ == 5; + } + /** + * + * + *
+     * 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.v1beta1.Value minimum = 5; + */ + public com.google.firestore.v1beta1.Value getMinimum() { + if (transformTypeCase_ == 5) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + /** + * + * + *
+     * 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.v1beta1.Value minimum = 5; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getMinimumOrBuilder() { + if (transformTypeCase_ == 5) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + public static final int APPEND_MISSING_ELEMENTS_FIELD_NUMBER = 6; /** * @@ -819,6 +1269,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (transformTypeCase_ == 2) { output.writeEnum(2, ((java.lang.Integer) transformType_)); } + if (transformTypeCase_ == 3) { + output.writeMessage(3, (com.google.firestore.v1beta1.Value) transformType_); + } + if (transformTypeCase_ == 4) { + output.writeMessage(4, (com.google.firestore.v1beta1.Value) transformType_); + } + if (transformTypeCase_ == 5) { + output.writeMessage(5, (com.google.firestore.v1beta1.Value) transformType_); + } if (transformTypeCase_ == 6) { output.writeMessage(6, (com.google.firestore.v1beta1.ArrayValue) transformType_); } @@ -842,6 +1301,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 2, ((java.lang.Integer) transformType_)); } + if (transformTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.firestore.v1beta1.Value) transformType_); + } + if (transformTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.firestore.v1beta1.Value) transformType_); + } + if (transformTypeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.firestore.v1beta1.Value) transformType_); + } if (transformTypeCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -876,6 +1350,15 @@ public boolean equals(final java.lang.Object obj) { case 2: result = result && getSetToServerValueValue() == other.getSetToServerValueValue(); break; + case 3: + result = result && getIncrement().equals(other.getIncrement()); + break; + case 4: + result = result && getMaximum().equals(other.getMaximum()); + break; + case 5: + result = result && getMinimum().equals(other.getMinimum()); + break; case 6: result = result && getAppendMissingElements().equals(other.getAppendMissingElements()); break; @@ -903,6 +1386,18 @@ public int hashCode() { hash = (37 * hash) + SET_TO_SERVER_VALUE_FIELD_NUMBER; hash = (53 * hash) + getSetToServerValueValue(); break; + case 3: + hash = (37 * hash) + INCREMENT_FIELD_NUMBER; + hash = (53 * hash) + getIncrement().hashCode(); + break; + case 4: + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + getMaximum().hashCode(); + break; + case 5: + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + getMinimum().hashCode(); + break; case 6: hash = (37 * hash) + APPEND_MISSING_ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getAppendMissingElements().hashCode(); @@ -1098,6 +1593,27 @@ public com.google.firestore.v1beta1.DocumentTransform.FieldTransform buildPartia if (transformTypeCase_ == 2) { result.transformType_ = transformType_; } + if (transformTypeCase_ == 3) { + if (incrementBuilder_ == null) { + result.transformType_ = transformType_; + } else { + result.transformType_ = incrementBuilder_.build(); + } + } + if (transformTypeCase_ == 4) { + if (maximumBuilder_ == null) { + result.transformType_ = transformType_; + } else { + result.transformType_ = maximumBuilder_.build(); + } + } + if (transformTypeCase_ == 5) { + if (minimumBuilder_ == null) { + result.transformType_ = transformType_; + } else { + result.transformType_ = minimumBuilder_.build(); + } + } if (transformTypeCase_ == 6) { if (appendMissingElementsBuilder_ == null) { result.transformType_ = transformType_; @@ -1177,6 +1693,21 @@ public Builder mergeFrom( setSetToServerValueValue(other.getSetToServerValueValue()); break; } + case INCREMENT: + { + mergeIncrement(other.getIncrement()); + break; + } + case MAXIMUM: + { + mergeMaximum(other.getMaximum()); + break; + } + case MINIMUM: + { + mergeMinimum(other.getMinimum()); + break; + } case APPEND_MISSING_ELEMENTS: { mergeAppendMissingElements(other.getAppendMissingElements()); @@ -1437,6 +1968,861 @@ public Builder clearSetToServerValue() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + incrementBuilder_; + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public boolean hasIncrement() { + return transformTypeCase_ == 3; + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public com.google.firestore.v1beta1.Value getIncrement() { + if (incrementBuilder_ == null) { + if (transformTypeCase_ == 3) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } else { + if (transformTypeCase_ == 3) { + return incrementBuilder_.getMessage(); + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public Builder setIncrement(com.google.firestore.v1beta1.Value value) { + if (incrementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformType_ = value; + onChanged(); + } else { + incrementBuilder_.setMessage(value); + } + transformTypeCase_ = 3; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public Builder setIncrement(com.google.firestore.v1beta1.Value.Builder builderForValue) { + if (incrementBuilder_ == null) { + transformType_ = builderForValue.build(); + onChanged(); + } else { + incrementBuilder_.setMessage(builderForValue.build()); + } + transformTypeCase_ = 3; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public Builder mergeIncrement(com.google.firestore.v1beta1.Value value) { + if (incrementBuilder_ == null) { + if (transformTypeCase_ == 3 + && transformType_ != com.google.firestore.v1beta1.Value.getDefaultInstance()) { + transformType_ = + com.google.firestore.v1beta1.Value.newBuilder( + (com.google.firestore.v1beta1.Value) transformType_) + .mergeFrom(value) + .buildPartial(); + } else { + transformType_ = value; + } + onChanged(); + } else { + if (transformTypeCase_ == 3) { + incrementBuilder_.mergeFrom(value); + } + incrementBuilder_.setMessage(value); + } + transformTypeCase_ = 3; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public Builder clearIncrement() { + if (incrementBuilder_ == null) { + if (transformTypeCase_ == 3) { + transformTypeCase_ = 0; + transformType_ = null; + onChanged(); + } + } else { + if (transformTypeCase_ == 3) { + transformTypeCase_ = 0; + transformType_ = null; + } + incrementBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public com.google.firestore.v1beta1.Value.Builder getIncrementBuilder() { + return getIncrementFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getIncrementOrBuilder() { + if ((transformTypeCase_ == 3) && (incrementBuilder_ != null)) { + return incrementBuilder_.getMessageOrBuilder(); + } else { + if (transformTypeCase_ == 3) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value increment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + getIncrementFieldBuilder() { + if (incrementBuilder_ == null) { + if (!(transformTypeCase_ == 3)) { + transformType_ = com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + incrementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder>( + (com.google.firestore.v1beta1.Value) transformType_, + getParentForChildren(), + isClean()); + transformType_ = null; + } + transformTypeCase_ = 3; + onChanged(); + ; + return incrementBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + maximumBuilder_; + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public boolean hasMaximum() { + return transformTypeCase_ == 4; + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public com.google.firestore.v1beta1.Value getMaximum() { + if (maximumBuilder_ == null) { + if (transformTypeCase_ == 4) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } else { + if (transformTypeCase_ == 4) { + return maximumBuilder_.getMessage(); + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public Builder setMaximum(com.google.firestore.v1beta1.Value value) { + if (maximumBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformType_ = value; + onChanged(); + } else { + maximumBuilder_.setMessage(value); + } + transformTypeCase_ = 4; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public Builder setMaximum(com.google.firestore.v1beta1.Value.Builder builderForValue) { + if (maximumBuilder_ == null) { + transformType_ = builderForValue.build(); + onChanged(); + } else { + maximumBuilder_.setMessage(builderForValue.build()); + } + transformTypeCase_ = 4; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public Builder mergeMaximum(com.google.firestore.v1beta1.Value value) { + if (maximumBuilder_ == null) { + if (transformTypeCase_ == 4 + && transformType_ != com.google.firestore.v1beta1.Value.getDefaultInstance()) { + transformType_ = + com.google.firestore.v1beta1.Value.newBuilder( + (com.google.firestore.v1beta1.Value) transformType_) + .mergeFrom(value) + .buildPartial(); + } else { + transformType_ = value; + } + onChanged(); + } else { + if (transformTypeCase_ == 4) { + maximumBuilder_.mergeFrom(value); + } + maximumBuilder_.setMessage(value); + } + transformTypeCase_ = 4; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public Builder clearMaximum() { + if (maximumBuilder_ == null) { + if (transformTypeCase_ == 4) { + transformTypeCase_ = 0; + transformType_ = null; + onChanged(); + } + } else { + if (transformTypeCase_ == 4) { + transformTypeCase_ = 0; + transformType_ = null; + } + maximumBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public com.google.firestore.v1beta1.Value.Builder getMaximumBuilder() { + return getMaximumFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getMaximumOrBuilder() { + if ((transformTypeCase_ == 4) && (maximumBuilder_ != null)) { + return maximumBuilder_.getMessageOrBuilder(); + } else { + if (transformTypeCase_ == 4) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value maximum = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + getMaximumFieldBuilder() { + if (maximumBuilder_ == null) { + if (!(transformTypeCase_ == 4)) { + transformType_ = com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + maximumBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder>( + (com.google.firestore.v1beta1.Value) transformType_, + getParentForChildren(), + isClean()); + transformType_ = null; + } + transformTypeCase_ = 4; + onChanged(); + ; + return maximumBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + minimumBuilder_; + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public boolean hasMinimum() { + return transformTypeCase_ == 5; + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public com.google.firestore.v1beta1.Value getMinimum() { + if (minimumBuilder_ == null) { + if (transformTypeCase_ == 5) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } else { + if (transformTypeCase_ == 5) { + return minimumBuilder_.getMessage(); + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public Builder setMinimum(com.google.firestore.v1beta1.Value value) { + if (minimumBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformType_ = value; + onChanged(); + } else { + minimumBuilder_.setMessage(value); + } + transformTypeCase_ = 5; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public Builder setMinimum(com.google.firestore.v1beta1.Value.Builder builderForValue) { + if (minimumBuilder_ == null) { + transformType_ = builderForValue.build(); + onChanged(); + } else { + minimumBuilder_.setMessage(builderForValue.build()); + } + transformTypeCase_ = 5; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public Builder mergeMinimum(com.google.firestore.v1beta1.Value value) { + if (minimumBuilder_ == null) { + if (transformTypeCase_ == 5 + && transformType_ != com.google.firestore.v1beta1.Value.getDefaultInstance()) { + transformType_ = + com.google.firestore.v1beta1.Value.newBuilder( + (com.google.firestore.v1beta1.Value) transformType_) + .mergeFrom(value) + .buildPartial(); + } else { + transformType_ = value; + } + onChanged(); + } else { + if (transformTypeCase_ == 5) { + minimumBuilder_.mergeFrom(value); + } + minimumBuilder_.setMessage(value); + } + transformTypeCase_ = 5; + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public Builder clearMinimum() { + if (minimumBuilder_ == null) { + if (transformTypeCase_ == 5) { + transformTypeCase_ = 0; + transformType_ = null; + onChanged(); + } + } else { + if (transformTypeCase_ == 5) { + transformTypeCase_ = 0; + transformType_ = null; + } + minimumBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public com.google.firestore.v1beta1.Value.Builder getMinimumBuilder() { + return getMinimumFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + public com.google.firestore.v1beta1.ValueOrBuilder getMinimumOrBuilder() { + if ((transformTypeCase_ == 5) && (minimumBuilder_ != null)) { + return minimumBuilder_.getMessageOrBuilder(); + } else { + if (transformTypeCase_ == 5) { + return (com.google.firestore.v1beta1.Value) transformType_; + } + return com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + } + /** + * + * + *
+       * 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.v1beta1.Value minimum = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder> + getMinimumFieldBuilder() { + if (minimumBuilder_ == null) { + if (!(transformTypeCase_ == 5)) { + transformType_ = com.google.firestore.v1beta1.Value.getDefaultInstance(); + } + minimumBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.firestore.v1beta1.Value, + com.google.firestore.v1beta1.Value.Builder, + com.google.firestore.v1beta1.ValueOrBuilder>( + (com.google.firestore.v1beta1.Value) transformType_, + getParentForChildren(), + isClean()); + transformType_ = null; + } + transformTypeCase_ = 5; + onChanged(); + ; + return minimumBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.firestore.v1beta1.ArrayValue, com.google.firestore.v1beta1.ArrayValue.Builder, diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java index 43cc167d8e5f..3cbc5d2b0cea 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/java/com/google/firestore/v1beta1/WriteProto.java @@ -65,37 +65,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pdate_mask\030\003 \001(\0132&.google.firestore.v1be" + "ta1.DocumentMask\022@\n\020current_document\030\004 \001" + "(\0132&.google.firestore.v1beta1.Preconditi" - + "onB\013\n\toperation\"\352\003\n\021DocumentTransform\022\020\n" + + "onB\013\n\toperation\"\210\005\n\021DocumentTransform\022\020\n" + "\010document\030\001 \001(\t\022T\n\020field_transforms\030\002 \003(" + "\0132:.google.firestore.v1beta1.DocumentTra" - + "nsform.FieldTransform\032\354\002\n\016FieldTransform" + + "nsform.FieldTransform\032\212\004\n\016FieldTransform" + "\022\022\n\nfield_path\030\001 \001(\t\022e\n\023set_to_server_va" + "lue\030\002 \001(\0162F.google.firestore.v1beta1.Doc" + "umentTransform.FieldTransform.ServerValu" - + "eH\000\022G\n\027append_missing_elements\030\006 \001(\0132$.g" - + "oogle.firestore.v1beta1.ArrayValueH\000\022E\n\025" - + "remove_all_from_array\030\007 \001(\0132$.google.fir" - + "estore.v1beta1.ArrayValueH\000\"=\n\013ServerVal" - + "ue\022\034\n\030SERVER_VALUE_UNSPECIFIED\020\000\022\020\n\014REQU" - + "EST_TIME\020\001B\020\n\016transform_type\"z\n\013WriteRes" - + "ult\022/\n\013update_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022:\n\021transform_results\030\002 \003(\0132" - + "\037.google.firestore.v1beta1.Value\"v\n\016Docu" - + "mentChange\0224\n\010document\030\001 \001(\0132\".google.fi" - + "restore.v1beta1.Document\022\022\n\ntarget_ids\030\005" - + " \003(\005\022\032\n\022removed_target_ids\030\006 \003(\005\"m\n\016Docu" - + "mentDelete\022\020\n\010document\030\001 \001(\t\022\032\n\022removed_" - + "target_ids\030\006 \003(\005\022-\n\tread_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\"m\n\016DocumentRemov" - + "e\022\020\n\010document\030\001 \001(\t\022\032\n\022removed_target_id" - + "s\030\002 \003(\005\022-\n\tread_time\030\004 \001(\0132\032.google.prot" - + "obuf.Timestamp\"3\n\017ExistenceFilter\022\021\n\ttar" - + "get_id\030\001 \001(\005\022\r\n\005count\030\002 \001(\005B\270\001\n\034com.goog" - + "le.firestore.v1beta1B\nWriteProtoP\001ZAgoog" - + "le.golang.org/genproto/googleapis/firest" - + "ore/v1beta1;firestore\242\002\004GCFS\252\002\036Google.Cl" - + "oud.Firestore.V1Beta1\312\002\036Google\\Cloud\\Fir" - + "estore\\V1beta1b\006proto3" + + "eH\000\0224\n\tincrement\030\003 \001(\0132\037.google.firestor" + + "e.v1beta1.ValueH\000\0222\n\007maximum\030\004 \001(\0132\037.goo" + + "gle.firestore.v1beta1.ValueH\000\0222\n\007minimum" + + "\030\005 \001(\0132\037.google.firestore.v1beta1.ValueH" + + "\000\022G\n\027append_missing_elements\030\006 \001(\0132$.goo" + + "gle.firestore.v1beta1.ArrayValueH\000\022E\n\025re" + + "move_all_from_array\030\007 \001(\0132$.google.fires" + + "tore.v1beta1.ArrayValueH\000\"=\n\013ServerValue" + + "\022\034\n\030SERVER_VALUE_UNSPECIFIED\020\000\022\020\n\014REQUES" + + "T_TIME\020\001B\020\n\016transform_type\"z\n\013WriteResul" + + "t\022/\n\013update_time\030\001 \001(\0132\032.google.protobuf" + + ".Timestamp\022:\n\021transform_results\030\002 \003(\0132\037." + + "google.firestore.v1beta1.Value\"v\n\016Docume" + + "ntChange\0224\n\010document\030\001 \001(\0132\".google.fire" + + "store.v1beta1.Document\022\022\n\ntarget_ids\030\005 \003" + + "(\005\022\032\n\022removed_target_ids\030\006 \003(\005\"m\n\016Docume" + + "ntDelete\022\020\n\010document\030\001 \001(\t\022\032\n\022removed_ta" + + "rget_ids\030\006 \003(\005\022-\n\tread_time\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\"m\n\016DocumentRemove\022" + + "\020\n\010document\030\001 \001(\t\022\032\n\022removed_target_ids\030" + + "\002 \003(\005\022-\n\tread_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\"3\n\017ExistenceFilter\022\021\n\ttarge" + + "t_id\030\001 \001(\005\022\r\n\005count\030\002 \001(\005B\270\001\n\034com.google" + + ".firestore.v1beta1B\nWriteProtoP\001ZAgoogle" + + ".golang.org/genproto/googleapis/firestor" + + "e/v1beta1;firestore\242\002\004GCFS\252\002\036Google.Clou" + + "d.Firestore.V1Beta1\312\002\036Google\\Cloud\\Fires" + + "tore\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -140,6 +144,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "FieldPath", "SetToServerValue", + "Increment", + "Maximum", + "Minimum", "AppendMissingElements", "RemoveAllFromArray", "TransformType", diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto index d6b3dce03f1b..4046a0d6743c 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto index aaa90516cd0c..beb525a4eec6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto index 7b6c8914b4c7..39ea90e2a7b5 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/firestore.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto index 02d0aaaabd89..17e930213b37 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/query.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto index 9901e31010a2..98cd6cbbcff9 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/src/main/proto/google/firestore/v1beta1/write.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -89,6 +90,46 @@ message DocumentTransform { // Sets the field to the given server value. ServerValue set_to_server_value = 2; + // 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. + Value increment = 3; + + // 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. + Value maximum = 4; + + // 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. + Value minimum = 5; + // 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 diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata index 2bd4f07a69a5..d7b290c01e37 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.metadata +++ b/google-cloud-clients/google-cloud-firestore/synth.metadata @@ -1,27 +1,32 @@ { + "updateTime": "2019-01-16T08:42:18.702688Z", "sources": [ { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f", - "internalRef": "221837528" + "generator": { + "name": "artman", + "version": "0.16.5", + "dockerImage": "googleapis/artman@sha256:5a96c2c5c6f9570cc9556b63dc9ce1838777fd9166b5b64e43ad8e0ecee2fe2c" } }, { "git": { - "name": "googleapis-private", - "remote": "https://github.com/googleapis/googleapis-private.git", - "sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641", - "internalRef": "221340946" + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "7a81902f287a4ac2ac130994889c80f87f91d035", + "internalRef": "229452079" } - }, + } + ], + "destinations": [ { - "generator": { - "name": "artman", - "version": "0.16.0", - "dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b" + "client": { + "source": "googleapis", + "apiName": "firestore", + "apiVersion": "v1beta1", + "language": "java", + "generator": "gapic", + "config": "google/firestore/artman_firestore.yaml" } } ] -} +} \ No newline at end of file