Home
last modified time | relevance | path

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

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DFieldPresenceTest.java144 OneofDescriptor oneofDescriptor = fieldDescriptor.getContainingOneof(); in assertProto3OptionalReflection() local
149 assertFalse(TestProto3Optional.getDefaultInstance().hasOneof(oneofDescriptor)); in assertProto3OptionalReflection()
150 assertNull(TestProto3Optional.getDefaultInstance().getOneofFieldDescriptor(oneofDescriptor)); in assertProto3OptionalReflection()
158 assertTrue(builder.hasOneof(oneofDescriptor)); in assertProto3OptionalReflection()
159 assertEquals(fieldDescriptor, builder.getOneofFieldDescriptor(oneofDescriptor)); in assertProto3OptionalReflection()
160 assertTrue(builder.build().hasOneof(oneofDescriptor)); in assertProto3OptionalReflection()
161 assertEquals(fieldDescriptor, builder.build().getOneofFieldDescriptor(oneofDescriptor)); in assertProto3OptionalReflection()
180 assertTrue(dynamicBuilder.hasOneof(oneofDescriptor)); in assertProto3OptionalReflection()
181 assertEquals(fieldDescriptor, dynamicBuilder.getOneofFieldDescriptor(oneofDescriptor)); in assertProto3OptionalReflection()
182 assertTrue(dynamicBuilder.build().hasOneof(oneofDescriptor)); in assertProto3OptionalReflection()
[all …]
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()
/third_party/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()
/third_party/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();
DGeneratedMessageV3.java167 final OneofDescriptor oneofDescriptor = field.getContainingOneof(); in getAllFieldsMutable() local
173 if (oneofDescriptor != null) { in getAllFieldsMutable()
175 i += oneofDescriptor.getFieldCount() - 1; in getAllFieldsMutable()
176 if (!hasOneof(oneofDescriptor)) { in getAllFieldsMutable()
181 field = getOneofFieldDescriptor(oneofDescriptor); in getAllFieldsMutable()
638 final OneofDescriptor oneofDescriptor = field.getContainingOneof();
644 if (oneofDescriptor != null) {
646 i += oneofDescriptor.getFieldCount() - 1;
647 if (!hasOneof(oneofDescriptor)) {
652 field = getOneofFieldDescriptor(oneofDescriptor);
[all …]
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);
DDescriptors.java903 OneofDescriptor oneofDescriptor = fields[i].getContainingOneof(); in Descriptor() local
904 if (oneofDescriptor != null) { in Descriptor()
905 oneofDescriptor.fields[oneofDescriptor.fieldCount++] = fields[i]; in Descriptor()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DCustomOptionsTest.cs140 var oneofDescriptor = TestMessageWithCustomOptions.Descriptor.Oneofs[0]; in OptionLocations()
141 …AssertOption(-99, oneofDescriptor.CustomOptions.TryGetInt32, OneofOpt1, oneofDescriptor.GetOption,… in OptionLocations()
/third_party/protobuf/objectivec/
DGPBDescriptor.m198 GPBOneofDescriptor *oneofDescriptor =
200 [oneofs addObject:oneofDescriptor];
201 [oneofDescriptor release];