github.com/jhump/protoreflect@v1.16.0/internal/testprotos/desc_test_editions.proto (about)

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