Home
last modified time | relevance | path

Searched refs:setNumberValue (Results 1 – 10 of 10) sorted by relevance

/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DValuesTest.java55 assertThat(Values.of(100)).isEqualTo(Value.newBuilder().setNumberValue(100).build()); in testOfNumeric_ConstructsValue()
56 assertThat(Values.of(1000L)).isEqualTo(Value.newBuilder().setNumberValue(1000).build()); in testOfNumeric_ConstructsValue()
57 assertThat(Values.of(1000.23f)).isEqualTo(Value.newBuilder().setNumberValue(1000.23f).build()); in testOfNumeric_ConstructsValue()
58 assertThat(Values.of(10000.23)).isEqualTo(Value.newBuilder().setNumberValue(10000.23).build()); in testOfNumeric_ConstructsValue()
DJsonFormatTest.java809 structBuilder.putFields("number_value", Value.newBuilder().setNumberValue(1.25).build()); in testStruct()
812 subStructBuilder.putFields("number_value", Value.newBuilder().setNumberValue(1234).build()); in testStruct()
816 listBuilder.addValues(Value.newBuilder().setNumberValue(1.125).build()); in testStruct()
845 listBuilder.addValues(Value.newBuilder().setNumberValue(31831.125).build()); in testStruct()
1010 structBuilder.putFields("number", Value.newBuilder().setNumberValue(1.125).build()); in testAnyFields()
1024 valueBuilder.setNumberValue(1); in testAnyFields()
1056 Value numberValue = Value.newBuilder().setNumberValue(1.125).build(); in testAnyInMaps()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DValues.java55 return Value.newBuilder().setNumberValue(value).build(); in of()
/external/protobuf/php/src/Google/Protobuf/
DValue.php93 public function setNumberValue($var) function in Google\\Protobuf\\Value
/external/protobuf/php/tests/
Dmemory_leak_test.php164 $from->setNumberValue(1);
Dencode_decode_test.php924 $m->setNumberValue(1.5);
948 $sub->setNumberValue(1.5);
974 $sub->setNumberValue(1.5);
Dwell_known_test.php279 $m->setNumberValue(1.0);
/external/protobuf/php/src/Google/Protobuf/Internal/
DMessage.php1133 $this->setNumberValue($array);
/external/protobuf/php/ext/google/protobuf/
Dprotobuf.h1409 PHP_METHOD(Value, setNumberValue);
Dmessage.c2533 PHP_ME(Value, setNumberValue, NULL, ZEND_ACC_PUBLIC)