github.com/microsoft/moc@v0.17.1/rpc/testagent/auth_test.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: auth_test.proto
     3  
     4  package testagent
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type Holla struct {
    28  	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
    29  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    30  	XXX_unrecognized     []byte   `json:"-"`
    31  	XXX_sizecache        int32    `json:"-"`
    32  }
    33  
    34  func (m *Holla) Reset()         { *m = Holla{} }
    35  func (m *Holla) String() string { return proto.CompactTextString(m) }
    36  func (*Holla) ProtoMessage()    {}
    37  func (*Holla) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_3c665ea62f7f06db, []int{0}
    39  }
    40  
    41  func (m *Holla) XXX_Unmarshal(b []byte) error {
    42  	return xxx_messageInfo_Holla.Unmarshal(m, b)
    43  }
    44  func (m *Holla) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	return xxx_messageInfo_Holla.Marshal(b, m, deterministic)
    46  }
    47  func (m *Holla) XXX_Merge(src proto.Message) {
    48  	xxx_messageInfo_Holla.Merge(m, src)
    49  }
    50  func (m *Holla) XXX_Size() int {
    51  	return xxx_messageInfo_Holla.Size(m)
    52  }
    53  func (m *Holla) XXX_DiscardUnknown() {
    54  	xxx_messageInfo_Holla.DiscardUnknown(m)
    55  }
    56  
    57  var xxx_messageInfo_Holla proto.InternalMessageInfo
    58  
    59  func (m *Holla) GetName() string {
    60  	if m != nil {
    61  		return m.Name
    62  	}
    63  	return ""
    64  }
    65  
    66  func init() {
    67  	proto.RegisterType((*Holla)(nil), "testagent.Holla")
    68  }
    69  
    70  func init() { proto.RegisterFile("auth_test.proto", fileDescriptor_3c665ea62f7f06db) }
    71  
    72  var fileDescriptor_3c665ea62f7f06db = []byte{
    73  	// 145 bytes of a gzipped FileDescriptorProto
    74  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4f, 0x2c, 0x2d, 0xc9,
    75  	0x88, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x04, 0xb1, 0x13,
    76  	0xd3, 0x53, 0xf3, 0x4a, 0x94, 0xa4, 0xb9, 0x58, 0x3d, 0xf2, 0x73, 0x72, 0x12, 0x85, 0x84, 0xb8,
    77  	0x58, 0xfc, 0x12, 0x73, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x23, 0x5b,
    78  	0x2e, 0x2e, 0xb0, 0xa4, 0x23, 0x48, 0xa9, 0x90, 0x3e, 0x17, 0x67, 0x40, 0x66, 0x5e, 0x3a, 0x44,
    79  	0xb9, 0x80, 0x1e, 0xdc, 0x0c, 0x3d, 0xb0, 0x88, 0x14, 0x86, 0x88, 0x93, 0x46, 0x94, 0x5a, 0x7a,
    80  	0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x6e, 0x66, 0x72, 0x51, 0x7e, 0x71,
    81  	0x7e, 0x5a, 0x89, 0x7e, 0x6e, 0x7e, 0xb2, 0x7e, 0x51, 0x41, 0xb2, 0x3e, 0x5c, 0x7d, 0x12, 0x1b,
    82  	0xd8, 0x5d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xb5, 0x1a, 0xfb, 0xaa, 0x00, 0x00,
    83  	0x00,
    84  }
    85  
    86  // Reference imports to suppress errors if they are not otherwise used.
    87  var _ context.Context
    88  var _ grpc.ClientConn
    89  
    90  // This is a compile-time assertion to ensure that this generated file
    91  // is compatible with the grpc package it is being compiled against.
    92  const _ = grpc.SupportPackageIsVersion4
    93  
    94  // HollaAgentClient is the client API for HollaAgent service.
    95  //
    96  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    97  type HollaAgentClient interface {
    98  	PingHolla(ctx context.Context, in *Holla, opts ...grpc.CallOption) (*Holla, error)
    99  }
   100  
   101  type hollaAgentClient struct {
   102  	cc *grpc.ClientConn
   103  }
   104  
   105  func NewHollaAgentClient(cc *grpc.ClientConn) HollaAgentClient {
   106  	return &hollaAgentClient{cc}
   107  }
   108  
   109  func (c *hollaAgentClient) PingHolla(ctx context.Context, in *Holla, opts ...grpc.CallOption) (*Holla, error) {
   110  	out := new(Holla)
   111  	err := c.cc.Invoke(ctx, "/testagent.HollaAgent/PingHolla", in, out, opts...)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return out, nil
   116  }
   117  
   118  // HollaAgentServer is the server API for HollaAgent service.
   119  type HollaAgentServer interface {
   120  	PingHolla(context.Context, *Holla) (*Holla, error)
   121  }
   122  
   123  // UnimplementedHollaAgentServer can be embedded to have forward compatible implementations.
   124  type UnimplementedHollaAgentServer struct {
   125  }
   126  
   127  func (*UnimplementedHollaAgentServer) PingHolla(ctx context.Context, req *Holla) (*Holla, error) {
   128  	return nil, status.Errorf(codes.Unimplemented, "method PingHolla not implemented")
   129  }
   130  
   131  func RegisterHollaAgentServer(s *grpc.Server, srv HollaAgentServer) {
   132  	s.RegisterService(&_HollaAgent_serviceDesc, srv)
   133  }
   134  
   135  func _HollaAgent_PingHolla_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   136  	in := new(Holla)
   137  	if err := dec(in); err != nil {
   138  		return nil, err
   139  	}
   140  	if interceptor == nil {
   141  		return srv.(HollaAgentServer).PingHolla(ctx, in)
   142  	}
   143  	info := &grpc.UnaryServerInfo{
   144  		Server:     srv,
   145  		FullMethod: "/testagent.HollaAgent/PingHolla",
   146  	}
   147  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   148  		return srv.(HollaAgentServer).PingHolla(ctx, req.(*Holla))
   149  	}
   150  	return interceptor(ctx, in, info, handler)
   151  }
   152  
   153  var _HollaAgent_serviceDesc = grpc.ServiceDesc{
   154  	ServiceName: "testagent.HollaAgent",
   155  	HandlerType: (*HollaAgentServer)(nil),
   156  	Methods: []grpc.MethodDesc{
   157  		{
   158  			MethodName: "PingHolla",
   159  			Handler:    _HollaAgent_PingHolla_Handler,
   160  		},
   161  	},
   162  	Streams:  []grpc.StreamDesc{},
   163  	Metadata: "auth_test.proto",
   164  }