/** * * * <pre> * The value to compare to. * </pre> * * <code>.google.firestore.v1beta1.Value value = 3;</code> */ public com.google.firestore.v1beta1.Value getValue() { return value_ == null ? com.google.firestore.v1beta1.Value.getDefaultInstance() : value_; } /**
@java.lang.Override public com.google.firestore.v1beta1.Value getDefaultInstanceForType() { return com.google.firestore.v1beta1.Value.getDefaultInstance(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value increment = 3;</code> */ public com.google.firestore.v1beta1.Value getIncrement() { if (transformTypeCase_ == 3) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value increment = 3;</code> */ public com.google.firestore.v1beta1.ValueOrBuilder getIncrementOrBuilder() { if (transformTypeCase_ == 3) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value minimum = 5;</code> */ public com.google.firestore.v1beta1.ValueOrBuilder getMinimumOrBuilder() { if (transformTypeCase_ == 5) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value maximum = 4;</code> */ public com.google.firestore.v1beta1.ValueOrBuilder getMaximumOrBuilder() { if (transformTypeCase_ == 4) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value maximum = 4;</code> */ public com.google.firestore.v1beta1.Value getMaximum() { if (transformTypeCase_ == 4) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value minimum = 5;</code> */ public com.google.firestore.v1beta1.Value getMinimum() { if (transformTypeCase_ == 5) { return (com.google.firestore.v1beta1.Value) transformType_; } return com.google.firestore.v1beta1.Value.getDefaultInstance(); } /**
/** * * * <pre> * The value to compare to. * </pre> * * <code>.google.firestore.v1beta1.Value value = 3;</code> */ public com.google.firestore.v1beta1.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.firestore.v1beta1.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /**
/** * * * <pre> * The value to compare to. * </pre> * * <code>.google.firestore.v1beta1.Value value = 3;</code> */ public com.google.firestore.v1beta1.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.firestore.v1beta1.Value.getDefaultInstance() : value_; } } /**
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();
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();
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value increment = 3;</code> */ 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(); } } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.firestore.v1beta1.Value maximum = 4;</code> */ 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(); } } /**
/** * * * <pre> * Values in the array. * </pre> * * <code>repeated .google.firestore.v1beta1.Value values = 1;</code> */ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder() { return getValuesFieldBuilder() .addBuilder(com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**
/** * * * <pre> * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the * same order. * </pre> * * <code>repeated .google.firestore.v1beta1.Value transform_results = 2;</code> */ public com.google.firestore.v1beta1.Value.Builder addTransformResultsBuilder(int index) { return getTransformResultsFieldBuilder() .addBuilder(index, com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**
/** * * * <pre> * The results of applying each [DocumentTransform.FieldTransform][google.firestore.v1beta1.DocumentTransform.FieldTransform], in the * same order. * </pre> * * <code>repeated .google.firestore.v1beta1.Value transform_results = 2;</code> */ public com.google.firestore.v1beta1.Value.Builder addTransformResultsBuilder() { return getTransformResultsFieldBuilder() .addBuilder(com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**
/** * * * <pre> * Values in the array. * </pre> * * <code>repeated .google.firestore.v1beta1.Value values = 1;</code> */ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder(int index) { return getValuesFieldBuilder() .addBuilder(index, com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**
/** * * * <pre> * The values that represent a position, in the order they appear in * the order by clause of a query. * Can contain fewer values than specified in the order by clause. * </pre> * * <code>repeated .google.firestore.v1beta1.Value values = 1;</code> */ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder(int index) { return getValuesFieldBuilder() .addBuilder(index, com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**
/** * * * <pre> * The values that represent a position, in the order they appear in * the order by clause of a query. * Can contain fewer values than specified in the order by clause. * </pre> * * <code>repeated .google.firestore.v1beta1.Value values = 1;</code> */ public com.google.firestore.v1beta1.Value.Builder addValuesBuilder() { return getValuesFieldBuilder() .addBuilder(com.google.firestore.v1beta1.Value.getDefaultInstance()); } /**