/external/protobuf/python/google/protobuf/internal/ |
D | generator_test.py | 292 self.assertEqual(1, len(desc.oneofs)) 293 self.assertEqual('oneof_field', desc.oneofs[0].name) 294 self.assertEqual(0, desc.oneofs[0].index) 295 self.assertIs(desc, desc.oneofs[0].containing_type) 296 self.assertIs(desc.oneofs[0], desc.oneofs_by_name['oneof_field']) 301 set([field.name for field in desc.oneofs[0].fields])) 304 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
|
D | descriptor_pool_test.py | 186 self.assertEqual(1, len(msg2.oneofs)) 188 self.assertEqual(2, len(msg2.oneofs[0].fields)) 190 self.assertEqual(msg2.oneofs[0], 192 self.assertIn(msg2.fields_by_name[name], msg2.oneofs[0].fields)
|
D | python_message.py | 828 for oneof in message_descriptor.oneofs:
|
/external/protobuf/src/google/protobuf/util/internal/testdata/ |
D | oneofs.proto | 31 // Proto to test oneofs. 38 package google.protobuf.testing.oneofs; 39 option java_package = "com.google.protobuf.testing.oneofs";
|
/external/protobuf/python/google/protobuf/ |
D | descriptor.py | 260 is_extendable=True, extension_ranges=None, oneofs=None, argument 271 is_extendable=True, extension_ranges=None, oneofs=None, argument 315 self.oneofs = oneofs if oneofs is not None else [] 316 self.oneofs_by_name = dict((o.name, o) for o in self.oneofs) 317 for oneof in self.oneofs:
|
D | descriptor_pool.py | 442 oneofs = [ 457 oneofs=oneofs, 475 oneofs[oneof_index].fields.append(fields[field_index]) 476 fields[field_index].containing_oneof = oneofs[oneof_index]
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_reflection_class.cc | 253 std::vector<std::string> oneofs; in WriteGeneratedCodeInfo() local 255 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true)); in WriteGeneratedCodeInfo() 257 printer->Print("new[]{ \"$oneofs$\" }, ", "oneofs", JoinStrings(oneofs, "\", \"")); in WriteGeneratedCodeInfo()
|
/external/protobuf/objectivec/Tests/ |
D | GPBDescriptorTests.m | 162 // There are two oneofs in there. 163 XCTAssertEqual(descriptor.oneofs.count, 2U); 172 // Check the oneofs to have what is expected. 209 // Check pointers back to the enclosing oneofs.
|
/external/protobuf/objectivec/google/protobuf/ |
D | Struct.pbobjc.m | 196 static const char *oneofs[] = { 199 [localDescriptor setupOneofs:oneofs 200 count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
|
/external/protobuf/csharp/protos/ |
D | unittest_issues.proto | 99 // but doesn't include oneofs. 100 // TODO: Consider adding oneofs to TestFieldOrderings, although
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Descriptors.java | 643 return Collections.unmodifiableList(Arrays.asList(oneofs)); in getOneofs() 768 private final OneofDescriptor[] oneofs; field in Descriptors.Descriptor 790 this.oneofs = new OneofDescriptor[0]; in Descriptor() 807 oneofs = new OneofDescriptor[proto.getOneofDeclCount()]; in Descriptor() 809 oneofs[i] = new OneofDescriptor( in Descriptor() 838 oneofs[i].fields = new FieldDescriptor[oneofs[i].getFieldCount()]; in Descriptor() 839 oneofs[i].fieldCount = 0; in Descriptor()
|
D | GeneratedMessage.java | 1888 oneofs = new OneofAccessor[descriptor.getOneofs().size()]; 1955 int oneofsSize = oneofs.length; 1957 oneofs[i] = new OneofAccessor( 1970 private final OneofAccessor[] oneofs; 1993 return oneofs[oneof.getIndex()];
|
/external/protobuf/src/google/protobuf/ |
D | type.proto | 52 repeated string oneofs = 3; field 128 // The index of the field type in `Type.oneofs`, for message or enumeration
|
D | type.pb.cc | 422 this->oneofs(this->oneofs_size() - 1).data(), in MergePartialFromCodedStream() 423 this->oneofs(this->oneofs_size() - 1).length(), in MergePartialFromCodedStream() 523 this->oneofs(i).data(), this->oneofs(i).length(), in SerializeWithCachedSizes() 527 3, this->oneofs(i), output); in SerializeWithCachedSizes() 575 this->oneofs(i).data(), this->oneofs(i).length(), in SerializeWithCachedSizesToArray() 579 WriteStringToArray(3, this->oneofs(i), target); in SerializeWithCachedSizesToArray() 642 this->oneofs(i)); in ByteSize() 818 const ::std::string& Type::oneofs(int index) const { in oneofs() function in google::protobuf::Type 856 Type::oneofs() const { in oneofs() function in google::protobuf::Type
|
D | type.pb.h | 216 const ::std::string& oneofs(int index) const; 225 const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const; 942 inline const ::std::string& Type::oneofs(int index) const { in oneofs() function 980 Type::oneofs() const { in oneofs() function
|
D | field_mask.proto | 167 // Field masks treat fields in oneofs just as regular fields. Consider the
|
D | unittest_proto3.proto | 303 // Test oneofs.
|
/external/protobuf/objectivec/ |
D | GPBDescriptor.h | 58 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs;
|
D | GPBDescriptor.m | 100 @synthesize oneofs = oneofs_; 178 NSMutableArray *oneofs = [[NSMutableArray alloc] initWithCapacity:count]; 186 [oneofs addObject:oneofDescriptor]; 190 oneofs_ = oneofs;
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_containers.cc | 1232 namespace oneofs { namespace 1277 return descriptor::NewMappingByName(&oneofs::ContainerDef, descriptor); in NewMessageOneofsByName() 1281 return descriptor::NewSequence(&oneofs::ContainerDef, descriptor); in NewMessageOneofsSeq()
|
/external/protobuf/src/google/protobuf/util/ |
D | type_resolver_util_test.cc | 110 return type.oneofs(field->oneof_index() - 1) == oneof_name; in FieldInOneof()
|
/external/protobuf/cmake/ |
D | tests.cmake | 64 google/protobuf/util/internal/testdata/oneofs.proto
|
/external/protobuf/src/ |
D | Makefile.am | 519 google/protobuf/util/internal/testdata/oneofs.proto \ 632 google/protobuf/util/internal/testdata/oneofs.pb.cc \ 633 google/protobuf/util/internal/testdata/oneofs.pb.h \
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectwriter_test.cc | 80 using google::protobuf::testing::oneofs::OneOfsRequest; 2254 using google::protobuf::testing::oneofs::OneOfsRequest; in TEST_P()
|
D | proto_writer.cc | 530 element_->type().oneofs(field.oneof_index() - 1), in ValidOneof()
|