cosmossdk.io/client/v2@v2.0.0-beta.1/internal/testpb/query.proto (about)

     1  syntax = "proto3";
     2  
     3  package testpb;
     4  
     5  import "google/protobuf/timestamp.proto";
     6  import "google/protobuf/duration.proto";
     7  import "cosmos_proto/cosmos.proto";
     8  import "cosmos/base/query/v1beta1/pagination.proto";
     9  import "cosmos/base/v1beta1/coin.proto";
    10  
    11  service Query {
    12    // Echo returns the request in the response
    13    rpc Echo(EchoRequest) returns (EchoResponse);
    14  }
    15  
    16  message EchoRequest {
    17    // u32 is an uint32
    18    uint32                                u32        = 1;
    19    uint64                                u64        = 2;
    20    string                                str        = 3;
    21    bytes                                 bz         = 4;
    22    google.protobuf.Timestamp             timestamp  = 5;
    23    google.protobuf.Duration              duration   = 6;
    24    int32                                 i32        = 7;
    25    int64                                 i64        = 10;
    26    bool                                  a_bool     = 15;
    27    Enum                                  an_enum    = 16;
    28    AMessage                              a_message  = 17;
    29    cosmos.base.v1beta1.Coin              a_coin     = 18;
    30    string                                an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
    31    cosmos.base.query.v1beta1.PageRequest page       = 20;
    32    repeated bool                         bools      = 21;
    33    repeated uint32                       uints      = 22;
    34    repeated string                       strings    = 23;
    35    repeated Enum                         enums      = 24;
    36    repeated google.protobuf.Duration durations      = 25;
    37    repeated AMessage                 some_messages  = 26;
    38  
    39    int32    positional1                                  = 27;
    40    string   positional2                                  = 28;
    41    repeated cosmos.base.v1beta1.Coin positional3_varargs = 29;
    42  
    43    string                                deprecated_field           = 30;
    44    string                                shorthand_deprecated_field = 31;
    45    bool                                  hidden_bool                = 32;
    46    map<string, string>                   map_string_string          = 33;
    47    map<string, uint32>                   map_string_uint32          = 34;
    48    map<string, cosmos.base.v1beta1.Coin> map_string_coin            = 35;
    49    string a_validator_address = 36 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
    50    string a_consensus_address = 37 [(cosmos_proto.scalar) = "cosmos.ConsensusAddressString"];
    51  
    52    repeated cosmos.base.v1beta1.Coin coins = 38;
    53  }
    54  
    55  enum Enum {
    56    ENUM_UNSPECIFIED = 0;
    57    ENUM_ONE         = 1;
    58    ENUM_TWO         = 2;
    59    ENUM_FIVE        = 5;
    60    ENUM_NEG_THREE   = -3;
    61  }
    62  
    63  message AMessage {
    64    string bar = 1;
    65    int32  baz = 2;
    66  }
    67  
    68  message EchoResponse {
    69    EchoRequest request = 1;
    70  }