github.com/bakjos/protoreflect@v1.9.2/internal/testprotos/desc_test_comments.pb.go (about)

     1  // This is the first detached comment for the syntax.
     2  
     3  //
     4  // This is a second detached comment.
     5  
     6  // This is a third.
     7  
     8  // Syntax comment...
     9  
    10  // Code generated by protoc-gen-go. DO NOT EDIT.
    11  // versions:
    12  // 	protoc-gen-go v1.25.0-devel
    13  // 	protoc        v3.12.0
    14  // source: desc_test_comments.proto
    15  
    16  // And now the package declaration
    17  
    18  package testprotos
    19  
    20  import (
    21  	context "context"
    22  	proto "github.com/golang/protobuf/proto"
    23  	empty "github.com/golang/protobuf/ptypes/empty"
    24  	grpc "google.golang.org/grpc"
    25  	codes "google.golang.org/grpc/codes"
    26  	status "google.golang.org/grpc/status"
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoiface "google.golang.org/protobuf/runtime/protoiface"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	reflect "reflect"
    31  	sync "sync"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // This is a compile-time assertion that a sufficiently up-to-date version
    42  // of the legacy proto package is being used.
    43  const _ = proto.ProtoPackageIsVersion4
    44  
    45  // Symbols defined in public import of google/protobuf/empty.proto.
    46  
    47  type Empty = empty.Empty
    48  
    49  type Request_MarioCharacters int32
    50  
    51  const (
    52  	Request_MARIO     Request_MarioCharacters = 1
    53  	Request_LUIGI     Request_MarioCharacters = 2
    54  	Request_PEACH     Request_MarioCharacters = 3
    55  	Request_BOWSER    Request_MarioCharacters = 4
    56  	Request_WARIO     Request_MarioCharacters = 5
    57  	Request_WALUIGI   Request_MarioCharacters = 6
    58  	Request_SHY_GUY   Request_MarioCharacters = 7
    59  	Request_HEY_HO    Request_MarioCharacters = 7
    60  	Request_MAGIKOOPA Request_MarioCharacters = 8
    61  	Request_KAMEK     Request_MarioCharacters = 8
    62  	Request_SNIFIT    Request_MarioCharacters = -101
    63  )
    64  
    65  // Enum value maps for Request_MarioCharacters.
    66  var (
    67  	Request_MarioCharacters_name = map[int32]string{
    68  		1: "MARIO",
    69  		2: "LUIGI",
    70  		3: "PEACH",
    71  		4: "BOWSER",
    72  		5: "WARIO",
    73  		6: "WALUIGI",
    74  		7: "SHY_GUY",
    75  		// Duplicate value: 7: "HEY_HO",
    76  		8: "MAGIKOOPA",
    77  		// Duplicate value: 8: "KAMEK",
    78  		-101: "SNIFIT",
    79  	}
    80  	Request_MarioCharacters_value = map[string]int32{
    81  		"MARIO":     1,
    82  		"LUIGI":     2,
    83  		"PEACH":     3,
    84  		"BOWSER":    4,
    85  		"WARIO":     5,
    86  		"WALUIGI":   6,
    87  		"SHY_GUY":   7,
    88  		"HEY_HO":    7,
    89  		"MAGIKOOPA": 8,
    90  		"KAMEK":     8,
    91  		"SNIFIT":    -101,
    92  	}
    93  )
    94  
    95  func (x Request_MarioCharacters) Enum() *Request_MarioCharacters {
    96  	p := new(Request_MarioCharacters)
    97  	*p = x
    98  	return p
    99  }
   100  
   101  func (x Request_MarioCharacters) String() string {
   102  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   103  }
   104  
   105  func (Request_MarioCharacters) Descriptor() protoreflect.EnumDescriptor {
   106  	return file_desc_test_comments_proto_enumTypes[0].Descriptor()
   107  }
   108  
   109  func (Request_MarioCharacters) Type() protoreflect.EnumType {
   110  	return &file_desc_test_comments_proto_enumTypes[0]
   111  }
   112  
   113  func (x Request_MarioCharacters) Number() protoreflect.EnumNumber {
   114  	return protoreflect.EnumNumber(x)
   115  }
   116  
   117  // Deprecated: Do not use.
   118  func (x *Request_MarioCharacters) UnmarshalJSON(b []byte) error {
   119  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   120  	if err != nil {
   121  		return err
   122  	}
   123  	*x = Request_MarioCharacters(num)
   124  	return nil
   125  }
   126  
   127  // Deprecated: Use Request_MarioCharacters.Descriptor instead.
   128  func (Request_MarioCharacters) EnumDescriptor() ([]byte, []int) {
   129  	return file_desc_test_comments_proto_rawDescGZIP(), []int{0, 0}
   130  }
   131  
   132  // We need a request for our RPC service below.
   133  //
   134  // Deprecated: Do not use.
   135  type Request struct {
   136  	state           protoimpl.MessageState
   137  	sizeCache       protoimpl.SizeCache
   138  	unknownFields   protoimpl.UnknownFields
   139  	extensionFields protoimpl.ExtensionFields
   140  
   141  	// A field comment
   142  	Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,json=|foo|" json:"ids,omitempty"` // field trailer #1...
   143  	// label comment
   144  	Name   *string         `protobuf:"bytes,2,opt,name=name,def=fubar" json:"name,omitempty"`
   145  	Extras *Request_Extras `protobuf:"group,3,opt,name=Extras,json=extras" json:"extras,omitempty"`
   146  	// can be this or that
   147  	//
   148  	// Types that are assignable to Abc:
   149  	//	*Request_This
   150  	//	*Request_That
   151  	Abc isRequest_Abc `protobuf_oneof:"abc"`
   152  	// can be these or those
   153  	//
   154  	// Types that are assignable to Xyz:
   155  	//	*Request_These
   156  	//	*Request_Those
   157  	Xyz isRequest_Xyz `protobuf_oneof:"xyz"`
   158  	// map field
   159  	Things map[string]string `protobuf:"bytes,8,rep,name=things" json:"things,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
   160  }
   161  
   162  // Default values for Request fields.
   163  const (
   164  	Default_Request_Name = string("fubar")
   165  )
   166  
   167  func (x *Request) Reset() {
   168  	*x = Request{}
   169  	if protoimpl.UnsafeEnabled {
   170  		mi := &file_desc_test_comments_proto_msgTypes[0]
   171  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   172  		ms.StoreMessageInfo(mi)
   173  	}
   174  }
   175  
   176  func (x *Request) String() string {
   177  	return protoimpl.X.MessageStringOf(x)
   178  }
   179  
   180  func (*Request) ProtoMessage() {}
   181  
   182  func (x *Request) ProtoReflect() protoreflect.Message {
   183  	mi := &file_desc_test_comments_proto_msgTypes[0]
   184  	if protoimpl.UnsafeEnabled && x != nil {
   185  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   186  		if ms.LoadMessageInfo() == nil {
   187  			ms.StoreMessageInfo(mi)
   188  		}
   189  		return ms
   190  	}
   191  	return mi.MessageOf(x)
   192  }
   193  
   194  // Deprecated: Use Request.ProtoReflect.Descriptor instead.
   195  func (*Request) Descriptor() ([]byte, []int) {
   196  	return file_desc_test_comments_proto_rawDescGZIP(), []int{0}
   197  }
   198  
   199  var extRange_Request = []protoiface.ExtensionRangeV1{
   200  	{Start: 100, End: 200},
   201  	{Start: 201, End: 250},
   202  }
   203  
   204  // Deprecated: Use Request.ProtoReflect.Descriptor.ExtensionRanges instead.
   205  func (*Request) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
   206  	return extRange_Request
   207  }
   208  
   209  func (x *Request) GetIds() []int32 {
   210  	if x != nil {
   211  		return x.Ids
   212  	}
   213  	return nil
   214  }
   215  
   216  func (x *Request) GetName() string {
   217  	if x != nil && x.Name != nil {
   218  		return *x.Name
   219  	}
   220  	return Default_Request_Name
   221  }
   222  
   223  func (x *Request) GetExtras() *Request_Extras {
   224  	if x != nil {
   225  		return x.Extras
   226  	}
   227  	return nil
   228  }
   229  
   230  func (m *Request) GetAbc() isRequest_Abc {
   231  	if m != nil {
   232  		return m.Abc
   233  	}
   234  	return nil
   235  }
   236  
   237  func (x *Request) GetThis() string {
   238  	if x, ok := x.GetAbc().(*Request_This); ok {
   239  		return x.This
   240  	}
   241  	return ""
   242  }
   243  
   244  func (x *Request) GetThat() int32 {
   245  	if x, ok := x.GetAbc().(*Request_That); ok {
   246  		return x.That
   247  	}
   248  	return 0
   249  }
   250  
   251  func (m *Request) GetXyz() isRequest_Xyz {
   252  	if m != nil {
   253  		return m.Xyz
   254  	}
   255  	return nil
   256  }
   257  
   258  func (x *Request) GetThese() string {
   259  	if x, ok := x.GetXyz().(*Request_These); ok {
   260  		return x.These
   261  	}
   262  	return ""
   263  }
   264  
   265  func (x *Request) GetThose() int32 {
   266  	if x, ok := x.GetXyz().(*Request_Those); ok {
   267  		return x.Those
   268  	}
   269  	return 0
   270  }
   271  
   272  func (x *Request) GetThings() map[string]string {
   273  	if x != nil {
   274  		return x.Things
   275  	}
   276  	return nil
   277  }
   278  
   279  type isRequest_Abc interface {
   280  	isRequest_Abc()
   281  }
   282  
   283  type Request_This struct {
   284  	This string `protobuf:"bytes,4,opt,name=this,oneof"`
   285  }
   286  
   287  type Request_That struct {
   288  	That int32 `protobuf:"varint,5,opt,name=that,oneof"`
   289  }
   290  
   291  func (*Request_This) isRequest_Abc() {}
   292  
   293  func (*Request_That) isRequest_Abc() {}
   294  
   295  type isRequest_Xyz interface {
   296  	isRequest_Xyz()
   297  }
   298  
   299  type Request_These struct {
   300  	These string `protobuf:"bytes,6,opt,name=these,oneof"`
   301  }
   302  
   303  type Request_Those struct {
   304  	Those int32 `protobuf:"varint,7,opt,name=those,oneof"`
   305  }
   306  
   307  func (*Request_These) isRequest_Xyz() {}
   308  
   309  func (*Request_Those) isRequest_Xyz() {}
   310  
   311  type AnEmptyMessage struct {
   312  	state         protoimpl.MessageState
   313  	sizeCache     protoimpl.SizeCache
   314  	unknownFields protoimpl.UnknownFields
   315  }
   316  
   317  func (x *AnEmptyMessage) Reset() {
   318  	*x = AnEmptyMessage{}
   319  	if protoimpl.UnsafeEnabled {
   320  		mi := &file_desc_test_comments_proto_msgTypes[1]
   321  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   322  		ms.StoreMessageInfo(mi)
   323  	}
   324  }
   325  
   326  func (x *AnEmptyMessage) String() string {
   327  	return protoimpl.X.MessageStringOf(x)
   328  }
   329  
   330  func (*AnEmptyMessage) ProtoMessage() {}
   331  
   332  func (x *AnEmptyMessage) ProtoReflect() protoreflect.Message {
   333  	mi := &file_desc_test_comments_proto_msgTypes[1]
   334  	if protoimpl.UnsafeEnabled && x != nil {
   335  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   336  		if ms.LoadMessageInfo() == nil {
   337  			ms.StoreMessageInfo(mi)
   338  		}
   339  		return ms
   340  	}
   341  	return mi.MessageOf(x)
   342  }
   343  
   344  // Deprecated: Use AnEmptyMessage.ProtoReflect.Descriptor instead.
   345  func (*AnEmptyMessage) Descriptor() ([]byte, []int) {
   346  	return file_desc_test_comments_proto_rawDescGZIP(), []int{1}
   347  }
   348  
   349  // Group comment
   350  type Request_Extras struct {
   351  	state         protoimpl.MessageState
   352  	sizeCache     protoimpl.SizeCache
   353  	unknownFields protoimpl.UnknownFields
   354  
   355  	Dbl *float64 `protobuf:"fixed64,1,opt,name=dbl" json:"dbl,omitempty"`
   356  	Flt *float32 `protobuf:"fixed32,2,opt,name=flt" json:"flt,omitempty"`
   357  	// Leading comment...
   358  	Str *string `protobuf:"bytes,3,opt,name=str" json:"str,omitempty"` // Trailing comment...
   359  }
   360  
   361  func (x *Request_Extras) Reset() {
   362  	*x = Request_Extras{}
   363  	if protoimpl.UnsafeEnabled {
   364  		mi := &file_desc_test_comments_proto_msgTypes[2]
   365  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   366  		ms.StoreMessageInfo(mi)
   367  	}
   368  }
   369  
   370  func (x *Request_Extras) String() string {
   371  	return protoimpl.X.MessageStringOf(x)
   372  }
   373  
   374  func (*Request_Extras) ProtoMessage() {}
   375  
   376  func (x *Request_Extras) ProtoReflect() protoreflect.Message {
   377  	mi := &file_desc_test_comments_proto_msgTypes[2]
   378  	if protoimpl.UnsafeEnabled && x != nil {
   379  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   380  		if ms.LoadMessageInfo() == nil {
   381  			ms.StoreMessageInfo(mi)
   382  		}
   383  		return ms
   384  	}
   385  	return mi.MessageOf(x)
   386  }
   387  
   388  // Deprecated: Use Request_Extras.ProtoReflect.Descriptor instead.
   389  func (*Request_Extras) Descriptor() ([]byte, []int) {
   390  	return file_desc_test_comments_proto_rawDescGZIP(), []int{0, 0}
   391  }
   392  
   393  func (x *Request_Extras) GetDbl() float64 {
   394  	if x != nil && x.Dbl != nil {
   395  		return *x.Dbl
   396  	}
   397  	return 0
   398  }
   399  
   400  func (x *Request_Extras) GetFlt() float32 {
   401  	if x != nil && x.Flt != nil {
   402  		return *x.Flt
   403  	}
   404  	return 0
   405  }
   406  
   407  func (x *Request_Extras) GetStr() string {
   408  	if x != nil && x.Str != nil {
   409  		return *x.Str
   410  	}
   411  	return ""
   412  }
   413  
   414  var file_desc_test_comments_proto_extTypes = []protoimpl.ExtensionInfo{
   415  	{
   416  		ExtendedType:  (*Request)(nil),
   417  		ExtensionType: (*uint64)(nil),
   418  		Field:         123,
   419  		Name:          "foo.bar.guid1",
   420  		Tag:           "varint,123,opt,name=guid1",
   421  		Filename:      "desc_test_comments.proto",
   422  	},
   423  	{
   424  		ExtendedType:  (*Request)(nil),
   425  		ExtensionType: (*uint64)(nil),
   426  		Field:         124,
   427  		Name:          "foo.bar.guid2",
   428  		Tag:           "varint,124,opt,name=guid2",
   429  		Filename:      "desc_test_comments.proto",
   430  	},
   431  }
   432  
   433  // Extension fields to Request.
   434  var (
   435  	// comment for guid1
   436  	//
   437  	// optional uint64 guid1 = 123;
   438  	E_Guid1 = &file_desc_test_comments_proto_extTypes[0]
   439  	// ... and a comment for guid2
   440  	//
   441  	// optional uint64 guid2 = 124;
   442  	E_Guid2 = &file_desc_test_comments_proto_extTypes[1]
   443  )
   444  
   445  var File_desc_test_comments_proto protoreflect.FileDescriptor
   446  
   447  var file_desc_test_comments_proto_rawDesc = []byte{
   448  	0x0a, 0x18, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
   449  	0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x66, 0x6f, 0x6f, 0x2e,
   450  	0x62, 0x61, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   451  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   452  	0x1a, 0x17, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69,
   453  	0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x05, 0x0a, 0x07, 0x52, 0x65,
   454  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
   455  	0x28, 0x05, 0x42, 0x10, 0x10, 0x01, 0xaa, 0xf7, 0x04, 0x03, 0x61, 0x62, 0x63, 0xb2, 0xf7, 0x04,
   456  	0x03, 0x78, 0x79, 0x7a, 0x52, 0x05, 0x7c, 0x66, 0x6f, 0x6f, 0x7c, 0x12, 0x19, 0x0a, 0x04, 0x6e,
   457  	0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x05, 0x66, 0x75, 0x62, 0x61, 0x72,
   458  	0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73,
   459  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0a, 0x32, 0x17, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72,
   460  	0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x73, 0x52,
   461  	0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x68, 0x69, 0x73, 0x18,
   462  	0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x68, 0x69, 0x73, 0x12, 0x14, 0x0a,
   463  	0x04, 0x74, 0x68, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x04, 0x74,
   464  	0x68, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x68, 0x65, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01,
   465  	0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x68, 0x65, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x74,
   466  	0x68, 0x6f, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x05, 0x74, 0x68,
   467  	0x6f, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20,
   468  	0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65,
   469  	0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72,
   470  	0x79, 0x52, 0x06, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x46, 0x0a, 0x06, 0x45, 0x78, 0x74,
   471  	0x72, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x62, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01,
   472  	0x52, 0x03, 0x64, 0x62, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01,
   473  	0x28, 0x02, 0x52, 0x03, 0x66, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03,
   474  	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x3a, 0x06, 0x10, 0x00, 0xa8, 0xf7, 0x04,
   475  	0x00, 0x1a, 0x39, 0x0a, 0x0b, 0x54, 0x68, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
   476  	0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
   477  	0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   478  	0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd6, 0x01, 0x0a,
   479  	0x0f, 0x4d, 0x61, 0x72, 0x69, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x73,
   480  	0x12, 0x15, 0x0a, 0x05, 0x4d, 0x41, 0x52, 0x49, 0x4f, 0x10, 0x01, 0x1a, 0x0a, 0xb0, 0xf7, 0x04,
   481  	0xf3, 0x04, 0xa8, 0xf7, 0x04, 0x96, 0x02, 0x12, 0x1b, 0x0a, 0x05, 0x4c, 0x55, 0x49, 0x47, 0x49,
   482  	0x10, 0x02, 0x1a, 0x10, 0xc9, 0xf7, 0x04, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,
   483  	0xf7, 0x04, 0xc8, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x45, 0x41, 0x43, 0x48, 0x10, 0x03, 0x12,
   484  	0x0a, 0x0a, 0x06, 0x42, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x57,
   485  	0x41, 0x52, 0x49, 0x4f, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x4c, 0x55, 0x49, 0x47,
   486  	0x49, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x48, 0x59, 0x5f, 0x47, 0x55, 0x59, 0x10, 0x07,
   487  	0x1a, 0x0b, 0xb9, 0xf7, 0x04, 0x75, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x0a, 0x0a,
   488  	0x06, 0x48, 0x45, 0x59, 0x5f, 0x48, 0x4f, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x41, 0x47,
   489  	0x49, 0x4b, 0x4f, 0x4f, 0x50, 0x41, 0x10, 0x08, 0x12, 0x09, 0x0a, 0x05, 0x4b, 0x41, 0x4d, 0x45,
   490  	0x4b, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x06, 0x53, 0x4e, 0x49, 0x46, 0x49, 0x54, 0x10, 0x9b, 0xff,
   491  	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x1a, 0x0b, 0x10, 0x01, 0xb0, 0xf7, 0x04, 0x81,
   492  	0x05, 0xa8, 0xf7, 0x04, 0x7b, 0x2a, 0x05, 0x08, 0x64, 0x10, 0xc9, 0x01, 0x2a, 0x1e, 0x08, 0xc9,
   493  	0x01, 0x10, 0xfb, 0x01, 0x1a, 0x16, 0xb2, 0xf7, 0x04, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
   494  	0x06, 0x07, 0xaa, 0xf7, 0x04, 0x06, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x21, 0x3a, 0x06, 0x18, 0x01,
   495  	0xa8, 0xf7, 0x04, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x61, 0x62, 0x63, 0x42, 0x05, 0x0a, 0x03, 0x78,
   496  	0x79, 0x7a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x15, 0x4a, 0x04, 0x08, 0x1e, 0x10, 0x33, 0x52, 0x03,
   497  	0x66, 0x6f, 0x6f, 0x52, 0x03, 0x62, 0x61, 0x72, 0x52, 0x03, 0x62, 0x61, 0x7a, 0x22, 0x10, 0x0a,
   498  	0x0e, 0x41, 0x6e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32,
   499  	0xa7, 0x01, 0x0a, 0x0a, 0x52, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x34,
   500  	0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x70, 0x63, 0x12, 0x10,
   501  	0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   502  	0x1a, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
   503  	0x73, 0x74, 0x28, 0x01, 0x12, 0x4b, 0x0a, 0x08, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x70, 0x63,
   504  	0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
   505  	0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   506  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x15, 0x88, 0x02, 0x01, 0xad,
   507  	0xf7, 0x04, 0xa4, 0x70, 0x45, 0x41, 0xb1, 0xf7, 0x04, 0x77, 0xbe, 0x9f, 0x1a, 0x2f, 0xdd, 0x5e,
   508  	0x40, 0x1a, 0x16, 0x88, 0x02, 0x00, 0xaa, 0xf7, 0x04, 0x02, 0x08, 0x64, 0xaa, 0xf7, 0x04, 0x05,
   509  	0x12, 0x03, 0x62, 0x6f, 0x62, 0xb0, 0xf7, 0x04, 0x01, 0x3a, 0x26, 0x0a, 0x05, 0x67, 0x75, 0x69,
   510  	0x64, 0x31, 0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f, 0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71,
   511  	0x75, 0x65, 0x73, 0x74, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x67, 0x75, 0x69, 0x64,
   512  	0x31, 0x3a, 0x26, 0x0a, 0x05, 0x67, 0x75, 0x69, 0x64, 0x32, 0x12, 0x10, 0x2e, 0x66, 0x6f, 0x6f,
   513  	0x2e, 0x62, 0x61, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x7c, 0x20, 0x01,
   514  	0x28, 0x04, 0x52, 0x05, 0x67, 0x75, 0x69, 0x64, 0x32, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74,
   515  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72,
   516  	0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   517  	0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x50, 0x00,
   518  }
   519  
   520  var (
   521  	file_desc_test_comments_proto_rawDescOnce sync.Once
   522  	file_desc_test_comments_proto_rawDescData = file_desc_test_comments_proto_rawDesc
   523  )
   524  
   525  func file_desc_test_comments_proto_rawDescGZIP() []byte {
   526  	file_desc_test_comments_proto_rawDescOnce.Do(func() {
   527  		file_desc_test_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_comments_proto_rawDescData)
   528  	})
   529  	return file_desc_test_comments_proto_rawDescData
   530  }
   531  
   532  var file_desc_test_comments_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   533  var file_desc_test_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   534  var file_desc_test_comments_proto_goTypes = []interface{}{
   535  	(Request_MarioCharacters)(0), // 0: foo.bar.Request.MarioCharacters
   536  	(*Request)(nil),              // 1: foo.bar.Request
   537  	(*AnEmptyMessage)(nil),       // 2: foo.bar.AnEmptyMessage
   538  	(*Request_Extras)(nil),       // 3: foo.bar.Request.Extras
   539  	nil,                          // 4: foo.bar.Request.ThingsEntry
   540  	(*empty.Empty)(nil),          // 5: google.protobuf.Empty
   541  }
   542  var file_desc_test_comments_proto_depIdxs = []int32{
   543  	3, // 0: foo.bar.Request.extras:type_name -> foo.bar.Request.Extras
   544  	4, // 1: foo.bar.Request.things:type_name -> foo.bar.Request.ThingsEntry
   545  	1, // 2: foo.bar.guid1:extendee -> foo.bar.Request
   546  	1, // 3: foo.bar.guid2:extendee -> foo.bar.Request
   547  	1, // 4: foo.bar.RpcService.StreamingRpc:input_type -> foo.bar.Request
   548  	1, // 5: foo.bar.RpcService.UnaryRpc:input_type -> foo.bar.Request
   549  	1, // 6: foo.bar.RpcService.StreamingRpc:output_type -> foo.bar.Request
   550  	5, // 7: foo.bar.RpcService.UnaryRpc:output_type -> google.protobuf.Empty
   551  	6, // [6:8] is the sub-list for method output_type
   552  	4, // [4:6] is the sub-list for method input_type
   553  	4, // [4:4] is the sub-list for extension type_name
   554  	2, // [2:4] is the sub-list for extension extendee
   555  	0, // [0:2] is the sub-list for field type_name
   556  }
   557  
   558  func init() { file_desc_test_comments_proto_init() }
   559  func file_desc_test_comments_proto_init() {
   560  	if File_desc_test_comments_proto != nil {
   561  		return
   562  	}
   563  	file_desc_test_options_proto_init()
   564  	if !protoimpl.UnsafeEnabled {
   565  		file_desc_test_comments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   566  			switch v := v.(*Request); i {
   567  			case 0:
   568  				return &v.state
   569  			case 1:
   570  				return &v.sizeCache
   571  			case 2:
   572  				return &v.unknownFields
   573  			case 3:
   574  				return &v.extensionFields
   575  			default:
   576  				return nil
   577  			}
   578  		}
   579  		file_desc_test_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   580  			switch v := v.(*AnEmptyMessage); i {
   581  			case 0:
   582  				return &v.state
   583  			case 1:
   584  				return &v.sizeCache
   585  			case 2:
   586  				return &v.unknownFields
   587  			default:
   588  				return nil
   589  			}
   590  		}
   591  		file_desc_test_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   592  			switch v := v.(*Request_Extras); i {
   593  			case 0:
   594  				return &v.state
   595  			case 1:
   596  				return &v.sizeCache
   597  			case 2:
   598  				return &v.unknownFields
   599  			default:
   600  				return nil
   601  			}
   602  		}
   603  	}
   604  	file_desc_test_comments_proto_msgTypes[0].OneofWrappers = []interface{}{
   605  		(*Request_This)(nil),
   606  		(*Request_That)(nil),
   607  		(*Request_These)(nil),
   608  		(*Request_Those)(nil),
   609  	}
   610  	type x struct{}
   611  	out := protoimpl.TypeBuilder{
   612  		File: protoimpl.DescBuilder{
   613  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   614  			RawDescriptor: file_desc_test_comments_proto_rawDesc,
   615  			NumEnums:      1,
   616  			NumMessages:   4,
   617  			NumExtensions: 2,
   618  			NumServices:   1,
   619  		},
   620  		GoTypes:           file_desc_test_comments_proto_goTypes,
   621  		DependencyIndexes: file_desc_test_comments_proto_depIdxs,
   622  		EnumInfos:         file_desc_test_comments_proto_enumTypes,
   623  		MessageInfos:      file_desc_test_comments_proto_msgTypes,
   624  		ExtensionInfos:    file_desc_test_comments_proto_extTypes,
   625  	}.Build()
   626  	File_desc_test_comments_proto = out.File
   627  	file_desc_test_comments_proto_rawDesc = nil
   628  	file_desc_test_comments_proto_goTypes = nil
   629  	file_desc_test_comments_proto_depIdxs = nil
   630  }
   631  
   632  // Reference imports to suppress errors if they are not otherwise used.
   633  var _ context.Context
   634  var _ grpc.ClientConnInterface
   635  
   636  // This is a compile-time assertion to ensure that this generated file
   637  // is compatible with the grpc package it is being compiled against.
   638  const _ = grpc.SupportPackageIsVersion6
   639  
   640  // RpcServiceClient is the client API for RpcService service.
   641  //
   642  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   643  type RpcServiceClient interface {
   644  	// Method comment
   645  	StreamingRpc(ctx context.Context, opts ...grpc.CallOption) (RpcService_StreamingRpcClient, error)
   646  	// Deprecated: Do not use.
   647  	UnaryRpc(ctx context.Context, in *Request, opts ...grpc.CallOption) (*empty.Empty, error)
   648  }
   649  
   650  type rpcServiceClient struct {
   651  	cc grpc.ClientConnInterface
   652  }
   653  
   654  func NewRpcServiceClient(cc grpc.ClientConnInterface) RpcServiceClient {
   655  	return &rpcServiceClient{cc}
   656  }
   657  
   658  func (c *rpcServiceClient) StreamingRpc(ctx context.Context, opts ...grpc.CallOption) (RpcService_StreamingRpcClient, error) {
   659  	stream, err := c.cc.NewStream(ctx, &_RpcService_serviceDesc.Streams[0], "/foo.bar.RpcService/StreamingRpc", opts...)
   660  	if err != nil {
   661  		return nil, err
   662  	}
   663  	x := &rpcServiceStreamingRpcClient{stream}
   664  	return x, nil
   665  }
   666  
   667  type RpcService_StreamingRpcClient interface {
   668  	Send(*Request) error
   669  	CloseAndRecv() (*Request, error)
   670  	grpc.ClientStream
   671  }
   672  
   673  type rpcServiceStreamingRpcClient struct {
   674  	grpc.ClientStream
   675  }
   676  
   677  func (x *rpcServiceStreamingRpcClient) Send(m *Request) error {
   678  	return x.ClientStream.SendMsg(m)
   679  }
   680  
   681  func (x *rpcServiceStreamingRpcClient) CloseAndRecv() (*Request, error) {
   682  	if err := x.ClientStream.CloseSend(); err != nil {
   683  		return nil, err
   684  	}
   685  	m := new(Request)
   686  	if err := x.ClientStream.RecvMsg(m); err != nil {
   687  		return nil, err
   688  	}
   689  	return m, nil
   690  }
   691  
   692  // Deprecated: Do not use.
   693  func (c *rpcServiceClient) UnaryRpc(ctx context.Context, in *Request, opts ...grpc.CallOption) (*empty.Empty, error) {
   694  	out := new(empty.Empty)
   695  	err := c.cc.Invoke(ctx, "/foo.bar.RpcService/UnaryRpc", in, out, opts...)
   696  	if err != nil {
   697  		return nil, err
   698  	}
   699  	return out, nil
   700  }
   701  
   702  // RpcServiceServer is the server API for RpcService service.
   703  type RpcServiceServer interface {
   704  	// Method comment
   705  	StreamingRpc(RpcService_StreamingRpcServer) error
   706  	// Deprecated: Do not use.
   707  	UnaryRpc(context.Context, *Request) (*empty.Empty, error)
   708  }
   709  
   710  // UnimplementedRpcServiceServer can be embedded to have forward compatible implementations.
   711  type UnimplementedRpcServiceServer struct {
   712  }
   713  
   714  func (*UnimplementedRpcServiceServer) StreamingRpc(RpcService_StreamingRpcServer) error {
   715  	return status.Errorf(codes.Unimplemented, "method StreamingRpc not implemented")
   716  }
   717  func (*UnimplementedRpcServiceServer) UnaryRpc(context.Context, *Request) (*empty.Empty, error) {
   718  	return nil, status.Errorf(codes.Unimplemented, "method UnaryRpc not implemented")
   719  }
   720  
   721  func RegisterRpcServiceServer(s *grpc.Server, srv RpcServiceServer) {
   722  	s.RegisterService(&_RpcService_serviceDesc, srv)
   723  }
   724  
   725  func _RpcService_StreamingRpc_Handler(srv interface{}, stream grpc.ServerStream) error {
   726  	return srv.(RpcServiceServer).StreamingRpc(&rpcServiceStreamingRpcServer{stream})
   727  }
   728  
   729  type RpcService_StreamingRpcServer interface {
   730  	SendAndClose(*Request) error
   731  	Recv() (*Request, error)
   732  	grpc.ServerStream
   733  }
   734  
   735  type rpcServiceStreamingRpcServer struct {
   736  	grpc.ServerStream
   737  }
   738  
   739  func (x *rpcServiceStreamingRpcServer) SendAndClose(m *Request) error {
   740  	return x.ServerStream.SendMsg(m)
   741  }
   742  
   743  func (x *rpcServiceStreamingRpcServer) Recv() (*Request, error) {
   744  	m := new(Request)
   745  	if err := x.ServerStream.RecvMsg(m); err != nil {
   746  		return nil, err
   747  	}
   748  	return m, nil
   749  }
   750  
   751  func _RpcService_UnaryRpc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   752  	in := new(Request)
   753  	if err := dec(in); err != nil {
   754  		return nil, err
   755  	}
   756  	if interceptor == nil {
   757  		return srv.(RpcServiceServer).UnaryRpc(ctx, in)
   758  	}
   759  	info := &grpc.UnaryServerInfo{
   760  		Server:     srv,
   761  		FullMethod: "/foo.bar.RpcService/UnaryRpc",
   762  	}
   763  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   764  		return srv.(RpcServiceServer).UnaryRpc(ctx, req.(*Request))
   765  	}
   766  	return interceptor(ctx, in, info, handler)
   767  }
   768  
   769  var _RpcService_serviceDesc = grpc.ServiceDesc{
   770  	ServiceName: "foo.bar.RpcService",
   771  	HandlerType: (*RpcServiceServer)(nil),
   772  	Methods: []grpc.MethodDesc{
   773  		{
   774  			MethodName: "UnaryRpc",
   775  			Handler:    _RpcService_UnaryRpc_Handler,
   776  		},
   777  	},
   778  	Streams: []grpc.StreamDesc{
   779  		{
   780  			StreamName:    "StreamingRpc",
   781  			Handler:       _RpcService_StreamingRpc_Handler,
   782  			ClientStreams: true,
   783  		},
   784  	},
   785  	Metadata: "desc_test_comments.proto",
   786  }