Home
last modified time | relevance | path

Searched refs:descriptor_ (Results 1 – 25 of 142) sorted by relevance

123456

/external/protobuf/src/google/protobuf/compiler/java/
Djava_message.cc87 : descriptor_(descriptor) {} in MessageGenerator()
114 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariables()
115 vars["index"] = SimpleItoa(descriptor_->index()); in GenerateStaticVariables()
116 vars["classname"] = name_resolver_->GetImmutableClassName(descriptor_); in GenerateStaticVariables()
117 if (descriptor_->containing_type() != NULL) { in GenerateStaticVariables()
119 descriptor_->containing_type()); in GenerateStaticVariables()
121 if (MultipleJavaFiles(descriptor_->file(), /* immutable = */ true)) { in GenerateStaticVariables()
147 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables()
149 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables()
158 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariableInitializers()
[all …]
Djava_message_lite.cc100 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables()
102 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables()
111 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers()
114 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariableInitializers()
123 if (descriptor_->extension_range_count() > 0) { in GenerateInterface()
130 "extra_interfaces", ExtraMessageOrBuilderInterfaces(descriptor_), in GenerateInterface()
131 "classname", descriptor_->name()); in GenerateInterface()
137 "extra_interfaces", ExtraMessageOrBuilderInterfaces(descriptor_), in GenerateInterface()
138 "classname", descriptor_->name()); in GenerateInterface()
142 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateInterface()
[all …]
Djava_enum_field_lite.cc123 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableEnumFieldLiteGenerator()
143 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
144 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
148 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers()
149 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
153 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
163 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
170 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateMembers()
171 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_message_builder.cc81 : descriptor_(descriptor), context_(context), in MessageBuilderGenerator()
93 WriteMessageDocComment(printer, descriptor_); in Generate()
94 if (descriptor_->extension_range_count() > 0) { in Generate()
101 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate()
102 "extra_interfaces", ExtraBuilderInterfaces(descriptor_)); in Generate()
109 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate()
110 "extra_interfaces", ExtraBuilderInterfaces(descriptor_)); in Generate()
117 if (context_->HasGeneratedMethods(descriptor_)) { in Generate()
124 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in Generate()
126 descriptor_->oneof_decl(i))->name; in Generate()
[all …]
Djava_message_field_lite.cc111 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableMessageFieldLiteGenerator()
135 if (SupportFieldPresence(descriptor_->file()) || in GenerateInterfaceMembers()
136 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers()
137 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
141 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
152 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
153 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
158 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
169 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_enum_field.cc137 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableEnumFieldGenerator()
157 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
158 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
162 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers()
163 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
167 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
177 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
178 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
184 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateMembers()
185 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_lazy_message_field_lite.cc66 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
72 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
79 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
90 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
99 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
114 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
128 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
134 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
141 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
150 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
[all …]
Djava_enum.cc66 : descriptor_(descriptor), immutable_api_(immutable_api), in EnumGenerator()
69 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator()
70 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
72 descriptor_->FindValueByNumber(value->number()); in EnumGenerator()
88 WriteEnumDocComment(printer, descriptor_); in Generate()
92 "classname", descriptor_->name()); in Generate()
123 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate()
139 vars["classname"] = descriptor_->name(); in Generate()
147 for (int i = 0; i < descriptor_->value_count(); i++) { in Generate()
149 vars["name"] = descriptor_->value(i)->name(); in Generate()
[all …]
Djava_string_field_lite.cc125 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableStringFieldLiteGenerator()
170 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
171 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
178 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
190 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
191 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
198 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
203 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
210 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_message_field.cc125 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableMessageFieldGenerator()
149 if (SupportFieldPresence(descriptor_->file()) || in GenerateInterfaceMembers()
150 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers()
151 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
155 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
159 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
170 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
171 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
176 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
182 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_lazy_message_field.cc65 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
70 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
76 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
104 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
116 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
132 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
146 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
166 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
178 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
185 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
[all …]
Djava_string_field.cc142 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableStringFieldGenerator()
194 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
195 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
199 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
202 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
214 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
215 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
222 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
232 if (CheckUtf8(descriptor_)) { in GenerateMembers()
245 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_primitive_field_lite.cc175 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutablePrimitiveFieldLiteGenerator()
195 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
196 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
200 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
210 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
211 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
218 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
224 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
232 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
236 JavaType type = GetJavaType(descriptor_); in GenerateMembers()
[all …]
Djava_primitive_field.cc154 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutablePrimitiveFieldGenerator()
174 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers()
175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
179 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
189 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers()
190 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
197 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
209 if (SupportFieldPresence(descriptor_->file())) { in GenerateBuilderMembers()
210 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
217 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers()
[all …]
Djava_map_field_lite.cc141 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableMapFieldLiteGenerator()
160 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers()
161 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
166 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers()
167 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
174 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
213 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateMembers()
222 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateMembers()
223 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
232 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_enum_lite.cc66 : descriptor_(descriptor), immutable_api_(immutable_api), in EnumLiteGenerator()
68 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumLiteGenerator()
69 const EnumValueDescriptor* value = descriptor_->value(i); in EnumLiteGenerator()
71 descriptor_->FindValueByNumber(value->number()); in EnumLiteGenerator()
87 WriteEnumDocComment(printer, descriptor_); in Generate()
91 "classname", descriptor_->name()); in Generate()
106 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate()
118 vars["classname"] = descriptor_->name(); in Generate()
126 for (int i = 0; i < descriptor_->value_count(); i++) { in Generate()
128 vars["name"] = descriptor_->value(i)->name(); in Generate()
[all …]
Djava_message_builder_lite.cc81 : descriptor_(descriptor), context_(context), in MessageBuilderLiteGenerator()
93 WriteMessageDocComment(printer, descriptor_); in Generate()
100 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate()
101 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), in Generate()
103 descriptor_->extension_range_count() > 0 ? "Extendable" : ""); in Generate()
110 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in Generate()
112 descriptor_->oneof_decl(i))->name; in Generate()
114 descriptor_->oneof_decl(i))->capitalized_name; in Generate()
115 vars["oneof_index"] = SimpleItoa(descriptor_->oneof_decl(i)->index()); in Generate()
132 if (GenerateHasBits(descriptor_)) { in Generate()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc380 : descriptor_(descriptor), in MessageGenerator()
426 (*class_names)[classname_] = descriptor_; in FillMessageForwardDeclarations()
428 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in FillMessageForwardDeclarations()
432 if (IsMapEntryMessage(descriptor_->nested_type(i))) continue; in FillMessageForwardDeclarations()
439 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in FillEnumForwardDeclarations()
442 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in FillEnumForwardDeclarations()
449 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateEnumDefinitions()
453 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateEnumDefinitions()
460 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations()
463 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations()
[all …]
Dcpp_extension.cc61 : descriptor_(descriptor), in ExtensionGenerator()
64 if (descriptor_->is_repeated()) { in ExtensionGenerator()
68 switch (descriptor_->cpp_type()) { in ExtensionGenerator()
71 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
73 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
81 type_traits_.append(ClassName(descriptor_->message_type(), true)); in ExtensionGenerator()
86 type_traits_.append(PrimitiveTypeName(descriptor_->cpp_type())); in ExtensionGenerator()
96 vars["extendee" ] = ExtendeeClassName(descriptor_); in GenerateDeclaration()
97 vars["number" ] = SimpleItoa(descriptor_->number()); in GenerateDeclaration()
99 vars["name" ] = descriptor_->name(); in GenerateDeclaration()
[all …]
Dcpp_enum.cc64 : descriptor_(descriptor), in EnumGenerator()
77 (*enum_names)[classname_] = descriptor_; in FillForwardDeclaration()
83 vars["short_name"] = descriptor_->name(); in GenerateDefinition()
87 printer->Annotate("enumbase", descriptor_); in GenerateDefinition()
90 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition()
91 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition()
93 for (int i = 0; i < descriptor_->value_count(); i++) { in GenerateDefinition()
94 vars["name"] = EnumValueName(descriptor_->value(i)); in GenerateDefinition()
98 vars["number"] = Int32ToString(descriptor_->value(i)->number()); in GenerateDefinition()
99 vars["prefix"] = (descriptor_->containing_type() == NULL) ? in GenerateDefinition()
[all …]
Dcpp_string_field.cc81 : FieldGenerator(options), descriptor_(descriptor) { in StringFieldGenerator()
106 if (!descriptor_->default_value_string().empty()) { in GenerateStaticMembers()
131 descriptor_->options().ctype() != EffectiveStringCType(descriptor_); in GenerateAccessorDeclarations()
150 if (SupportsArenas(descriptor_)) { in GenerateAccessorDeclarations()
170 if (SupportsArenas(descriptor_)) { in GenerateInlineAccessorDefinitions()
284 if (!descriptor_->default_value_string().empty()) { in GenerateNonInlineAccessorDefinitions()
297 if (SupportsArenas(descriptor_)) { in GenerateClearingCode()
298 if (descriptor_->default_value_string().empty()) { in GenerateClearingCode()
306 if (descriptor_->default_value_string().empty()) { in GenerateClearingCode()
318 if (SupportsArenas(descriptor_) || descriptor_->containing_oneof() != NULL) { in GenerateMergingCode()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_message.cc83 descriptor_(descriptor), in MessageGenerator()
91 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables()
93 if (IsMapEntry(descriptor_->nested_type(i))) continue; in GenerateStaticVariables()
94 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables()
102 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers()
104 if (IsMapEntry(descriptor_->nested_type(i))) continue; in GenerateStaticVariableInitializers()
105 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers()
112 (descriptor_->extension_count() != 0 || descriptor_->extension_range_count() != 0)) { in Generate()
117 const string& file_name = descriptor_->file()->name(); in Generate()
120 && descriptor_->containing_type() == NULL; in Generate()
[all …]
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc66 descriptor_(descriptor) { in MessageGenerator()
69 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator()
70 field_names_.push_back(descriptor_->field(i)->name()); in MessageGenerator()
75 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator()
76 fields_by_number_.push_back(descriptor_->field(i)); in MessageGenerator()
86 return descriptor_->name(); in class_name()
90 return GetClassName(descriptor_); in full_class_name()
106 WriteMessageDocComment(printer, descriptor_); in Generate()
122 if (!descriptor_->containing_type()) { in Generate()
123 vars["descriptor_accessor"] = GetReflectionClassName(descriptor_->file()) in Generate()
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_message.cc143 descriptor_(descriptor), in MessageGenerator()
151 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables()
153 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables()
161 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers()
163 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers()
167 if (descriptor_->extension_count() != 0) { in GenerateStaticVariableInitializers()
173 const string& file_name = descriptor_->file()->name(); in Generate()
176 && descriptor_->containing_type() == NULL; in Generate()
178 if ((descriptor_->extension_count() != 0) in Generate()
179 || (descriptor_->extension_range_count() != 0)) { in Generate()
[all …]
/external/libprotobuf-mutator/src/
Dfield_instance.h36 : message_(nullptr), descriptor_(nullptr), index_(kInvalidIndex) {} in ConstFieldInstance()
40 : message_(message), descriptor_(field), index_(index) { in ConstFieldInstance()
42 assert(descriptor_); in ConstFieldInstance()
44 assert(descriptor_->is_repeated()); in ConstFieldInstance()
49 : message_(message), descriptor_(field), index_(kInvalidIndex) { in ConstFieldInstance()
51 assert(descriptor_); in ConstFieldInstance()
52 assert(!descriptor_->is_repeated()); in ConstFieldInstance()
56 *out = descriptor_->default_value_int32(); in GetDefault()
60 *out = descriptor_->default_value_int64(); in GetDefault()
64 *out = descriptor_->default_value_uint32(); in GetDefault()
[all …]

123456