blob: 5d413b3ac9ee046eabbdd4bb3ac41ad5d81e0fa0 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.11.4
// source: fake_user.proto
// Services in this file belong to the tast.coretest package, not to the
// tast.core package, so that they look more like user-defined services.
package protocol
import (
context "context"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_fake_user_proto protoreflect.FileDescriptor
var file_fake_user_proto_rawDesc = []byte{
0x0a, 0x0f, 0x66, 0x61, 0x6b, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x0d, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x74, 0x65, 0x73, 0x74,
0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x44, 0x0a,
0x08, 0x50, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x04, 0x50, 0x69, 0x6e,
0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x22, 0x00, 0x42, 0x23, 0x5a, 0x21, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f,
0x73, 0x2f, 0x74, 0x61, 0x73, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_fake_user_proto_goTypes = []interface{}{
(*empty.Empty)(nil), // 0: google.protobuf.Empty
}
var file_fake_user_proto_depIdxs = []int32{
0, // 0: tast.coretest.PingUser.Ping:input_type -> google.protobuf.Empty
0, // 1: tast.coretest.PingUser.Ping:output_type -> google.protobuf.Empty
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_fake_user_proto_init() }
func file_fake_user_proto_init() {
if File_fake_user_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_fake_user_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_fake_user_proto_goTypes,
DependencyIndexes: file_fake_user_proto_depIdxs,
}.Build()
File_fake_user_proto = out.File
file_fake_user_proto_rawDesc = nil
file_fake_user_proto_goTypes = nil
file_fake_user_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// PingUserClient is the client API for PingUser service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PingUserClient interface {
Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
type pingUserClient struct {
cc grpc.ClientConnInterface
}
func NewPingUserClient(cc grpc.ClientConnInterface) PingUserClient {
return &pingUserClient{cc}
}
func (c *pingUserClient) Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.coretest.PingUser/Ping", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PingUserServer is the server API for PingUser service.
type PingUserServer interface {
Ping(context.Context, *empty.Empty) (*empty.Empty, error)
}
// UnimplementedPingUserServer can be embedded to have forward compatible implementations.
type UnimplementedPingUserServer struct {
}
func (*UnimplementedPingUserServer) Ping(context.Context, *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
}
func RegisterPingUserServer(s *grpc.Server, srv PingUserServer) {
s.RegisterService(&_PingUser_serviceDesc, srv)
}
func _PingUser_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PingUserServer).Ping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.coretest.PingUser/Ping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PingUserServer).Ping(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _PingUser_serviceDesc = grpc.ServiceDesc{
ServiceName: "tast.coretest.PingUser",
HandlerType: (*PingUserServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Ping",
Handler: _PingUser_Ping_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "fake_user.proto",
}