github.com/kaydxh/golang@v0.0.131/go/net/grpc/example/data.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.13.0
     5  // source: go/net/grpc/example/data.proto
     6  
     7  package date
     8  
     9  import (
    10  	_ "github.com/golang/protobuf/protoc-gen-go/descriptor"
    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  type NowRequest struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=RequestId,proto3" json:"request_id,omitempty"` //请求ID
    30  }
    31  
    32  func (x *NowRequest) Reset() {
    33  	*x = NowRequest{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_go_net_grpc_example_data_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *NowRequest) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*NowRequest) ProtoMessage() {}
    46  
    47  func (x *NowRequest) ProtoReflect() protoreflect.Message {
    48  	mi := &file_go_net_grpc_example_data_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use NowRequest.ProtoReflect.Descriptor instead.
    60  func (*NowRequest) Descriptor() ([]byte, []int) {
    61  	return file_go_net_grpc_example_data_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *NowRequest) GetRequestId() string {
    65  	if x != nil {
    66  		return x.RequestId
    67  	}
    68  	return ""
    69  }
    70  
    71  type NowResponse struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=RequestId,proto3" json:"request_id,omitempty"` // 请求ID
    77  	Date      string `protobuf:"bytes,2,opt,name=date,json=Date,proto3" json:"date,omitempty"`                  //当前时间
    78  }
    79  
    80  func (x *NowResponse) Reset() {
    81  	*x = NowResponse{}
    82  	if protoimpl.UnsafeEnabled {
    83  		mi := &file_go_net_grpc_example_data_proto_msgTypes[1]
    84  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    85  		ms.StoreMessageInfo(mi)
    86  	}
    87  }
    88  
    89  func (x *NowResponse) String() string {
    90  	return protoimpl.X.MessageStringOf(x)
    91  }
    92  
    93  func (*NowResponse) ProtoMessage() {}
    94  
    95  func (x *NowResponse) ProtoReflect() protoreflect.Message {
    96  	mi := &file_go_net_grpc_example_data_proto_msgTypes[1]
    97  	if protoimpl.UnsafeEnabled && x != nil {
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		if ms.LoadMessageInfo() == nil {
   100  			ms.StoreMessageInfo(mi)
   101  		}
   102  		return ms
   103  	}
   104  	return mi.MessageOf(x)
   105  }
   106  
   107  // Deprecated: Use NowResponse.ProtoReflect.Descriptor instead.
   108  func (*NowResponse) Descriptor() ([]byte, []int) {
   109  	return file_go_net_grpc_example_data_proto_rawDescGZIP(), []int{1}
   110  }
   111  
   112  func (x *NowResponse) GetRequestId() string {
   113  	if x != nil {
   114  		return x.RequestId
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *NowResponse) GetDate() string {
   120  	if x != nil {
   121  		return x.Date
   122  	}
   123  	return ""
   124  }
   125  
   126  var File_go_net_grpc_example_data_proto protoreflect.FileDescriptor
   127  
   128  var file_go_net_grpc_example_data_proto_rawDesc = []byte{
   129  	0x0a, 0x1e, 0x67, 0x6f, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x78,
   130  	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   131  	0x12, 0x0c, 0x73, 0x65, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x20,
   132  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
   133  	0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   134  	0x22, 0x2b, 0x0a, 0x0a, 0x4e, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d,
   135  	0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
   136  	0x28, 0x09, 0x52, 0x09, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x40, 0x0a,
   137  	0x0b, 0x4e, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
   138  	0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   139  	0x52, 0x09, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64,
   140  	0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x32,
   141  	0x4b, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3c,
   142  	0x0a, 0x03, 0x4e, 0x6f, 0x77, 0x12, 0x18, 0x2e, 0x73, 0x65, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e,
   143  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x4e, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   144  	0x19, 0x2e, 0x73, 0x65, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x4e,
   145  	0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x32, 0x5a, 0x30,
   146  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78,
   147  	0x68, 0x2f, 0x73, 0x65, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70,
   148  	0x69, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x2f, 0x64, 0x61, 0x74, 0x65, 0x3b, 0x64, 0x61, 0x74, 0x65,
   149  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   150  }
   151  
   152  var (
   153  	file_go_net_grpc_example_data_proto_rawDescOnce sync.Once
   154  	file_go_net_grpc_example_data_proto_rawDescData = file_go_net_grpc_example_data_proto_rawDesc
   155  )
   156  
   157  func file_go_net_grpc_example_data_proto_rawDescGZIP() []byte {
   158  	file_go_net_grpc_example_data_proto_rawDescOnce.Do(func() {
   159  		file_go_net_grpc_example_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_net_grpc_example_data_proto_rawDescData)
   160  	})
   161  	return file_go_net_grpc_example_data_proto_rawDescData
   162  }
   163  
   164  var file_go_net_grpc_example_data_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   165  var file_go_net_grpc_example_data_proto_goTypes = []interface{}{
   166  	(*NowRequest)(nil),  // 0: sea.api.date.NowRequest
   167  	(*NowResponse)(nil), // 1: sea.api.date.NowResponse
   168  }
   169  var file_go_net_grpc_example_data_proto_depIdxs = []int32{
   170  	0, // 0: sea.api.date.DateService.Now:input_type -> sea.api.date.NowRequest
   171  	1, // 1: sea.api.date.DateService.Now:output_type -> sea.api.date.NowResponse
   172  	1, // [1:2] is the sub-list for method output_type
   173  	0, // [0:1] is the sub-list for method input_type
   174  	0, // [0:0] is the sub-list for extension type_name
   175  	0, // [0:0] is the sub-list for extension extendee
   176  	0, // [0:0] is the sub-list for field type_name
   177  }
   178  
   179  func init() { file_go_net_grpc_example_data_proto_init() }
   180  func file_go_net_grpc_example_data_proto_init() {
   181  	if File_go_net_grpc_example_data_proto != nil {
   182  		return
   183  	}
   184  	if !protoimpl.UnsafeEnabled {
   185  		file_go_net_grpc_example_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   186  			switch v := v.(*NowRequest); i {
   187  			case 0:
   188  				return &v.state
   189  			case 1:
   190  				return &v.sizeCache
   191  			case 2:
   192  				return &v.unknownFields
   193  			default:
   194  				return nil
   195  			}
   196  		}
   197  		file_go_net_grpc_example_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   198  			switch v := v.(*NowResponse); 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  	}
   210  	type x struct{}
   211  	out := protoimpl.TypeBuilder{
   212  		File: protoimpl.DescBuilder{
   213  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   214  			RawDescriptor: file_go_net_grpc_example_data_proto_rawDesc,
   215  			NumEnums:      0,
   216  			NumMessages:   2,
   217  			NumExtensions: 0,
   218  			NumServices:   1,
   219  		},
   220  		GoTypes:           file_go_net_grpc_example_data_proto_goTypes,
   221  		DependencyIndexes: file_go_net_grpc_example_data_proto_depIdxs,
   222  		MessageInfos:      file_go_net_grpc_example_data_proto_msgTypes,
   223  	}.Build()
   224  	File_go_net_grpc_example_data_proto = out.File
   225  	file_go_net_grpc_example_data_proto_rawDesc = nil
   226  	file_go_net_grpc_example_data_proto_goTypes = nil
   227  	file_go_net_grpc_example_data_proto_depIdxs = nil
   228  }