Searched defs:key_field (Results 1 - 10 of 10) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_map_field.cc238 const FieldDescriptor* key_field = local
240 if (key_field->type() == FieldDescriptor::TYPE_STRING) {
242 key_field, options_, true, variables_,
284 const FieldDescriptor* key_field = local
288 if (key_field->type() == FieldDescriptor::TYPE_STRING) {
289 GenerateUtf8CheckCodeForString(key_field, options_, false, variables_,
342 const FieldDescriptor* key_field = local
346 if (key_field->type() == FieldDescriptor::TYPE_STRING) {
347 GenerateUtf8CheckCodeForString(key_field, options_, false, variables_,
/external/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generator.cc119 const FieldDescriptor* key_field = local
127 "key_type", TypeName(key_field),
/external/protobuf/ruby/ext/google/protobuf_c/
H A Dstorage.c380 const upb_fielddef* key_field = upb_msgdef_itof(msgdef, MAP_KEY_FIELD); local
381 assert(key_field != NULL);
382 return key_field;
579 const upb_fielddef* key_field = map_field_key(field); local
589 if (self->key_type != upb_fielddef_type(key_field)) {
664 const upb_fielddef* key_field = map_field_key(field); local
670 fieldtype_to_ruby(upb_fielddef_type(key_field)),
677 fieldtype_to_ruby(upb_fielddef_type(key_field)),
H A Ddefs.c1389 VALUE key_field = rb_class_new_instance(0, NULL, cFieldDescriptor); local
1390 FieldDescriptor_name_set(key_field, rb_str_new2("key"));
1391 FieldDescriptor_label_set(key_field, ID2SYM(rb_intern("optional")));
1392 FieldDescriptor_number_set(key_field, INT2NUM(1));
1393 FieldDescriptor_type_set(key_field, key_type);
1394 Descriptor_add_field(mapentry_desc, key_field);
H A Dencode_decode.c300 const upb_fielddef* key_field; local
304 key_field = upb_msgdef_itof(mapentry_def, MAP_KEY_FIELD);
305 assert(key_field != NULL);
306 hd->key_field_type = upb_fielddef_type(key_field);
497 const upb_fielddef* key_field = map_entry_key(msgdef); local
507 h, key_field,
993 const upb_fielddef* key_field; local
1003 key_field = map_field_key(f);
1016 put_ruby_value(key, key_field, Qnil, depth + 1, &entry_sink);
H A Dupb.c12593 const upb_fielddef* key_field = upb_msgdef_itof(md, UPB_MAPENTRY_KEY); local
12600 switch (upb_fielddef_type(key_field)) {
12602 upb_handlers_setint32(h, key_field, putmapkey_int32_t, &empty_attr);
12605 upb_handlers_setint64(h, key_field, putmapkey_int64_t, &empty_attr);
12608 upb_handlers_setuint32(h, key_field, putmapkey_uint32_t, &empty_attr);
12611 upb_handlers_setuint64(h, key_field, putmapkey_uint64_t, &empty_attr);
12614 upb_handlers_setbool(h, key_field, putmapkey_bool, &empty_attr);
12617 upb_handlers_setstartstr(h, key_field, mapkeyval_startstr, &empty_attr);
12618 upb_handlers_setstring(h, key_field, mapkey_str, &empty_attr);
12619 upb_handlers_setendstr(h, key_field, mapkey_endst
[all...]
/external/protobuf/src/google/protobuf/util/internal/
H A Dprotostream_objectsource.cc277 const google::protobuf::Field* key_field = local
279 if (key_field == NULL) {
284 ASSIGN_OR_RETURN(map_key, MapKeyDefaultValueAsString(*key_field));
/external/flatbuffers/src/
H A Didl_gen_general.cpp675 std::string GenOffsetGetter(flatbuffers::FieldDef *key_field, argument
679 NumToString(key_field->value.offset) + ", ";
691 std::string GenLookupKeyGetter(flatbuffers::FieldDef *key_field) { argument
696 if (key_field->value.type.base_type == BASE_TYPE_STRING) {
699 key_getter += GenOffsetGetter(key_field);
702 auto get_val = GenGetter(key_field->value.type) +
703 "(" + GenOffsetGetter(key_field) + ")";
707 key_getter += GenTypeGet(key_field->value.type) + " val = ";
716 std::string GenKeyGetter(flatbuffers::FieldDef *key_field) { argument
720 if (key_field
1101 flatbuffers::FieldDef *key_field = nullptr; local
[all...]
/external/protobuf/src/google/protobuf/compiler/
H A Dparser.cc979 FieldDescriptorProto* key_field = entry->add_field(); local
980 key_field->set_name("key");
981 key_field->set_label(FieldDescriptorProto::LABEL_OPTIONAL);
982 key_field->set_number(1);
984 key_field->set_type(map_field.key_type);
986 key_field->set_type_name(map_field.key_type_name);
1023 if (key_field->type() == FieldDescriptorProto::TYPE_STRING) {
1024 key_field->mutable_options()->add_uninterpreted_option()
/external/protobuf/php/ext/google/protobuf/
H A Dupb.c11774 const upb_fielddef* key_field = upb_msgdef_itof(md, UPB_MAPENTRY_KEY); local
11781 switch (upb_fielddef_type(key_field)) {
11783 upb_handlers_setint32(h, key_field, putmapkey_int32_t, &empty_attr);
11786 upb_handlers_setint64(h, key_field, putmapkey_int64_t, &empty_attr);
11789 upb_handlers_setuint32(h, key_field, putmapkey_uint32_t, &empty_attr);
11792 upb_handlers_setuint64(h, key_field, putmapkey_uint64_t, &empty_attr);
11795 upb_handlers_setbool(h, key_field, putmapkey_bool, &empty_attr);
11798 upb_handlers_setstartstr(h, key_field, mapkeyval_startstr, &empty_attr);
11799 upb_handlers_setstring(h, key_field, mapkey_str, &empty_attr);
11800 upb_handlers_setendstr(h, key_field, mapkey_endst
[all...]

Completed in 404 milliseconds