github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/desc_test_editions-multiline-style-comments.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  	reserved reserved_field;
    11  
    12  	int32 a = 1;
    13  
    14  	int32 required_field = 2 [features = { field_presence: LEGACY_REQUIRED }];
    15  
    16  	int32 default_field = 3 [default = 99];
    17  
    18  	DelimitedField delimitedfield = 4 [features = { message_encoding: DELIMITED }];
    19  
    20  	message DelimitedField {
    21  		int32 b = 1;
    22  	}
    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  }