// Code generated by protoc-gen-go. DO NOT EDIT. // source: authenticate.proto package authenticate import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import timestamp "github.com/golang/protobuf/ptypes/timestamp" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type AuthenticateRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } func (*AuthenticateRequest) ProtoMessage() {} func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_authenticate_2c495f1e6e8d5900, []int{0} } func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AuthenticateRequest.Unmarshal(m, b) } func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic) } func (dst *AuthenticateRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AuthenticateRequest.Merge(dst, src) } func (m *AuthenticateRequest) XXX_Size() int { return xxx_messageInfo_AuthenticateRequest.Size(m) } func (m *AuthenticateRequest) XXX_DiscardUnknown() { xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m) } var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo func (m *AuthenticateRequest) GetCode() string { if m != nil { return m.Code } return "" } type ValidateRequest struct { IdToken string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ValidateRequest) Reset() { *m = ValidateRequest{} } func (m *ValidateRequest) String() string { return proto.CompactTextString(m) } func (*ValidateRequest) ProtoMessage() {} func (*ValidateRequest) Descriptor() ([]byte, []int) { return fileDescriptor_authenticate_2c495f1e6e8d5900, []int{1} } func (m *ValidateRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ValidateRequest.Unmarshal(m, b) } func (m *ValidateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ValidateRequest.Marshal(b, m, deterministic) } func (dst *ValidateRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidateRequest.Merge(dst, src) } func (m *ValidateRequest) XXX_Size() int { return xxx_messageInfo_ValidateRequest.Size(m) } func (m *ValidateRequest) XXX_DiscardUnknown() { xxx_messageInfo_ValidateRequest.DiscardUnknown(m) } var xxx_messageInfo_ValidateRequest proto.InternalMessageInfo func (m *ValidateRequest) GetIdToken() string { if m != nil { return m.IdToken } return "" } type ValidateReply struct { IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ValidateReply) Reset() { *m = ValidateReply{} } func (m *ValidateReply) String() string { return proto.CompactTextString(m) } func (*ValidateReply) ProtoMessage() {} func (*ValidateReply) Descriptor() ([]byte, []int) { return fileDescriptor_authenticate_2c495f1e6e8d5900, []int{2} } func (m *ValidateReply) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ValidateReply.Unmarshal(m, b) } func (m *ValidateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ValidateReply.Marshal(b, m, deterministic) } func (dst *ValidateReply) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidateReply.Merge(dst, src) } func (m *ValidateReply) XXX_Size() int { return xxx_messageInfo_ValidateReply.Size(m) } func (m *ValidateReply) XXX_DiscardUnknown() { xxx_messageInfo_ValidateReply.DiscardUnknown(m) } var xxx_messageInfo_ValidateReply proto.InternalMessageInfo func (m *ValidateReply) GetIsValid() bool { if m != nil { return m.IsValid } return false } type Session struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` IdToken string `protobuf:"bytes,3,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` RefreshDeadline *timestamp.Timestamp `protobuf:"bytes,7,opt,name=refresh_deadline,json=refreshDeadline,proto3" json:"refresh_deadline,omitempty"` LifetimeDeadline *timestamp.Timestamp `protobuf:"bytes,8,opt,name=lifetime_deadline,json=lifetimeDeadline,proto3" json:"lifetime_deadline,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Session) Reset() { *m = Session{} } func (m *Session) String() string { return proto.CompactTextString(m) } func (*Session) ProtoMessage() {} func (*Session) Descriptor() ([]byte, []int) { return fileDescriptor_authenticate_2c495f1e6e8d5900, []int{3} } func (m *Session) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Session.Unmarshal(m, b) } func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Session.Marshal(b, m, deterministic) } func (dst *Session) XXX_Merge(src proto.Message) { xxx_messageInfo_Session.Merge(dst, src) } func (m *Session) XXX_Size() int { return xxx_messageInfo_Session.Size(m) } func (m *Session) XXX_DiscardUnknown() { xxx_messageInfo_Session.DiscardUnknown(m) } var xxx_messageInfo_Session proto.InternalMessageInfo func (m *Session) GetAccessToken() string { if m != nil { return m.AccessToken } return "" } func (m *Session) GetRefreshToken() string { if m != nil { return m.RefreshToken } return "" } func (m *Session) GetIdToken() string { if m != nil { return m.IdToken } return "" } func (m *Session) GetUser() string { if m != nil { return m.User } return "" } func (m *Session) GetEmail() string { if m != nil { return m.Email } return "" } func (m *Session) GetGroups() []string { if m != nil { return m.Groups } return nil } func (m *Session) GetRefreshDeadline() *timestamp.Timestamp { if m != nil { return m.RefreshDeadline } return nil } func (m *Session) GetLifetimeDeadline() *timestamp.Timestamp { if m != nil { return m.LifetimeDeadline } return nil } func init() { proto.RegisterType((*AuthenticateRequest)(nil), "authenticate.AuthenticateRequest") proto.RegisterType((*ValidateRequest)(nil), "authenticate.ValidateRequest") proto.RegisterType((*ValidateReply)(nil), "authenticate.ValidateReply") proto.RegisterType((*Session)(nil), "authenticate.Session") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // 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.SupportPackageIsVersion4 // AuthenticatorClient is the client API for Authenticator service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AuthenticatorClient interface { Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*Session, error) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateReply, error) Refresh(ctx context.Context, in *Session, opts ...grpc.CallOption) (*Session, error) } type authenticatorClient struct { cc *grpc.ClientConn } func NewAuthenticatorClient(cc *grpc.ClientConn) AuthenticatorClient { return &authenticatorClient{cc} } func (c *authenticatorClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*Session, error) { out := new(Session) err := c.cc.Invoke(ctx, "/authenticate.Authenticator/Authenticate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *authenticatorClient) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateReply, error) { out := new(ValidateReply) err := c.cc.Invoke(ctx, "/authenticate.Authenticator/Validate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *authenticatorClient) Refresh(ctx context.Context, in *Session, opts ...grpc.CallOption) (*Session, error) { out := new(Session) err := c.cc.Invoke(ctx, "/authenticate.Authenticator/Refresh", in, out, opts...) if err != nil { return nil, err } return out, nil } // AuthenticatorServer is the server API for Authenticator service. type AuthenticatorServer interface { Authenticate(context.Context, *AuthenticateRequest) (*Session, error) Validate(context.Context, *ValidateRequest) (*ValidateReply, error) Refresh(context.Context, *Session) (*Session, error) } func RegisterAuthenticatorServer(s *grpc.Server, srv AuthenticatorServer) { s.RegisterService(&_Authenticator_serviceDesc, srv) } func _Authenticator_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AuthenticateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AuthenticatorServer).Authenticate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/authenticate.Authenticator/Authenticate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthenticatorServer).Authenticate(ctx, req.(*AuthenticateRequest)) } return interceptor(ctx, in, info, handler) } func _Authenticator_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ValidateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AuthenticatorServer).Validate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/authenticate.Authenticator/Validate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthenticatorServer).Validate(ctx, req.(*ValidateRequest)) } return interceptor(ctx, in, info, handler) } func _Authenticator_Refresh_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Session) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AuthenticatorServer).Refresh(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/authenticate.Authenticator/Refresh", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthenticatorServer).Refresh(ctx, req.(*Session)) } return interceptor(ctx, in, info, handler) } var _Authenticator_serviceDesc = grpc.ServiceDesc{ ServiceName: "authenticate.Authenticator", HandlerType: (*AuthenticatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _Authenticator_Authenticate_Handler, }, { MethodName: "Validate", Handler: _Authenticator_Validate_Handler, }, { MethodName: "Refresh", Handler: _Authenticator_Refresh_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authenticate.proto", } func init() { proto.RegisterFile("authenticate.proto", fileDescriptor_authenticate_2c495f1e6e8d5900) } var fileDescriptor_authenticate_2c495f1e6e8d5900 = []byte{ // 378 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x6e, 0x9b, 0x40, 0x10, 0xc6, 0x8d, 0xff, 0x81, 0xc7, 0x58, 0x76, 0xa7, 0x7f, 0x44, 0xa9, 0xaa, 0xda, 0xf4, 0xe2, 0x56, 0x15, 0x96, 0xdc, 0x53, 0x8f, 0x95, 0x5a, 0x25, 0xca, 0x91, 0x58, 0xb9, 0x5a, 0x18, 0xc6, 0xf6, 0x2a, 0x98, 0x25, 0xec, 0x12, 0xc9, 0x2f, 0x97, 0x67, 0xc9, 0xa3, 0x44, 0x2c, 0x20, 0x43, 0x64, 0x2b, 0x37, 0x66, 0xf6, 0x37, 0x1f, 0xb3, 0xdf, 0xb7, 0x80, 0x7e, 0x26, 0xf7, 0x14, 0x4b, 0x16, 0xf8, 0x92, 0xdc, 0x24, 0xe5, 0x92, 0xa3, 0x59, 0xef, 0xd9, 0xdf, 0x76, 0x9c, 0xef, 0x22, 0x5a, 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