Skip to content
Snippets Groups Projects
Commit d50b58c3 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

Add comments for messages

parent c553034b
No related branches found
No related tags found
No related merge requests found
...@@ -55,38 +55,64 @@ service ServerReflection { ...@@ -55,38 +55,64 @@ service ServerReflection {
// Finds the tag numbers used by all known extensions of extendee_type, and // Finds the tag numbers used by all known extensions of extendee_type, and
// appends them to ExtensionNumberResponse in an undefined order. // appends them to ExtensionNumberResponse in an undefined order.
// This method is best-effort: it's not guaranteed that the reflection service
// will implement this method, and it's not guaranteed that this method will
// provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not
// implemented.
rpc GetAllExtensionNumbers(TypeRequest) returns (ExtensionNumberResponse) { rpc GetAllExtensionNumbers(TypeRequest) returns (ExtensionNumberResponse) {
} }
} }
// An empty message sent by the client when calling ListService method.
message EmptyRequest { message EmptyRequest {
} }
// The filename sent by the client when calling GetFileByName method.
message FileNameRequest { message FileNameRequest {
// Name of the proto file.
string filename = 1; string filename = 1;
} }
// The symbol name sent by the client when calling GetFileContainingSymbol
// method.
message SymbolRequest { message SymbolRequest {
// Fully-qualified symbol name (e.g. <package>.<service>[.<method>] or
// <package>.<type>).
string symbol = 1; string symbol = 1;
} }
// The type name and extension number sent by the client when calling
// GetFileContainingExtension method.
message ExtensionRequest { message ExtensionRequest {
// Fully-qualified type name. The format should be <package>.<type>
string containing_type = 1; string containing_type = 1;
int32 extension_number = 2; int32 extension_number = 2;
} }
// The type name sent by the client when calling GetAllExtensionNumbers method.
message TypeRequest { message TypeRequest {
// Fully-qualified type name. The format should be <package>.<type>
string type = 1; string type = 1;
} }
// A list of service names sent by the server answering ListService method.
message ListServiceResponse { message ListServiceResponse {
// Full names of registered services, including package names. The format
// is <package>.<service>
repeated string services = 1; repeated string services = 1;
} }
// A serialized FileDescriptorProto sent by the server answering
// GetFileByName, GetFileContainingSymbol, GetFileContainingExtension methods.
message FileDescriptorProtoResponse { message FileDescriptorProtoResponse {
// Serialized FileDescriptorProto message. Some languages have limited support
// for working with descriptors. The can only obtain an opaque binary blob
// that contains serialized FileDescriptorProto message.
bytes file_descriptor_proto = 1; bytes file_descriptor_proto = 1;
} }
// A list of extension numbers sent by the server answering
// GetAllExtensionNumbers method.
message ExtensionNumberResponse { message ExtensionNumberResponse {
repeated int32 extension_number = 1; repeated int32 extension_number = 1;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment