Home
last modified time | relevance | path

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

/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java241 IRubyObject oneofDescriptor = rubyDescriptor.lookupOneof(context, args[0]); in methodMissing() local
242 if (oneofDescriptor.isNil()) { in methodMissing()
248 RubyOneofDescriptor rubyOneofDescriptor = (RubyOneofDescriptor) oneofDescriptor; in methodMissing()
621 Descriptors.OneofDescriptor oneofDescriptor = fieldDescriptor.getContainingOneof(); in getField() local
622 if (oneofDescriptor != null) { in getField()
623 if (oneofCases.get(oneofDescriptor) == fieldDescriptor) { in getField()
626 … Descriptors.FieldDescriptor oneofCase = builder.getOneofFieldDescriptor(oneofDescriptor); in getField()
694 Descriptors.OneofDescriptor oneofDescriptor = fieldDescriptor.getContainingOneof(); in setField() local
695 if (oneofDescriptor != null) { in setField()
696 Descriptors.FieldDescriptor oneofCase = oneofCases.get(oneofDescriptor); 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.java534 OneofDescriptor oneofDescriptor = field.getContainingOneof();
535 if (oneofDescriptor != null) {
536 int index = oneofDescriptor.getIndex();
559 OneofDescriptor oneofDescriptor = field.getContainingOneof();
560 if (oneofDescriptor != null) {
561 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()
482 final OneofDescriptor oneofDescriptor = field.getContainingOneof();
488 if (oneofDescriptor != null) {
490 i += oneofDescriptor.getFieldCount() - 1;
491 if (!hasOneof(oneofDescriptor)) {
496 field = getOneofFieldDescriptor(oneofDescriptor);
DGeneratedMessageV3.java160 final OneofDescriptor oneofDescriptor = field.getContainingOneof(); in getAllFieldsMutable() local
166 if (oneofDescriptor != null) { in getAllFieldsMutable()
168 i += oneofDescriptor.getFieldCount() - 1; in getAllFieldsMutable()
169 if (!hasOneof(oneofDescriptor)) { in getAllFieldsMutable()
174 field = getOneofFieldDescriptor(oneofDescriptor); in getAllFieldsMutable()
631 final OneofDescriptor oneofDescriptor = field.getContainingOneof();
637 if (oneofDescriptor != null) {
639 i += oneofDescriptor.getFieldCount() - 1;
640 if (!hasOneof(oneofDescriptor)) {
645 field = getOneofFieldDescriptor(oneofDescriptor);
DDescriptors.java896 OneofDescriptor oneofDescriptor = fields[i].getContainingOneof(); in Descriptor() local
897 if (oneofDescriptor != null) { in Descriptor()
898 oneofDescriptor.fields[oneofDescriptor.fieldCount++] = fields[i]; in Descriptor()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java705 OneofDescriptor oneofDescriptor = field.getContainingOneof(); in testOneofDescriptor() local
706 assertNotNull(oneofDescriptor); in testOneofDescriptor()
707 assertSame(oneofDescriptor, messageType.getOneofs().get(0)); in testOneofDescriptor()
708 assertEquals("oneof_field", oneofDescriptor.getName()); in testOneofDescriptor()
710 assertEquals(4, oneofDescriptor.getFieldCount()); in testOneofDescriptor()
711 assertSame(oneofDescriptor.getField(1), field); in testOneofDescriptor()
713 assertEquals(4, oneofDescriptor.getFields().size()); in testOneofDescriptor()
714 assertEquals(oneofDescriptor.getFields().get(1), field); in testOneofDescriptor()
/external/protobuf/objectivec/
DGPBDescriptor.m192 GPBOneofDescriptor *oneofDescriptor =
194 [oneofs addObject:oneofDescriptor];
195 [oneofDescriptor release];