Home
last modified time | relevance | path

Searched refs:oneof_index (Results 1 - 20 of 20) sorted by relevance

/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFieldDescriptorProto.php70 * Generated from protobuf field <code>optional int32 oneof_index = 9;</code>
72 protected $oneof_index = null; variable
137 * @type int $oneof_index
436 * Generated from protobuf field <code>optional int32 oneof_index = 9;</code>
441 return isset($this->oneof_index) ? $this->oneof_index : 0;
446 return isset($this->oneof_index);
451 unset($this->oneof_index);
458 * Generated from protobuf field <code>optional int32 oneof_index = 9;</code>
465 $this->oneof_index variable
[all...]
H A DFieldDescriptor.php50 private $oneof_index = -1; variable
59 $this->oneof_index = $index; variable
64 return $this->oneof_index;
231 $oneof_index = $proto->hasOneofIndex() ? $proto->getOneofIndex() : -1; variable
271 $field->setOneofIndex($oneof_index);
H A DMessage.php182 $oneof_index = $field->getOneofIndex(); variable
183 if ($oneof_index === -1) {
207 $oneof_index = $field->getOneofIndex(); variable
208 if ($oneof_index === -1) {
/third_party/protobuf/php/src/Google/Protobuf/
H A DField.php53 * Generated from protobuf field <code>int32 oneof_index = 7;</code>
55 private $oneof_index = 0; variable
98 * @type int $oneof_index
252 * Generated from protobuf field <code>int32 oneof_index = 7;</code>
257 return $this->oneof_index;
264 * Generated from protobuf field <code>int32 oneof_index = 7;</code>
271 $this->oneof_index = $var; variable
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
H A 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/
H A 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/python/google/protobuf/
H A Ddescriptor_pool.py902 if field_desc.HasField('oneof_index'):
903 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/util/internal/
H A 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()
H A Ddefault_value_objectwriter.cc306 // now because of a bug in the tool-chain that causes the "oneof_index" in PopulateChildren()
376 // If oneof_index() != 0, the child field is part of a "oneof", which means in PopulateChildren()
379 if (field.oneof_index() != 0 && kind == PRIMITIVE) continue; in PopulateChildren()
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Ddefs.c1473 VALUE options, int oneof_index, in msgdef_add_field()
1524 if (oneof_index >= 0) { in msgdef_add_field()
1526 oneof_index); in msgdef_add_field()
1778 // Existing oneof_count becomes oneof_index. in MessageBuilderContext_oneof()
1868 self->oneof_index = 0; in OneofBuilderContext_alloc()
1886 * OneofBuilderContext.new(oneof_index, message_builder) => context
1893 VALUE oneof_index, in OneofBuilderContext_initialize()
1896 self->oneof_index = NUM2INT(oneof_index); in OneofBuilderContext_initialize()
1919 number, type_class, options, self->oneof_index, fals in OneofBuilderContext_optional()
1471 msgdef_add_field(VALUE msgbuilder_rb, upb_label_t label, VALUE name, VALUE type, VALUE number, VALUE type_class, VALUE options, int oneof_index, bool proto3_optional) msgdef_add_field() argument
1892 OneofBuilderContext_initialize(VALUE _self, VALUE oneof_index, VALUE message_builder) OneofBuilderContext_initialize() argument
[all...]
H A Dprotobuf.h155 int oneof_index; member
H A Dupb.c4469 int oneof_index = in create_fielddef() local
4483 "oneof_index provided for extension field (%s)", in create_fielddef()
4488 if (oneof_index >= m->oneof_count) { in create_fielddef()
4489 upb_status_seterrf(ctx->status, "oneof_index out of range (%s)", in create_fielddef()
4494 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()
/third_party/protobuf/src/google/protobuf/compiler/
H A 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()
1951 field->set_oneof_index(oneof_index); in ParseOneof()
1902 ParseOneof(OneofDescriptorProto* oneof_decl, DescriptorProto* containing_type, int oneof_index, const LocationRecorder& oneof_location, const LocationRecorder& containing_type_location, const FileDescriptorProto* containing_file) ParseOneof() argument
H A Dparser.h412 DescriptorProto* containing_type, int oneof_index,
/third_party/protobuf/src/google/protobuf/
H A Dtype.pb.cc209 "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 "
899 // int32 oneof_index = 7; in _InternalParse()
1011 // int32 oneof_index = 7; in _InternalSerialize()
1012 if (this->oneof_index() != 0) { in _InternalSerialize()
1121 // int32 oneof_index = 7; in ByteSizeLong()
1122 if (this->oneof_index() != 0) { in ByteSizeLong()
1186 if (from.oneof_index() != 0) { in MergeFrom()
H A 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()
H A Dtype.pb.h754 // int32 oneof_index = 7;
756 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
1856 // int32 oneof_index = 7;
1863 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::oneof_index() const { in oneof_index() function in Field
1864 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index) in oneof_index()
1873 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index) in set_oneof_index()
H A Ddescriptor.cc4994 "FieldDescriptorProto.oneof_index should not be set for " in BuildFieldOrExtension()
5010 if (proto.oneof_index() < 0 || in BuildFieldOrExtension()
5011 proto.oneof_index() >= parent->oneof_decl_count()) { in BuildFieldOrExtension()
5014 strings::Substitute("FieldDescriptorProto.oneof_index $0 is " in BuildFieldOrExtension()
5016 proto.oneof_index(), parent->name())); in BuildFieldOrExtension()
5019 result->containing_oneof_ = parent->oneof_decl(proto.oneof_index()); in BuildFieldOrExtension()
H A Ddescriptor.pb.h2086 // optional int32 oneof_index = 9;
2092 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
8496 // optional int32 oneof_index = 9;
8511 inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::oneof_index() const { in oneof_index() function in FieldDescriptorProto
8512 // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index) in oneof_index()
8521 // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index) in set_oneof_index()
/third_party/protobuf/php/ext/google/protobuf/
H A Dphp-upb.c4932 int oneof_index = in create_fielddef() local
4946 "oneof_index provided for extension field (%s)", in create_fielddef()
4951 if (oneof_index >= m->oneof_count) { in create_fielddef()
4952 upb_status_seterrf(ctx->status, "oneof_index out of range (%s)", in create_fielddef()
4957 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()

Completed in 94 milliseconds