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

     1  syntax = "proto2";
     2  
     3  option go_package = "github.com/jhump/protoreflect/internal/testprotos";
     4  
     5  package testprotos;
     6  
     7  import "google/protobuf/descriptor.proto";
     8  
     9  extend google.protobuf.MessageOptions {
    10  	optional bool mfubar = 10101;
    11  }
    12  
    13  extend google.protobuf.FieldOptions {
    14  	repeated string ffubar = 10101;
    15  	optional bytes ffubarb = 10102;
    16  }
    17  
    18  extend google.protobuf.EnumOptions {
    19  	optional int32 efubar = 10101;
    20  	optional sint32 efubars = 10102;
    21  	optional sfixed32 efubarsf = 10103;
    22  	optional uint32 efubaru = 10104;
    23  	optional fixed32 efubaruf = 10105;
    24  }
    25  
    26  extend google.protobuf.EnumValueOptions {
    27  	optional int64 evfubar = 10101;
    28  	optional sint64 evfubars = 10102;
    29  	optional sfixed64 evfubarsf = 10103;
    30  	optional uint64 evfubaru = 10104;
    31  	optional fixed64 evfubaruf = 10105;
    32  }
    33  
    34  extend google.protobuf.ServiceOptions {
    35  	optional ReallySimpleMessage sfubar = 10101;
    36  	optional ReallySimpleEnum sfubare = 10102;
    37  }
    38  
    39  extend google.protobuf.MethodOptions {
    40  	repeated float mtfubar = 10101;
    41  	optional double mtfubard = 10102;
    42  }
    43  
    44  // Test message used by custom options
    45  message ReallySimpleMessage {
    46  	optional uint64 id = 1;
    47  	optional string name = 2;
    48  }
    49  
    50  // Test enum used by custom options
    51  enum ReallySimpleEnum {
    52  	VALUE = 1;
    53  }
    54  
    55  extend google.protobuf.ExtensionRangeOptions {
    56  	repeated string exfubar = 10101;
    57  	optional bytes exfubarb = 10102;
    58  }
    59  
    60  extend google.protobuf.OneofOptions {
    61  	repeated string oofubar = 10101;
    62  	optional bytes oofubarb = 10102;
    63  }