/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_helpers.cc | 83 string FieldName(const FieldDescriptor* field) { in FieldName() 88 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { in FieldName() 139 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 143 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 253 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 259 FieldDescriptor::Type GetType(const FieldDescriptor* field) { in GetType() 263 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType() 265 case FieldDescriptor::TYPE_INT32: in GetJavaType() 266 case FieldDescriptor::TYPE_UINT32: in GetJavaType() 267 case FieldDescriptor::TYPE_SINT32: in GetJavaType() [all …]
|
D | java_helpers.h | 57 string UnderscoresToCamelCase(const FieldDescriptor* field); 58 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field); 131 string FieldConstantName(const FieldDescriptor *field); 136 FieldDescriptor::Type GetType(const FieldDescriptor* field); 150 JavaType GetJavaType(const FieldDescriptor* field); 160 const char* FieldTypeName(const FieldDescriptor::Type field_type); 163 string DefaultValue(const FieldDescriptor* field, bool immutable, 165 inline string ImmutableDefaultValue(const FieldDescriptor* field, in ImmutableDefaultValue() 169 bool IsDefaultValueJavaDefault(const FieldDescriptor* field); 217 inline bool IsLazy(const FieldDescriptor* descriptor) { in IsLazy() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | generated_message_reflection.h | 183 bool HasField(const Message& message, const FieldDescriptor* field) const; 184 int FieldSize(const Message& message, const FieldDescriptor* field) const; 185 void ClearField(Message* message, const FieldDescriptor* field) const; 189 void RemoveLast(Message* message, const FieldDescriptor* field) const; 190 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const; 193 const vector<const FieldDescriptor*>& fields) const; 194 void SwapElements(Message* message, const FieldDescriptor* field, 197 vector<const FieldDescriptor*>* output) const; 200 const FieldDescriptor* field) const; 202 const FieldDescriptor* field) const; [all …]
|
D | message.h | 377 const FieldDescriptor* field) const = 0; 381 const FieldDescriptor* field) const = 0; 386 const FieldDescriptor* field) const = 0; 402 virtual const FieldDescriptor* GetOneofFieldDescriptor( in GetOneofFieldDescriptor() 416 const FieldDescriptor* field) const = 0; 420 const FieldDescriptor* field) const = 0; 428 const std::vector<const FieldDescriptor*>& fields) 433 const FieldDescriptor* field, 443 std::vector<const FieldDescriptor*>* output) const = 0; 450 const FieldDescriptor* field) const = 0; [all …]
|
D | descriptor.h | 68 class FieldDescriptor; variable 176 const FieldDescriptor* field(int index) const; 180 const FieldDescriptor* FindFieldByNumber(int number) const; 182 const FieldDescriptor* FindFieldByName(const string& name) const; 187 const FieldDescriptor* FindFieldByLowercaseName( 194 const FieldDescriptor* FindFieldByCamelcaseName( 260 const FieldDescriptor* extension(int index) const; 264 const FieldDescriptor* FindExtensionByName(const string& name) const; 268 const FieldDescriptor* FindExtensionByLowercaseName(const string& name) const; 272 const FieldDescriptor* FindExtensionByCamelcaseName(const string& name) const; [all …]
|
D | generated_message_reflection.cc | 84 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError() 94 const char* cpptype_names_[FieldDescriptor::MAX_CPPTYPE + 1] = { 109 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() 111 FieldDescriptor::CppType expected_type) { in ReportReflectionUsageTypeError() 123 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() 144 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \ 146 FieldDescriptor::CPPTYPE_##CPPTYPE) 156 USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \ 159 USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \ 248 const FieldDescriptor* field = descriptor_->field(i); in SpaceUsed() [all …]
|
D | text_format.h | 86 const FieldDescriptor* field, 111 const FieldDescriptor* field) const; 144 const FieldDescriptor* field, 213 bool RegisterFieldValuePrinter(const FieldDescriptor* field, 229 const FieldDescriptor* field, 235 const FieldDescriptor* field, 242 const FieldDescriptor* field, 249 const FieldDescriptor* field, 272 typedef map<const FieldDescriptor*, 294 const FieldDescriptor* field, [all …]
|
D | wire_format.h | 80 const FieldDescriptor* field); 84 FieldDescriptor::Type type); 88 static inline int TagSize(int field_number, FieldDescriptor::Type type); 181 static uint32 MakeTag(const FieldDescriptor* field); 187 const FieldDescriptor* field, // May be NULL for unknown 193 const FieldDescriptor* field, // Cannot be NULL 201 const FieldDescriptor* field, // Cannot be NULL 210 const FieldDescriptor* field, 214 const FieldDescriptor* field, 222 const FieldDescriptor* field, // Cannot be NULL [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_helpers.cc | 169 string FieldName(const FieldDescriptor* field) { in FieldName() 178 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 194 string FieldMessageTypeName(const FieldDescriptor* field) { in FieldMessageTypeName() 208 const char* PrimitiveTypeName(FieldDescriptor::CppType type) { in PrimitiveTypeName() 210 case FieldDescriptor::CPPTYPE_INT32 : return "::google::protobuf::int32"; in PrimitiveTypeName() 211 case FieldDescriptor::CPPTYPE_INT64 : return "::google::protobuf::int64"; in PrimitiveTypeName() 212 case FieldDescriptor::CPPTYPE_UINT32 : return "::google::protobuf::uint32"; in PrimitiveTypeName() 213 case FieldDescriptor::CPPTYPE_UINT64 : return "::google::protobuf::uint64"; in PrimitiveTypeName() 214 case FieldDescriptor::CPPTYPE_DOUBLE : return "double"; in PrimitiveTypeName() 215 case FieldDescriptor::CPPTYPE_FLOAT : return "float"; in PrimitiveTypeName() [all …]
|
D | cpp_primitive_field.cc | 52 int FixedSize(FieldDescriptor::Type type) { in FixedSize() 54 case FieldDescriptor::TYPE_INT32 : return -1; in FixedSize() 55 case FieldDescriptor::TYPE_INT64 : return -1; in FixedSize() 56 case FieldDescriptor::TYPE_UINT32 : return -1; in FixedSize() 57 case FieldDescriptor::TYPE_UINT64 : return -1; in FixedSize() 58 case FieldDescriptor::TYPE_SINT32 : return -1; in FixedSize() 59 case FieldDescriptor::TYPE_SINT64 : return -1; in FixedSize() 60 case FieldDescriptor::TYPE_FIXED32 : return WireFormatLite::kFixed32Size; in FixedSize() 61 case FieldDescriptor::TYPE_FIXED64 : return WireFormatLite::kFixed64Size; in FixedSize() 62 case FieldDescriptor::TYPE_SFIXED32: return WireFormatLite::kSFixed32Size; in FixedSize() [all …]
|
D | cpp_field.cc | 56 void SetCommonFieldVariables(const FieldDescriptor* descriptor, in SetCommonFieldVariables() 73 void SetCommonOneofFieldVariables(const FieldDescriptor* descriptor, in SetCommonOneofFieldVariables() 104 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field, in MakeGenerator() 108 case FieldDescriptor::CPPTYPE_MESSAGE: in MakeGenerator() 110 case FieldDescriptor::CPPTYPE_STRING: in MakeGenerator() 116 case FieldDescriptor::CPPTYPE_ENUM: in MakeGenerator() 123 case FieldDescriptor::CPPTYPE_MESSAGE: in MakeGenerator() 125 case FieldDescriptor::CPPTYPE_STRING: in MakeGenerator() 131 case FieldDescriptor::CPPTYPE_ENUM: in MakeGenerator() 138 case FieldDescriptor::CPPTYPE_MESSAGE: in MakeGenerator() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_primitive_field.cc | 95 const char* GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType() 97 case FieldDescriptor::TYPE_INT32 : return "Int32" ; in GetCapitalizedType() 98 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ; in GetCapitalizedType() 99 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ; in GetCapitalizedType() 100 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ; in GetCapitalizedType() 101 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32"; in GetCapitalizedType() 102 case FieldDescriptor::TYPE_INT64 : return "Int64" ; in GetCapitalizedType() 103 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ; in GetCapitalizedType() 104 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ; in GetCapitalizedType() 105 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64" ; in GetCapitalizedType() [all …]
|
D | javamicro_helpers.cc | 58 const string& FieldName(const FieldDescriptor* field) { in FieldName() 62 if (field->type() == FieldDescriptor::TYPE_GROUP) { in FieldName() 102 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 106 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 194 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 200 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType() 202 case FieldDescriptor::TYPE_INT32: in GetJavaType() 203 case FieldDescriptor::TYPE_UINT32: in GetJavaType() 204 case FieldDescriptor::TYPE_SINT32: in GetJavaType() 205 case FieldDescriptor::TYPE_FIXED32: in GetJavaType() [all …]
|
D | javamicro_message.cc | 56 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() 65 inline bool operator()(const FieldDescriptor* a, in operator ()() 66 const FieldDescriptor* b) const { in operator ()() 73 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { in SortFieldsByNumber() 74 const FieldDescriptor** fields = in SortFieldsByNumber() 75 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber() 118 const FieldDescriptor* field = type->field(i); in HasRequiredFields() 122 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in HasRequiredFields() 231 scoped_array<const FieldDescriptor*> sorted_fields( in GenerateMessageSerializationMethods() 288 scoped_array<const FieldDescriptor*> sorted_fields( in GenerateMergeFromMethods() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
D | generate_python_test.py | 146 field = descriptor.FieldDescriptor() 149 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 150 field.variant = descriptor.FieldDescriptor.Variant.INT64 158 field = descriptor.FieldDescriptor() 161 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 162 field.variant = descriptor.FieldDescriptor.Variant.MESSAGE 168 field = descriptor.FieldDescriptor() 171 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 172 field.variant = descriptor.FieldDescriptor.Variant.MESSAGE 181 field = descriptor.FieldDescriptor() [all …]
|
D | generate_proto_test.py | 70 field = descriptor.FieldDescriptor() 73 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 74 field.variant = descriptor.FieldDescriptor.Variant.INT64 86 field = descriptor.FieldDescriptor() 89 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 90 field.variant = descriptor.FieldDescriptor.Variant.INT64 103 field = descriptor.FieldDescriptor() 106 field.label = descriptor.FieldDescriptor.Label.REPEATED 107 field.variant = descriptor.FieldDescriptor.Variant.INT64 120 field = descriptor.FieldDescriptor() [all …]
|
D | protorpc_test_pb2.py | 72 descriptor.FieldDescriptor( 100 descriptor.FieldDescriptor( 107 descriptor.FieldDescriptor( 135 descriptor.FieldDescriptor( 163 descriptor.FieldDescriptor( 170 descriptor.FieldDescriptor( 177 descriptor.FieldDescriptor( 184 descriptor.FieldDescriptor( 191 descriptor.FieldDescriptor( 198 descriptor.FieldDescriptor( [all …]
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_extension.cc | 49 const char* GetTypeConstantName(const FieldDescriptor::Type type) { in GetTypeConstantName() 51 case FieldDescriptor::TYPE_INT32 : return "TYPE_INT32" ; in GetTypeConstantName() 52 case FieldDescriptor::TYPE_UINT32 : return "TYPE_UINT32" ; in GetTypeConstantName() 53 case FieldDescriptor::TYPE_SINT32 : return "TYPE_SINT32" ; in GetTypeConstantName() 54 case FieldDescriptor::TYPE_FIXED32 : return "TYPE_FIXED32" ; in GetTypeConstantName() 55 case FieldDescriptor::TYPE_SFIXED32: return "TYPE_SFIXED32"; in GetTypeConstantName() 56 case FieldDescriptor::TYPE_INT64 : return "TYPE_INT64" ; in GetTypeConstantName() 57 case FieldDescriptor::TYPE_UINT64 : return "TYPE_UINT64" ; in GetTypeConstantName() 58 case FieldDescriptor::TYPE_SINT64 : return "TYPE_SINT64" ; in GetTypeConstantName() 59 case FieldDescriptor::TYPE_FIXED64 : return "TYPE_FIXED64" ; in GetTypeConstantName() [all …]
|
D | javanano_helpers.cc | 101 const string& FieldName(const FieldDescriptor* field) { in FieldName() 105 if (field->type() == FieldDescriptor::TYPE_GROUP) { in FieldName() 145 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 149 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 257 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 263 string FieldDefaultConstantName(const FieldDescriptor *field) { in FieldDefaultConstantName() 267 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() 283 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType() 285 case FieldDescriptor::TYPE_INT32: in GetJavaType() 286 case FieldDescriptor::TYPE_UINT32: in GetJavaType() [all …]
|
D | javanano_primitive_field.cc | 97 const char* GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType() 99 case FieldDescriptor::TYPE_INT32 : return "Int32" ; in GetCapitalizedType() 100 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ; in GetCapitalizedType() 101 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ; in GetCapitalizedType() 102 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ; in GetCapitalizedType() 103 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32"; in GetCapitalizedType() 104 case FieldDescriptor::TYPE_INT64 : return "Int64" ; in GetCapitalizedType() 105 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ; in GetCapitalizedType() 106 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ; in GetCapitalizedType() 107 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64" ; in GetCapitalizedType() [all …]
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | DynamicMessage.java | 35 import com.google.protobuf.Descriptors.FieldDescriptor; 52 private final FieldSet<FieldDescriptor> fields; 53 private final FieldDescriptor[] oneofCases; 66 DynamicMessage(Descriptor type, FieldSet<FieldDescriptor> fields, in DynamicMessage() 67 FieldDescriptor[] oneofCases, in DynamicMessage() 81 FieldDescriptor[] oneofCases = new FieldDescriptor[oneofDeclCount]; in getDefaultInstance() 82 return new DynamicMessage(type, FieldSet.<FieldDescriptor>emptySet(), in getDefaultInstance() 167 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields() 173 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof() 180 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() [all …]
|
D | MessageReflection.java | 33 import com.google.protobuf.Descriptors.FieldDescriptor; 54 Map<FieldDescriptor, Object> fields = message.getAllFields(); in writeMessageTo() 56 fields = new TreeMap<FieldDescriptor, Object>(fields); in writeMessageTo() 57 for (final FieldDescriptor field : in writeMessageTo() 64 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in writeMessageTo() 66 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo() 69 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo() 90 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in getSerializedSize() 92 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize() 95 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in getSerializedSize() [all …]
|
D | GeneratedMessage.java | 35 import com.google.protobuf.Descriptors.FieldDescriptor; 104 private Map<FieldDescriptor, Object> getAllFieldsMutable() { in getAllFieldsMutable() 105 final TreeMap<FieldDescriptor, Object> result = in getAllFieldsMutable() 106 new TreeMap<FieldDescriptor, Object>(); in getAllFieldsMutable() 108 for (final FieldDescriptor field : descriptor.getFields()) { in getAllFieldsMutable() 125 for (final FieldDescriptor field : getDescriptorForType().getFields()) { in isInitialized() 133 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized() 154 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields() 164 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) { in getOneofFieldDescriptor() 169 public boolean hasField(final FieldDescriptor field) { in hasField() [all …]
|
/external/nanopb-c/generator/google/protobuf/ |
D | descriptor_pb2.py | 187 _descriptor.FieldDescriptor( 215 _descriptor.FieldDescriptor( 222 _descriptor.FieldDescriptor( 229 _descriptor.FieldDescriptor( 236 _descriptor.FieldDescriptor( 243 _descriptor.FieldDescriptor( 250 _descriptor.FieldDescriptor( 257 _descriptor.FieldDescriptor( 264 _descriptor.FieldDescriptor( 271 _descriptor.FieldDescriptor( [all …]
|
/external/protobuf/python/google/protobuf/ |
D | text_format.py | 56 _FLOAT_TYPES = frozenset([descriptor.FieldDescriptor.CPPTYPE_FLOAT, 57 descriptor.FieldDescriptor.CPPTYPE_DOUBLE]) 111 if field.label == descriptor.FieldDescriptor.LABEL_REPEATED: 131 field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and 133 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL): 138 elif field.type == descriptor.FieldDescriptor.TYPE_GROUP: 144 if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE: 171 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE: 184 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM: 190 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING: [all …]
|