Home
last modified time | relevance | path

Searched refs:field_proto (Results 1 - 7 of 7) sorted by relevance

/third_party/protobuf/python/google/protobuf/
H A Ddescriptor_pool.py964 def _MakeFieldDescriptor(self, field_proto, message_name, index,
975 field_proto: The proto describing the field.
986 full_name = '.'.join((message_name, field_proto.name))
988 full_name = field_proto.name
991 name=field_proto.name,
994 number=field_proto.number,
995 type=field_proto.type,
1000 label=field_proto.label,
1005 options=_OptionsOrNone(field_proto),
1030 for field_proto, field_des
[all...]
H A Dproto_builder.py125 field_proto = desc_proto.field.add()
126 field_proto.name = f_name
127 field_proto.number = f_number
128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
129 field_proto.type = f_type
H A Ddescriptor.py1111 for field_proto in desc_proto.field:
1112 full_name = '.'.join(full_message_name + [field_proto.name])
1115 if field_proto.json_name:
1116 json_name = field_proto.json_name
1119 if field_proto.HasField('type_name'):
1120 type_name = field_proto.type_name
1129 field_proto.name, full_name, field_proto.number - 1,
1130 field_proto.number, field_proto
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DDescriptor.php196 foreach ($proto->getField() as $field_proto) {
197 $desc->addField(FieldDescriptor::buildFromProto($field_proto));
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Ddefs.c1478 google_protobuf_FieldDescriptorProto* field_proto; in msgdef_add_field() local
1481 field_proto = google_protobuf_DescriptorProto_add_field(self->msg_proto, in msgdef_add_field()
1488 field_proto, FileBuilderContext_strdup(self->file_builder, name_str)); in msgdef_add_field()
1489 google_protobuf_FieldDescriptorProto_set_number(field_proto, NUM2INT(number)); in msgdef_add_field()
1490 google_protobuf_FieldDescriptorProto_set_label(field_proto, (int)label); in msgdef_add_field()
1492 field_proto, (int)ruby_to_descriptortype(type)); in msgdef_add_field()
1495 google_protobuf_FieldDescriptorProto_set_proto3_optional(field_proto, true); in msgdef_add_field()
1504 field_proto, FileBuilderContext_strdup(self->file_builder, type_class)); in msgdef_add_field()
1519 field_proto, in msgdef_add_field()
1525 google_protobuf_FieldDescriptorProto_set_oneof_index(field_proto, in msgdef_add_field()
[all...]
H A Dupb.c4354 const google_protobuf_FieldDescriptorProto *field_proto) { in create_fielddef()
4364 if (!google_protobuf_FieldDescriptorProto_has_name(field_proto)) { in create_fielddef()
4369 name = google_protobuf_FieldDescriptorProto_name(field_proto); in create_fielddef()
4374 if (google_protobuf_FieldDescriptorProto_has_json_name(field_proto)) { in create_fielddef()
4376 ctx, google_protobuf_FieldDescriptorProto_json_name(field_proto)); in create_fielddef()
4381 field_number = google_protobuf_FieldDescriptorProto_number(field_proto); in create_fielddef()
4450 f->type_ = (int)google_protobuf_FieldDescriptorProto_type(field_proto); in create_fielddef()
4451 f->label_ = (int)google_protobuf_FieldDescriptorProto_label(field_proto); in create_fielddef()
4455 google_protobuf_FieldDescriptorProto_proto3_optional(field_proto); in create_fielddef()
4459 * to the field_proto unti in create_fielddef()
4352 create_fielddef( const symtab_addctx *ctx, const char *prefix, upb_msgdef *m, const google_protobuf_FieldDescriptorProto *field_proto) create_fielddef() argument
4697 const google_protobuf_FieldDescriptorProto *field_proto = f->sub.unresolved; resolve_fielddef() local
[all...]
/third_party/protobuf/php/ext/google/protobuf/
H A Dphp-upb.c4817 const google_protobuf_FieldDescriptorProto *field_proto) { in create_fielddef()
4827 if (!google_protobuf_FieldDescriptorProto_has_name(field_proto)) { in create_fielddef()
4832 name = google_protobuf_FieldDescriptorProto_name(field_proto); in create_fielddef()
4837 if (google_protobuf_FieldDescriptorProto_has_json_name(field_proto)) { in create_fielddef()
4839 ctx, google_protobuf_FieldDescriptorProto_json_name(field_proto)); in create_fielddef()
4844 field_number = google_protobuf_FieldDescriptorProto_number(field_proto); in create_fielddef()
4913 f->type_ = (int)google_protobuf_FieldDescriptorProto_type(field_proto); in create_fielddef()
4914 f->label_ = (int)google_protobuf_FieldDescriptorProto_label(field_proto); in create_fielddef()
4918 google_protobuf_FieldDescriptorProto_proto3_optional(field_proto); in create_fielddef()
4922 * to the field_proto unti in create_fielddef()
4815 create_fielddef( const symtab_addctx *ctx, const char *prefix, upb_msgdef *m, const google_protobuf_FieldDescriptorProto *field_proto) create_fielddef() argument
5168 const google_protobuf_FieldDescriptorProto *field_proto = f->sub.unresolved; resolve_fielddef() local
[all...]

Completed in 32 milliseconds