github.com/lastbackend/toolkit@v0.0.0-20241020043710-cafa37b95aad/examples/http/gen/server/server.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.32.0
     4  // 	protoc        v4.25.2
     5  // source: github.com/lastbackend/toolkit/examples/http/apis/server.proto
     6  
     7  package serverpb
     8  
     9  import (
    10  	_ "github.com/lastbackend/toolkit/protoc-gen-toolkit/toolkit/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  // The request message containing the user's name.
    26  type HelloRequest struct {
    27  	state         protoimpl.MessageState
    28  	sizeCache     protoimpl.SizeCache
    29  	unknownFields protoimpl.UnknownFields
    30  
    31  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    32  }
    33  
    34  func (x *HelloRequest) Reset() {
    35  	*x = HelloRequest{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *HelloRequest) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*HelloRequest) ProtoMessage() {}
    48  
    49  func (x *HelloRequest) ProtoReflect() protoreflect.Message {
    50  	mi := &file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
    62  func (*HelloRequest) Descriptor() ([]byte, []int) {
    63  	return file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *HelloRequest) GetName() string {
    67  	if x != nil {
    68  		return x.Name
    69  	}
    70  	return ""
    71  }
    72  
    73  // The response message containing the greetings
    74  type HelloResponse struct {
    75  	state         protoimpl.MessageState
    76  	sizeCache     protoimpl.SizeCache
    77  	unknownFields protoimpl.UnknownFields
    78  
    79  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    80  }
    81  
    82  func (x *HelloResponse) Reset() {
    83  	*x = HelloResponse{}
    84  	if protoimpl.UnsafeEnabled {
    85  		mi := &file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[1]
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    87  		ms.StoreMessageInfo(mi)
    88  	}
    89  }
    90  
    91  func (x *HelloResponse) String() string {
    92  	return protoimpl.X.MessageStringOf(x)
    93  }
    94  
    95  func (*HelloResponse) ProtoMessage() {}
    96  
    97  func (x *HelloResponse) ProtoReflect() protoreflect.Message {
    98  	mi := &file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[1]
    99  	if protoimpl.UnsafeEnabled && x != nil {
   100  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   101  		if ms.LoadMessageInfo() == nil {
   102  			ms.StoreMessageInfo(mi)
   103  		}
   104  		return ms
   105  	}
   106  	return mi.MessageOf(x)
   107  }
   108  
   109  // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
   110  func (*HelloResponse) Descriptor() ([]byte, []int) {
   111  	return file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescGZIP(), []int{1}
   112  }
   113  
   114  func (x *HelloResponse) GetMessage() string {
   115  	if x != nil {
   116  		return x.Message
   117  	}
   118  	return ""
   119  }
   120  
   121  var File_github_com_lastbackend_toolkit_examples_http_apis_server_proto protoreflect.FileDescriptor
   122  
   123  var file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDesc = []byte{
   124  	0x0a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x61, 0x73,
   125  	0x74, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74,
   126  	0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x61,
   127  	0x70, 0x69, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   128  	0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
   129  	0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
   130  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x53, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
   131  	0x2f, 0x6c, 0x61, 0x73, 0x74, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x74, 0x6f, 0x6f,
   132  	0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d,
   133  	0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f,
   134  	0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
   135  	0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c,
   136  	0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   137  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a,
   138  	0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18,
   139  	0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   140  	0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x5a, 0x0a, 0x04, 0x48, 0x74, 0x74, 0x70,
   141  	0x12, 0x45, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x12, 0x12,
   142  	0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
   143  	0x73, 0x74, 0x1a, 0x13, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
   144  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x08, 0x12,
   145  	0x06, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x1a, 0x0b, 0x8a, 0x97, 0x22, 0x03, 0x12, 0x01, 0x01,
   146  	0x92, 0x97, 0x22, 0x00, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
   147  	0x6f, 0x6d, 0x2f, 0x6c, 0x61, 0x73, 0x74, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x74,
   148  	0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f,
   149  	0x68, 0x74, 0x74, 0x70, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3b,
   150  	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   151  }
   152  
   153  var (
   154  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescOnce sync.Once
   155  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescData = file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDesc
   156  )
   157  
   158  func file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescGZIP() []byte {
   159  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescOnce.Do(func() {
   160  		file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescData)
   161  	})
   162  	return file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDescData
   163  }
   164  
   165  var file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   166  var file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_goTypes = []interface{}{
   167  	(*HelloRequest)(nil),  // 0: http.HelloRequest
   168  	(*HelloResponse)(nil), // 1: http.HelloResponse
   169  }
   170  var file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_depIdxs = []int32{
   171  	0, // 0: http.Http.HelloWorld:input_type -> http.HelloRequest
   172  	1, // 1: http.Http.HelloWorld:output_type -> http.HelloResponse
   173  	1, // [1:2] is the sub-list for method output_type
   174  	0, // [0:1] is the sub-list for method input_type
   175  	0, // [0:0] is the sub-list for extension type_name
   176  	0, // [0:0] is the sub-list for extension extendee
   177  	0, // [0:0] is the sub-list for field type_name
   178  }
   179  
   180  func init() { file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_init() }
   181  func file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_init() {
   182  	if File_github_com_lastbackend_toolkit_examples_http_apis_server_proto != nil {
   183  		return
   184  	}
   185  	if !protoimpl.UnsafeEnabled {
   186  		file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   187  			switch v := v.(*HelloRequest); i {
   188  			case 0:
   189  				return &v.state
   190  			case 1:
   191  				return &v.sizeCache
   192  			case 2:
   193  				return &v.unknownFields
   194  			default:
   195  				return nil
   196  			}
   197  		}
   198  		file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   199  			switch v := v.(*HelloResponse); 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  	}
   211  	type x struct{}
   212  	out := protoimpl.TypeBuilder{
   213  		File: protoimpl.DescBuilder{
   214  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   215  			RawDescriptor: file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDesc,
   216  			NumEnums:      0,
   217  			NumMessages:   2,
   218  			NumExtensions: 0,
   219  			NumServices:   1,
   220  		},
   221  		GoTypes:           file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_goTypes,
   222  		DependencyIndexes: file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_depIdxs,
   223  		MessageInfos:      file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_msgTypes,
   224  	}.Build()
   225  	File_github_com_lastbackend_toolkit_examples_http_apis_server_proto = out.File
   226  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_rawDesc = nil
   227  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_goTypes = nil
   228  	file_github_com_lastbackend_toolkit_examples_http_apis_server_proto_depIdxs = nil
   229  }