/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MessageTest.java | 174 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic() 176 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic() 178 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic() 188 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_UNINITIALIZED); in testRequiredDynamicForeign() 191 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_INITIALIZED); in testRequiredDynamicForeign() 195 descriptor.findFieldByName("repeated_message"), TEST_REQUIRED_UNINITIALIZED); in testRequiredDynamicForeign() 199 descriptor.findFieldByName("repeated_message"), 0, TEST_REQUIRED_INITIALIZED); in testRequiredDynamicForeign() 324 result.getField(result.getDescriptorForType().findFieldByName("repeated_foreign_message")) in testDynamicRepeatedMessageNull() 329 result.getDescriptorForType().findFieldByName("repeated_foreign_message"))); in testDynamicRepeatedMessageNull() 350 result.getField(result.getDescriptorForType().findFieldByName("repeated_foreign_message")) in testDynamicRepeatedMessageNotNull() [all …]
|
D | TextFormatParseInfoTreeTest.java | 43 DESCRIPTOR.findFieldByName("optional_int32"); 45 DESCRIPTOR.findFieldByName("optional_boolean"); 47 DESCRIPTOR.findFieldByName("repeated_int32"); 49 DESCRIPTOR.findFieldByName("optional_nested_message"); 51 DESCRIPTOR.findFieldByName("repeated_nested_message"); 53 TestAllTypes.NestedMessage.getDescriptor().findFieldByName("bb");
|
D | DescriptorsTest.java | 166 assertEquals(field, messageType.findFieldByName("optional_int32")); in testDescriptor() 167 assertNull(messageType.findFieldByName("no_such_field")); in testDescriptor() 192 FieldDescriptor primitiveField = messageType.findFieldByName("optional_int32"); in testFieldDescriptor() 193 FieldDescriptor enumField = messageType.findFieldByName("optional_nested_enum"); in testFieldDescriptor() 194 FieldDescriptor messageField = messageType.findFieldByName("optional_foreign_message"); in testFieldDescriptor() 195 FieldDescriptor cordField = messageType.findFieldByName("optional_cord"); in testFieldDescriptor() 243 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel() 244 FieldDescriptor optionalField = TestAllTypes.getDescriptor().findFieldByName("optional_int32"); in testFieldDescriptorLabel() 245 FieldDescriptor repeatedField = TestAllTypes.getDescriptor().findFieldByName("repeated_int32"); in testFieldDescriptorLabel() 256 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorJsonName() [all …]
|
D | GeneratedMessageTest.java | 679 Descriptors.FieldDescriptor field = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionGetOneof() 690 Descriptors.FieldDescriptor field = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionClearOneof() 897 MessageWithNoOuter.getDescriptor().findFieldByName("foreign_enum"); in testMultipleFilesOption() 1233 FieldDescriptor fieldDescriptor = descriptor.findFieldByName("optional_nested_message"); in testGetFieldBuilder() 1234 FieldDescriptor foreignFieldDescriptor = descriptor.findFieldByName("optional_foreign_message"); in testGetFieldBuilder() 1235 FieldDescriptor importFieldDescriptor = descriptor.findFieldByName("optional_import_message"); in testGetFieldBuilder() 1245 fieldBuilder1.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 1255 foreignFieldBuilder1.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 1265 importFieldBuilder1.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() 1276 fieldBuilder2.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() [all …]
|
D | UnknownEnumValueTest.java | 133 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testUnknownEnumValueInReflectionApi() 134 FieldDescriptor repeatedNestedEnumField = descriptor.findFieldByName("repeated_nested_enum"); in testUnknownEnumValueInReflectionApi() 135 FieldDescriptor packedNestedEnumField = descriptor.findFieldByName("packed_nested_enum"); in testUnknownEnumValueInReflectionApi() 179 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 180 FieldDescriptor repeatedNestedEnumField = descriptor.findFieldByName("repeated_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 181 FieldDescriptor packedNestedEnumField = descriptor.findFieldByName("packed_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 282 FieldDescriptor repeatedPackedField = descriptor.findFieldByName("repeated_packed_enum"); in testUnknownEnumValuesInProto2WithDynamicMessage()
|
D | FieldPresenceTest.java | 143 FieldDescriptor fieldDescriptor = TestProto3Optional.getDescriptor().findFieldByName(name); in assertProto3OptionalReflection() 284 FieldDescriptor optionalInt32Field = descriptor.findFieldByName("optional_int32"); in testFieldPresenceByReflection() 285 FieldDescriptor optionalStringField = descriptor.findFieldByName("optional_string"); in testFieldPresenceByReflection() 286 FieldDescriptor optionalBytesField = descriptor.findFieldByName("optional_bytes"); in testFieldPresenceByReflection() 287 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testFieldPresenceByReflection() 328 FieldDescriptor optionalInt32Field = descriptor.findFieldByName("optional_int32"); in testFieldPresenceDynamicMessage() 329 FieldDescriptor optionalStringField = descriptor.findFieldByName("optional_string"); in testFieldPresenceDynamicMessage() 330 FieldDescriptor optionalBytesField = descriptor.findFieldByName("optional_bytes"); in testFieldPresenceDynamicMessage() 331 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testFieldPresenceDynamicMessage()
|
D | WireFormatTest.java | 211 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions() 212 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions() 213 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions() 269 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic() 270 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic() 271 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
|
D | Proto2UnknownEnumValueTest.java | 42 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); 44 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum");
|
D | TextFormatTest.java | 252 final FieldDescriptor dataField = OneString.getDescriptor().findFieldByName("data"); in testPrintField() 257 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 1101 .printFieldValue(TestAllTypes.getDescriptor().findFieldByName(fieldName), value, sb); in assertPrintFieldValue() 1117 final FieldDescriptor dataField = OneString.getDescriptor().findFieldByName("data"); in testShortDebugString_field() 1123 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testShortDebugString_field() 1539 FieldDescriptor nestedField = descriptor.findFieldByName("optional_nested_message"); in testParseInfoTreeBuilding() 1545 nestedField = descriptor.findFieldByName("repeated_nested_message"); in testParseInfoTreeBuilding() 1568 List<TextFormatParseLocation> locs = tree.getLocations(descriptor.findFieldByName(fieldName)); in assertLocation()
|
D | DynamicMessageTest.java | 248 FieldDescriptor bytesField = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testDynamicMessageCopy() 249 FieldDescriptor uint32Field = TestAllTypes.getDescriptor().findFieldByName("oneof_uint32"); in testDynamicMessageCopy() 311 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testSettersForRepeatedEnumField()
|
D | MapForProto2Test.java | 618 return TestMap.getDescriptor().findFieldByName(name); in f() 622 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in getFieldValue() 628 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in setFieldValue() 653 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in newMapEntry() 655 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() 656 FieldDescriptor valueField = entryBuilder.getDescriptorForType().findFieldByName("value"); in newMapEntry() 667 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in setMapValues() 1161 message.getDescriptorForType().findFieldByName("map_field"), 0); in testMapInitializationOrder()
|
D | UnknownFieldSetTest.java | 67 Descriptors.FieldDescriptor field = descriptor.findFieldByName(name); in getField() 286 TestAllTypes.OptionalGroup.getDescriptor().findFieldByName("a"); in testGroup() 421 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); in testParseUnknownEnumValue() 423 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testParseUnknownEnumValue()
|
D | MapTest.java | 709 return TestMap.getDescriptor().findFieldByName(name); in f() 713 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in getFieldValue() 719 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in setFieldValue() 744 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in newMapEntry() 746 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() 747 FieldDescriptor valueField = entryBuilder.getDescriptorForType().findFieldByName("value"); in newMapEntry() 758 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in setMapValues() 969 FieldDescriptor field = descriptor.findFieldByName("int32_to_enum_field"); in testUnknownEnumValuesInReflectionApi() 1411 TestMap.MessageValue.getDescriptor().findFieldByName("value"), 10) in testInitFromFullyDynamicMessage()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | MessageTest.java | 173 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic() 175 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic() 177 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic() 187 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign() 191 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign() 195 builder.addRepeatedField(descriptor.findFieldByName("repeated_message"), in testRequiredDynamicForeign() 199 builder.setRepeatedField(descriptor.findFieldByName("repeated_message"), 0, in testRequiredDynamicForeign() 326 .findFieldByName("repeated_foreign_message")) instanceof List<?>); in testDynamicRepeatedMessageNull() 328 .findFieldByName("repeated_foreign_message")), 0); in testDynamicRepeatedMessageNull() 350 .findFieldByName("repeated_foreign_message")) instanceof List<?>); in testDynamicRepeatedMessageNotNull() [all …]
|
D | DescriptorsTest.java | 170 assertEquals(field, messageType.findFieldByName("optional_int32")); in testDescriptor() 171 assertNull(messageType.findFieldByName("no_such_field")); in testDescriptor() 197 messageType.findFieldByName("optional_int32"); in testFieldDescriptor() 199 messageType.findFieldByName("optional_nested_enum"); in testFieldDescriptor() 201 messageType.findFieldByName("optional_foreign_message"); in testFieldDescriptor() 203 messageType.findFieldByName("optional_cord"); in testFieldDescriptor() 262 TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel() 264 TestAllTypes.getDescriptor().findFieldByName("optional_int32"); in testFieldDescriptorLabel() 266 TestAllTypes.getDescriptor().findFieldByName("repeated_int32"); in testFieldDescriptorLabel() 278 assertFalse(d.findFieldByName("optional_int32").hasDefaultValue()); in testFieldDescriptorDefault() [all …]
|
D | GeneratedMessageTest.java | 631 MessageWithNoOuter.getDescriptor().findFieldByName("foreign_enum"); in testMultipleFilesOption() 830 descriptor.findFieldByName("optional_nested_message"); in testGetFieldBuilder() 832 descriptor.findFieldByName("optional_foreign_message"); in testGetFieldBuilder() 834 descriptor.findFieldByName("optional_import_message"); in testGetFieldBuilder() 842 fieldBuilder1.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 851 foreignFieldBuilder1.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 860 importFieldBuilder1.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() 871 fieldBuilder2.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 880 foreignFieldBuilder2.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 889 importFieldBuilder2.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() [all …]
|
D | WireFormatTest.java | 212 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions() 213 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions() 214 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions() 250 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic() 251 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic() 252 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
|
D | UnknownFieldSetTest.java | 60 Descriptors.FieldDescriptor field = descriptor.findFieldByName(name); in getField() 131 TestAllTypes.OptionalGroup.getDescriptor().findFieldByName("a"); in testGroup() 272 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); in testParseUnknownEnumValue() 274 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testParseUnknownEnumValue()
|
D | TextFormatTest.java | 208 OneString.getDescriptor().findFieldByName("data"); in testPrintField() 214 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 492 TestAllTypes.getDescriptor().findFieldByName(fieldName), in assertPrintFieldValue()
|
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 871 FieldDescriptor typeUrlField = descriptor.findFieldByName("type_url"); in printAny() 872 FieldDescriptor valueField = descriptor.findFieldByName("value"); in printAny() 913 FieldDescriptor valueField = descriptor.findFieldByName("value"); in printWrapper() 951 FieldDescriptor field = descriptor.findFieldByName("fields"); in printStruct() 981 FieldDescriptor field = descriptor.findFieldByName("values"); in printListValue() 1074 FieldDescriptor keyField = type.findFieldByName("key"); in printMapFieldValue() 1075 FieldDescriptor valueField = type.findFieldByName("value"); in printMapFieldValue() 1509 FieldDescriptor typeUrlField = descriptor.findFieldByName("type_url"); in mergeAny() 1510 FieldDescriptor valueField = descriptor.findFieldByName("value"); in mergeAny() 1583 FieldDescriptor field = descriptor.findFieldByName("fields"); in mergeStruct() [all …]
|
D | FieldMaskTree.java | 268 FieldDescriptor field = descriptor.findFieldByName(entry.getKey()); in merge()
|
D | FieldMaskUtil.java | 245 FieldDescriptor field = descriptor.findFieldByName(name); in isValid()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessage.java | 200 Descriptors.FieldDescriptor key = descriptor.findFieldByName("key"); in convertMapEntryListToMap() 201 Descriptors.FieldDescriptor value = descriptor.findFieldByName("value"); in convertMapEntryListToMap()
|
D | TextFormat.java | 1837 field = type.findFieldByName(name); in mergeField() 1846 field = type.findFieldByName(lowerName); in mergeField() 2203 target.setField(anyDescriptor.findFieldByName("type_url"), typeUrlBuilder.toString()); in mergeAnyFieldValue() 2205 anyDescriptor.findFieldByName("value"), contentBuilder.build().toByteString()); in mergeAnyFieldValue()
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMessage.java | 474 …Descriptors.FieldDescriptor ret = this.descriptor.findFieldByName(Utils.escapeIdentifier(nameStr)); in findField() 482 return this.descriptor.findFieldByName(Utils.escapeIdentifier(nameStr)) != null; in hasField()
|