github.com/kaydxh/golang@v0.0.131/go/encoding/protojson/testdata/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: go/encoding/protojson/testdata/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_go_encoding_protojson_testdata_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_go_encoding_protojson_testdata_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_go_encoding_protojson_testdata_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,json=Date,proto3" json:"date,omitempty"`
    99  }
   100  
   101  func (x *DateResponse) Reset() {
   102  	*x = DateResponse{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_go_encoding_protojson_testdata_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_go_encoding_protojson_testdata_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_go_encoding_protojson_testdata_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_go_encoding_protojson_testdata_date_proto protoreflect.FileDescriptor
   148  
   149  var file_go_encoding_protojson_testdata_date_proto_rawDesc = []byte{
   150  	0x0a, 0x29, 0x67, 0x6f, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72,
   151  	0x6f, 0x74, 0x6f, 0x6a, 0x73, 0x6f, 0x6e, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61,
   152  	0x2f, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6c,
   153  	0x61, 0x6e, 0x67, 0x2e, 0x67, 0x6f, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e,
   154  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   155  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
   156  	0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x0b, 0x44, 0x61, 0x74,
   157  	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75,
   158  	0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x52, 0x65,
   159  	0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x65, 0x52,
   160  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65,
   161  	0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x52, 0x65, 0x71,
   162  	0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02,
   163  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69,
   164  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f,
   165  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
   166  	0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   167  	0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_go_encoding_protojson_testdata_date_proto_rawDescOnce sync.Once
   172  	file_go_encoding_protojson_testdata_date_proto_rawDescData = file_go_encoding_protojson_testdata_date_proto_rawDesc
   173  )
   174  
   175  func file_go_encoding_protojson_testdata_date_proto_rawDescGZIP() []byte {
   176  	file_go_encoding_protojson_testdata_date_proto_rawDescOnce.Do(func() {
   177  		file_go_encoding_protojson_testdata_date_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_encoding_protojson_testdata_date_proto_rawDescData)
   178  	})
   179  	return file_go_encoding_protojson_testdata_date_proto_rawDescData
   180  }
   181  
   182  var file_go_encoding_protojson_testdata_date_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   183  var file_go_encoding_protojson_testdata_date_proto_goTypes = []interface{}{
   184  	(*DateRequest)(nil),  // 0: golang.go.encoding.date.v1.DateRequest
   185  	(*DateResponse)(nil), // 1: golang.go.encoding.date.v1.DateResponse
   186  }
   187  var file_go_encoding_protojson_testdata_date_proto_depIdxs = []int32{
   188  	0, // [0:0] is the sub-list for method output_type
   189  	0, // [0:0] is the sub-list for method input_type
   190  	0, // [0:0] is the sub-list for extension type_name
   191  	0, // [0:0] is the sub-list for extension extendee
   192  	0, // [0:0] is the sub-list for field type_name
   193  }
   194  
   195  func init() { file_go_encoding_protojson_testdata_date_proto_init() }
   196  func file_go_encoding_protojson_testdata_date_proto_init() {
   197  	if File_go_encoding_protojson_testdata_date_proto != nil {
   198  		return
   199  	}
   200  	if !protoimpl.UnsafeEnabled {
   201  		file_go_encoding_protojson_testdata_date_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   202  			switch v := v.(*DateRequest); i {
   203  			case 0:
   204  				return &v.state
   205  			case 1:
   206  				return &v.sizeCache
   207  			case 2:
   208  				return &v.unknownFields
   209  			default:
   210  				return nil
   211  			}
   212  		}
   213  		file_go_encoding_protojson_testdata_date_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   214  			switch v := v.(*DateResponse); i {
   215  			case 0:
   216  				return &v.state
   217  			case 1:
   218  				return &v.sizeCache
   219  			case 2:
   220  				return &v.unknownFields
   221  			default:
   222  				return nil
   223  			}
   224  		}
   225  	}
   226  	type x struct{}
   227  	out := protoimpl.TypeBuilder{
   228  		File: protoimpl.DescBuilder{
   229  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   230  			RawDescriptor: file_go_encoding_protojson_testdata_date_proto_rawDesc,
   231  			NumEnums:      0,
   232  			NumMessages:   2,
   233  			NumExtensions: 0,
   234  			NumServices:   0,
   235  		},
   236  		GoTypes:           file_go_encoding_protojson_testdata_date_proto_goTypes,
   237  		DependencyIndexes: file_go_encoding_protojson_testdata_date_proto_depIdxs,
   238  		MessageInfos:      file_go_encoding_protojson_testdata_date_proto_msgTypes,
   239  	}.Build()
   240  	File_go_encoding_protojson_testdata_date_proto = out.File
   241  	file_go_encoding_protojson_testdata_date_proto_rawDesc = nil
   242  	file_go_encoding_protojson_testdata_date_proto_goTypes = nil
   243  	file_go_encoding_protojson_testdata_date_proto_depIdxs = nil
   244  }