github.com/kaydxh/golang@v0.0.131/pkg/grpc-gateway/date/date.pb.go (about)

     1  /*
     2   *Copyright (c) 2022, kaydxh
     3   *
     4   *Permission is hereby granted, free of charge, to any person obtaining a copy
     5   *of this software and associated documentation files (the "Software"), to deal
     6   *in the Software without restriction, including without limitation the rights
     7   *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   *copies of the Software, and to permit persons to whom the Software is
     9   *furnished to do so, subject to the following conditions:
    10   *
    11   *The above copyright notice and this permission notice shall be included in all
    12   *copies or substantial portions of the Software.
    13   *
    14   *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   *SOFTWARE.
    21   */
    22  // Code generated by protoc-gen-go. DO NOT EDIT.
    23  // versions:
    24  // 	protoc-gen-go v1.27.0
    25  // 	protoc        v3.13.0
    26  // source: date/date.proto
    27  
    28  package date
    29  
    30  import (
    31  	_ "github.com/golang/protobuf/protoc-gen-go/descriptor"
    32  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    33  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    34  	reflect "reflect"
    35  	sync "sync"
    36  )
    37  
    38  const (
    39  	// Verify that this generated code is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    41  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    43  )
    44  
    45  type DateRequest struct {
    46  	state         protoimpl.MessageState
    47  	sizeCache     protoimpl.SizeCache
    48  	unknownFields protoimpl.UnknownFields
    49  
    50  	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
    51  }
    52  
    53  func (x *DateRequest) Reset() {
    54  	*x = DateRequest{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_date_date_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *DateRequest) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*DateRequest) ProtoMessage() {}
    67  
    68  func (x *DateRequest) ProtoReflect() protoreflect.Message {
    69  	mi := &file_date_date_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use DateRequest.ProtoReflect.Descriptor instead.
    81  func (*DateRequest) Descriptor() ([]byte, []int) {
    82  	return file_date_date_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *DateRequest) GetRequestId() string {
    86  	if x != nil {
    87  		return x.RequestId
    88  	}
    89  	return ""
    90  }
    91  
    92  type DateResponse struct {
    93  	state         protoimpl.MessageState
    94  	sizeCache     protoimpl.SizeCache
    95  	unknownFields protoimpl.UnknownFields
    96  
    97  	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=RequestId,proto3" json:"request_id,omitempty"`
    98  	Date      string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
    99  }
   100  
   101  func (x *DateResponse) Reset() {
   102  	*x = DateResponse{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_date_date_proto_msgTypes[1]
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		ms.StoreMessageInfo(mi)
   107  	}
   108  }
   109  
   110  func (x *DateResponse) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*DateResponse) ProtoMessage() {}
   115  
   116  func (x *DateResponse) ProtoReflect() protoreflect.Message {
   117  	mi := &file_date_date_proto_msgTypes[1]
   118  	if protoimpl.UnsafeEnabled && x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use DateResponse.ProtoReflect.Descriptor instead.
   129  func (*DateResponse) Descriptor() ([]byte, []int) {
   130  	return file_date_date_proto_rawDescGZIP(), []int{1}
   131  }
   132  
   133  func (x *DateResponse) GetRequestId() string {
   134  	if x != nil {
   135  		return x.RequestId
   136  	}
   137  	return ""
   138  }
   139  
   140  func (x *DateResponse) GetDate() string {
   141  	if x != nil {
   142  		return x.Date
   143  	}
   144  	return ""
   145  }
   146  
   147  var File_date_date_proto protoreflect.FileDescriptor
   148  
   149  var file_date_date_proto_rawDesc = []byte{
   150  	0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   151  	0x6f, 0x12, 0x0f, 0x73, 0x65, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x61,
   152  	0x74, 0x65, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   153  	0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70,
   154  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
   155  	0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69,
   156  	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   157  	0x49, 0x64, 0x22, 0x41, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   158  	0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64,
   159  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49,
   160  	0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   161  	0x04, 0x64, 0x61, 0x74, 0x65, 0x32, 0x53, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72,
   162  	0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x03, 0x4e, 0x6f, 0x77, 0x12, 0x1c, 0x2e, 0x73, 0x65,
   163  	0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x61,
   164  	0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x73, 0x65, 0x61, 0x2e,
   165  	0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x65,
   166  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69,
   167  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f,
   168  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d,
   169  	0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x65, 0x3b, 0x64, 0x61, 0x74,
   170  	0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   171  }
   172  
   173  var (
   174  	file_date_date_proto_rawDescOnce sync.Once
   175  	file_date_date_proto_rawDescData = file_date_date_proto_rawDesc
   176  )
   177  
   178  func file_date_date_proto_rawDescGZIP() []byte {
   179  	file_date_date_proto_rawDescOnce.Do(func() {
   180  		file_date_date_proto_rawDescData = protoimpl.X.CompressGZIP(file_date_date_proto_rawDescData)
   181  	})
   182  	return file_date_date_proto_rawDescData
   183  }
   184  
   185  var file_date_date_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   186  var file_date_date_proto_goTypes = []interface{}{
   187  	(*DateRequest)(nil),  // 0: sea.api.v1.date.DateRequest
   188  	(*DateResponse)(nil), // 1: sea.api.v1.date.DateResponse
   189  }
   190  var file_date_date_proto_depIdxs = []int32{
   191  	0, // 0: sea.api.v1.date.DateService.Now:input_type -> sea.api.v1.date.DateRequest
   192  	1, // 1: sea.api.v1.date.DateService.Now:output_type -> sea.api.v1.date.DateResponse
   193  	1, // [1:2] is the sub-list for method output_type
   194  	0, // [0:1] is the sub-list for method input_type
   195  	0, // [0:0] is the sub-list for extension type_name
   196  	0, // [0:0] is the sub-list for extension extendee
   197  	0, // [0:0] is the sub-list for field type_name
   198  }
   199  
   200  func init() { file_date_date_proto_init() }
   201  func file_date_date_proto_init() {
   202  	if File_date_date_proto != nil {
   203  		return
   204  	}
   205  	if !protoimpl.UnsafeEnabled {
   206  		file_date_date_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   207  			switch v := v.(*DateRequest); i {
   208  			case 0:
   209  				return &v.state
   210  			case 1:
   211  				return &v.sizeCache
   212  			case 2:
   213  				return &v.unknownFields
   214  			default:
   215  				return nil
   216  			}
   217  		}
   218  		file_date_date_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   219  			switch v := v.(*DateResponse); i {
   220  			case 0:
   221  				return &v.state
   222  			case 1:
   223  				return &v.sizeCache
   224  			case 2:
   225  				return &v.unknownFields
   226  			default:
   227  				return nil
   228  			}
   229  		}
   230  	}
   231  	type x struct{}
   232  	out := protoimpl.TypeBuilder{
   233  		File: protoimpl.DescBuilder{
   234  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   235  			RawDescriptor: file_date_date_proto_rawDesc,
   236  			NumEnums:      0,
   237  			NumMessages:   2,
   238  			NumExtensions: 0,
   239  			NumServices:   1,
   240  		},
   241  		GoTypes:           file_date_date_proto_goTypes,
   242  		DependencyIndexes: file_date_date_proto_depIdxs,
   243  		MessageInfos:      file_date_date_proto_msgTypes,
   244  	}.Build()
   245  	File_date_date_proto = out.File
   246  	file_date_date_proto_rawDesc = nil
   247  	file_date_date_proto_goTypes = nil
   248  	file_date_date_proto_depIdxs = nil
   249  }