Describes a method of a service.
| 2262 | |
| 2263 | // Describes a method of a service. |
| 2264 | type MethodDescriptorProto struct { |
| 2265 | state protoimpl.MessageState `protogen:"open.v1"` |
| 2266 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 2267 | // Input and output type names. These are resolved in the same way as |
| 2268 | // FieldDescriptorProto.type_name, but must refer to a message type. |
| 2269 | InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` |
| 2270 | OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` |
| 2271 | Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` |
| 2272 | // Identifies if client streams multiple client messages |
| 2273 | ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` |
| 2274 | // Identifies if server streams multiple server messages |
| 2275 | ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` |
| 2276 | unknownFields protoimpl.UnknownFields |
| 2277 | sizeCache protoimpl.SizeCache |
| 2278 | } |
| 2279 | |
| 2280 | // Default values for MethodDescriptorProto fields. |
| 2281 | const ( |
nothing calls this directly
no outgoing calls
no test coverage detected