Home
last modified time | relevance | path

Searched refs:oneofDescriptor (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/java/src/main/java/com/google/protobuf/
DDynamicMessage.java495 OneofDescriptor oneofDescriptor = field.getContainingOneof();
496 if (oneofDescriptor != null) {
497 int index = oneofDescriptor.getIndex();
511 OneofDescriptor oneofDescriptor = field.getContainingOneof();
512 if (oneofDescriptor != null) {
513 int index = oneofDescriptor.getIndex();
DDescriptors.java773 OneofDescriptor oneofDescriptor = fields[i].getContainingOneof(); in Descriptor() local
774 if (oneofDescriptor != null) { in Descriptor()
775 oneofDescriptor.fields[oneofDescriptor.fieldCount++] = fields[i]; in Descriptor()
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java687 OneofDescriptor oneofDescriptor = field.getContainingOneof(); in testOneofDescriptor() local
688 assertNotNull(oneofDescriptor); in testOneofDescriptor()
689 assertSame(oneofDescriptor, messageType.getOneofs().get(0)); in testOneofDescriptor()
690 assertEquals("oneof_field", oneofDescriptor.getName()); in testOneofDescriptor()
692 assertEquals(4, oneofDescriptor.getFieldCount()); in testOneofDescriptor()
693 assertSame(oneofDescriptor.getField(1), field); in testOneofDescriptor()