Home
last modified time | relevance | path

Searched refs:oneof_decl (Results 1 - 25 of 25) sorted by relevance

/third_party/protobuf/src/google/protobuf/
H A Ddynamic_message.cc381 if (descriptor->oneof_decl(i)->is_synthetic()) continue; in SharedCtor()
712 if (!type->oneof_decl(i)->is_synthetic()) { in GetPrototypeNoLock()
787 if (!type->oneof_decl(i)->is_synthetic()) { in GetPrototypeNoLock()
805 if (type->oneof_decl(i)->is_synthetic()) continue; in GetPrototypeNoLock()
806 for (int j = 0; j < type->oneof_decl(i)->field_count(); j++) { in GetPrototypeNoLock()
807 const FieldDescriptor* field = type->oneof_decl(i)->field(j); in GetPrototypeNoLock()
853 if (type->oneof_decl(i)->is_synthetic()) continue; in ConstructDefaultOneofInstance()
854 for (int j = 0; j < type->oneof_decl(i)->field_count(); j++) { in ConstructDefaultOneofInstance()
855 const FieldDescriptor* field = type->oneof_decl(i)->field(j); in ConstructDefaultOneofInstance()
900 if (type->oneof_decl( in DeleteDefaultOneofInstance()
[all...]
H A Ddescriptor.cc2094 oneof_decl(i)->CopyTo(proto->add_oneof_decl()); in CopyTo()
4624 BUILD_ARRAY(proto, result, oneof_decl, BuildOneof, result); in BuildMessage()
5019 result->containing_oneof_ = parent->oneof_decl(proto.oneof_index()); in BuildFieldOrExtension()
5470 const OneofDescriptor* oneof_decl = message->field(i)->containing_oneof(); in CrossLinkMessage() local
5471 if (oneof_decl != nullptr) { in CrossLinkMessage()
5478 if (oneof_decl->field_count() > 0 && in CrossLinkMessage()
5479 message->field(i - 1)->containing_oneof() != oneof_decl) { in CrossLinkMessage()
5486 message->field(i - 1)->name(), oneof_decl->name())); in CrossLinkMessage()
5490 ++message->oneof_decls_[oneof_decl->index()].field_count_; in CrossLinkMessage()
5496 OneofDescriptor* oneof_decl in CrossLinkMessage() local
5515 const OneofDescriptor* oneof_decl = message->field(i)->containing_oneof(); CrossLinkMessage() local
[all...]
H A Ddescriptor.h347 const OneofDescriptor* oneof_decl(int index) const;
2005 PROTOBUF_DEFINE_ARRAY_ACCESSOR(Descriptor, oneof_decl, const OneofDescriptor*)
H A Dgenerated_message_reflection.cc666 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); in Swap()
H A Ddescriptor.pb.h1452 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
1465 const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
1468 oneof_decl() const;
7832 // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
7843 // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl) in mutable_oneof_decl()
7848 // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl) in mutable_oneof_decl()
7854 inline const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const { in oneof_decl() function in DescriptorProto
7855 // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl) in oneof_decl()
7862 // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl) in add_oneof_decl()
7866 DescriptorProto::oneof_decl() cons function in DescriptorProto
[all...]
H A Ddescriptor_unittest.cc1103 oneof_ = oneof_message_->oneof_decl(0); in SetUp()
1104 oneof2_ = oneof_message_->oneof_decl(1); in SetUp()
4362 " oneof_decl { name:\"bar\" }" in TEST_F()
4378 " oneof_decl { name:\"bar\" }" in TEST_F()
4397 " oneof_decl { name:\"foos\" }" in TEST_F()
4417 " oneof_decl { name:\"foos\" }" in TEST_F()
4418 " oneof_decl { name:\"bars\" }" in TEST_F()
4439 " oneof_decl { name:\"foos\" }" in TEST_F()
4440 " oneof_decl { name:\"bars\" }" in TEST_F()
5062 " oneof_decl { nam in TEST_F()
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DDescriptor.php49 private $oneof_decl = []; variable
58 $this->oneof_decl[] = $oneof;
63 return $this->oneof_decl;
H A DDescriptorProto.php45 * Generated from protobuf field <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code>
47 private $oneof_decl; variable
76 * @type \Google\Protobuf\Internal\OneofDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $oneof_decl
232 * Generated from protobuf field <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code>
237 return $this->oneof_decl;
241 * Generated from protobuf field <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</code>
248 $this->oneof_decl = $arr; variable
/third_party/protobuf/src/google/protobuf/compiler/csharp/
H A Dcsharp_message.cc228 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); in Generate()
398 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); in GenerateCloningCode()
469 "property_name", UnderscoresToCamelCase(descriptor_->oneof_decl(i)->name(), true)); in GenerateFrameworkMethods()
496 "name", UnderscoresToCamelCase(descriptor_->oneof_decl(i)->name(), false)); in GenerateFrameworkMethods()
631 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); in GenerateMergingMethods()
H A Dcsharp_reflection_class.cc279 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true)); in WriteGeneratedCodeInfo()
/third_party/protobuf/src/google/protobuf/compiler/java/
H A Djava_context.cc117 const OneofDescriptor* oneof = message->oneof_decl(i); in InitializeFieldGeneratorInfoForMessage()
H A Djava_message.cc236 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); in GenerateFieldAccessorTableInitializer()
/third_party/protobuf/src/google/protobuf/compiler/
H A Dparser_unittest.cc614 " oneof_decl {" in TEST_F()
647 " oneof_decl {" in TEST_F()
650 " oneof_decl {" in TEST_F()
1023 " oneof_decl { name:\"_foo\" } " in TEST_F()
1043 " oneof_decl { name:\"_foo\" } " in TEST_F()
1044 " oneof_decl { name:\"X_foo\" } " in TEST_F()
3022 const OneofDescriptorProto& oneof_decl = file_.message_type(0).oneof_decl(0); in TEST_F() local
3025 EXPECT_TRUE(HasSpan('a', 'r', oneof_decl)); in TEST_F()
3026 EXPECT_TRUE(HasSpan('c', 'd', oneof_decl, "nam in TEST_F()
[all...]
H A Dparser.h409 // oneof_decl->label() since it will have had to parse the label before it
411 bool ParseOneof(OneofDescriptorProto* oneof_decl,
H A Dparser.cc781 for (const auto& oneof : message->oneof_decl()) { in ParseMessageDefinition()
1902 bool Parser::ParseOneof(OneofDescriptorProto* oneof_decl, in ParseOneof() argument
1912 DO(ConsumeIdentifier(oneof_decl->mutable_name(), "Expected oneof name.")); in ParseOneof()
1926 if (!ParseOption(oneof_decl->mutable_options(), option_location, in ParseOneof()
/third_party/protobuf/src/google/protobuf/compiler/python/
H A Dpython_generator.cc794 const OneofDescriptor* desc = message_descriptor.oneof_decl(i); in PrintDescriptor()
939 const OneofDescriptor* oneof = descriptor.oneof_decl(i); in FixForeignFieldsInDescriptor()
1425 FixOptionsForOneof(*descriptor.oneof_decl(i)); in FixOptionsForMessage()
/third_party/protobuf/src/google/protobuf/compiler/js/
H A Djs_generator.cc579 const OneofDescriptor* o = oneof->containing_type()->oneof_decl(i); in JSOneofIndex()
1214 const OneofDescriptor* oneof = desc->oneof_decl(i); in OneofGroupList()
1696 if (IgnoreOneof(desc->oneof_decl(i))) { in FindProvidesForOneOfEnums()
1699 FindProvidesForOneOfEnum(options, desc->oneof_decl(i), provided); in FindProvidesForOneOfEnums()
2143 if (IgnoreOneof(desc->oneof_decl(i))) { in GenerateClassFieldInfo()
2146 GenerateOneofCaseDefinition(options, printer, desc->oneof_decl(i)); in GenerateClassFieldInfo()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
H A Dobjectivec_message.cc189 OneofGenerator* generator = new OneofGenerator(descriptor_->oneof_decl(i)); in MessageGenerator()
/third_party/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generator.cc268 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessage()
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util.cc117 type->add_oneofs(descriptor->oneof_decl(i)->name()); in ConvertDescriptor()
/third_party/protobuf/src/google/protobuf/compiler/php/
H A Dphp_generator.cc894 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessageToPool()
1417 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessageFile()
1446 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessageFile()
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor_pool.py872 for index, desc in enumerate(desc_proto.oneof_decl)]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_helpers.h872 value_type operator*() { return descriptor->oneof_decl(idx); } in operator *()
/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_containers.cc1275 return GetDescriptor(self)->oneof_decl(index); in GetByIndex()
/third_party/protobuf/python/google/protobuf/internal/
H A Ddescriptor_pool_test.py638 oneof = message_type.oneof_decl.add()

Completed in 77 milliseconds