Home
last modified time | relevance | path

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

/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java218 IRubyObject oneofDescriptor = rubyDescriptor.lookupOneof(context, args[0]); in methodMissing() local
219 if (oneofDescriptor.isNil()) { in methodMissing()
225 RubyOneofDescriptor rubyOneofDescriptor = (RubyOneofDescriptor) oneofDescriptor; in methodMissing()
593 Descriptors.OneofDescriptor oneofDescriptor = fieldDescriptor.getContainingOneof(); in getField() local
594 if (oneofDescriptor != null) { in getField()
595 if (oneofCases.containsKey(oneofDescriptor)) { in getField()
596 if (oneofCases.get(oneofDescriptor) != fieldDescriptor) in getField()
600 … Descriptors.FieldDescriptor oneofCase = builder.getOneofFieldDescriptor(oneofDescriptor); in getField()
662 Descriptors.OneofDescriptor oneofDescriptor = fieldDescriptor.getContainingOneof(); in setField() local
663 if (oneofDescriptor != null) { in setField()
[all …]
DRubyDescriptor.java199 for (RubyOneofDescriptor oneofDescriptor : oneofDefs.values()) { in eachOneof()
200 block.yieldSpecific(context, oneofDescriptor); in eachOneof()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java521 OneofDescriptor oneofDescriptor = field.getContainingOneof();
522 if (oneofDescriptor != null) {
523 int index = oneofDescriptor.getIndex();
538 OneofDescriptor oneofDescriptor = field.getContainingOneof();
539 if (oneofDescriptor != null) {
540 int index = oneofDescriptor.getIndex();
DGeneratedMessage.java127 final OneofDescriptor oneofDescriptor = field.getContainingOneof(); in getAllFieldsMutable() local
133 if (oneofDescriptor != null) { in getAllFieldsMutable()
135 i += oneofDescriptor.getFieldCount() - 1; in getAllFieldsMutable()
136 if (!hasOneof(oneofDescriptor)) { in getAllFieldsMutable()
141 field = getOneofFieldDescriptor(oneofDescriptor); in getAllFieldsMutable()
481 final OneofDescriptor oneofDescriptor = field.getContainingOneof(); in getAllFieldsMutable() local
487 if (oneofDescriptor != null) { in getAllFieldsMutable()
489 i += oneofDescriptor.getFieldCount() - 1; in getAllFieldsMutable()
490 if (!hasOneof(oneofDescriptor)) { in getAllFieldsMutable()
495 field = getOneofFieldDescriptor(oneofDescriptor); in getAllFieldsMutable()
DDescriptors.java842 OneofDescriptor oneofDescriptor = fields[i].getContainingOneof(); in Descriptor() local
843 if (oneofDescriptor != null) { in Descriptor()
844 oneofDescriptor.fields[oneofDescriptor.fieldCount++] = fields[i]; in Descriptor()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java730 OneofDescriptor oneofDescriptor = field.getContainingOneof(); in testOneofDescriptor() local
731 assertNotNull(oneofDescriptor); in testOneofDescriptor()
732 assertSame(oneofDescriptor, messageType.getOneofs().get(0)); in testOneofDescriptor()
733 assertEquals("oneof_field", oneofDescriptor.getName()); in testOneofDescriptor()
735 assertEquals(4, oneofDescriptor.getFieldCount()); in testOneofDescriptor()
736 assertSame(oneofDescriptor.getField(1), field); in testOneofDescriptor()
738 assertEquals(4, oneofDescriptor.getFields().size()); in testOneofDescriptor()
739 assertEquals(oneofDescriptor.getFields().get(1), field); in testOneofDescriptor()
/external/protobuf/objectivec/
DGPBDescriptor.m184 GPBOneofDescriptor *oneofDescriptor =
186 [oneofs addObject:oneofDescriptor];
187 [oneofDescriptor release];