|
|
@ -6456,9 +6456,12 @@ void DescriptorBuilder::BuildService(const ServiceDescriptorProto& proto, |
|
|
|
BUILD_ARRAY(proto, result, method, BuildMethod, result); |
|
|
|
BUILD_ARRAY(proto, result, method, BuildMethod, result); |
|
|
|
|
|
|
|
|
|
|
|
// Copy options.
|
|
|
|
// Copy options.
|
|
|
|
result->options_ = AllocateOptions( |
|
|
|
{ |
|
|
|
proto, result, ServiceDescriptorProto::kOptionsFieldNumber, |
|
|
|
ServiceOptions* options = AllocateOptions( |
|
|
|
"google.protobuf.ServiceOptions", alloc); |
|
|
|
proto, result, ServiceDescriptorProto::kOptionsFieldNumber, |
|
|
|
|
|
|
|
"google.protobuf.ServiceOptions", alloc); |
|
|
|
|
|
|
|
result->options_ = options; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AddSymbol(result->full_name(), nullptr, result->name(), proto, |
|
|
|
AddSymbol(result->full_name(), nullptr, result->name(), proto, |
|
|
|
Symbol(result)); |
|
|
|
Symbol(result)); |
|
|
@ -6479,9 +6482,12 @@ void DescriptorBuilder::BuildMethod(const MethodDescriptorProto& proto, |
|
|
|
result->output_type_.Init(); |
|
|
|
result->output_type_.Init(); |
|
|
|
|
|
|
|
|
|
|
|
// Copy options.
|
|
|
|
// Copy options.
|
|
|
|
result->options_ = |
|
|
|
{ |
|
|
|
AllocateOptions(proto, result, MethodDescriptorProto::kOptionsFieldNumber, |
|
|
|
MethodOptions* options = AllocateOptions( |
|
|
|
"google.protobuf.MethodOptions", alloc); |
|
|
|
proto, result, MethodDescriptorProto::kOptionsFieldNumber, |
|
|
|
|
|
|
|
"google.protobuf.MethodOptions", alloc); |
|
|
|
|
|
|
|
result->options_ = options; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
result->client_streaming_ = proto.client_streaming(); |
|
|
|
result->client_streaming_ = proto.client_streaming(); |
|
|
|
result->server_streaming_ = proto.server_streaming(); |
|
|
|
result->server_streaming_ = proto.server_streaming(); |
|
|
|