github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/session/session.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/session/session.proto
     3  
     4  // Session Service
     5  //
     6  // Session Service API performs CRUD actions against session resources
     7  
     8  package session
     9  
    10  import (
    11  	context "context"
    12  	fmt "fmt"
    13  	_ "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
    14  	_ "github.com/gogo/protobuf/gogoproto"
    15  	proto "github.com/gogo/protobuf/proto"
    16  	_ "google.golang.org/genproto/googleapis/api/annotations"
    17  	grpc "google.golang.org/grpc"
    18  	codes "google.golang.org/grpc/codes"
    19  	status "google.golang.org/grpc/status"
    20  	io "io"
    21  	_ "k8s.io/api/core/v1"
    22  	math "math"
    23  	math_bits "math/bits"
    24  )
    25  
    26  // Reference imports to suppress errors if they are not otherwise used.
    27  var _ = proto.Marshal
    28  var _ = fmt.Errorf
    29  var _ = math.Inf
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the proto package it is being compiled against.
    33  // A compilation error at this line likely means your copy of the
    34  // proto package needs to be updated.
    35  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    36  
    37  // SessionCreateRequest is for logging in.
    38  type SessionCreateRequest struct {
    39  	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    40  	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    41  	Token                string   `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
    42  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    43  	XXX_unrecognized     []byte   `json:"-"`
    44  	XXX_sizecache        int32    `json:"-"`
    45  }
    46  
    47  func (m *SessionCreateRequest) Reset()         { *m = SessionCreateRequest{} }
    48  func (m *SessionCreateRequest) String() string { return proto.CompactTextString(m) }
    49  func (*SessionCreateRequest) ProtoMessage()    {}
    50  func (*SessionCreateRequest) Descriptor() ([]byte, []int) {
    51  	return fileDescriptor_87870a51a62685ed, []int{0}
    52  }
    53  func (m *SessionCreateRequest) XXX_Unmarshal(b []byte) error {
    54  	return m.Unmarshal(b)
    55  }
    56  func (m *SessionCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    57  	if deterministic {
    58  		return xxx_messageInfo_SessionCreateRequest.Marshal(b, m, deterministic)
    59  	} else {
    60  		b = b[:cap(b)]
    61  		n, err := m.MarshalToSizedBuffer(b)
    62  		if err != nil {
    63  			return nil, err
    64  		}
    65  		return b[:n], nil
    66  	}
    67  }
    68  func (m *SessionCreateRequest) XXX_Merge(src proto.Message) {
    69  	xxx_messageInfo_SessionCreateRequest.Merge(m, src)
    70  }
    71  func (m *SessionCreateRequest) XXX_Size() int {
    72  	return m.Size()
    73  }
    74  func (m *SessionCreateRequest) XXX_DiscardUnknown() {
    75  	xxx_messageInfo_SessionCreateRequest.DiscardUnknown(m)
    76  }
    77  
    78  var xxx_messageInfo_SessionCreateRequest proto.InternalMessageInfo
    79  
    80  func (m *SessionCreateRequest) GetUsername() string {
    81  	if m != nil {
    82  		return m.Username
    83  	}
    84  	return ""
    85  }
    86  
    87  func (m *SessionCreateRequest) GetPassword() string {
    88  	if m != nil {
    89  		return m.Password
    90  	}
    91  	return ""
    92  }
    93  
    94  func (m *SessionCreateRequest) GetToken() string {
    95  	if m != nil {
    96  		return m.Token
    97  	}
    98  	return ""
    99  }
   100  
   101  // SessionDeleteRequest is for logging out.
   102  type SessionDeleteRequest struct {
   103  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   104  	XXX_unrecognized     []byte   `json:"-"`
   105  	XXX_sizecache        int32    `json:"-"`
   106  }
   107  
   108  func (m *SessionDeleteRequest) Reset()         { *m = SessionDeleteRequest{} }
   109  func (m *SessionDeleteRequest) String() string { return proto.CompactTextString(m) }
   110  func (*SessionDeleteRequest) ProtoMessage()    {}
   111  func (*SessionDeleteRequest) Descriptor() ([]byte, []int) {
   112  	return fileDescriptor_87870a51a62685ed, []int{1}
   113  }
   114  func (m *SessionDeleteRequest) XXX_Unmarshal(b []byte) error {
   115  	return m.Unmarshal(b)
   116  }
   117  func (m *SessionDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   118  	if deterministic {
   119  		return xxx_messageInfo_SessionDeleteRequest.Marshal(b, m, deterministic)
   120  	} else {
   121  		b = b[:cap(b)]
   122  		n, err := m.MarshalToSizedBuffer(b)
   123  		if err != nil {
   124  			return nil, err
   125  		}
   126  		return b[:n], nil
   127  	}
   128  }
   129  func (m *SessionDeleteRequest) XXX_Merge(src proto.Message) {
   130  	xxx_messageInfo_SessionDeleteRequest.Merge(m, src)
   131  }
   132  func (m *SessionDeleteRequest) XXX_Size() int {
   133  	return m.Size()
   134  }
   135  func (m *SessionDeleteRequest) XXX_DiscardUnknown() {
   136  	xxx_messageInfo_SessionDeleteRequest.DiscardUnknown(m)
   137  }
   138  
   139  var xxx_messageInfo_SessionDeleteRequest proto.InternalMessageInfo
   140  
   141  // SessionResponse wraps the created token or returns an empty string if deleted.
   142  type SessionResponse struct {
   143  	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
   144  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   145  	XXX_unrecognized     []byte   `json:"-"`
   146  	XXX_sizecache        int32    `json:"-"`
   147  }
   148  
   149  func (m *SessionResponse) Reset()         { *m = SessionResponse{} }
   150  func (m *SessionResponse) String() string { return proto.CompactTextString(m) }
   151  func (*SessionResponse) ProtoMessage()    {}
   152  func (*SessionResponse) Descriptor() ([]byte, []int) {
   153  	return fileDescriptor_87870a51a62685ed, []int{2}
   154  }
   155  func (m *SessionResponse) XXX_Unmarshal(b []byte) error {
   156  	return m.Unmarshal(b)
   157  }
   158  func (m *SessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   159  	if deterministic {
   160  		return xxx_messageInfo_SessionResponse.Marshal(b, m, deterministic)
   161  	} else {
   162  		b = b[:cap(b)]
   163  		n, err := m.MarshalToSizedBuffer(b)
   164  		if err != nil {
   165  			return nil, err
   166  		}
   167  		return b[:n], nil
   168  	}
   169  }
   170  func (m *SessionResponse) XXX_Merge(src proto.Message) {
   171  	xxx_messageInfo_SessionResponse.Merge(m, src)
   172  }
   173  func (m *SessionResponse) XXX_Size() int {
   174  	return m.Size()
   175  }
   176  func (m *SessionResponse) XXX_DiscardUnknown() {
   177  	xxx_messageInfo_SessionResponse.DiscardUnknown(m)
   178  }
   179  
   180  var xxx_messageInfo_SessionResponse proto.InternalMessageInfo
   181  
   182  func (m *SessionResponse) GetToken() string {
   183  	if m != nil {
   184  		return m.Token
   185  	}
   186  	return ""
   187  }
   188  
   189  // Get the current user's userInfo info
   190  type GetUserInfoRequest struct {
   191  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   192  	XXX_unrecognized     []byte   `json:"-"`
   193  	XXX_sizecache        int32    `json:"-"`
   194  }
   195  
   196  func (m *GetUserInfoRequest) Reset()         { *m = GetUserInfoRequest{} }
   197  func (m *GetUserInfoRequest) String() string { return proto.CompactTextString(m) }
   198  func (*GetUserInfoRequest) ProtoMessage()    {}
   199  func (*GetUserInfoRequest) Descriptor() ([]byte, []int) {
   200  	return fileDescriptor_87870a51a62685ed, []int{3}
   201  }
   202  func (m *GetUserInfoRequest) XXX_Unmarshal(b []byte) error {
   203  	return m.Unmarshal(b)
   204  }
   205  func (m *GetUserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   206  	if deterministic {
   207  		return xxx_messageInfo_GetUserInfoRequest.Marshal(b, m, deterministic)
   208  	} else {
   209  		b = b[:cap(b)]
   210  		n, err := m.MarshalToSizedBuffer(b)
   211  		if err != nil {
   212  			return nil, err
   213  		}
   214  		return b[:n], nil
   215  	}
   216  }
   217  func (m *GetUserInfoRequest) XXX_Merge(src proto.Message) {
   218  	xxx_messageInfo_GetUserInfoRequest.Merge(m, src)
   219  }
   220  func (m *GetUserInfoRequest) XXX_Size() int {
   221  	return m.Size()
   222  }
   223  func (m *GetUserInfoRequest) XXX_DiscardUnknown() {
   224  	xxx_messageInfo_GetUserInfoRequest.DiscardUnknown(m)
   225  }
   226  
   227  var xxx_messageInfo_GetUserInfoRequest proto.InternalMessageInfo
   228  
   229  // The current user's userInfo info
   230  type GetUserInfoResponse struct {
   231  	LoggedIn             bool     `protobuf:"varint,1,opt,name=loggedIn,proto3" json:"loggedIn,omitempty"`
   232  	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
   233  	Iss                  string   `protobuf:"bytes,3,opt,name=iss,proto3" json:"iss,omitempty"`
   234  	Groups               []string `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups,omitempty"`
   235  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   236  	XXX_unrecognized     []byte   `json:"-"`
   237  	XXX_sizecache        int32    `json:"-"`
   238  }
   239  
   240  func (m *GetUserInfoResponse) Reset()         { *m = GetUserInfoResponse{} }
   241  func (m *GetUserInfoResponse) String() string { return proto.CompactTextString(m) }
   242  func (*GetUserInfoResponse) ProtoMessage()    {}
   243  func (*GetUserInfoResponse) Descriptor() ([]byte, []int) {
   244  	return fileDescriptor_87870a51a62685ed, []int{4}
   245  }
   246  func (m *GetUserInfoResponse) XXX_Unmarshal(b []byte) error {
   247  	return m.Unmarshal(b)
   248  }
   249  func (m *GetUserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   250  	if deterministic {
   251  		return xxx_messageInfo_GetUserInfoResponse.Marshal(b, m, deterministic)
   252  	} else {
   253  		b = b[:cap(b)]
   254  		n, err := m.MarshalToSizedBuffer(b)
   255  		if err != nil {
   256  			return nil, err
   257  		}
   258  		return b[:n], nil
   259  	}
   260  }
   261  func (m *GetUserInfoResponse) XXX_Merge(src proto.Message) {
   262  	xxx_messageInfo_GetUserInfoResponse.Merge(m, src)
   263  }
   264  func (m *GetUserInfoResponse) XXX_Size() int {
   265  	return m.Size()
   266  }
   267  func (m *GetUserInfoResponse) XXX_DiscardUnknown() {
   268  	xxx_messageInfo_GetUserInfoResponse.DiscardUnknown(m)
   269  }
   270  
   271  var xxx_messageInfo_GetUserInfoResponse proto.InternalMessageInfo
   272  
   273  func (m *GetUserInfoResponse) GetLoggedIn() bool {
   274  	if m != nil {
   275  		return m.LoggedIn
   276  	}
   277  	return false
   278  }
   279  
   280  func (m *GetUserInfoResponse) GetUsername() string {
   281  	if m != nil {
   282  		return m.Username
   283  	}
   284  	return ""
   285  }
   286  
   287  func (m *GetUserInfoResponse) GetIss() string {
   288  	if m != nil {
   289  		return m.Iss
   290  	}
   291  	return ""
   292  }
   293  
   294  func (m *GetUserInfoResponse) GetGroups() []string {
   295  	if m != nil {
   296  		return m.Groups
   297  	}
   298  	return nil
   299  }
   300  
   301  func init() {
   302  	proto.RegisterType((*SessionCreateRequest)(nil), "session.SessionCreateRequest")
   303  	proto.RegisterType((*SessionDeleteRequest)(nil), "session.SessionDeleteRequest")
   304  	proto.RegisterType((*SessionResponse)(nil), "session.SessionResponse")
   305  	proto.RegisterType((*GetUserInfoRequest)(nil), "session.GetUserInfoRequest")
   306  	proto.RegisterType((*GetUserInfoResponse)(nil), "session.GetUserInfoResponse")
   307  }
   308  
   309  func init() { proto.RegisterFile("server/session/session.proto", fileDescriptor_87870a51a62685ed) }
   310  
   311  var fileDescriptor_87870a51a62685ed = []byte{
   312  	// 453 bytes of a gzipped FileDescriptorProto
   313  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x8e, 0xd3, 0x30,
   314  	0x10, 0xc6, 0x95, 0x16, 0x4a, 0xd7, 0x48, 0x2c, 0x98, 0x68, 0x89, 0x42, 0xa9, 0xaa, 0x5c, 0x58,
   315  	0xad, 0x44, 0xad, 0xc2, 0x05, 0x71, 0x41, 0x02, 0x24, 0xd4, 0x6b, 0x56, 0x5c, 0x56, 0xe2, 0xe0,
   316  	0x4d, 0x06, 0xaf, 0xb7, 0x59, 0x8f, 0xb1, 0xdd, 0xec, 0x9d, 0x57, 0xe0, 0x61, 0x78, 0x05, 0x8e,
   317  	0x48, 0xbc, 0x00, 0xaa, 0x78, 0x10, 0x14, 0xe7, 0x0f, 0xdb, 0xb4, 0x42, 0x9c, 0xe2, 0x99, 0x2f,
   318  	0xfe, 0x7d, 0x9f, 0x35, 0x43, 0x26, 0x16, 0x4c, 0x09, 0x86, 0x59, 0xb0, 0x56, 0xa2, 0x6a, 0xbf,
   319  	0x73, 0x6d, 0xd0, 0x21, 0xbd, 0xd3, 0x94, 0x71, 0x28, 0x50, 0xa0, 0xef, 0xb1, 0xea, 0x54, 0xcb,
   320  	0xf1, 0x44, 0x20, 0x8a, 0x02, 0x18, 0xd7, 0x92, 0x71, 0xa5, 0xd0, 0x71, 0x27, 0x51, 0xd9, 0x46,
   321  	0x4d, 0x56, 0x2f, 0xed, 0x5c, 0xa2, 0x57, 0x33, 0x34, 0xc0, 0xca, 0x05, 0x13, 0xa0, 0xc0, 0x70,
   322  	0x07, 0x79, 0xf3, 0xcf, 0x52, 0x48, 0x77, 0xb1, 0x3e, 0x9f, 0x67, 0x78, 0xc5, 0xb8, 0xf1, 0x16,
   323  	0x97, 0xfe, 0xf0, 0x2c, 0xcb, 0x99, 0x5e, 0x89, 0xea, 0xb2, 0x65, 0x5c, 0xeb, 0x42, 0x66, 0x1e,
   324  	0xce, 0xca, 0x05, 0x2f, 0xf4, 0x05, 0xdf, 0x41, 0x25, 0x39, 0x09, 0x4f, 0xeb, 0xb4, 0x6f, 0x0d,
   325  	0x70, 0x07, 0x29, 0x7c, 0x5e, 0x83, 0x75, 0x34, 0x26, 0xe3, 0xb5, 0x05, 0xa3, 0xf8, 0x15, 0x44,
   326  	0xc1, 0x2c, 0x38, 0x3e, 0x48, 0xbb, 0xba, 0xd2, 0x34, 0xb7, 0xf6, 0x1a, 0x4d, 0x1e, 0x0d, 0x6a,
   327  	0xad, 0xad, 0x69, 0x48, 0x6e, 0x3b, 0x5c, 0x81, 0x8a, 0x86, 0x5e, 0xa8, 0x8b, 0xe4, 0xa8, 0x73,
   328  	0x79, 0x07, 0x05, 0x74, 0x2e, 0xc9, 0x53, 0x72, 0xd8, 0xf4, 0x53, 0xb0, 0x1a, 0x95, 0x85, 0xbf,
   329  	0x80, 0xe0, 0x26, 0x20, 0x24, 0xf4, 0x3d, 0xb8, 0x0f, 0x16, 0xcc, 0x52, 0x7d, 0xc2, 0xf6, 0xfa,
   330  	0x35, 0x79, 0xb8, 0xd5, 0x6d, 0x10, 0x31, 0x19, 0x17, 0x28, 0x04, 0xe4, 0xcb, 0x9a, 0x32, 0x4e,
   331  	0xbb, 0x7a, 0xeb, 0x5d, 0x83, 0xde, 0xbb, 0xee, 0x93, 0xa1, 0xb4, 0xb6, 0x49, 0x5e, 0x1d, 0xe9,
   332  	0x11, 0x19, 0x09, 0x83, 0x6b, 0x6d, 0xa3, 0x5b, 0xb3, 0xe1, 0xf1, 0x41, 0xda, 0x54, 0xcf, 0xbf,
   333  	0x0d, 0xc8, 0xbd, 0x26, 0xf8, 0x29, 0x98, 0x52, 0x66, 0x40, 0x2f, 0xc9, 0xdd, 0x1b, 0x59, 0xe8,
   334  	0xe3, 0x79, 0xbb, 0x13, 0xbb, 0xb9, 0xe3, 0xc9, 0x7e, 0xb1, 0x8e, 0x9f, 0xcc, 0xbe, 0xfc, 0xfc,
   335  	0xfd, 0x75, 0x10, 0xd3, 0xc8, 0xef, 0x40, 0xb9, 0xe8, 0xb6, 0xac, 0x0a, 0x2a, 0x2b, 0xf8, 0x47,
   336  	0x32, 0xaa, 0xa7, 0x45, 0x9f, 0x74, 0xa4, 0x7d, 0x53, 0x8c, 0xa3, 0xbe, 0xdc, 0x99, 0xc4, 0xde,
   337  	0x24, 0x4c, 0x0e, 0x7b, 0x26, 0xaf, 0x82, 0x13, 0x7a, 0x46, 0x46, 0xf5, 0x98, 0x76, 0xf1, 0x5b,
   338  	0xe3, 0xfb, 0x07, 0xfe, 0x91, 0xc7, 0x3f, 0x38, 0xe9, 0xe3, 0xdf, 0xbc, 0xfe, 0xbe, 0x99, 0x06,
   339  	0x3f, 0x36, 0xd3, 0xe0, 0xd7, 0x66, 0x1a, 0x9c, 0x2d, 0xfe, 0x63, 0x91, 0xb3, 0x42, 0x82, 0x72,
   340  	0x2d, 0xe0, 0x7c, 0xe4, 0xf7, 0xf6, 0xc5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xb6, 0x16,
   341  	0x68, 0x83, 0x03, 0x00, 0x00,
   342  }
   343  
   344  // Reference imports to suppress errors if they are not otherwise used.
   345  var _ context.Context
   346  var _ grpc.ClientConn
   347  
   348  // This is a compile-time assertion to ensure that this generated file
   349  // is compatible with the grpc package it is being compiled against.
   350  const _ = grpc.SupportPackageIsVersion4
   351  
   352  // SessionServiceClient is the client API for SessionService service.
   353  //
   354  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   355  type SessionServiceClient interface {
   356  	// Get the current user's info
   357  	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
   358  	// Create a new JWT for authentication and set a cookie if using HTTP
   359  	Create(ctx context.Context, in *SessionCreateRequest, opts ...grpc.CallOption) (*SessionResponse, error)
   360  	// Delete an existing JWT cookie if using HTTP
   361  	Delete(ctx context.Context, in *SessionDeleteRequest, opts ...grpc.CallOption) (*SessionResponse, error)
   362  }
   363  
   364  type sessionServiceClient struct {
   365  	cc *grpc.ClientConn
   366  }
   367  
   368  func NewSessionServiceClient(cc *grpc.ClientConn) SessionServiceClient {
   369  	return &sessionServiceClient{cc}
   370  }
   371  
   372  func (c *sessionServiceClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) {
   373  	out := new(GetUserInfoResponse)
   374  	err := c.cc.Invoke(ctx, "/session.SessionService/GetUserInfo", in, out, opts...)
   375  	if err != nil {
   376  		return nil, err
   377  	}
   378  	return out, nil
   379  }
   380  
   381  func (c *sessionServiceClient) Create(ctx context.Context, in *SessionCreateRequest, opts ...grpc.CallOption) (*SessionResponse, error) {
   382  	out := new(SessionResponse)
   383  	err := c.cc.Invoke(ctx, "/session.SessionService/Create", in, out, opts...)
   384  	if err != nil {
   385  		return nil, err
   386  	}
   387  	return out, nil
   388  }
   389  
   390  func (c *sessionServiceClient) Delete(ctx context.Context, in *SessionDeleteRequest, opts ...grpc.CallOption) (*SessionResponse, error) {
   391  	out := new(SessionResponse)
   392  	err := c.cc.Invoke(ctx, "/session.SessionService/Delete", in, out, opts...)
   393  	if err != nil {
   394  		return nil, err
   395  	}
   396  	return out, nil
   397  }
   398  
   399  // SessionServiceServer is the server API for SessionService service.
   400  type SessionServiceServer interface {
   401  	// Get the current user's info
   402  	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
   403  	// Create a new JWT for authentication and set a cookie if using HTTP
   404  	Create(context.Context, *SessionCreateRequest) (*SessionResponse, error)
   405  	// Delete an existing JWT cookie if using HTTP
   406  	Delete(context.Context, *SessionDeleteRequest) (*SessionResponse, error)
   407  }
   408  
   409  // UnimplementedSessionServiceServer can be embedded to have forward compatible implementations.
   410  type UnimplementedSessionServiceServer struct {
   411  }
   412  
   413  func (*UnimplementedSessionServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoRequest) (*GetUserInfoResponse, error) {
   414  	return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
   415  }
   416  func (*UnimplementedSessionServiceServer) Create(ctx context.Context, req *SessionCreateRequest) (*SessionResponse, error) {
   417  	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
   418  }
   419  func (*UnimplementedSessionServiceServer) Delete(ctx context.Context, req *SessionDeleteRequest) (*SessionResponse, error) {
   420  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   421  }
   422  
   423  func RegisterSessionServiceServer(s *grpc.Server, srv SessionServiceServer) {
   424  	s.RegisterService(&_SessionService_serviceDesc, srv)
   425  }
   426  
   427  func _SessionService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   428  	in := new(GetUserInfoRequest)
   429  	if err := dec(in); err != nil {
   430  		return nil, err
   431  	}
   432  	if interceptor == nil {
   433  		return srv.(SessionServiceServer).GetUserInfo(ctx, in)
   434  	}
   435  	info := &grpc.UnaryServerInfo{
   436  		Server:     srv,
   437  		FullMethod: "/session.SessionService/GetUserInfo",
   438  	}
   439  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   440  		return srv.(SessionServiceServer).GetUserInfo(ctx, req.(*GetUserInfoRequest))
   441  	}
   442  	return interceptor(ctx, in, info, handler)
   443  }
   444  
   445  func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   446  	in := new(SessionCreateRequest)
   447  	if err := dec(in); err != nil {
   448  		return nil, err
   449  	}
   450  	if interceptor == nil {
   451  		return srv.(SessionServiceServer).Create(ctx, in)
   452  	}
   453  	info := &grpc.UnaryServerInfo{
   454  		Server:     srv,
   455  		FullMethod: "/session.SessionService/Create",
   456  	}
   457  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   458  		return srv.(SessionServiceServer).Create(ctx, req.(*SessionCreateRequest))
   459  	}
   460  	return interceptor(ctx, in, info, handler)
   461  }
   462  
   463  func _SessionService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   464  	in := new(SessionDeleteRequest)
   465  	if err := dec(in); err != nil {
   466  		return nil, err
   467  	}
   468  	if interceptor == nil {
   469  		return srv.(SessionServiceServer).Delete(ctx, in)
   470  	}
   471  	info := &grpc.UnaryServerInfo{
   472  		Server:     srv,
   473  		FullMethod: "/session.SessionService/Delete",
   474  	}
   475  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   476  		return srv.(SessionServiceServer).Delete(ctx, req.(*SessionDeleteRequest))
   477  	}
   478  	return interceptor(ctx, in, info, handler)
   479  }
   480  
   481  var _SessionService_serviceDesc = grpc.ServiceDesc{
   482  	ServiceName: "session.SessionService",
   483  	HandlerType: (*SessionServiceServer)(nil),
   484  	Methods: []grpc.MethodDesc{
   485  		{
   486  			MethodName: "GetUserInfo",
   487  			Handler:    _SessionService_GetUserInfo_Handler,
   488  		},
   489  		{
   490  			MethodName: "Create",
   491  			Handler:    _SessionService_Create_Handler,
   492  		},
   493  		{
   494  			MethodName: "Delete",
   495  			Handler:    _SessionService_Delete_Handler,
   496  		},
   497  	},
   498  	Streams:  []grpc.StreamDesc{},
   499  	Metadata: "server/session/session.proto",
   500  }
   501  
   502  func (m *SessionCreateRequest) Marshal() (dAtA []byte, err error) {
   503  	size := m.Size()
   504  	dAtA = make([]byte, size)
   505  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   506  	if err != nil {
   507  		return nil, err
   508  	}
   509  	return dAtA[:n], nil
   510  }
   511  
   512  func (m *SessionCreateRequest) MarshalTo(dAtA []byte) (int, error) {
   513  	size := m.Size()
   514  	return m.MarshalToSizedBuffer(dAtA[:size])
   515  }
   516  
   517  func (m *SessionCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   518  	i := len(dAtA)
   519  	_ = i
   520  	var l int
   521  	_ = l
   522  	if m.XXX_unrecognized != nil {
   523  		i -= len(m.XXX_unrecognized)
   524  		copy(dAtA[i:], m.XXX_unrecognized)
   525  	}
   526  	if len(m.Token) > 0 {
   527  		i -= len(m.Token)
   528  		copy(dAtA[i:], m.Token)
   529  		i = encodeVarintSession(dAtA, i, uint64(len(m.Token)))
   530  		i--
   531  		dAtA[i] = 0x1a
   532  	}
   533  	if len(m.Password) > 0 {
   534  		i -= len(m.Password)
   535  		copy(dAtA[i:], m.Password)
   536  		i = encodeVarintSession(dAtA, i, uint64(len(m.Password)))
   537  		i--
   538  		dAtA[i] = 0x12
   539  	}
   540  	if len(m.Username) > 0 {
   541  		i -= len(m.Username)
   542  		copy(dAtA[i:], m.Username)
   543  		i = encodeVarintSession(dAtA, i, uint64(len(m.Username)))
   544  		i--
   545  		dAtA[i] = 0xa
   546  	}
   547  	return len(dAtA) - i, nil
   548  }
   549  
   550  func (m *SessionDeleteRequest) Marshal() (dAtA []byte, err error) {
   551  	size := m.Size()
   552  	dAtA = make([]byte, size)
   553  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   554  	if err != nil {
   555  		return nil, err
   556  	}
   557  	return dAtA[:n], nil
   558  }
   559  
   560  func (m *SessionDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
   561  	size := m.Size()
   562  	return m.MarshalToSizedBuffer(dAtA[:size])
   563  }
   564  
   565  func (m *SessionDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   566  	i := len(dAtA)
   567  	_ = i
   568  	var l int
   569  	_ = l
   570  	if m.XXX_unrecognized != nil {
   571  		i -= len(m.XXX_unrecognized)
   572  		copy(dAtA[i:], m.XXX_unrecognized)
   573  	}
   574  	return len(dAtA) - i, nil
   575  }
   576  
   577  func (m *SessionResponse) Marshal() (dAtA []byte, err error) {
   578  	size := m.Size()
   579  	dAtA = make([]byte, size)
   580  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   581  	if err != nil {
   582  		return nil, err
   583  	}
   584  	return dAtA[:n], nil
   585  }
   586  
   587  func (m *SessionResponse) MarshalTo(dAtA []byte) (int, error) {
   588  	size := m.Size()
   589  	return m.MarshalToSizedBuffer(dAtA[:size])
   590  }
   591  
   592  func (m *SessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   593  	i := len(dAtA)
   594  	_ = i
   595  	var l int
   596  	_ = l
   597  	if m.XXX_unrecognized != nil {
   598  		i -= len(m.XXX_unrecognized)
   599  		copy(dAtA[i:], m.XXX_unrecognized)
   600  	}
   601  	if len(m.Token) > 0 {
   602  		i -= len(m.Token)
   603  		copy(dAtA[i:], m.Token)
   604  		i = encodeVarintSession(dAtA, i, uint64(len(m.Token)))
   605  		i--
   606  		dAtA[i] = 0xa
   607  	}
   608  	return len(dAtA) - i, nil
   609  }
   610  
   611  func (m *GetUserInfoRequest) Marshal() (dAtA []byte, err error) {
   612  	size := m.Size()
   613  	dAtA = make([]byte, size)
   614  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   615  	if err != nil {
   616  		return nil, err
   617  	}
   618  	return dAtA[:n], nil
   619  }
   620  
   621  func (m *GetUserInfoRequest) MarshalTo(dAtA []byte) (int, error) {
   622  	size := m.Size()
   623  	return m.MarshalToSizedBuffer(dAtA[:size])
   624  }
   625  
   626  func (m *GetUserInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   627  	i := len(dAtA)
   628  	_ = i
   629  	var l int
   630  	_ = l
   631  	if m.XXX_unrecognized != nil {
   632  		i -= len(m.XXX_unrecognized)
   633  		copy(dAtA[i:], m.XXX_unrecognized)
   634  	}
   635  	return len(dAtA) - i, nil
   636  }
   637  
   638  func (m *GetUserInfoResponse) Marshal() (dAtA []byte, err error) {
   639  	size := m.Size()
   640  	dAtA = make([]byte, size)
   641  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   642  	if err != nil {
   643  		return nil, err
   644  	}
   645  	return dAtA[:n], nil
   646  }
   647  
   648  func (m *GetUserInfoResponse) MarshalTo(dAtA []byte) (int, error) {
   649  	size := m.Size()
   650  	return m.MarshalToSizedBuffer(dAtA[:size])
   651  }
   652  
   653  func (m *GetUserInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   654  	i := len(dAtA)
   655  	_ = i
   656  	var l int
   657  	_ = l
   658  	if m.XXX_unrecognized != nil {
   659  		i -= len(m.XXX_unrecognized)
   660  		copy(dAtA[i:], m.XXX_unrecognized)
   661  	}
   662  	if len(m.Groups) > 0 {
   663  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
   664  			i -= len(m.Groups[iNdEx])
   665  			copy(dAtA[i:], m.Groups[iNdEx])
   666  			i = encodeVarintSession(dAtA, i, uint64(len(m.Groups[iNdEx])))
   667  			i--
   668  			dAtA[i] = 0x22
   669  		}
   670  	}
   671  	if len(m.Iss) > 0 {
   672  		i -= len(m.Iss)
   673  		copy(dAtA[i:], m.Iss)
   674  		i = encodeVarintSession(dAtA, i, uint64(len(m.Iss)))
   675  		i--
   676  		dAtA[i] = 0x1a
   677  	}
   678  	if len(m.Username) > 0 {
   679  		i -= len(m.Username)
   680  		copy(dAtA[i:], m.Username)
   681  		i = encodeVarintSession(dAtA, i, uint64(len(m.Username)))
   682  		i--
   683  		dAtA[i] = 0x12
   684  	}
   685  	if m.LoggedIn {
   686  		i--
   687  		if m.LoggedIn {
   688  			dAtA[i] = 1
   689  		} else {
   690  			dAtA[i] = 0
   691  		}
   692  		i--
   693  		dAtA[i] = 0x8
   694  	}
   695  	return len(dAtA) - i, nil
   696  }
   697  
   698  func encodeVarintSession(dAtA []byte, offset int, v uint64) int {
   699  	offset -= sovSession(v)
   700  	base := offset
   701  	for v >= 1<<7 {
   702  		dAtA[offset] = uint8(v&0x7f | 0x80)
   703  		v >>= 7
   704  		offset++
   705  	}
   706  	dAtA[offset] = uint8(v)
   707  	return base
   708  }
   709  func (m *SessionCreateRequest) Size() (n int) {
   710  	if m == nil {
   711  		return 0
   712  	}
   713  	var l int
   714  	_ = l
   715  	l = len(m.Username)
   716  	if l > 0 {
   717  		n += 1 + l + sovSession(uint64(l))
   718  	}
   719  	l = len(m.Password)
   720  	if l > 0 {
   721  		n += 1 + l + sovSession(uint64(l))
   722  	}
   723  	l = len(m.Token)
   724  	if l > 0 {
   725  		n += 1 + l + sovSession(uint64(l))
   726  	}
   727  	if m.XXX_unrecognized != nil {
   728  		n += len(m.XXX_unrecognized)
   729  	}
   730  	return n
   731  }
   732  
   733  func (m *SessionDeleteRequest) Size() (n int) {
   734  	if m == nil {
   735  		return 0
   736  	}
   737  	var l int
   738  	_ = l
   739  	if m.XXX_unrecognized != nil {
   740  		n += len(m.XXX_unrecognized)
   741  	}
   742  	return n
   743  }
   744  
   745  func (m *SessionResponse) Size() (n int) {
   746  	if m == nil {
   747  		return 0
   748  	}
   749  	var l int
   750  	_ = l
   751  	l = len(m.Token)
   752  	if l > 0 {
   753  		n += 1 + l + sovSession(uint64(l))
   754  	}
   755  	if m.XXX_unrecognized != nil {
   756  		n += len(m.XXX_unrecognized)
   757  	}
   758  	return n
   759  }
   760  
   761  func (m *GetUserInfoRequest) Size() (n int) {
   762  	if m == nil {
   763  		return 0
   764  	}
   765  	var l int
   766  	_ = l
   767  	if m.XXX_unrecognized != nil {
   768  		n += len(m.XXX_unrecognized)
   769  	}
   770  	return n
   771  }
   772  
   773  func (m *GetUserInfoResponse) Size() (n int) {
   774  	if m == nil {
   775  		return 0
   776  	}
   777  	var l int
   778  	_ = l
   779  	if m.LoggedIn {
   780  		n += 2
   781  	}
   782  	l = len(m.Username)
   783  	if l > 0 {
   784  		n += 1 + l + sovSession(uint64(l))
   785  	}
   786  	l = len(m.Iss)
   787  	if l > 0 {
   788  		n += 1 + l + sovSession(uint64(l))
   789  	}
   790  	if len(m.Groups) > 0 {
   791  		for _, s := range m.Groups {
   792  			l = len(s)
   793  			n += 1 + l + sovSession(uint64(l))
   794  		}
   795  	}
   796  	if m.XXX_unrecognized != nil {
   797  		n += len(m.XXX_unrecognized)
   798  	}
   799  	return n
   800  }
   801  
   802  func sovSession(x uint64) (n int) {
   803  	return (math_bits.Len64(x|1) + 6) / 7
   804  }
   805  func sozSession(x uint64) (n int) {
   806  	return sovSession(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   807  }
   808  func (m *SessionCreateRequest) Unmarshal(dAtA []byte) error {
   809  	l := len(dAtA)
   810  	iNdEx := 0
   811  	for iNdEx < l {
   812  		preIndex := iNdEx
   813  		var wire uint64
   814  		for shift := uint(0); ; shift += 7 {
   815  			if shift >= 64 {
   816  				return ErrIntOverflowSession
   817  			}
   818  			if iNdEx >= l {
   819  				return io.ErrUnexpectedEOF
   820  			}
   821  			b := dAtA[iNdEx]
   822  			iNdEx++
   823  			wire |= uint64(b&0x7F) << shift
   824  			if b < 0x80 {
   825  				break
   826  			}
   827  		}
   828  		fieldNum := int32(wire >> 3)
   829  		wireType := int(wire & 0x7)
   830  		if wireType == 4 {
   831  			return fmt.Errorf("proto: SessionCreateRequest: wiretype end group for non-group")
   832  		}
   833  		if fieldNum <= 0 {
   834  			return fmt.Errorf("proto: SessionCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   835  		}
   836  		switch fieldNum {
   837  		case 1:
   838  			if wireType != 2 {
   839  				return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
   840  			}
   841  			var stringLen uint64
   842  			for shift := uint(0); ; shift += 7 {
   843  				if shift >= 64 {
   844  					return ErrIntOverflowSession
   845  				}
   846  				if iNdEx >= l {
   847  					return io.ErrUnexpectedEOF
   848  				}
   849  				b := dAtA[iNdEx]
   850  				iNdEx++
   851  				stringLen |= uint64(b&0x7F) << shift
   852  				if b < 0x80 {
   853  					break
   854  				}
   855  			}
   856  			intStringLen := int(stringLen)
   857  			if intStringLen < 0 {
   858  				return ErrInvalidLengthSession
   859  			}
   860  			postIndex := iNdEx + intStringLen
   861  			if postIndex < 0 {
   862  				return ErrInvalidLengthSession
   863  			}
   864  			if postIndex > l {
   865  				return io.ErrUnexpectedEOF
   866  			}
   867  			m.Username = string(dAtA[iNdEx:postIndex])
   868  			iNdEx = postIndex
   869  		case 2:
   870  			if wireType != 2 {
   871  				return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
   872  			}
   873  			var stringLen uint64
   874  			for shift := uint(0); ; shift += 7 {
   875  				if shift >= 64 {
   876  					return ErrIntOverflowSession
   877  				}
   878  				if iNdEx >= l {
   879  					return io.ErrUnexpectedEOF
   880  				}
   881  				b := dAtA[iNdEx]
   882  				iNdEx++
   883  				stringLen |= uint64(b&0x7F) << shift
   884  				if b < 0x80 {
   885  					break
   886  				}
   887  			}
   888  			intStringLen := int(stringLen)
   889  			if intStringLen < 0 {
   890  				return ErrInvalidLengthSession
   891  			}
   892  			postIndex := iNdEx + intStringLen
   893  			if postIndex < 0 {
   894  				return ErrInvalidLengthSession
   895  			}
   896  			if postIndex > l {
   897  				return io.ErrUnexpectedEOF
   898  			}
   899  			m.Password = string(dAtA[iNdEx:postIndex])
   900  			iNdEx = postIndex
   901  		case 3:
   902  			if wireType != 2 {
   903  				return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
   904  			}
   905  			var stringLen uint64
   906  			for shift := uint(0); ; shift += 7 {
   907  				if shift >= 64 {
   908  					return ErrIntOverflowSession
   909  				}
   910  				if iNdEx >= l {
   911  					return io.ErrUnexpectedEOF
   912  				}
   913  				b := dAtA[iNdEx]
   914  				iNdEx++
   915  				stringLen |= uint64(b&0x7F) << shift
   916  				if b < 0x80 {
   917  					break
   918  				}
   919  			}
   920  			intStringLen := int(stringLen)
   921  			if intStringLen < 0 {
   922  				return ErrInvalidLengthSession
   923  			}
   924  			postIndex := iNdEx + intStringLen
   925  			if postIndex < 0 {
   926  				return ErrInvalidLengthSession
   927  			}
   928  			if postIndex > l {
   929  				return io.ErrUnexpectedEOF
   930  			}
   931  			m.Token = string(dAtA[iNdEx:postIndex])
   932  			iNdEx = postIndex
   933  		default:
   934  			iNdEx = preIndex
   935  			skippy, err := skipSession(dAtA[iNdEx:])
   936  			if err != nil {
   937  				return err
   938  			}
   939  			if skippy < 0 {
   940  				return ErrInvalidLengthSession
   941  			}
   942  			if (iNdEx + skippy) < 0 {
   943  				return ErrInvalidLengthSession
   944  			}
   945  			if (iNdEx + skippy) > l {
   946  				return io.ErrUnexpectedEOF
   947  			}
   948  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   949  			iNdEx += skippy
   950  		}
   951  	}
   952  
   953  	if iNdEx > l {
   954  		return io.ErrUnexpectedEOF
   955  	}
   956  	return nil
   957  }
   958  func (m *SessionDeleteRequest) Unmarshal(dAtA []byte) error {
   959  	l := len(dAtA)
   960  	iNdEx := 0
   961  	for iNdEx < l {
   962  		preIndex := iNdEx
   963  		var wire uint64
   964  		for shift := uint(0); ; shift += 7 {
   965  			if shift >= 64 {
   966  				return ErrIntOverflowSession
   967  			}
   968  			if iNdEx >= l {
   969  				return io.ErrUnexpectedEOF
   970  			}
   971  			b := dAtA[iNdEx]
   972  			iNdEx++
   973  			wire |= uint64(b&0x7F) << shift
   974  			if b < 0x80 {
   975  				break
   976  			}
   977  		}
   978  		fieldNum := int32(wire >> 3)
   979  		wireType := int(wire & 0x7)
   980  		if wireType == 4 {
   981  			return fmt.Errorf("proto: SessionDeleteRequest: wiretype end group for non-group")
   982  		}
   983  		if fieldNum <= 0 {
   984  			return fmt.Errorf("proto: SessionDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   985  		}
   986  		switch fieldNum {
   987  		default:
   988  			iNdEx = preIndex
   989  			skippy, err := skipSession(dAtA[iNdEx:])
   990  			if err != nil {
   991  				return err
   992  			}
   993  			if skippy < 0 {
   994  				return ErrInvalidLengthSession
   995  			}
   996  			if (iNdEx + skippy) < 0 {
   997  				return ErrInvalidLengthSession
   998  			}
   999  			if (iNdEx + skippy) > l {
  1000  				return io.ErrUnexpectedEOF
  1001  			}
  1002  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1003  			iNdEx += skippy
  1004  		}
  1005  	}
  1006  
  1007  	if iNdEx > l {
  1008  		return io.ErrUnexpectedEOF
  1009  	}
  1010  	return nil
  1011  }
  1012  func (m *SessionResponse) Unmarshal(dAtA []byte) error {
  1013  	l := len(dAtA)
  1014  	iNdEx := 0
  1015  	for iNdEx < l {
  1016  		preIndex := iNdEx
  1017  		var wire uint64
  1018  		for shift := uint(0); ; shift += 7 {
  1019  			if shift >= 64 {
  1020  				return ErrIntOverflowSession
  1021  			}
  1022  			if iNdEx >= l {
  1023  				return io.ErrUnexpectedEOF
  1024  			}
  1025  			b := dAtA[iNdEx]
  1026  			iNdEx++
  1027  			wire |= uint64(b&0x7F) << shift
  1028  			if b < 0x80 {
  1029  				break
  1030  			}
  1031  		}
  1032  		fieldNum := int32(wire >> 3)
  1033  		wireType := int(wire & 0x7)
  1034  		if wireType == 4 {
  1035  			return fmt.Errorf("proto: SessionResponse: wiretype end group for non-group")
  1036  		}
  1037  		if fieldNum <= 0 {
  1038  			return fmt.Errorf("proto: SessionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1039  		}
  1040  		switch fieldNum {
  1041  		case 1:
  1042  			if wireType != 2 {
  1043  				return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1044  			}
  1045  			var stringLen uint64
  1046  			for shift := uint(0); ; shift += 7 {
  1047  				if shift >= 64 {
  1048  					return ErrIntOverflowSession
  1049  				}
  1050  				if iNdEx >= l {
  1051  					return io.ErrUnexpectedEOF
  1052  				}
  1053  				b := dAtA[iNdEx]
  1054  				iNdEx++
  1055  				stringLen |= uint64(b&0x7F) << shift
  1056  				if b < 0x80 {
  1057  					break
  1058  				}
  1059  			}
  1060  			intStringLen := int(stringLen)
  1061  			if intStringLen < 0 {
  1062  				return ErrInvalidLengthSession
  1063  			}
  1064  			postIndex := iNdEx + intStringLen
  1065  			if postIndex < 0 {
  1066  				return ErrInvalidLengthSession
  1067  			}
  1068  			if postIndex > l {
  1069  				return io.ErrUnexpectedEOF
  1070  			}
  1071  			m.Token = string(dAtA[iNdEx:postIndex])
  1072  			iNdEx = postIndex
  1073  		default:
  1074  			iNdEx = preIndex
  1075  			skippy, err := skipSession(dAtA[iNdEx:])
  1076  			if err != nil {
  1077  				return err
  1078  			}
  1079  			if skippy < 0 {
  1080  				return ErrInvalidLengthSession
  1081  			}
  1082  			if (iNdEx + skippy) < 0 {
  1083  				return ErrInvalidLengthSession
  1084  			}
  1085  			if (iNdEx + skippy) > l {
  1086  				return io.ErrUnexpectedEOF
  1087  			}
  1088  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1089  			iNdEx += skippy
  1090  		}
  1091  	}
  1092  
  1093  	if iNdEx > l {
  1094  		return io.ErrUnexpectedEOF
  1095  	}
  1096  	return nil
  1097  }
  1098  func (m *GetUserInfoRequest) Unmarshal(dAtA []byte) error {
  1099  	l := len(dAtA)
  1100  	iNdEx := 0
  1101  	for iNdEx < l {
  1102  		preIndex := iNdEx
  1103  		var wire uint64
  1104  		for shift := uint(0); ; shift += 7 {
  1105  			if shift >= 64 {
  1106  				return ErrIntOverflowSession
  1107  			}
  1108  			if iNdEx >= l {
  1109  				return io.ErrUnexpectedEOF
  1110  			}
  1111  			b := dAtA[iNdEx]
  1112  			iNdEx++
  1113  			wire |= uint64(b&0x7F) << shift
  1114  			if b < 0x80 {
  1115  				break
  1116  			}
  1117  		}
  1118  		fieldNum := int32(wire >> 3)
  1119  		wireType := int(wire & 0x7)
  1120  		if wireType == 4 {
  1121  			return fmt.Errorf("proto: GetUserInfoRequest: wiretype end group for non-group")
  1122  		}
  1123  		if fieldNum <= 0 {
  1124  			return fmt.Errorf("proto: GetUserInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1125  		}
  1126  		switch fieldNum {
  1127  		default:
  1128  			iNdEx = preIndex
  1129  			skippy, err := skipSession(dAtA[iNdEx:])
  1130  			if err != nil {
  1131  				return err
  1132  			}
  1133  			if skippy < 0 {
  1134  				return ErrInvalidLengthSession
  1135  			}
  1136  			if (iNdEx + skippy) < 0 {
  1137  				return ErrInvalidLengthSession
  1138  			}
  1139  			if (iNdEx + skippy) > l {
  1140  				return io.ErrUnexpectedEOF
  1141  			}
  1142  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1143  			iNdEx += skippy
  1144  		}
  1145  	}
  1146  
  1147  	if iNdEx > l {
  1148  		return io.ErrUnexpectedEOF
  1149  	}
  1150  	return nil
  1151  }
  1152  func (m *GetUserInfoResponse) Unmarshal(dAtA []byte) error {
  1153  	l := len(dAtA)
  1154  	iNdEx := 0
  1155  	for iNdEx < l {
  1156  		preIndex := iNdEx
  1157  		var wire uint64
  1158  		for shift := uint(0); ; shift += 7 {
  1159  			if shift >= 64 {
  1160  				return ErrIntOverflowSession
  1161  			}
  1162  			if iNdEx >= l {
  1163  				return io.ErrUnexpectedEOF
  1164  			}
  1165  			b := dAtA[iNdEx]
  1166  			iNdEx++
  1167  			wire |= uint64(b&0x7F) << shift
  1168  			if b < 0x80 {
  1169  				break
  1170  			}
  1171  		}
  1172  		fieldNum := int32(wire >> 3)
  1173  		wireType := int(wire & 0x7)
  1174  		if wireType == 4 {
  1175  			return fmt.Errorf("proto: GetUserInfoResponse: wiretype end group for non-group")
  1176  		}
  1177  		if fieldNum <= 0 {
  1178  			return fmt.Errorf("proto: GetUserInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1179  		}
  1180  		switch fieldNum {
  1181  		case 1:
  1182  			if wireType != 0 {
  1183  				return fmt.Errorf("proto: wrong wireType = %d for field LoggedIn", wireType)
  1184  			}
  1185  			var v int
  1186  			for shift := uint(0); ; shift += 7 {
  1187  				if shift >= 64 {
  1188  					return ErrIntOverflowSession
  1189  				}
  1190  				if iNdEx >= l {
  1191  					return io.ErrUnexpectedEOF
  1192  				}
  1193  				b := dAtA[iNdEx]
  1194  				iNdEx++
  1195  				v |= int(b&0x7F) << shift
  1196  				if b < 0x80 {
  1197  					break
  1198  				}
  1199  			}
  1200  			m.LoggedIn = bool(v != 0)
  1201  		case 2:
  1202  			if wireType != 2 {
  1203  				return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
  1204  			}
  1205  			var stringLen uint64
  1206  			for shift := uint(0); ; shift += 7 {
  1207  				if shift >= 64 {
  1208  					return ErrIntOverflowSession
  1209  				}
  1210  				if iNdEx >= l {
  1211  					return io.ErrUnexpectedEOF
  1212  				}
  1213  				b := dAtA[iNdEx]
  1214  				iNdEx++
  1215  				stringLen |= uint64(b&0x7F) << shift
  1216  				if b < 0x80 {
  1217  					break
  1218  				}
  1219  			}
  1220  			intStringLen := int(stringLen)
  1221  			if intStringLen < 0 {
  1222  				return ErrInvalidLengthSession
  1223  			}
  1224  			postIndex := iNdEx + intStringLen
  1225  			if postIndex < 0 {
  1226  				return ErrInvalidLengthSession
  1227  			}
  1228  			if postIndex > l {
  1229  				return io.ErrUnexpectedEOF
  1230  			}
  1231  			m.Username = string(dAtA[iNdEx:postIndex])
  1232  			iNdEx = postIndex
  1233  		case 3:
  1234  			if wireType != 2 {
  1235  				return fmt.Errorf("proto: wrong wireType = %d for field Iss", wireType)
  1236  			}
  1237  			var stringLen uint64
  1238  			for shift := uint(0); ; shift += 7 {
  1239  				if shift >= 64 {
  1240  					return ErrIntOverflowSession
  1241  				}
  1242  				if iNdEx >= l {
  1243  					return io.ErrUnexpectedEOF
  1244  				}
  1245  				b := dAtA[iNdEx]
  1246  				iNdEx++
  1247  				stringLen |= uint64(b&0x7F) << shift
  1248  				if b < 0x80 {
  1249  					break
  1250  				}
  1251  			}
  1252  			intStringLen := int(stringLen)
  1253  			if intStringLen < 0 {
  1254  				return ErrInvalidLengthSession
  1255  			}
  1256  			postIndex := iNdEx + intStringLen
  1257  			if postIndex < 0 {
  1258  				return ErrInvalidLengthSession
  1259  			}
  1260  			if postIndex > l {
  1261  				return io.ErrUnexpectedEOF
  1262  			}
  1263  			m.Iss = string(dAtA[iNdEx:postIndex])
  1264  			iNdEx = postIndex
  1265  		case 4:
  1266  			if wireType != 2 {
  1267  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  1268  			}
  1269  			var stringLen uint64
  1270  			for shift := uint(0); ; shift += 7 {
  1271  				if shift >= 64 {
  1272  					return ErrIntOverflowSession
  1273  				}
  1274  				if iNdEx >= l {
  1275  					return io.ErrUnexpectedEOF
  1276  				}
  1277  				b := dAtA[iNdEx]
  1278  				iNdEx++
  1279  				stringLen |= uint64(b&0x7F) << shift
  1280  				if b < 0x80 {
  1281  					break
  1282  				}
  1283  			}
  1284  			intStringLen := int(stringLen)
  1285  			if intStringLen < 0 {
  1286  				return ErrInvalidLengthSession
  1287  			}
  1288  			postIndex := iNdEx + intStringLen
  1289  			if postIndex < 0 {
  1290  				return ErrInvalidLengthSession
  1291  			}
  1292  			if postIndex > l {
  1293  				return io.ErrUnexpectedEOF
  1294  			}
  1295  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
  1296  			iNdEx = postIndex
  1297  		default:
  1298  			iNdEx = preIndex
  1299  			skippy, err := skipSession(dAtA[iNdEx:])
  1300  			if err != nil {
  1301  				return err
  1302  			}
  1303  			if skippy < 0 {
  1304  				return ErrInvalidLengthSession
  1305  			}
  1306  			if (iNdEx + skippy) < 0 {
  1307  				return ErrInvalidLengthSession
  1308  			}
  1309  			if (iNdEx + skippy) > l {
  1310  				return io.ErrUnexpectedEOF
  1311  			}
  1312  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1313  			iNdEx += skippy
  1314  		}
  1315  	}
  1316  
  1317  	if iNdEx > l {
  1318  		return io.ErrUnexpectedEOF
  1319  	}
  1320  	return nil
  1321  }
  1322  func skipSession(dAtA []byte) (n int, err error) {
  1323  	l := len(dAtA)
  1324  	iNdEx := 0
  1325  	depth := 0
  1326  	for iNdEx < l {
  1327  		var wire uint64
  1328  		for shift := uint(0); ; shift += 7 {
  1329  			if shift >= 64 {
  1330  				return 0, ErrIntOverflowSession
  1331  			}
  1332  			if iNdEx >= l {
  1333  				return 0, io.ErrUnexpectedEOF
  1334  			}
  1335  			b := dAtA[iNdEx]
  1336  			iNdEx++
  1337  			wire |= (uint64(b) & 0x7F) << shift
  1338  			if b < 0x80 {
  1339  				break
  1340  			}
  1341  		}
  1342  		wireType := int(wire & 0x7)
  1343  		switch wireType {
  1344  		case 0:
  1345  			for shift := uint(0); ; shift += 7 {
  1346  				if shift >= 64 {
  1347  					return 0, ErrIntOverflowSession
  1348  				}
  1349  				if iNdEx >= l {
  1350  					return 0, io.ErrUnexpectedEOF
  1351  				}
  1352  				iNdEx++
  1353  				if dAtA[iNdEx-1] < 0x80 {
  1354  					break
  1355  				}
  1356  			}
  1357  		case 1:
  1358  			iNdEx += 8
  1359  		case 2:
  1360  			var length int
  1361  			for shift := uint(0); ; shift += 7 {
  1362  				if shift >= 64 {
  1363  					return 0, ErrIntOverflowSession
  1364  				}
  1365  				if iNdEx >= l {
  1366  					return 0, io.ErrUnexpectedEOF
  1367  				}
  1368  				b := dAtA[iNdEx]
  1369  				iNdEx++
  1370  				length |= (int(b) & 0x7F) << shift
  1371  				if b < 0x80 {
  1372  					break
  1373  				}
  1374  			}
  1375  			if length < 0 {
  1376  				return 0, ErrInvalidLengthSession
  1377  			}
  1378  			iNdEx += length
  1379  		case 3:
  1380  			depth++
  1381  		case 4:
  1382  			if depth == 0 {
  1383  				return 0, ErrUnexpectedEndOfGroupSession
  1384  			}
  1385  			depth--
  1386  		case 5:
  1387  			iNdEx += 4
  1388  		default:
  1389  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1390  		}
  1391  		if iNdEx < 0 {
  1392  			return 0, ErrInvalidLengthSession
  1393  		}
  1394  		if depth == 0 {
  1395  			return iNdEx, nil
  1396  		}
  1397  	}
  1398  	return 0, io.ErrUnexpectedEOF
  1399  }
  1400  
  1401  var (
  1402  	ErrInvalidLengthSession        = fmt.Errorf("proto: negative length found during unmarshaling")
  1403  	ErrIntOverflowSession          = fmt.Errorf("proto: integer overflow")
  1404  	ErrUnexpectedEndOfGroupSession = fmt.Errorf("proto: unexpected end of group")
  1405  )