...

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

View as plain text