github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/moc_cloudagent_authentication.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_cloudagent_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_edef3ea8c116bf43, []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_edef3ea8c116bf43, []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.cloudagent.security.AuthenticationRequest") 125 proto.RegisterType((*AuthenticationResponse)(nil), "moc.cloudagent.security.AuthenticationResponse") 126 } 127 128 func init() { 129 proto.RegisterFile("moc_cloudagent_authentication.proto", fileDescriptor_edef3ea8c116bf43) 130 } 131 132 var fileDescriptor_edef3ea8c116bf43 = []byte{ 133 // 313 bytes of a gzipped FileDescriptorProto 134 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x3d, 0x4f, 0xf3, 0x30, 135 0x14, 0x85, 0xdf, 0xbc, 0xd0, 0x0a, 0xcc, 0x66, 0x3e, 0x1a, 0x45, 0x02, 0x41, 0x59, 0x98, 0x6c, 136 0x14, 0x66, 0x86, 0x56, 0x62, 0x40, 0x62, 0xb2, 0x50, 0x07, 0x96, 0x2a, 0x71, 0xdd, 0xd4, 0x10, 137 0xfb, 0x06, 0x7f, 0x08, 0x75, 0x41, 0x62, 0xe3, 0x0f, 0xf1, 0xff, 0x50, 0xe2, 0x84, 0xaa, 0x15, 138 0x95, 0x98, 0x2c, 0xfb, 0x9c, 0xfb, 0xf8, 0x9c, 0x8b, 0x2e, 0x15, 0xf0, 0x29, 0x2f, 0xc1, 0xcf, 139 0xb2, 0x42, 0x68, 0x37, 0xcd, 0xbc, 0x5b, 0x08, 0xed, 0x24, 0xcf, 0x9c, 0x04, 0x4d, 0x2a, 0x03, 140 0x0e, 0xf0, 0x40, 0x01, 0x27, 0x2b, 0x13, 0xb1, 0x82, 0x7b, 0x23, 0xdd, 0x32, 0x39, 0x2b, 0x00, 141 0x8a, 0x52, 0xd0, 0xc6, 0x96, 0xfb, 0x39, 0x7d, 0x33, 0x59, 0x55, 0x09, 0x63, 0xc3, 0x60, 0x72, 142 0xba, 0x41, 0x97, 0xb3, 0x9a, 0xed, 0x96, 0xad, 0x3c, 0x68, 0x64, 0x50, 0x0a, 0x74, 0x7b, 0x04, 143 0x61, 0x38, 0x41, 0xc7, 0xa3, 0xb5, 0x20, 0x4c, 0xbc, 0x7a, 0x61, 0x1d, 0xbe, 0x45, 0x7b, 0xf7, 144 0x2d, 0x23, 0x8e, 0xce, 0xa3, 0xab, 0x83, 0xf4, 0x82, 0x6c, 0x09, 0x47, 0x3a, 0x23, 0xfb, 0x19, 145 0x19, 0xbe, 0xa3, 0x93, 0x4d, 0xae, 0xad, 0x40, 0x5b, 0x81, 0x13, 0xd4, 0x7b, 0x84, 0x17, 0xa1, 146 0x1b, 0xea, 0xfe, 0x78, 0xf7, 0xf3, 0x2b, 0x8e, 0x58, 0x78, 0xc2, 0x29, 0xea, 0x33, 0x61, 0x7d, 147 0xe9, 0xe2, 0xff, 0xcd, 0x97, 0x09, 0x09, 0xb5, 0x49, 0x57, 0x9b, 0x8c, 0x01, 0xca, 0x49, 0x56, 148 0x7a, 0xc1, 0x5a, 0x27, 0x3e, 0x42, 0xbd, 0x3b, 0x63, 0xc0, 0xc4, 0x3b, 0x35, 0x8f, 0x85, 0x4b, 149 0xfa, 0x11, 0xa1, 0xc3, 0xf5, 0x00, 0xa3, 0x3a, 0x33, 0x7e, 0x46, 0xbd, 0x07, 0x28, 0xa4, 0xc6, 150 0x64, 0x6b, 0x9b, 0x5f, 0xf7, 0x91, 0xd0, 0x3f, 0xfb, 0x43, 0xcf, 0xe1, 0xbf, 0x71, 0xfa, 0x74, 151 0x5d, 0x48, 0xb7, 0xf0, 0x39, 0xe1, 0xa0, 0xa8, 0x92, 0xdc, 0x80, 0x85, 0xb9, 0xa3, 0x0a, 0x38, 152 0x35, 0x15, 0xa7, 0x2b, 0x18, 0xed, 0x60, 0x79, 0xbf, 0x69, 0x7a, 0xf3, 0x1d, 0x00, 0x00, 0xff, 153 0xff, 0x7a, 0x43, 0x24, 0x68, 0x2e, 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.cloudagent.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.cloudagent.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.cloudagent.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_cloudagent_authentication.proto", 234 }