github.com/s7techlab/cckit@v0.10.5/state/mapping/testdata/schema/with_indexes.proto (about)

     1  syntax = "proto3";
     2  
     3  package schema;
     4  option go_package = "github.com/s7techlab/cckit/state/mapping/testdata/schema";
     5  
     6  // EntityWithIndexes
     7  message EntityWithIndexes {
     8      string id = 1;
     9      // one external id
    10      string external_id = 2;
    11  
    12      // required multiple external ids (minimum 1)
    13      repeated string required_external_ids = 3;
    14      // optional multiple external ids (minimum 0)
    15      repeated string optional_external_ids = 4;
    16  
    17      int32 value = 5;
    18  }
    19  
    20  // EntityWithIndexesList
    21  message EntityWithIndexesList {
    22      repeated EntityWithIndexes items = 1;
    23  }
    24  
    25  // CreateEntityWithIndexes
    26  message CreateEntityWithIndexes {
    27      string id = 1;
    28      // one external id
    29      string external_id = 2;
    30  
    31      // required multiple external ids (minimum 1)
    32      repeated string required_external_ids = 3;
    33      // optional multiple external ids (minimum 0)
    34      repeated string optional_external_ids = 4;
    35  
    36      int32 value = 5;
    37  }
    38  
    39  // UpdateEntityEntityWithIndexes
    40  message UpdateEntityWithIndexes {
    41      string id = 1;
    42      // one external id
    43      string external_id = 2;
    44  
    45      // required multiple external ids (minimum 1)
    46      repeated string required_external_ids = 3;
    47      // optional multiple external ids (minimum 0)
    48      repeated string optional_external_ids = 4;
    49  
    50      int32 value = 5;
    51  }