github.com/microsoft/moc@v0.17.1/rpc/nodeagent/security/moc_nodeagent_authentication.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_authentication.proto 3 4 package security 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 _ "github.com/microsoft/moc/rpc/common" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 math "math" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29 type AuthenticationRequest struct { 30 Identity *Identity `protobuf:"bytes,1,opt,name=Identity,proto3" json:"Identity,omitempty"` 31 XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 XXX_unrecognized []byte `json:"-"` 33 XXX_sizecache int32 `json:"-"` 34 } 35 36 func (m *AuthenticationRequest) Reset() { *m = AuthenticationRequest{} } 37 func (m *AuthenticationRequest) String() string { return proto.CompactTextString(m) } 38 func (*AuthenticationRequest) ProtoMessage() {} 39 func (*AuthenticationRequest) Descriptor() ([]byte, []int) { 40 return fileDescriptor_07af3503dd150303, []int{0} 41 } 42 43 func (m *AuthenticationRequest) XXX_Unmarshal(b []byte) error { 44 return xxx_messageInfo_AuthenticationRequest.Unmarshal(m, b) 45 } 46 func (m *AuthenticationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 return xxx_messageInfo_AuthenticationRequest.Marshal(b, m, deterministic) 48 } 49 func (m *AuthenticationRequest) XXX_Merge(src proto.Message) { 50 xxx_messageInfo_AuthenticationRequest.Merge(m, src) 51 } 52 func (m *AuthenticationRequest) XXX_Size() int { 53 return xxx_messageInfo_AuthenticationRequest.Size(m) 54 } 55 func (m *AuthenticationRequest) XXX_DiscardUnknown() { 56 xxx_messageInfo_AuthenticationRequest.DiscardUnknown(m) 57 } 58 59 var xxx_messageInfo_AuthenticationRequest proto.InternalMessageInfo 60 61 func (m *AuthenticationRequest) GetIdentity() *Identity { 62 if m != nil { 63 return m.Identity 64 } 65 return nil 66 } 67 68 type AuthenticationResponse struct { 69 Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` 70 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 71 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 72 XXX_NoUnkeyedLiteral struct{} `json:"-"` 73 XXX_unrecognized []byte `json:"-"` 74 XXX_sizecache int32 `json:"-"` 75 } 76 77 func (m *AuthenticationResponse) Reset() { *m = AuthenticationResponse{} } 78 func (m *AuthenticationResponse) String() string { return proto.CompactTextString(m) } 79 func (*AuthenticationResponse) ProtoMessage() {} 80 func (*AuthenticationResponse) Descriptor() ([]byte, []int) { 81 return fileDescriptor_07af3503dd150303, []int{1} 82 } 83 84 func (m *AuthenticationResponse) XXX_Unmarshal(b []byte) error { 85 return xxx_messageInfo_AuthenticationResponse.Unmarshal(m, b) 86 } 87 func (m *AuthenticationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 88 return xxx_messageInfo_AuthenticationResponse.Marshal(b, m, deterministic) 89 } 90 func (m *AuthenticationResponse) XXX_Merge(src proto.Message) { 91 xxx_messageInfo_AuthenticationResponse.Merge(m, src) 92 } 93 func (m *AuthenticationResponse) XXX_Size() int { 94 return xxx_messageInfo_AuthenticationResponse.Size(m) 95 } 96 func (m *AuthenticationResponse) XXX_DiscardUnknown() { 97 xxx_messageInfo_AuthenticationResponse.DiscardUnknown(m) 98 } 99 100 var xxx_messageInfo_AuthenticationResponse proto.InternalMessageInfo 101 102 func (m *AuthenticationResponse) GetToken() string { 103 if m != nil { 104 return m.Token 105 } 106 return "" 107 } 108 109 func (m *AuthenticationResponse) GetResult() *wrappers.BoolValue { 110 if m != nil { 111 return m.Result 112 } 113 return nil 114 } 115 116 func (m *AuthenticationResponse) GetError() string { 117 if m != nil { 118 return m.Error 119 } 120 return "" 121 } 122 123 func init() { 124 proto.RegisterType((*AuthenticationRequest)(nil), "moc.nodeagent.security.AuthenticationRequest") 125 proto.RegisterType((*AuthenticationResponse)(nil), "moc.nodeagent.security.AuthenticationResponse") 126 } 127 128 func init() { 129 proto.RegisterFile("moc_nodeagent_authentication.proto", fileDescriptor_07af3503dd150303) 130 } 131 132 var fileDescriptor_07af3503dd150303 = []byte{ 133 // 310 bytes of a gzipped FileDescriptorProto 134 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x3f, 0x4b, 0x03, 0x31, 135 0x18, 0xc6, 0xad, 0xda, 0xa2, 0x71, 0x8b, 0x5a, 0x8f, 0x43, 0xa4, 0xdc, 0xe4, 0x62, 0x82, 0x75, 136 0x75, 0x69, 0xc1, 0x41, 0x70, 0x0a, 0xea, 0xe0, 0x52, 0xae, 0xe9, 0xdb, 0x6b, 0xf0, 0x92, 0xf7, 137 0xcc, 0x1f, 0xa4, 0x8b, 0xae, 0x7e, 0x21, 0xbf, 0x9f, 0xdc, 0xe5, 0x5a, 0xa8, 0x54, 0x70, 0x0a, 138 0xc9, 0xf3, 0xbc, 0xbf, 0xf7, 0x79, 0x42, 0x32, 0x8d, 0x72, 0x62, 0x70, 0x06, 0x79, 0x01, 0xc6, 139 0x4f, 0xf2, 0xe0, 0x17, 0x60, 0xbc, 0x92, 0xb9, 0x57, 0x68, 0x58, 0x65, 0xd1, 0x23, 0xed, 0x6b, 140 0x94, 0x6c, 0xed, 0x61, 0x0e, 0x64, 0xb0, 0xca, 0x2f, 0xd3, 0x8b, 0x02, 0xb1, 0x28, 0x81, 0x37, 141 0xae, 0x69, 0x98, 0xf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 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xce, 153 0x98, 0x47, 0x26, 0x02, 0x00, 0x00, 154 } 155 156 // Reference imports to suppress errors if they are not otherwise used. 157 var _ context.Context 158 var _ grpc.ClientConn 159 160 // This is a compile-time assertion to ensure that this generated file 161 // is compatible with the grpc package it is being compiled against. 162 const _ = grpc.SupportPackageIsVersion4 163 164 // AuthenticationAgentClient is the client API for AuthenticationAgent service. 165 // 166 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 167 type AuthenticationAgentClient interface { 168 Login(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) 169 } 170 171 type authenticationAgentClient struct { 172 cc *grpc.ClientConn 173 } 174 175 func NewAuthenticationAgentClient(cc *grpc.ClientConn) AuthenticationAgentClient { 176 return &authenticationAgentClient{cc} 177 } 178 179 func (c *authenticationAgentClient) Login(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) { 180 out := new(AuthenticationResponse) 181 err := c.cc.Invoke(ctx, "/moc.nodeagent.security.AuthenticationAgent/Login", in, out, opts...) 182 if err != nil { 183 return nil, err 184 } 185 return out, nil 186 } 187 188 // AuthenticationAgentServer is the server API for AuthenticationAgent service. 189 type AuthenticationAgentServer interface { 190 Login(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error) 191 } 192 193 // UnimplementedAuthenticationAgentServer can be embedded to have forward compatible implementations. 194 type UnimplementedAuthenticationAgentServer struct { 195 } 196 197 func (*UnimplementedAuthenticationAgentServer) Login(ctx context.Context, req *AuthenticationRequest) (*AuthenticationResponse, error) { 198 return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") 199 } 200 201 func RegisterAuthenticationAgentServer(s *grpc.Server, srv AuthenticationAgentServer) { 202 s.RegisterService(&_AuthenticationAgent_serviceDesc, srv) 203 } 204 205 func _AuthenticationAgent_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 206 in := new(AuthenticationRequest) 207 if err := dec(in); err != nil { 208 return nil, err 209 } 210 if interceptor == nil { 211 return srv.(AuthenticationAgentServer).Login(ctx, in) 212 } 213 info := &grpc.UnaryServerInfo{ 214 Server: srv, 215 FullMethod: "/moc.nodeagent.security.AuthenticationAgent/Login", 216 } 217 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 218 return srv.(AuthenticationAgentServer).Login(ctx, req.(*AuthenticationRequest)) 219 } 220 return interceptor(ctx, in, info, handler) 221 } 222 223 var _AuthenticationAgent_serviceDesc = grpc.ServiceDesc{ 224 ServiceName: "moc.nodeagent.security.AuthenticationAgent", 225 HandlerType: (*AuthenticationAgentServer)(nil), 226 Methods: []grpc.MethodDesc{ 227 { 228 MethodName: "Login", 229 Handler: _AuthenticationAgent_Login_Handler, 230 }, 231 }, 232 Streams: []grpc.StreamDesc{}, 233 Metadata: "moc_nodeagent_authentication.proto", 234 }