Searched refs:oneofs (Results 1 – 9 of 9) sorted by relevance
/external/protobuf/python/google/protobuf/internal/ |
D | generator_test.py | 287 self.assertEqual(1, len(desc.oneofs)) 288 self.assertEqual('oneof_field', desc.oneofs[0].name) 289 self.assertEqual(0, desc.oneofs[0].index) 290 self.assertIs(desc, desc.oneofs[0].containing_type) 291 self.assertIs(desc.oneofs[0], desc.oneofs_by_name['oneof_field']) 296 [field.name for field in desc.oneofs[0].fields]) 299 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
|
D | descriptor_pool_test.py | 177 self.assertEqual(1, len(msg2.oneofs)) 179 self.assertEqual(2, len(msg2.oneofs[0].fields)) 181 self.assertEqual(msg2.oneofs[0], 183 self.assertIn(msg2.fields_by_name[name], msg2.oneofs[0].fields)
|
D | python_message.py | 619 for field in message_descriptor.oneofs:
|
/external/protobuf/python/google/protobuf/ |
D | descriptor.py | 243 is_extendable=True, extension_ranges=None, oneofs=None, argument 285 self.oneofs = oneofs if oneofs is not None else [] 286 self.oneofs_by_name = dict((o.name, o) for o in self.oneofs) 287 for oneof in self.oneofs:
|
D | descriptor_pool.py | 362 oneofs = [ 377 oneofs=oneofs, 394 oneofs[oneof_index].fields.append(fields[field_index]) 395 fields[field_index].containing_oneof = oneofs[oneof_index]
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | Descriptors.java | 598 return Collections.unmodifiableList(Arrays.asList(oneofs)); in getOneofs() 699 private final OneofDescriptor[] oneofs; field in Descriptors.Descriptor 721 this.oneofs = new OneofDescriptor[0]; in Descriptor() 738 oneofs = new OneofDescriptor[proto.getOneofDeclCount()]; in Descriptor() 740 oneofs[i] = new OneofDescriptor( in Descriptor() 769 oneofs[i].fields = new FieldDescriptor[oneofs[i].getFieldCount()]; in Descriptor() 770 oneofs[i].fieldCount = 0; in Descriptor()
|
D | GeneratedMessage.java | 1633 oneofs = new OneofAccessor[descriptor.getOneofs().size()]; 1686 int oneofsSize = oneofs.length; 1688 oneofs[i] = new OneofAccessor( 1701 private final OneofAccessor[] oneofs; 1724 return oneofs[oneof.getIndex()];
|
/external/protobuf/src/google/protobuf/ |
D | unittest.proto | 608 // Test oneofs.
|
/external/protobuf/ |
D | CHANGES.txt | 22 * Added oneofs(unions) feature. Fields in the same oneof will share
|