Home
last modified time | relevance | path

Searched refs:oneof_index (Results 1 – 22 of 22) sorted by relevance

/third_party/protobuf/php/src/Google/Protobuf/Internal/
DFieldDescriptorProto.php72 protected $oneof_index = null; variable in Google\\Protobuf\\Internal\\FieldDescriptorProto
441 return isset($this->oneof_index) ? $this->oneof_index : 0;
446 return isset($this->oneof_index);
451 unset($this->oneof_index);
465 $this->oneof_index = $var;
DFieldDescriptor.php50 private $oneof_index = -1; variable in Google\\Protobuf\\Internal\\FieldDescriptor
59 $this->oneof_index = $index;
64 return $this->oneof_index;
231 $oneof_index = $proto->hasOneofIndex() ? $proto->getOneofIndex() : -1;
271 $field->setOneofIndex($oneof_index);
DMessage.php182 $oneof_index = $field->getOneofIndex();
183 if ($oneof_index === -1) {
207 $oneof_index = $field->getOneofIndex();
208 if ($oneof_index === -1) {
/third_party/protobuf/php/src/Google/Protobuf/
DField.php55 private $oneof_index = 0; variable in Google\\Protobuf\\Field
257 return $this->oneof_index;
271 $this->oneof_index = $var;
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_message.cc347 const int oneof_index = oneof->index(); in GenerateMessageHeader() local
348 if (!seen_oneofs[oneof_index]) { in GenerateMessageHeader()
349 seen_oneofs[oneof_index] = 1; in GenerateMessageHeader()
350 oneof_generators_[oneof_index]->GeneratePublicCasePropertyDeclaration( in GenerateMessageHeader()
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc103 if (field == NULL || field->oneof_index() <= 0 || in FieldInOneof()
104 field->oneof_index() > type.oneofs_size()) { in FieldInOneof()
107 return type.oneofs(field->oneof_index() - 1) == oneof_name; in FieldInOneof()
/third_party/protobuf/src/google/protobuf/util/internal/
Dproto_writer.cc565 if (field.oneof_index() > 0) { in ValidOneof()
566 if (element_->IsOneofIndexTaken(field.oneof_index())) { in ValidOneof()
570 "oneof field '", element_->type().oneofs(field.oneof_index() - 1), in ValidOneof()
574 element_->TakeOneofIndex(field.oneof_index()); in ValidOneof()
Ddefault_value_objectwriter.cc379 if (field.oneof_index() != 0 && kind == PRIMITIVE) continue; in PopulateChildren()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Ddefs.c1473 VALUE options, int oneof_index, in msgdef_add_field() argument
1524 if (oneof_index >= 0) { in msgdef_add_field()
1526 oneof_index); in msgdef_add_field()
1868 self->oneof_index = 0; in OneofBuilderContext_alloc()
1893 VALUE oneof_index, in OneofBuilderContext_initialize() argument
1896 self->oneof_index = NUM2INT(oneof_index); in OneofBuilderContext_initialize()
1919 number, type_class, options, self->oneof_index, false); in OneofBuilderContext_optional()
Dprotobuf.h155 int oneof_index; member
Dupb.c4469 int oneof_index = in create_fielddef() local
4488 if (oneof_index >= m->oneof_count) { in create_fielddef()
4494 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()
/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py903 oneof_index = field_desc.oneof_index
904 oneofs[oneof_index].fields.append(fields[field_index])
905 fields[field_index].containing_oneof = oneofs[oneof_index]
/third_party/protobuf/src/google/protobuf/compiler/
Dparser.cc921 int oneof_index = message->oneof_decl_size(); in ParseMessageStatement() local
923 message_location, DescriptorProto::kOneofDeclFieldNumber, oneof_index); in ParseMessageStatement()
925 return ParseOneof(message->add_oneof_decl(), message, oneof_index, in ParseMessageStatement()
1903 DescriptorProto* containing_type, int oneof_index, in ParseOneof() argument
1951 field->set_oneof_index(oneof_index); in ParseOneof()
Dparser.h412 DescriptorProto* containing_type, int oneof_index,
/third_party/protobuf/src/google/protobuf/
Dtype.proto131 int32 oneof_index = 7; field
Dtype.pb.cc1012 if (this->oneof_index() != 0) { in _InternalSerialize()
1122 if (this->oneof_index() != 0) { in ByteSizeLong()
1186 if (from.oneof_index() != 0) { in MergeFrom()
Dgenerated_message_reflection.cc713 int oneof_index = field->containing_oneof()->index(); in SwapFields() local
715 if (swapped_oneof.find(oneof_index) != swapped_oneof.end()) { in SwapFields()
718 swapped_oneof.insert(oneof_index); in SwapFields()
Dtype.pb.h756 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
1863 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::oneof_index() const { in oneof_index() function
Ddescriptor.cc5010 if (proto.oneof_index() < 0 || in BuildFieldOrExtension()
5011 proto.oneof_index() >= parent->oneof_decl_count()) { in BuildFieldOrExtension()
5016 proto.oneof_index(), parent->name())); in BuildFieldOrExtension()
5019 result->containing_oneof_ = parent->oneof_decl(proto.oneof_index()); in BuildFieldOrExtension()
Ddescriptor.proto207 optional int32 oneof_index = 9; field
Ddescriptor.pb.h2092 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
8511 inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::oneof_index() const { in oneof_index() function
/third_party/protobuf/php/ext/google/protobuf/
Dphp-upb.c4932 int oneof_index = in create_fielddef() local
4951 if (oneof_index >= m->oneof_count) { in create_fielddef()
4957 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()