github.com/Finschia/finschia-sdk@v0.48.1/testutil/testdata/unknonwnproto.proto (about)

     1  syntax = "proto3";
     2  package testdata;
     3  
     4  import "gogoproto/gogo.proto";
     5  import "google/protobuf/any.proto";
     6  import "cosmos/tx/v1beta1/tx.proto";
     7  
     8  option go_package = "github.com/Finschia/finschia-sdk/testutil/testdata";
     9  
    10  message Customer1 {
    11    int32  id               = 1;
    12    string name             = 2;
    13    float  subscription_fee = 3;
    14  
    15    string payment = 7;
    16  }
    17  
    18  message Customer2 {
    19    int32  id       = 1;
    20    int32  industry = 2;
    21    string name     = 3;
    22    float  fewer    = 4;
    23  
    24    int64 reserved = 1047;
    25  
    26    enum City {
    27      Laos       = 0;
    28      LosAngeles = 1;
    29      PaloAlto   = 2;
    30      Moscow     = 3;
    31      Nairobi    = 4;
    32    }
    33  
    34    City city = 6;
    35  
    36    google.protobuf.Any miscellaneous = 10;
    37  }
    38  
    39  message Nested4A {
    40    int32  id   = 1;
    41    string name = 2;
    42  }
    43  
    44  message Nested3A {
    45    int32                id    = 1;
    46    string               name  = 2;
    47    repeated Nested4A    a4    = 4;
    48    map<int64, Nested4A> index = 5;
    49  }
    50  
    51  message Nested2A {
    52    int32    id     = 1;
    53    string   name   = 2;
    54    Nested3A nested = 3;
    55  }
    56  
    57  message Nested1A {
    58    int32    id     = 1;
    59    Nested2A nested = 2;
    60  }
    61  
    62  message Nested4B {
    63    int32  id   = 1;
    64    int32  age  = 2;
    65    string name = 3;
    66  }
    67  
    68  message Nested3B {
    69    int32             id   = 1;
    70    int32             age  = 2;
    71    string            name = 3;
    72    repeated Nested4B b4   = 4;
    73  }
    74  
    75  message Nested2B {
    76    int32    id     = 1;
    77    double   fee    = 2;
    78    Nested3B nested = 3;
    79    string   route  = 4;
    80  }
    81  
    82  message Nested1B {
    83    int32    id     = 1;
    84    Nested2B nested = 2;
    85    int32    age    = 3;
    86  }
    87  
    88  message Customer3 {
    89    int32  id          = 1;
    90    string name        = 2;
    91    float  sf          = 3;
    92    float  surcharge   = 4;
    93    string destination = 5;
    94  
    95    oneof payment {
    96      string credit_card_no = 7;
    97      string cheque_no      = 8;
    98    }
    99  
   100    Customer1 original = 9;
   101  }
   102  
   103  message TestVersion1 {
   104    int64                 x = 1;
   105    TestVersion1          a = 2;
   106    TestVersion1          b = 3; // [(gogoproto.nullable) = false] generates invalid recursive structs;
   107    repeated TestVersion1 c = 4;
   108    repeated TestVersion1 d = 5 [(gogoproto.nullable) = false];
   109    oneof                 sum {
   110      int32        e = 6;
   111      TestVersion1 f = 7;
   112    }
   113    google.protobuf.Any   g = 8;
   114    repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
   115    // google.protobuf.Timestamp i = 10;
   116    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   117    Customer1 k = 12 [(gogoproto.embed) = true];
   118  }
   119  message TestVersion2 {
   120    int64                 x = 1;
   121    TestVersion2          a = 2;
   122    TestVersion2          b = 3; // [(gogoproto.nullable) = false];
   123    repeated TestVersion2 c = 4;
   124    repeated TestVersion2 d = 5; // [(gogoproto.nullable) = false];
   125    oneof                 sum {
   126      int32        e = 6;
   127      TestVersion2 f = 7;
   128    }
   129    google.protobuf.Any   g = 8;
   130    repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
   131    // google.protobuf.Timestamp i = 10;
   132    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   133    Customer1 k         = 12 [(gogoproto.embed) = true];
   134    uint64    new_field = 25;
   135  }
   136  message TestVersion3 {
   137    int64                 x = 1;
   138    TestVersion3          a = 2;
   139    TestVersion3          b = 3; // [(gogoproto.nullable) = false];
   140    repeated TestVersion3 c = 4;
   141    repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
   142    oneof                 sum {
   143      int32        e = 6;
   144      TestVersion3 f = 7;
   145    }
   146    google.protobuf.Any   g = 8;
   147    repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
   148    // google.protobuf.Timestamp i = 10;
   149    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   150    Customer1 k                  = 12 [(gogoproto.embed) = true];
   151    string    non_critical_field = 1031;
   152  }
   153  
   154  message TestVersion3LoneOneOfValue {
   155    int64                 x = 1;
   156    TestVersion3          a = 2;
   157    TestVersion3          b = 3; // [(gogoproto.nullable) = false];
   158    repeated TestVersion3 c = 4;
   159    repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
   160    oneof                 sum {
   161      int32 e = 6;
   162    }
   163    google.protobuf.Any   g = 8;
   164    repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
   165    // google.protobuf.Timestamp i = 10;
   166    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   167    Customer1 k                  = 12 [(gogoproto.embed) = true];
   168    string    non_critical_field = 1031;
   169  }
   170  
   171  message TestVersion3LoneNesting {
   172    int64                 x = 1;
   173    TestVersion3          a = 2;
   174    TestVersion3          b = 3; // [(gogoproto.nullable) = false];
   175    repeated TestVersion3 c = 4;
   176    repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
   177    oneof                 sum {
   178      TestVersion3LoneNesting f = 7;
   179    }
   180    google.protobuf.Any   g = 8;
   181    repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
   182    // google.protobuf.Timestamp i = 10;
   183    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   184    Customer1 k                  = 12 [(gogoproto.embed) = true];
   185    string    non_critical_field = 1031;
   186  
   187    message Inner1 {
   188      int64   id   = 1;
   189      string  name = 2;
   190      message InnerInner {
   191        string id   = 1;
   192        string city = 2;
   193      }
   194      InnerInner inner = 3;
   195    }
   196  
   197    Inner1 inner1 = 14;
   198  
   199    message Inner2 {
   200      string  id      = 1;
   201      string  country = 2;
   202      message InnerInner {
   203        string id   = 1;
   204        string city = 2;
   205      }
   206      InnerInner inner = 3;
   207    }
   208  
   209    Inner2 inner2 = 15;
   210  }
   211  
   212  message TestVersion4LoneNesting {
   213    int64                 x = 1;
   214    TestVersion3          a = 2;
   215    TestVersion3          b = 3; // [(gogoproto.nullable) = false];
   216    repeated TestVersion3 c = 4;
   217    repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
   218    oneof                 sum {
   219      TestVersion3LoneNesting f = 7;
   220    }
   221    google.protobuf.Any   g = 8;
   222    repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
   223    // google.protobuf.Timestamp i = 10;
   224    // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
   225    Customer1 k                  = 12 [(gogoproto.embed) = true];
   226    string    non_critical_field = 1031;
   227  
   228    message Inner1 {
   229      int64   id   = 1;
   230      string  name = 2;
   231      message InnerInner {
   232        int64  id   = 1;
   233        string city = 2;
   234      }
   235      InnerInner inner = 3;
   236    }
   237  
   238    Inner1 inner1 = 14;
   239  
   240    message Inner2 {
   241      string  id      = 1;
   242      string  country = 2;
   243      message InnerInner {
   244        string id    = 1;
   245        int64  value = 2;
   246      }
   247      InnerInner inner = 3;
   248    }
   249  
   250    Inner2 inner2 = 15;
   251  }
   252  
   253  message TestVersionFD1 {
   254    int64        x = 1;
   255    TestVersion1 a = 2;
   256    oneof        sum {
   257      int32        e = 6;
   258      TestVersion1 f = 7;
   259    }
   260    google.protobuf.Any   g = 8;
   261    repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
   262  }
   263  
   264  message TestVersionFD1WithExtraAny {
   265    int64        x = 1;
   266    TestVersion1 a = 2;
   267    oneof        sum {
   268      int32        e = 6;
   269      TestVersion1 f = 7;
   270    }
   271    AnyWithExtra          g = 8;
   272    repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
   273  }
   274  
   275  message AnyWithExtra {
   276    google.protobuf.Any a = 1 [(gogoproto.embed) = true];
   277    int64               b = 3;
   278    int64               c = 4;
   279  }
   280  
   281  message TestUpdatedTxRaw {
   282    bytes          body_bytes      = 1;
   283    bytes          auth_info_bytes = 2;
   284    repeated bytes signatures      = 3;
   285    bytes          new_field_5     = 5;
   286    bytes          new_field_1024  = 1024;
   287  }
   288  
   289  message TestUpdatedTxBody {
   290    repeated google.protobuf.Any messages                          = 1;
   291    string                       memo                              = 2;
   292    int64                        timeout_height                    = 3;
   293    uint64                       some_new_field                    = 4;
   294    string                       some_new_field_non_critical_field = 1050;
   295    repeated google.protobuf.Any extension_options                 = 1023;
   296    repeated google.protobuf.Any non_critical_extension_options    = 2047;
   297  }
   298  
   299  message TestUpdatedAuthInfo {
   300    repeated cosmos.tx.v1beta1.SignerInfo signer_infos   = 1;
   301    cosmos.tx.v1beta1.Fee                 fee            = 2;
   302    bytes                                 new_field_3    = 3;
   303    bytes                                 new_field_1024 = 1024;
   304  }
   305  
   306  message TestRepeatedUints {
   307    repeated uint64 nums = 1;
   308  }