Lines Matching refs:FieldDescriptorProto

108 FieldDescriptorProto* AddField(DescriptorProto* parent, const std::string& name,
109 int number, FieldDescriptorProto::Label label,
110 FieldDescriptorProto::Type type) {
111 FieldDescriptorProto* result = parent->add_field();
119 FieldDescriptorProto* AddExtension(FileDescriptorProto* file,
122 FieldDescriptorProto::Label label,
123 FieldDescriptorProto::Type type) {
124 FieldDescriptorProto* result = file->add_extension();
133 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent,
136 FieldDescriptorProto::Label label,
137 FieldDescriptorProto::Type type) {
138 FieldDescriptorProto* result = parent->add_extension();
327 FieldDescriptorProto::LABEL_OPTIONAL,
328 FieldDescriptorProto::TYPE_INT32);
338 FieldDescriptorProto::LABEL_OPTIONAL,
339 FieldDescriptorProto::TYPE_INT32);
669 AddField(message, "foo", 1, FieldDescriptorProto::LABEL_REQUIRED,
670 FieldDescriptorProto::TYPE_STRING);
671 AddField(message, "bar", 6, FieldDescriptorProto::LABEL_OPTIONAL,
672 FieldDescriptorProto::TYPE_ENUM)
674 AddField(message, "baz", 500000000, FieldDescriptorProto::LABEL_REPEATED,
675 FieldDescriptorProto::TYPE_MESSAGE)
677 AddField(message, "qux", 15, FieldDescriptorProto::LABEL_OPTIONAL,
678 FieldDescriptorProto::TYPE_GROUP)
686 AddField(message2, "foo", 1, FieldDescriptorProto::LABEL_REQUIRED,
687 FieldDescriptorProto::TYPE_STRING);
688 AddField(message2, "bar", 2, FieldDescriptorProto::LABEL_REQUIRED,
689 FieldDescriptorProto::TYPE_STRING);
690 AddField(message2, "quux", 6, FieldDescriptorProto::LABEL_REQUIRED,
691 FieldDescriptorProto::TYPE_STRING);
698 AddField(entry, "key", 1, FieldDescriptorProto::LABEL_OPTIONAL,
699 FieldDescriptorProto::TYPE_INT32);
700 AddField(entry, "value", 2, FieldDescriptorProto::LABEL_OPTIONAL,
701 FieldDescriptorProto::TYPE_INT32);
705 FieldDescriptorProto::LABEL_REPEATED,
706 FieldDescriptorProto::TYPE_MESSAGE)
713 AddField(message4, "field_name1", 1, FieldDescriptorProto::LABEL_OPTIONAL,
714 FieldDescriptorProto::TYPE_INT32);
715 AddField(message4, "fieldName2", 2, FieldDescriptorProto::LABEL_OPTIONAL,
716 FieldDescriptorProto::TYPE_INT32);
717 AddField(message4, "FieldName3", 3, FieldDescriptorProto::LABEL_OPTIONAL,
718 FieldDescriptorProto::TYPE_INT32);
719 AddField(message4, "_field_name4", 4, FieldDescriptorProto::LABEL_OPTIONAL,
720 FieldDescriptorProto::TYPE_INT32);
721 AddField(message4, "FIELD_NAME5", 5, FieldDescriptorProto::LABEL_OPTIONAL,
722 FieldDescriptorProto::TYPE_INT32);
723 AddField(message4, "field_name6", 6, FieldDescriptorProto::LABEL_OPTIONAL,
724 FieldDescriptorProto::TYPE_INT32)
1081 AddField(oneof_message, "a", 1, FieldDescriptorProto::LABEL_OPTIONAL,
1082 FieldDescriptorProto::TYPE_INT32);
1083 AddField(oneof_message, "b", 2, FieldDescriptorProto::LABEL_OPTIONAL,
1084 FieldDescriptorProto::TYPE_STRING);
1086 AddField(oneof_message, "c", 3, FieldDescriptorProto::LABEL_OPTIONAL,
1087 FieldDescriptorProto::TYPE_MESSAGE);
1091 AddField(oneof_message, "d", 4, FieldDescriptorProto::LABEL_OPTIONAL,
1092 FieldDescriptorProto::TYPE_FLOAT);
1156 AddField(message, "foo_foo", 1, FieldDescriptorProto::LABEL_OPTIONAL,
1157 FieldDescriptorProto::TYPE_INT32);
1158 AddField(message, "FooBar", 2, FieldDescriptorProto::LABEL_OPTIONAL,
1159 FieldDescriptorProto::TYPE_INT32);
1160 AddField(message, "fooBaz", 3, FieldDescriptorProto::LABEL_OPTIONAL,
1161 FieldDescriptorProto::TYPE_INT32);
1163 FieldDescriptorProto::LABEL_OPTIONAL,
1164 FieldDescriptorProto::TYPE_INT32);
1166 FieldDescriptorProto::LABEL_OPTIONAL,
1167 FieldDescriptorProto::TYPE_INT32);
1170 FieldDescriptorProto::LABEL_OPTIONAL,
1171 FieldDescriptorProto::TYPE_INT32);
1173 FieldDescriptorProto::LABEL_OPTIONAL,
1174 FieldDescriptorProto::TYPE_INT32);
1176 FieldDescriptorProto::LABEL_OPTIONAL,
1177 FieldDescriptorProto::TYPE_INT32);
1179 FieldDescriptorProto::LABEL_OPTIONAL,
1180 FieldDescriptorProto::TYPE_INT32);
1182 FieldDescriptorProto::LABEL_OPTIONAL,
1183 FieldDescriptorProto::TYPE_INT32);
1186 FieldDescriptorProto::LABEL_OPTIONAL,
1187 FieldDescriptorProto::TYPE_INT32);
1189 FieldDescriptorProto::LABEL_OPTIONAL,
1190 FieldDescriptorProto::TYPE_INT32);
1192 FieldDescriptorProto::LABEL_OPTIONAL,
1193 FieldDescriptorProto::TYPE_INT32);
1195 FieldDescriptorProto::LABEL_OPTIONAL,
1196 FieldDescriptorProto::TYPE_INT32);
1198 FieldDescriptorProto::LABEL_OPTIONAL,
1199 FieldDescriptorProto::TYPE_INT32);
1873 FieldDescriptorProto::LABEL_OPTIONAL,
1874 FieldDescriptorProto::TYPE_INT32);
1876 FieldDescriptorProto::LABEL_REPEATED,
1877 FieldDescriptorProto::TYPE_ENUM)
1882 FieldDescriptorProto::LABEL_OPTIONAL,
1883 FieldDescriptorProto::TYPE_MESSAGE)
1886 FieldDescriptorProto::LABEL_REPEATED,
1887 FieldDescriptorProto::TYPE_GROUP)
2048 FieldDescriptorProto::LABEL_OPTIONAL,
2049 FieldDescriptorProto::TYPE_INT32);
2060 FieldDescriptorProto::LABEL_OPTIONAL,
2061 FieldDescriptorProto::TYPE_INT32);
2287 FieldDescriptorProto* field = AddField(
2288 message, "foo", 1, FieldDescriptorProto::LABEL_OPTIONAL,
2289 static_cast<FieldDescriptorProto::Type>(static_cast<int>(type)));
2519 typedef FieldDescriptorProto FD; // avoid ugly line wrapping
2542 FieldDescriptorProto* enum_field =
2636 AddField(message_proto, "foo", 1, FieldDescriptorProto::LABEL_OPTIONAL,
2637 FieldDescriptorProto::TYPE_INT32);
2638 FieldDescriptorProto* bar_proto =
2639 AddField(message_proto, "bar", 2, FieldDescriptorProto::LABEL_OPTIONAL,
2640 FieldDescriptorProto::TYPE_INT32);
2814 FieldDescriptorProto proto;
2819 EXPECT_EQ(FieldDescriptorProto::TYPE_MESSAGE, proto.type());
2831 EXPECT_EQ(FieldDescriptorProto::TYPE_ENUM, proto.type());
3526 FieldDescriptorProto* extension = file_proto.add_extension();
4332 "foo.proto: Foo.foo: EXTENDEE: FieldDescriptorProto.extendee not set for "
4349 "foo.proto: Foo.foo: EXTENDEE: FieldDescriptorProto.extendee set for "
4365 "foo.proto: Foo.foo: TYPE: FieldDescriptorProto.oneof_index 1 is out of "
4381 "foo.proto: Foo.foo: TYPE: FieldDescriptorProto.oneof_index -1 is out "
6002 FieldDescriptorProto::LABEL_OPTIONAL);
6019 FieldDescriptorProto* key =
6029 FieldDescriptorProto* key =
6032 key->set_label(FieldDescriptorProto::LABEL_REQUIRED);
6039 FieldDescriptorProto* key =
6049 FieldDescriptorProto* value =
6059 FieldDescriptorProto* value =
6062 value->set_label(FieldDescriptorProto::LABEL_REQUIRED);
6069 FieldDescriptorProto* value =
6079 FieldDescriptorProto* key =
6082 key->set_type(FieldDescriptorProto::TYPE_FLOAT);
6089 FieldDescriptorProto* key =
6092 key->set_type(FieldDescriptorProto::TYPE_DOUBLE);
6099 FieldDescriptorProto* key =
6102 key->set_type(FieldDescriptorProto::TYPE_BYTES);
6109 FieldDescriptorProto* key =
6134 FieldDescriptorProto* key =
6541 FieldDescriptorProto::LABEL_OPTIONAL,
6542 FieldDescriptorProto::TYPE_INT32);
7070 FieldDescriptorProto* field = message->add_field();
7073 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL);
7074 field->set_type(FieldDescriptorProto::TYPE_MESSAGE);
7388 FieldDescriptorProto::kOptionsFieldNumber,
7394 FieldDescriptorProto::kOptionsFieldNumber,
7411 FieldDescriptorProto::kOptionsFieldNumber, kCustomOptionFieldNumber};
7418 FieldDescriptorProto::kOptionsFieldNumber,
7681 FieldDescriptorProto::kOptionsFieldNumber,
7684 FieldDescriptorProto::kOptionsFieldNumber,