Home
last modified time | relevance | path

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

/third_party/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.java820 structBuilder.putFields("number_value", Value.newBuilder().setNumberValue(1.25).build()); in testStruct()
823 subStructBuilder.putFields("number_value", Value.newBuilder().setNumberValue(1234).build()); in testStruct()
827 listBuilder.addValues(Value.newBuilder().setNumberValue(1.125).build()); in testStruct()
856 listBuilder.addValues(Value.newBuilder().setNumberValue(31831.125).build()); in testStruct()
1060 structBuilder.putFields("number", Value.newBuilder().setNumberValue(1.125).build()); in testAnyFields()
1074 valueBuilder.setNumberValue(1); in testAnyFields()
1106 Value numberValue = Value.newBuilder().setNumberValue(1.125).build(); in testAnyInMaps()
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DValues.java55 return Value.newBuilder().setNumberValue(value).build(); in of()
/third_party/protobuf/php/src/Google/Protobuf/
DValue.php103 public function setNumberValue($var) function in Google\\Protobuf\\Value
/third_party/protobuf/php/tests/
Dmemory_leak_test.php171 $from->setNumberValue(1);
DEncodeDecodeTest.php1007 $m->setNumberValue(1.5);
1031 $sub->setNumberValue(1.5);
1057 $sub->setNumberValue(1.5);
DWellKnownTest.php280 $m->setNumberValue(1.0);
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DMessage.php1199 $this->setNumberValue($array);