...

Text file src/github.com/gogo/protobuf/test/issue260/issue260.proto

Documentation: github.com/gogo/protobuf/test/issue260

     1syntax = "proto3";
     2
     3package issue260;
     4
     5import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6import "google/protobuf/timestamp.proto";
     7
     8option (gogoproto.testgen_all) = true;
     9option (gogoproto.populate_all) = true;
    10option (gogoproto.benchgen_all) = true;
    11option (gogoproto.unmarshaler_all) = true;
    12option (gogoproto.marshaler_all) = true;
    13option (gogoproto.sizer_all) = true;
    14option (gogoproto.equal_all) = true;
    15option (gogoproto.verbose_equal_all) = true;
    16option (gogoproto.unsafe_marshaler_all) = false;
    17option (gogoproto.unsafe_unmarshaler_all) = false;
    18option (gogoproto.goproto_unrecognized_all) = false;
    19
    20message Dropped {
    21    option (gogoproto.typedecl) = false;
    22    string name = 1;
    23    int32 age = 2;
    24}
    25
    26message 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
    34message Kept {
    35    string name = 1;
    36    int32 age = 2;
    37}

View as plain text