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

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