github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/starlib/encoding/starlarkproto/testpb/star.proto (about)

     1  syntax = "proto3";
     2  
     3  import "google/protobuf/descriptor.proto";
     4  
     5  option go_package = "github.com/emcfarlane/larking/starlarkproto/testpb";
     6  
     7  package starlarkproto.test;
     8  
     9  enum Enum {
    10    ENUM_A = 0;
    11    ENUM_B = 1;
    12  }
    13  
    14  extend google.protobuf.MessageOptions { string my_option = 51234; }
    15  
    16  message Message {
    17    option (my_option) = "Hello world!";
    18  
    19    string body = 1;
    20    enum Type {
    21      UNKNOWN = 0;
    22      GREETING = 1;
    23    }
    24    Type type = 2;
    25    repeated string strings = 3;
    26    Message nested = 4;
    27    map<string, Message> maps = 5;
    28  
    29    oneof oneofs {
    30      string one_string = 6;
    31      int64 one_number = 7;
    32    }
    33  }
    34  
    35  extend google.protobuf.MethodOptions { repeated string tag = 88888888; }
    36  
    37  message GetMessageRequest {
    38    string message_id = 1;
    39    string user_id = 2;
    40  }
    41  
    42  service Messaging {
    43    rpc GetMessage(GetMessageRequest) returns (Message) {
    44      option (tag) = "tagged";
    45    }
    46  }