Lines Matching refs:FieldDescriptorProto
42 using protos::FieldDescriptorProto;
57 const char* FieldToTypeName(const FieldDescriptorProto* field) { in FieldToTypeName()
59 case FieldDescriptorProto::TYPE_UINT64: in FieldToTypeName()
61 case FieldDescriptorProto::TYPE_UINT32: in FieldToTypeName()
63 case FieldDescriptorProto::TYPE_INT64: in FieldToTypeName()
65 case FieldDescriptorProto::TYPE_SINT64: in FieldToTypeName()
67 case FieldDescriptorProto::TYPE_INT32: in FieldToTypeName()
69 case FieldDescriptorProto::TYPE_SINT32: in FieldToTypeName()
71 case FieldDescriptorProto::TYPE_FIXED64: in FieldToTypeName()
73 case FieldDescriptorProto::TYPE_SFIXED64: in FieldToTypeName()
75 case FieldDescriptorProto::TYPE_FIXED32: in FieldToTypeName()
77 case FieldDescriptorProto::TYPE_SFIXED32: in FieldToTypeName()
79 case FieldDescriptorProto::TYPE_DOUBLE: in FieldToTypeName()
81 case FieldDescriptorProto::TYPE_FLOAT: in FieldToTypeName()
83 case FieldDescriptorProto::TYPE_BOOL: in FieldToTypeName()
85 case FieldDescriptorProto::TYPE_STRING: in FieldToTypeName()
87 case FieldDescriptorProto::TYPE_BYTES: in FieldToTypeName()
89 case FieldDescriptorProto::TYPE_GROUP: in FieldToTypeName()
91 case FieldDescriptorProto::TYPE_MESSAGE: in FieldToTypeName()
93 case FieldDescriptorProto::TYPE_ENUM: in FieldToTypeName()
152 const FieldDescriptorProto* field = FindFieldByName( in NumericField()
155 FieldDescriptorProto::TYPE_UINT64, in NumericField()
156 FieldDescriptorProto::TYPE_UINT32, FieldDescriptorProto::TYPE_INT64, in NumericField()
157 FieldDescriptorProto::TYPE_SINT64, FieldDescriptorProto::TYPE_INT32, in NumericField()
158 FieldDescriptorProto::TYPE_SINT32, in NumericField()
159 FieldDescriptorProto::TYPE_FIXED64, in NumericField()
160 FieldDescriptorProto::TYPE_SFIXED64, in NumericField()
161 FieldDescriptorProto::TYPE_FIXED32, in NumericField()
162 FieldDescriptorProto::TYPE_SFIXED32, in NumericField()
163 FieldDescriptorProto::TYPE_DOUBLE, FieldDescriptorProto::TYPE_FLOAT, in NumericField()
169 case FieldDescriptorProto::TYPE_UINT64: in NumericField()
171 case FieldDescriptorProto::TYPE_UINT32: in NumericField()
173 case FieldDescriptorProto::TYPE_INT64: in NumericField()
174 case FieldDescriptorProto::TYPE_SINT64: in NumericField()
176 case FieldDescriptorProto::TYPE_INT32: in NumericField()
177 case FieldDescriptorProto::TYPE_SINT32: in NumericField()
180 case FieldDescriptorProto::TYPE_FIXED64: in NumericField()
181 case FieldDescriptorProto::TYPE_SFIXED64: in NumericField()
184 case FieldDescriptorProto::TYPE_FIXED32: in NumericField()
185 case FieldDescriptorProto::TYPE_SFIXED32: in NumericField()
188 case FieldDescriptorProto::TYPE_DOUBLE: in NumericField()
190 case FieldDescriptorProto::TYPE_FLOAT: in NumericField()
193 case FieldDescriptorProto::TYPE_BOOL: in NumericField()
194 case FieldDescriptorProto::TYPE_STRING: in NumericField()
195 case FieldDescriptorProto::TYPE_BYTES: in NumericField()
196 case FieldDescriptorProto::TYPE_GROUP: in NumericField()
197 case FieldDescriptorProto::TYPE_MESSAGE: in NumericField()
198 case FieldDescriptorProto::TYPE_ENUM: in NumericField()
204 const FieldDescriptorProto* field = FindFieldByName( in StringField()
207 FieldDescriptorProto::TYPE_STRING, FieldDescriptorProto::TYPE_BYTES, in StringField()
213 PERFETTO_CHECK(field_type == FieldDescriptorProto::TYPE_STRING || in StringField()
214 field_type == FieldDescriptorProto::TYPE_BYTES); in StringField()
275 const FieldDescriptorProto* field = FindFieldByName( in IdentifierField()
278 FieldDescriptorProto::TYPE_BOOL, FieldDescriptorProto::TYPE_ENUM, in IdentifierField()
284 if (field_type == FieldDescriptorProto::TYPE_BOOL) { in IdentifierField()
297 } else if (field_type == FieldDescriptorProto::TYPE_ENUM) { in IdentifierField()
318 const FieldDescriptorProto* field = in BeginNestedMessage()
321 FieldDescriptorProto::TYPE_MESSAGE, in BeginNestedMessage()
356 void VarIntField(const FieldDescriptorProto* field, Token t) { in VarIntField()
360 if (field->type() == FieldDescriptorProto::TYPE_SINT64 || in VarIntField()
361 field->type() == FieldDescriptorProto::TYPE_SINT32) { in VarIntField()
369 void FixedField(const FieldDescriptorProto* field, Token t) { in FixedField()
377 void FixedFloatField(const FieldDescriptorProto* field, Token t) { in FixedFloatField()
392 const FieldDescriptorProto* FindFieldByName( in FindFieldByName()
395 std::set<FieldDescriptorProto::Type> valid_field_types) { in FindFieldByName()
397 const FieldDescriptorProto* field_descriptor = nullptr; in FindFieldByName()
414 field_descriptor->label() == FieldDescriptorProto::LABEL_REPEATED; in FindFieldByName()