...

Source file src/github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb/remove_internal_comment.pb.go

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        (unknown)
     5  // source: examples/internal/proto/examplepb/remove_internal_comment.proto
     6  
     7  package examplepb
     8  
     9  import (
    10  	_ "google.golang.org/genproto/googleapis/api/annotations"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // Foo2Request (-- This comment should be excluded from OpenAPI output --)
    25  type Foo2Request struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	// Username.
    31  	// (-- This comment should be excluded
    32  	// from OpenAPI output --)
    33  	// Same row, single line break doesn't count on markdown.
    34  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    35  	// Password.
    36  	// (-- This comment should be excluded
    37  	// from OpenAPI output --)
    38  	//
    39  	// New row.
    40  	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    41  }
    42  
    43  func (x *Foo2Request) Reset() {
    44  	*x = Foo2Request{}
    45  	if protoimpl.UnsafeEnabled {
    46  		mi := &file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[0]
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		ms.StoreMessageInfo(mi)
    49  	}
    50  }
    51  
    52  func (x *Foo2Request) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*Foo2Request) ProtoMessage() {}
    57  
    58  func (x *Foo2Request) ProtoReflect() protoreflect.Message {
    59  	mi := &file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[0]
    60  	if protoimpl.UnsafeEnabled && x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use Foo2Request.ProtoReflect.Descriptor instead.
    71  func (*Foo2Request) Descriptor() ([]byte, []int) {
    72  	return file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *Foo2Request) GetUsername() string {
    76  	if x != nil {
    77  		return x.Username
    78  	}
    79  	return ""
    80  }
    81  
    82  func (x *Foo2Request) GetPassword() string {
    83  	if x != nil {
    84  		return x.Password
    85  	}
    86  	return ""
    87  }
    88  
    89  // (-- This comment should be excluded from OpenAPI output --)
    90  type Foo2Reply struct {
    91  	state         protoimpl.MessageState
    92  	sizeCache     protoimpl.SizeCache
    93  	unknownFields protoimpl.UnknownFields
    94  }
    95  
    96  func (x *Foo2Reply) Reset() {
    97  	*x = Foo2Reply{}
    98  	if protoimpl.UnsafeEnabled {
    99  		mi := &file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[1]
   100  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   101  		ms.StoreMessageInfo(mi)
   102  	}
   103  }
   104  
   105  func (x *Foo2Reply) String() string {
   106  	return protoimpl.X.MessageStringOf(x)
   107  }
   108  
   109  func (*Foo2Reply) ProtoMessage() {}
   110  
   111  func (x *Foo2Reply) ProtoReflect() protoreflect.Message {
   112  	mi := &file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[1]
   113  	if protoimpl.UnsafeEnabled && x != nil {
   114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   115  		if ms.LoadMessageInfo() == nil {
   116  			ms.StoreMessageInfo(mi)
   117  		}
   118  		return ms
   119  	}
   120  	return mi.MessageOf(x)
   121  }
   122  
   123  // Deprecated: Use Foo2Reply.ProtoReflect.Descriptor instead.
   124  func (*Foo2Reply) Descriptor() ([]byte, []int) {
   125  	return file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescGZIP(), []int{1}
   126  }
   127  
   128  var File_examples_internal_proto_examplepb_remove_internal_comment_proto protoreflect.FileDescriptor
   129  
   130  var file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDesc = []byte{
   131  	0x0a, 0x3f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   132  	0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c,
   133  	0x65, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   134  	0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   135  	0x6f, 0x12, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
   136  	0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
   137  	0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70,
   138  	0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
   139  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   140  	0x45, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a,
   141  	0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   142  	0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
   143  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
   144  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x0b, 0x0a, 0x09, 0x46, 0x6f, 0x6f, 0x32, 0x52, 0x65,
   145  	0x70, 0x6c, 0x79, 0x32, 0xaa, 0x01, 0x0a, 0x0b, 0x46, 0x6f, 0x6f, 0x32, 0x53, 0x65, 0x72, 0x76,
   146  	0x69, 0x63, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x04, 0x46, 0x6f, 0x6f, 0x32, 0x12, 0x3b, 0x2e, 0x67,
   147  	0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d,
   148  	0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72,
   149  	0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x46, 0x6f,
   150  	0x6f, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x72, 0x70, 0x63,
   151  	0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
   152  	0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   153  	0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x46, 0x6f, 0x6f, 0x32, 0x52,
   154  	0x65, 0x70, 0x6c, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22,
   155  	0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x66, 0x6f, 0x6f,
   156  	0x42, 0x4d, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
   157  	0x72, 0x70, 0x63, 0x2d, 0x65, 0x63, 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72,
   158  	0x70, 0x63, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x78,
   159  	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
   160  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x62,
   161  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   162  }
   163  
   164  var (
   165  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescOnce sync.Once
   166  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescData = file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDesc
   167  )
   168  
   169  func file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescGZIP() []byte {
   170  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescOnce.Do(func() {
   171  		file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescData = protoimpl.X.CompressGZIP(file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescData)
   172  	})
   173  	return file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDescData
   174  }
   175  
   176  var file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   177  var file_examples_internal_proto_examplepb_remove_internal_comment_proto_goTypes = []interface{}{
   178  	(*Foo2Request)(nil), // 0: grpc.gateway.examples.internal.proto.examplepb.Foo2Request
   179  	(*Foo2Reply)(nil),   // 1: grpc.gateway.examples.internal.proto.examplepb.Foo2Reply
   180  }
   181  var file_examples_internal_proto_examplepb_remove_internal_comment_proto_depIdxs = []int32{
   182  	0, // 0: grpc.gateway.examples.internal.proto.examplepb.Foo2Service.Foo2:input_type -> grpc.gateway.examples.internal.proto.examplepb.Foo2Request
   183  	1, // 1: grpc.gateway.examples.internal.proto.examplepb.Foo2Service.Foo2:output_type -> grpc.gateway.examples.internal.proto.examplepb.Foo2Reply
   184  	1, // [1:2] is the sub-list for method output_type
   185  	0, // [0:1] is the sub-list for method input_type
   186  	0, // [0:0] is the sub-list for extension type_name
   187  	0, // [0:0] is the sub-list for extension extendee
   188  	0, // [0:0] is the sub-list for field type_name
   189  }
   190  
   191  func init() { file_examples_internal_proto_examplepb_remove_internal_comment_proto_init() }
   192  func file_examples_internal_proto_examplepb_remove_internal_comment_proto_init() {
   193  	if File_examples_internal_proto_examplepb_remove_internal_comment_proto != nil {
   194  		return
   195  	}
   196  	if !protoimpl.UnsafeEnabled {
   197  		file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   198  			switch v := v.(*Foo2Request); i {
   199  			case 0:
   200  				return &v.state
   201  			case 1:
   202  				return &v.sizeCache
   203  			case 2:
   204  				return &v.unknownFields
   205  			default:
   206  				return nil
   207  			}
   208  		}
   209  		file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   210  			switch v := v.(*Foo2Reply); i {
   211  			case 0:
   212  				return &v.state
   213  			case 1:
   214  				return &v.sizeCache
   215  			case 2:
   216  				return &v.unknownFields
   217  			default:
   218  				return nil
   219  			}
   220  		}
   221  	}
   222  	type x struct{}
   223  	out := protoimpl.TypeBuilder{
   224  		File: protoimpl.DescBuilder{
   225  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   226  			RawDescriptor: file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDesc,
   227  			NumEnums:      0,
   228  			NumMessages:   2,
   229  			NumExtensions: 0,
   230  			NumServices:   1,
   231  		},
   232  		GoTypes:           file_examples_internal_proto_examplepb_remove_internal_comment_proto_goTypes,
   233  		DependencyIndexes: file_examples_internal_proto_examplepb_remove_internal_comment_proto_depIdxs,
   234  		MessageInfos:      file_examples_internal_proto_examplepb_remove_internal_comment_proto_msgTypes,
   235  	}.Build()
   236  	File_examples_internal_proto_examplepb_remove_internal_comment_proto = out.File
   237  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_rawDesc = nil
   238  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_goTypes = nil
   239  	file_examples_internal_proto_examplepb_remove_internal_comment_proto_depIdxs = nil
   240  }
   241  

View as plain text