github.com/metaworking/channeld@v0.7.3/internal/testpb/test.proto (about)

     1  syntax = "proto3";
     2  
     3  package testpb;
     4  
     5  import "google/protobuf/any.proto";
     6  
     7  option go_package = "github.com/metaworking/channeld/pkg/testpb";
     8  
     9  message TestChannelDataMessage {
    10      string text = 1;
    11      uint32 num = 2;
    12  }
    13  
    14  message TestAnyMessage {
    15      message Type1 {
    16          string value = 1;
    17      }
    18      message Type2 {
    19          int64 value = 1;
    20      }
    21      google.protobuf.Any msg = 1;
    22      repeated google.protobuf.Any list = 2;
    23  }
    24  
    25  message TestMergeMessage {
    26      repeated string list = 1;
    27  
    28      message StringWrapper {
    29          bool removed = 1;
    30          string content = 2;
    31      }
    32     map<int64, StringWrapper> kv = 2;
    33  }
    34  
    35  message TestMapMessage {
    36      map<uint32, string> kv = 1;
    37  
    38      message StringWrapper {
    39          string content = 1;
    40          int64 num = 2;
    41      }
    42      map<uint32, StringWrapper> kv2 = 2;
    43  
    44      message NullableWrapper {
    45          optional string content = 1;
    46          optional int64 num = 2;
    47      }
    48      map<uint32, NullableWrapper> kv3 = 3;
    49  }
    50  
    51  message TestFieldMaskMessage {
    52      message NestedMessage {
    53          int64 p1 = 1;
    54          uint32 p2 = 2;
    55      }
    56  
    57      string name = 1;
    58      NestedMessage msg = 2;
    59      repeated NestedMessage list = 3;
    60      map<int64, NestedMessage> kv1 = 4;
    61      map<int64, string> kv2 = 5;
    62  }