HomeSort by relevance Sort by last modified time
    Searched full:fielddescriptor (Results 1 - 25 of 122) sorted by null

1 2 3 4 5

  /external/protobuf/src/google/protobuf/
generated_message_reflection.h 140 bool HasField(const Message& message, const FieldDescriptor* field) const;
141 int FieldSize(const Message& message, const FieldDescriptor* field) const;
142 void ClearField(Message* message, const FieldDescriptor* field) const;
143 void RemoveLast(Message* message, const FieldDescriptor* field) const;
145 void SwapElements(Message* message, const FieldDescriptor* field,
148 vector<const FieldDescriptor*>* output) const;
151 const FieldDescriptor* field) const;
153 const FieldDescriptor* field) const;
155 const FieldDescriptor* field) const;
157 const FieldDescriptor* field) const
    [all...]
generated_message_reflection.cc 84 const Descriptor* descriptor, const FieldDescriptor* field,
94 const char* cpptype_names_[FieldDescriptor::MAX_CPPTYPE + 1] = {
109 const Descriptor* descriptor, const FieldDescriptor* field,
111 FieldDescriptor::CppType expected_type) {
123 const Descriptor* descriptor, const FieldDescriptor* field,
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, \
221 const FieldDescriptor* field = descriptor_->field(i)
    [all...]
message.h 86 // FieldDescriptor* text_field = descriptor->FindFieldByName("text");
88 // assert(text_field->type() == FieldDescriptor::TYPE_STRING);
89 // assert(text_field->label() == FieldDescriptor::TYPE_OPTIONAL);
90 // FieldDescriptor* numbers_field = descriptor->FindFieldByName("numbers");
92 // assert(numbers_field->type() == FieldDescriptor::TYPE_INT32);
93 // assert(numbers_field->label() == FieldDescriptor::TYPE_REPEATED);
155 class FieldDescriptor; // descriptor.h
354 // - The FieldDescriptor is not a field of this message type.
356 // each field type in FieldDescriptor::TYPE_*, there is only one
400 const FieldDescriptor* field) const = 0
    [all...]
reflection_ops.cc 60 vector<const FieldDescriptor*> fields;
63 const FieldDescriptor* field = fields[i];
70 case FieldDescriptor::CPPTYPE_##CPPTYPE: \
86 case FieldDescriptor::CPPTYPE_MESSAGE:
95 case FieldDescriptor::CPPTYPE_##CPPTYPE: \
111 case FieldDescriptor::CPPTYPE_MESSAGE:
126 vector<const FieldDescriptor*> fields;
149 vector<const FieldDescriptor*> fields;
152 const FieldDescriptor* field = fields[i];
153 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE)
    [all...]
extension_set_heavy.cc 70 vector<const FieldDescriptor*>* output) const {
96 inline FieldDescriptor::Type real_type(FieldType type) {
97 GOOGLE_DCHECK(type > 0 && type <= FieldDescriptor::MAX_TYPE);
98 return static_cast<FieldDescriptor::Type>(type);
101 inline FieldDescriptor::CppType cpp_type(FieldType type) {
102 return FieldDescriptor::TypeToCppType(
103 static_cast<FieldDescriptor::Type>(type));
107 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? FieldDescriptor::LABEL_REPEATED \
108 : FieldDescriptor::LABEL_OPTIONAL, \
109 FieldDescriptor::LABEL_##LABEL);
    [all...]
wire_format.h 79 const FieldDescriptor* field);
83 FieldDescriptor::Type type);
87 static inline int TagSize(int field_number, FieldDescriptor::Type type);
180 static uint32 MakeTag(const FieldDescriptor* field);
186 const FieldDescriptor* field, // May be NULL for unknown
192 const FieldDescriptor* field, // Cannot be NULL
200 const FieldDescriptor* field, // Cannot be NULL
209 const FieldDescriptor* field,
213 const FieldDescriptor* field,
221 const FieldDescriptor* field, // Cannot be NUL
    [all...]
descriptor.h 39 // fields by passing the FieldDescriptor of the field you are interested
67 class FieldDescriptor;
153 const FieldDescriptor* field(int index) const;
157 const FieldDescriptor* FindFieldByNumber(int number) const;
159 const FieldDescriptor* FindFieldByName(const string& name) const;
164 const FieldDescriptor* FindFieldByLowercaseName(
171 const FieldDescriptor* FindFieldByCamelcaseName(
225 const FieldDescriptor* extension(int index) const;
229 const FieldDescriptor* FindExtensionByName(const string& name) const;
233 const FieldDescriptor* FindExtensionByLowercaseName(const string& name) const
    [all...]
text_format.cc 155 bool ParseField(const FieldDescriptor* field, Message* output) {
157 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
239 const FieldDescriptor* field = NULL;
272 if (field != NULL && field->type() != FieldDescriptor::TYPE_GROUP) {
277 if (field != NULL && field->type() == FieldDescriptor::TYPE_GROUP
298 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
317 const FieldDescriptor* field) {
337 const FieldDescriptor* field) {
350 case FieldDescriptor::CPPTYPE_INT32: {
357 case FieldDescriptor::CPPTYPE_UINT32:
    [all...]
  /external/protobuf/src/google/protobuf/compiler/java/
java_helpers.cc 57 const string& FieldName(const FieldDescriptor* field) {
61 if (GetType(field) == FieldDescriptor::TYPE_GROUP) {
101 string UnderscoresToCamelCase(const FieldDescriptor* field) {
105 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) {
176 string FieldConstantName(const FieldDescriptor *field) {
182 FieldDescriptor::Type GetType(const FieldDescriptor* field) {
186 JavaType GetJavaType(const FieldDescriptor* field) {
188 case FieldDescriptor::TYPE_INT32:
189 case FieldDescriptor::TYPE_UINT32
    [all...]
java_primitive_field.cc 95 const char* GetCapitalizedType(const FieldDescriptor* field) {
97 case FieldDescriptor::TYPE_INT32 : return "Int32" ;
98 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ;
99 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ;
100 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ;
101 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32";
102 case FieldDescriptor::TYPE_INT64 : return "Int64" ;
103 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ;
104 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ;
105 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64"
    [all...]
java_extension.cc 47 const char* TypeName(FieldDescriptor::Type field_type) {
49 case FieldDescriptor::TYPE_INT32 : return "INT32";
50 case FieldDescriptor::TYPE_UINT32 : return "UINT32";
51 case FieldDescriptor::TYPE_SINT32 : return "SINT32";
52 case FieldDescriptor::TYPE_FIXED32 : return "FIXED32";
53 case FieldDescriptor::TYPE_SFIXED32: return "SFIXED32";
54 case FieldDescriptor::TYPE_INT64 : return "INT64";
55 case FieldDescriptor::TYPE_UINT64 : return "UINT64";
56 case FieldDescriptor::TYPE_SINT64 : return "SINT64";
57 case FieldDescriptor::TYPE_FIXED64 : return "FIXED64"
    [all...]
java_helpers.h 54 string UnderscoresToCamelCase(const FieldDescriptor* field);
55 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field);
87 inline string ExtensionIdentifierName(const FieldDescriptor* descriptor) {
94 string FieldConstantName(const FieldDescriptor *field);
96 // Returns the type of the FieldDescriptor.
99 FieldDescriptor::Type GetType(const FieldDescriptor* field);
113 JavaType GetJavaType(const FieldDescriptor* field);
120 string DefaultValue(const FieldDescriptor* field);
  /external/protobuf/src/google/protobuf/compiler/cpp/
cpp_helpers.cc 153 string FieldName(const FieldDescriptor* field) {
162 string FieldConstantName(const FieldDescriptor *field) {
178 string FieldMessageTypeName(const FieldDescriptor* field) {
192 const char* PrimitiveTypeName(FieldDescriptor::CppType type) {
194 case FieldDescriptor::CPPTYPE_INT32 : return "::google::protobuf::int32";
195 case FieldDescriptor::CPPTYPE_INT64 : return "::google::protobuf::int64";
196 case FieldDescriptor::CPPTYPE_UINT32 : return "::google::protobuf::uint32";
197 case FieldDescriptor::CPPTYPE_UINT64 : return "::google::protobuf::uint64";
198 case FieldDescriptor::CPPTYPE_DOUBLE : return "double";
199 case FieldDescriptor::CPPTYPE_FLOAT : return "float"
    [all...]
cpp_field.cc 54 void SetCommonFieldVariables(const FieldDescriptor* descriptor,
93 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field) {
96 case FieldDescriptor::CPPTYPE_MESSAGE:
98 case FieldDescriptor::CPPTYPE_STRING:
104 case FieldDescriptor::CPPTYPE_ENUM:
111 case FieldDescriptor::CPPTYPE_MESSAGE:
113 case FieldDescriptor::CPPTYPE_STRING:
119 case FieldDescriptor::CPPTYPE_ENUM:
130 const FieldDescriptor* field) const {
cpp_primitive_field.cc 52 int FixedSize(FieldDescriptor::Type type) {
54 case FieldDescriptor::TYPE_INT32 : return -1;
55 case FieldDescriptor::TYPE_INT64 : return -1;
56 case FieldDescriptor::TYPE_UINT32 : return -1;
57 case FieldDescriptor::TYPE_UINT64 : return -1;
58 case FieldDescriptor::TYPE_SINT32 : return -1;
59 case FieldDescriptor::TYPE_SINT64 : return -1;
60 case FieldDescriptor::TYPE_FIXED32 : return WireFormatLite::kFixed32Size;
61 case FieldDescriptor::TYPE_FIXED64 : return WireFormatLite::kFixed64Size;
62 case FieldDescriptor::TYPE_SFIXED32: return WireFormatLite::kSFixed32Size
    [all...]
cpp_helpers.h 69 string FieldName(const FieldDescriptor* field);
73 string FieldConstantName(const FieldDescriptor *field);
77 inline const Descriptor* FieldScope(const FieldDescriptor* field) {
84 string FieldMessageTypeName(const FieldDescriptor* field);
94 const char* PrimitiveTypeName(FieldDescriptor::CppType type);
98 const char* DeclaredTypeMethodName(FieldDescriptor::Type type);
101 string DefaultValue(const FieldDescriptor* field);
  /external/protobuf/java/src/main/java/com/google/protobuf/
DynamicMessage.java 34 import com.google.protobuf.Descriptors.FieldDescriptor;
48 private final FieldSet<FieldDescriptor> fields;
55 private DynamicMessage(Descriptor type, FieldSet<FieldDescriptor> fields,
67 return new DynamicMessage(type, FieldSet.<FieldDescriptor>emptySet(),
150 public Map<FieldDescriptor, Object> getAllFields() {
154 public boolean hasField(FieldDescriptor field) {
159 public Object getField(FieldDescriptor field) {
163 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) {
172 public int getRepeatedFieldCount(FieldDescriptor field) {
177 public Object getRepeatedField(FieldDescriptor field, int index)
    [all...]
GeneratedMessage.java 35 import com.google.protobuf.Descriptors.FieldDescriptor;
72 private Map<FieldDescriptor, Object> getAllFieldsMutable() {
73 final TreeMap<FieldDescriptor, Object> result =
74 new TreeMap<FieldDescriptor, Object>();
76 for (final FieldDescriptor field : descriptor.getFields()) {
93 for (final FieldDescriptor field : getDescriptorForType().getFields()) {
101 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) {
121 public Map<FieldDescriptor, Object> getAllFields() {
125 public boolean hasField(final FieldDescriptor field) {
129 public Object getField(final FieldDescriptor field)
    [all...]
Message.java 70 * {@link #getField(Descriptors.FieldDescriptor)} for each field. The map
74 Map<Descriptors.FieldDescriptor, Object> getAllFields();
82 boolean hasField(Descriptors.FieldDescriptor field);
91 Object getField(Descriptors.FieldDescriptor field);
100 int getRepeatedFieldCount(Descriptors.FieldDescriptor field);
110 Object getRepeatedField(Descriptors.FieldDescriptor field, int index);
209 Map<Descriptors.FieldDescriptor, Object> getAllFields();
216 Builder newBuilderForField(Descriptors.FieldDescriptor field);
218 /** Like {@link Message#hasField(Descriptors.FieldDescriptor)} */
219 boolean hasField(Descriptors.FieldDescriptor field)
    [all...]
  /external/protobuf/src/google/protobuf/compiler/javamicro/
javamicro_helpers.cc 57 const string& FieldName(const FieldDescriptor* field) {
61 if (field->type() == FieldDescriptor::TYPE_GROUP) {
101 string UnderscoresToCamelCase(const FieldDescriptor* field) {
105 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) {
252 string FieldConstantName(const FieldDescriptor *field) {
258 JavaType GetJavaType(FieldDescriptor::Type field_type) {
260 case FieldDescriptor::TYPE_INT32:
261 case FieldDescriptor::TYPE_UINT32:
262 case FieldDescriptor::TYPE_SINT32:
263 case FieldDescriptor::TYPE_FIXED32
    [all...]
javamicro_primitive_field.cc 95 const char* GetCapitalizedType(const FieldDescriptor* field) {
97 case FieldDescriptor::TYPE_INT32 : return "Int32" ;
98 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ;
99 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ;
100 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ;
101 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32";
102 case FieldDescriptor::TYPE_INT64 : return "Int64" ;
103 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ;
104 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ;
105 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64"
    [all...]
javamicro_message.cc 56 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) {
65 inline bool operator()(const FieldDescriptor* a,
66 const FieldDescriptor* b) const {
73 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) {
74 const FieldDescriptor** fields =
75 new const FieldDescriptor*[descriptor->field_count()];
118 const FieldDescriptor* field = type->field(i);
122 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
233 scoped_array<const FieldDescriptor*> sorted_fields(
280 scoped_array<const FieldDescriptor*> sorted_fields
    [all...]
javamicro_helpers.h 55 string UnderscoresToCamelCase(const FieldDescriptor* field);
56 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field);
89 const FieldDescriptor* descriptor) {
96 string FieldConstantName(const FieldDescriptor *field);
110 JavaType GetJavaType(FieldDescriptor::Type field_type);
112 inline JavaType GetJavaType(const FieldDescriptor* field) {
121 string DefaultValue(const Params& params, const FieldDescriptor* field);
  /external/protobuf/java/src/test/java/com/google/protobuf/
DescriptorsTest.java 39 import com.google.protobuf.Descriptors.FieldDescriptor;
71 // Regression test for bug where referencing a FieldDescriptor.Type value
74 private static final Object STATIC_INIT_TEST = FieldDescriptor.Type.BOOL;
77 assertEquals(FieldDescriptor.Type.values().length,
79 for (FieldDescriptor.Type type : FieldDescriptor.Type.values()) {
82 assertEquals(type, FieldDescriptor.Type.valueOf(protoType));
130 FieldDescriptor extension =
163 FieldDescriptor field = messageType.getFields().get(0);
191 FieldDescriptor primitiveField
    [all...]
  /external/protobuf/python/google/protobuf/
text_format.py 66 if field.label == descriptor.FieldDescriptor.LABEL_REPEATED:
81 field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
83 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL):
88 elif field.type == descriptor.FieldDescriptor.TYPE_GROUP:
94 if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
107 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
111 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
113 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING:
117 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
180 if field and field.type != descriptor.FieldDescriptor.TYPE_GROUP
    [all...]

Completed in 718 milliseconds

1 2 3 4 5