/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_field_base.cc | 60 if (descriptor_->type() == FieldDescriptor::TYPE_GROUP) { in SetCommonFieldVariables() 75 if (descriptor_->type() == FieldDescriptor::Type::TYPE_GROUP) { in SetCommonFieldVariables() 138 FieldGeneratorBase::FieldGeneratorBase(const FieldDescriptor* descriptor, in FieldGeneratorBase() 179 } else if (descriptor_->type() == FieldDescriptor::TYPE_MESSAGE && in AddDeprecatedFlag() 210 std::string FieldGeneratorBase::type_name(const FieldDescriptor* descriptor) { in type_name() 212 case FieldDescriptor::TYPE_ENUM: in type_name() 214 case FieldDescriptor::TYPE_MESSAGE: in type_name() 215 case FieldDescriptor::TYPE_GROUP: in type_name() 217 const FieldDescriptor* wrapped_field = in type_name() 222 if (wrapped_field->type() == FieldDescriptor::TYPE_STRING || in type_name() [all …]
|
D | csharp_helpers.cc | 63 CSharpType GetCSharpType(FieldDescriptor::Type type) { in GetCSharpType() 65 case FieldDescriptor::TYPE_INT32: in GetCSharpType() 67 case FieldDescriptor::TYPE_INT64: in GetCSharpType() 69 case FieldDescriptor::TYPE_UINT32: in GetCSharpType() 71 case FieldDescriptor::TYPE_UINT64: in GetCSharpType() 73 case FieldDescriptor::TYPE_SINT32: in GetCSharpType() 75 case FieldDescriptor::TYPE_SINT64: in GetCSharpType() 77 case FieldDescriptor::TYPE_FIXED32: in GetCSharpType() 79 case FieldDescriptor::TYPE_FIXED64: in GetCSharpType() 81 case FieldDescriptor::TYPE_SFIXED32: in GetCSharpType() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_helpers.cc | 101 std::string FieldName(const FieldDescriptor* field) { in FieldName() 106 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { in FieldName() 137 const FieldDescriptor* descriptor, in PrintEnumVerifierLogic() 194 std::string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 198 std::string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 202 std::string CapitalizedFieldName(const FieldDescriptor* field) { in CapitalizedFieldName() 210 std::string UnderscoresToCamelCaseCheckReserved(const FieldDescriptor* field) { in UnderscoresToCamelCaseCheckReserved() 222 std::string CamelCaseFieldName(const FieldDescriptor* field) { in CamelCaseFieldName() 309 std::string FieldConstantName(const FieldDescriptor* field) { in FieldConstantName() 315 FieldDescriptor::Type GetType(const FieldDescriptor* field) { in GetType() [all …]
|
D | java_helpers.h | 68 const FieldDescriptor* descriptor, 79 std::string UnderscoresToCamelCase(const FieldDescriptor* field); 80 std::string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field); 87 std::string UnderscoresToCamelCaseCheckReserved(const FieldDescriptor* field); 91 std::string CamelCaseFieldName(const FieldDescriptor* field); 154 std::string GetOneofStoredType(const FieldDescriptor* field); 201 std::string FieldConstantName(const FieldDescriptor* field); 206 FieldDescriptor::Type GetType(const FieldDescriptor* field); 220 JavaType GetJavaType(const FieldDescriptor* field); 233 const char* FieldTypeName(const FieldDescriptor::Type field_type); [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | message.h | 212 bool CreateUnknownEnumValues(const FieldDescriptor* field); 441 bool HasField(const Message& message, const FieldDescriptor* field) const; 444 int FieldSize(const Message& message, const FieldDescriptor* field) const; 448 void ClearField(Message* message, const FieldDescriptor* field) const; 459 const FieldDescriptor* GetOneofFieldDescriptor( 469 void RemoveLast(Message* message, const FieldDescriptor* field) const; 472 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const; 479 const std::vector<const FieldDescriptor*>& fields) const; 482 void SwapElements(Message* message, const FieldDescriptor* field, int index1, 494 std::vector<const FieldDescriptor*>* output) const; [all …]
|
D | map_field.h | 67 << FieldDescriptor::CppTypeName(EXPECTEDTYPE) << "\n" \ 68 << " Actual : " << FieldDescriptor::CppTypeName(type()); \ 84 if (type_ == FieldDescriptor::CPPTYPE_STRING) { in ~MapKey() 89 FieldDescriptor::CppType type() const { in type() 95 return (FieldDescriptor::CppType)type_; in type() 99 SetType(FieldDescriptor::CPPTYPE_INT64); in SetInt64Value() 103 SetType(FieldDescriptor::CPPTYPE_UINT64); in SetUInt64Value() 107 SetType(FieldDescriptor::CPPTYPE_INT32); in SetInt32Value() 111 SetType(FieldDescriptor::CPPTYPE_UINT32); in SetUInt32Value() 115 SetType(FieldDescriptor::CPPTYPE_BOOL); in SetBoolValue() [all …]
|
D | map_field.cc | 199 const FieldDescriptor* val_des = default_entry_->GetDescriptor()->map_value(); in AllocateMapValue() 205 case FieldDescriptor::CPPTYPE_##CPPTYPE: { \ in AllocateMapValue() 220 case FieldDescriptor::CPPTYPE_MESSAGE: { in AllocateMapValue() 301 const FieldDescriptor* field_descriptor = in MergeFrom() 304 case FieldDescriptor::CPPTYPE_INT32: { in MergeFrom() 308 case FieldDescriptor::CPPTYPE_INT64: { in MergeFrom() 312 case FieldDescriptor::CPPTYPE_UINT32: { in MergeFrom() 316 case FieldDescriptor::CPPTYPE_UINT64: { in MergeFrom() 320 case FieldDescriptor::CPPTYPE_FLOAT: { in MergeFrom() 324 case FieldDescriptor::CPPTYPE_DOUBLE: { in MergeFrom() [all …]
|
D | descriptor.h | 84 class FieldDescriptor; variable 318 const FieldDescriptor* field(int index) const; 322 const FieldDescriptor* FindFieldByNumber(int number) const; 324 const FieldDescriptor* FindFieldByName(ConstStringParam name) const; 329 const FieldDescriptor* FindFieldByLowercaseName( 336 const FieldDescriptor* FindFieldByCamelcaseName( 438 const FieldDescriptor* extension(int index) const; 442 const FieldDescriptor* FindExtensionByName(ConstStringParam name) const; 446 const FieldDescriptor* FindExtensionByLowercaseName( 451 const FieldDescriptor* FindExtensionByCamelcaseName( [all …]
|
D | generated_message_reflection.cc | 80 bool IsMapFieldInApi(const FieldDescriptor* field) { return field->is_map(); } in IsMapFieldInApi() 111 const FieldDescriptor* field, in ReportReflectionUsageError() 127 const char* cpptype_names_[FieldDescriptor::MAX_CPPTYPE + 1] = { 133 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() 134 const char* method, FieldDescriptor::CppType expected_type) { in ReportReflectionUsageTypeError() 155 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() 176 const FieldDescriptor* field) { in CheckInvalidAccess() 190 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \ 192 FieldDescriptor::CPPTYPE_##CPPTYPE) 202 USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \ [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_helpers.cc | 262 PrimitiveTypeName(options, FieldDescriptor::CPPTYPE_STRING); in SetUnknkownFieldsVariable() 306 bool CanInitializeByZeroing(const FieldDescriptor* field) { in CanInitializeByZeroing() 309 case FieldDescriptor::CPPTYPE_ENUM: in CanInitializeByZeroing() 311 case FieldDescriptor::CPPTYPE_INT32: in CanInitializeByZeroing() 313 case FieldDescriptor::CPPTYPE_INT64: in CanInitializeByZeroing() 315 case FieldDescriptor::CPPTYPE_UINT32: in CanInitializeByZeroing() 317 case FieldDescriptor::CPPTYPE_UINT64: in CanInitializeByZeroing() 319 case FieldDescriptor::CPPTYPE_FLOAT: in CanInitializeByZeroing() 321 case FieldDescriptor::CPPTYPE_DOUBLE: in CanInitializeByZeroing() 323 case FieldDescriptor::CPPTYPE_BOOL: in CanInitializeByZeroing() [all …]
|
D | cpp_primitive_field.cc | 52 int FixedSize(FieldDescriptor::Type type) { in FixedSize() 54 case FieldDescriptor::TYPE_INT32: in FixedSize() 56 case FieldDescriptor::TYPE_INT64: in FixedSize() 58 case FieldDescriptor::TYPE_UINT32: in FixedSize() 60 case FieldDescriptor::TYPE_UINT64: in FixedSize() 62 case FieldDescriptor::TYPE_SINT32: in FixedSize() 64 case FieldDescriptor::TYPE_SINT64: in FixedSize() 66 case FieldDescriptor::TYPE_FIXED32: in FixedSize() 68 case FieldDescriptor::TYPE_FIXED64: in FixedSize() 70 case FieldDescriptor::TYPE_SFIXED32: in FixedSize() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generator.cc | 52 std::string LabelForField(FieldDescriptor* field); 53 std::string TypeName(FieldDescriptor* field); 61 std::string DefaultValueForField(const FieldDescriptor* field); 79 std::string LabelForField(const FieldDescriptor* field) { in LabelForField() 85 case FieldDescriptor::LABEL_OPTIONAL: return "optional"; in LabelForField() 86 case FieldDescriptor::LABEL_REQUIRED: return "required"; in LabelForField() 87 case FieldDescriptor::LABEL_REPEATED: return "repeated"; in LabelForField() 92 std::string TypeName(const FieldDescriptor* field) { in TypeName() 94 case FieldDescriptor::TYPE_INT32: return "int32"; in TypeName() 95 case FieldDescriptor::TYPE_INT64: return "int64"; in TypeName() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | ExtensionCollection.cs | 44 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInDeclarationOrder; 45 … private IDictionary<MessageDescriptor, IList<FieldDescriptor>> extensionsByTypeInNumberOrder; 54 return new FieldDescriptor(extension, file, null, i, null, extensions?[i]); in ExtensionCollection() 58 …return new FieldDescriptor(extension, file, null, i, null, null); // return null if there's no ext… in ExtensionCollection() 70 … return new FieldDescriptor(extension, message.File, message, i, null, extensions?[i]); in ExtensionCollection() 74 return new FieldDescriptor(extension, message.File, message, i, null, null); in ExtensionCollection() 83 public IList<FieldDescriptor> UnorderedExtensions { get; } 89 public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor) in GetExtensionsInDeclarationOrder() 98 public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor) in GetExtensionsInNumberOrder() 105 …nary<MessageDescriptor, IList<FieldDescriptor>> declarationOrder = new Dictionary<MessageDescripto… in CrossLink() [all …]
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | TextFormatParseInfoTree.java | 33 import com.google.protobuf.Descriptors.FieldDescriptor; 54 private Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField; 58 Map<FieldDescriptor, List<TextFormatParseInfoTree>> subtreesFromField; 67 Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField, in TextFormatParseInfoTree() argument 68 Map<FieldDescriptor, List<TextFormatParseInfoTree.Builder>> subtreeBuildersFromField) { in TextFormatParseInfoTree() 71 Map<FieldDescriptor, List<TextFormatParseLocation>> locs = in TextFormatParseInfoTree() 72 new HashMap<FieldDescriptor, List<TextFormatParseLocation>>(); in TextFormatParseInfoTree() 73 for (Entry<FieldDescriptor, List<TextFormatParseLocation>> kv : locationsFromField.entrySet()) { in TextFormatParseInfoTree() 78 Map<FieldDescriptor, List<TextFormatParseInfoTree>> subs = in TextFormatParseInfoTree() 79 new HashMap<FieldDescriptor, List<TextFormatParseInfoTree>>(); in TextFormatParseInfoTree() [all …]
|
D | MessageReflection.java | 33 import com.google.protobuf.Descriptors.FieldDescriptor; 49 Map<FieldDescriptor, Object> fields, in writeMessageTo() argument 56 fields = new TreeMap<FieldDescriptor, Object>(fields); in writeMessageTo() 57 for (final FieldDescriptor field : message.getDescriptorForType().getFields()) { in writeMessageTo() 63 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : fields.entrySet()) { in writeMessageTo() 64 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo() 68 && field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE in writeMessageTo() 84 static int getSerializedSize(Message message, Map<FieldDescriptor, Object> fields) { in getSerializedSize() argument 89 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : fields.entrySet()) { in getSerializedSize() 90 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize() [all …]
|
D | DynamicMessage.java | 37 import com.google.protobuf.Descriptors.FieldDescriptor; 53 private final FieldSet<FieldDescriptor> fields; 54 private final FieldDescriptor[] oneofCases; 68 FieldSet<FieldDescriptor> fields, in DynamicMessage() 69 FieldDescriptor[] oneofCases, in DynamicMessage() 80 FieldDescriptor[] oneofCases = new FieldDescriptor[oneofDeclCount]; in getDefaultInstance() 83 FieldSet.<FieldDescriptor>emptySet(), in getDefaultInstance() 166 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields() 173 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof() 181 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() [all …]
|
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer.h | 63 class FieldDescriptor; variable 79 typedef std::vector<const FieldDescriptor*> FieldDescriptorArray; 180 const FieldDescriptor* field; 343 const FieldDescriptor* /* field */, 429 void TreatAsSet(const FieldDescriptor* field); 430 void TreatAsSmartSet(const FieldDescriptor* field); 437 void TreatAsList(const FieldDescriptor* field); 439 void TreatAsSmartList(const FieldDescriptor* field); 455 void TreatAsMap(const FieldDescriptor* field, const FieldDescriptor* key); 473 const FieldDescriptor* field, [all …]
|
D | type_resolver_util.cc | 147 std::vector<const FieldDescriptor*> fields; in ConvertOptionsInternal() 149 for (const FieldDescriptor* field : fields) { in ConvertOptionsInternal() 163 const FieldDescriptor* field, int index, in ConvertOptionField() 168 case FieldDescriptor::CPPTYPE_MESSAGE: in ConvertOptionField() 174 case FieldDescriptor::CPPTYPE_DOUBLE: in ConvertOptionField() 180 case FieldDescriptor::CPPTYPE_FLOAT: in ConvertOptionField() 186 case FieldDescriptor::CPPTYPE_INT64: in ConvertOptionField() 192 case FieldDescriptor::CPPTYPE_UINT64: in ConvertOptionField() 198 case FieldDescriptor::CPPTYPE_INT32: in ConvertOptionField() 204 case FieldDescriptor::CPPTYPE_UINT32: in ConvertOptionField() [all …]
|
D | field_comparator.cc | 60 const FieldDescriptor* field, int index_1, int index_2, in Compare() 78 case FieldDescriptor::CPPTYPE_BOOL: in Compare() 80 case FieldDescriptor::CPPTYPE_DOUBLE: in Compare() 82 case FieldDescriptor::CPPTYPE_ENUM: in Compare() 84 case FieldDescriptor::CPPTYPE_FLOAT: in Compare() 86 case FieldDescriptor::CPPTYPE_INT32: in Compare() 88 case FieldDescriptor::CPPTYPE_INT64: in Compare() 90 case FieldDescriptor::CPPTYPE_STRING: in Compare() 113 case FieldDescriptor::CPPTYPE_UINT32: in Compare() 115 case FieldDescriptor::CPPTYPE_UINT64: in Compare() [all …]
|
D | field_comparator.h | 49 class FieldDescriptor; variable 89 const FieldDescriptor* field, int index_1, 117 const FieldDescriptor* field, int index_1, 142 void SetFractionAndMargin(const FieldDescriptor* field, double fraction, 171 typedef std::map<const FieldDescriptor*, Tolerance> ToleranceMap; 177 bool CompareBool(const FieldDescriptor& /* unused */, bool value_1, in CompareBool() argument 184 bool CompareDouble(const FieldDescriptor& field, double value_1, 187 bool CompareEnum(const FieldDescriptor& field, 193 bool CompareFloat(const FieldDescriptor& field, float value_1, float value_2); 195 bool CompareInt32(const FieldDescriptor& /* unused */, int32 value_1, in CompareInt32() argument [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_helpers.cc | 280 string NameFromFieldDescriptor(const FieldDescriptor* field) { in NameFromFieldDescriptor() 281 if (field->type() == FieldDescriptor::TYPE_GROUP) { in NameFromFieldDescriptor() 533 string ExtensionMethodName(const FieldDescriptor* descriptor) { in ExtensionMethodName() 539 string FieldName(const FieldDescriptor* field) { in FieldName() 554 string FieldNameCapitalized(const FieldDescriptor* field) { in FieldNameCapitalized() 596 string UnCamelCaseFieldName(const string& name, const FieldDescriptor* field) { in UnCamelCaseFieldName() 604 if (field->type() == FieldDescriptor::TYPE_GROUP) { in UnCamelCaseFieldName() 628 string GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType() 630 case FieldDescriptor::TYPE_INT32: in GetCapitalizedType() 632 case FieldDescriptor::TYPE_UINT32: in GetCapitalizedType() [all …]
|
D | objectivec_message.cc | 55 inline bool operator()(const FieldDescriptor* a, in operator ()() 56 const FieldDescriptor* b) const { in operator ()() 61 int OrderGroupForFieldDescriptor(const FieldDescriptor* descriptor) { in OrderGroupForFieldDescriptor() 89 case FieldDescriptor::TYPE_DOUBLE: in OrderGroupForFieldDescriptor() 90 case FieldDescriptor::TYPE_INT64: in OrderGroupForFieldDescriptor() 91 case FieldDescriptor::TYPE_SINT64: in OrderGroupForFieldDescriptor() 92 case FieldDescriptor::TYPE_UINT64: in OrderGroupForFieldDescriptor() 93 case FieldDescriptor::TYPE_SFIXED64: in OrderGroupForFieldDescriptor() 94 case FieldDescriptor::TYPE_FIXED64: in OrderGroupForFieldDescriptor() 99 case FieldDescriptor::TYPE_GROUP: in OrderGroupForFieldDescriptor() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/php/ |
D | php_generator.cc | 83 std::string DefaultForField(FieldDescriptor* field); 88 std::string LabelForField(FieldDescriptor* field); 89 std::string TypeName(FieldDescriptor* field); 102 void GenerateFieldDocComment(io::Printer* printer, const FieldDescriptor* field, 105 const FieldDescriptor* field); 107 const FieldDescriptor* field); 305 std::string DefaultForField(const FieldDescriptor* field) { in DefaultForField() 307 case FieldDescriptor::TYPE_INT32: in DefaultForField() 308 case FieldDescriptor::TYPE_INT64: in DefaultForField() 309 case FieldDescriptor::TYPE_UINT32: in DefaultForField() [all …]
|
/third_party/protobuf/conformance/ |
D | binary_json_conformance_suite.cc | 49 using google::protobuf::FieldDescriptor; 152 string GetDefaultValue(FieldDescriptor::Type type) { in GetDefaultValue() 154 case FieldDescriptor::TYPE_INT32: in GetDefaultValue() 155 case FieldDescriptor::TYPE_INT64: in GetDefaultValue() 156 case FieldDescriptor::TYPE_UINT32: in GetDefaultValue() 157 case FieldDescriptor::TYPE_UINT64: in GetDefaultValue() 158 case FieldDescriptor::TYPE_ENUM: in GetDefaultValue() 159 case FieldDescriptor::TYPE_BOOL: in GetDefaultValue() 161 case FieldDescriptor::TYPE_SINT32: in GetDefaultValue() 163 case FieldDescriptor::TYPE_SINT64: in GetDefaultValue() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 254 const FieldDescriptor* field) { in SubmessageTypeRef() 255 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef() 447 bool IgnoreExtensionField(const FieldDescriptor* field) { in IgnoreExtensionField() 460 bool IgnoreField(const FieldDescriptor* field) { in IgnoreField() 480 const FieldDescriptor* field, bool is_upper_camel, in JSIdent() 483 if (field->type() == FieldDescriptor::TYPE_GROUP) { in JSIdent() 502 const FieldDescriptor* field) { in JSObjectFieldName() 530 const FieldDescriptor* field, in JSGetterName() 536 if (field->type() == FieldDescriptor::TYPE_BYTES) { in JSGetterName() 556 std::string JSFieldIndex(const FieldDescriptor* field) { in JSFieldIndex() [all …]
|