github.com/gogo/protobuf@v1.3.2/test/issue260/issue260.proto (about)

     1  syntax = "proto3";
     2  
     3  package issue260;
     4  
     5  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6  import "google/protobuf/timestamp.proto";
     7  
     8  option (gogoproto.testgen_all) = true;
     9  option (gogoproto.populate_all) = true;
    10  option (gogoproto.benchgen_all) = true;
    11  option (gogoproto.unmarshaler_all) = true;
    12  option (gogoproto.marshaler_all) = true;
    13  option (gogoproto.sizer_all) = true;
    14  option (gogoproto.equal_all) = true;
    15  option (gogoproto.verbose_equal_all) = true;
    16  option (gogoproto.unsafe_marshaler_all) = false;
    17  option (gogoproto.unsafe_unmarshaler_all) = false;
    18  option (gogoproto.goproto_unrecognized_all) = false;
    19  
    20  message Dropped {
    21      option (gogoproto.typedecl) = false;
    22      string name = 1;
    23      int32 age = 2;
    24  }
    25  
    26  message DroppedWithoutGetters {
    27      option (gogoproto.typedecl) = false;
    28      option (gogoproto.goproto_getters) = false;
    29      int64 height = 1;
    30      int64 width = 2;
    31      google.protobuf.Timestamp timestamp = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    32  }
    33  
    34  message Kept {
    35      string name = 1;
    36      int32 age = 2;
    37  }