github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/client/grpc/reflection/reflection.proto (about)

     1  syntax = "proto3";
     2  package cosmos.base.reflection.v1beta1;
     3  
     4  import "google/api/annotations.proto";
     5  
     6  option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/reflection";
     7  
     8  // ReflectionService defines a service for interface reflection.
     9  service ReflectionService {
    10    // ListAllInterfaces lists all the interfaces registered in the interface
    11    // registry.
    12    rpc ListAllInterfaces(ListAllInterfacesRequest) returns (ListAllInterfacesResponse) {
    13      option (google.api.http).get = "/cosmos/base/reflection/v1beta1/interfaces";
    14    };
    15  
    16    // ListImplementations list all the concrete types that implement a given
    17    // interface.
    18    rpc ListImplementations(ListImplementationsRequest) returns (ListImplementationsResponse) {
    19      option (google.api.http).get = "/cosmos/base/reflection/v1beta1/interfaces/"
    20                                     "{interface_name}/implementations";
    21    };
    22  }
    23  
    24  // ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC.
    25  message ListAllInterfacesRequest {}
    26  
    27  // ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC.
    28  message ListAllInterfacesResponse {
    29    // interface_names is an array of all the registered interfaces.
    30    repeated string interface_names = 1;
    31  }
    32  
    33  // ListImplementationsRequest is the request type of the ListImplementations
    34  // RPC.
    35  message ListImplementationsRequest {
    36    // interface_name defines the interface to query the implementations for.
    37    string interface_name = 1;
    38  }
    39  
    40  // ListImplementationsResponse is the response type of the ListImplementations
    41  // RPC.
    42  message ListImplementationsResponse {
    43    repeated string implementation_message_names = 1;
    44  }