Lines Matching refs:descriptor
80 void SetVariables(const FieldDescriptor* descriptor, const Params params,
82 (*variables)["extends"] = ClassName(params, descriptor->containing_type());
83 (*variables)["name"] = RenameJavaKeywords(UnderscoresToCamelCase(descriptor));
84 bool repeated = descriptor->is_repeated();
86 (*variables)["type"] = GetTypeConstantName(descriptor->type());
87 JavaType java_type = GetJavaType(descriptor->type());
88 string tag = SimpleItoa(WireFormat::MakeTag(descriptor));
91 string message_type = ClassName(params, descriptor->message_type());
106 if (!descriptor->is_packable()) {
109 } else if (descriptor->options().packed()) {
112 descriptor->number(),
113 WireFormat::WireTypeForFieldType(descriptor->type())));
118 descriptor->number(), WireFormatLite::WIRETYPE_LENGTH_DELIMITED));
126 ExtensionGenerator(const FieldDescriptor* descriptor, const Params& params)
127 : params_(params), descriptor_(descriptor) {
128 SetVariables(descriptor, params, &variables_);