github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/desc_test_editions-compact.proto (about)

     1  edition = "2023";
     2  package testprotos;
     3  option features = { enum_type: CLOSED };
     4  option go_package = "github.com/jhump/protoreflect/internal/testprotos";
     5  message Foo {
     6    reserved reserved_field;
     7    int32 a = 1;
     8    int32 required_field = 2 [features = { field_presence: LEGACY_REQUIRED }];
     9    int32 default_field = 3 [default = 99];
    10    DelimitedField delimitedfield = 4 [features = { message_encoding: DELIMITED }];
    11    message DelimitedField {
    12      int32 b = 1;
    13    }
    14  }
    15  enum Closed {
    16    CLOSED_C = 1;
    17    CLOSED_A = 2;
    18    reserved CLOSED_E, CLOSED_F;
    19  }
    20  enum Open {
    21    option features = { enum_type: OPEN };
    22    OPEN_B = 0;
    23    OPEN_C = -1;
    24    OPEN_A = 2;
    25  }