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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/account/account.proto
     3  
     4  package account
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	_ "google.golang.org/genproto/googleapis/api/annotations"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	io "io"
    16  	math "math"
    17  	math_bits "math/bits"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    30  
    31  type UpdatePasswordRequest struct {
    32  	NewPassword          string   `protobuf:"bytes,1,opt,name=newPassword,proto3" json:"newPassword,omitempty"`
    33  	CurrentPassword      string   `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword,omitempty"`
    34  	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
    35  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    36  	XXX_unrecognized     []byte   `json:"-"`
    37  	XXX_sizecache        int32    `json:"-"`
    38  }
    39  
    40  func (m *UpdatePasswordRequest) Reset()         { *m = UpdatePasswordRequest{} }
    41  func (m *UpdatePasswordRequest) String() string { return proto.CompactTextString(m) }
    42  func (*UpdatePasswordRequest) ProtoMessage()    {}
    43  func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_56d089a9b5e998c0, []int{0}
    45  }
    46  func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	if deterministic {
    51  		return xxx_messageInfo_UpdatePasswordRequest.Marshal(b, m, deterministic)
    52  	} else {
    53  		b = b[:cap(b)]
    54  		n, err := m.MarshalToSizedBuffer(b)
    55  		if err != nil {
    56  			return nil, err
    57  		}
    58  		return b[:n], nil
    59  	}
    60  }
    61  func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_UpdatePasswordRequest.Merge(m, src)
    63  }
    64  func (m *UpdatePasswordRequest) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *UpdatePasswordRequest) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_UpdatePasswordRequest.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_UpdatePasswordRequest proto.InternalMessageInfo
    72  
    73  func (m *UpdatePasswordRequest) GetNewPassword() string {
    74  	if m != nil {
    75  		return m.NewPassword
    76  	}
    77  	return ""
    78  }
    79  
    80  func (m *UpdatePasswordRequest) GetCurrentPassword() string {
    81  	if m != nil {
    82  		return m.CurrentPassword
    83  	}
    84  	return ""
    85  }
    86  
    87  func (m *UpdatePasswordRequest) GetName() string {
    88  	if m != nil {
    89  		return m.Name
    90  	}
    91  	return ""
    92  }
    93  
    94  type UpdatePasswordResponse struct {
    95  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    96  	XXX_unrecognized     []byte   `json:"-"`
    97  	XXX_sizecache        int32    `json:"-"`
    98  }
    99  
   100  func (m *UpdatePasswordResponse) Reset()         { *m = UpdatePasswordResponse{} }
   101  func (m *UpdatePasswordResponse) String() string { return proto.CompactTextString(m) }
   102  func (*UpdatePasswordResponse) ProtoMessage()    {}
   103  func (*UpdatePasswordResponse) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_56d089a9b5e998c0, []int{1}
   105  }
   106  func (m *UpdatePasswordResponse) XXX_Unmarshal(b []byte) error {
   107  	return m.Unmarshal(b)
   108  }
   109  func (m *UpdatePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	if deterministic {
   111  		return xxx_messageInfo_UpdatePasswordResponse.Marshal(b, m, deterministic)
   112  	} else {
   113  		b = b[:cap(b)]
   114  		n, err := m.MarshalToSizedBuffer(b)
   115  		if err != nil {
   116  			return nil, err
   117  		}
   118  		return b[:n], nil
   119  	}
   120  }
   121  func (m *UpdatePasswordResponse) XXX_Merge(src proto.Message) {
   122  	xxx_messageInfo_UpdatePasswordResponse.Merge(m, src)
   123  }
   124  func (m *UpdatePasswordResponse) XXX_Size() int {
   125  	return m.Size()
   126  }
   127  func (m *UpdatePasswordResponse) XXX_DiscardUnknown() {
   128  	xxx_messageInfo_UpdatePasswordResponse.DiscardUnknown(m)
   129  }
   130  
   131  var xxx_messageInfo_UpdatePasswordResponse proto.InternalMessageInfo
   132  
   133  type CanIRequest struct {
   134  	Resource             string   `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
   135  	Action               string   `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
   136  	Subresource          string   `protobuf:"bytes,3,opt,name=subresource,proto3" json:"subresource,omitempty"`
   137  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   138  	XXX_unrecognized     []byte   `json:"-"`
   139  	XXX_sizecache        int32    `json:"-"`
   140  }
   141  
   142  func (m *CanIRequest) Reset()         { *m = CanIRequest{} }
   143  func (m *CanIRequest) String() string { return proto.CompactTextString(m) }
   144  func (*CanIRequest) ProtoMessage()    {}
   145  func (*CanIRequest) Descriptor() ([]byte, []int) {
   146  	return fileDescriptor_56d089a9b5e998c0, []int{2}
   147  }
   148  func (m *CanIRequest) XXX_Unmarshal(b []byte) error {
   149  	return m.Unmarshal(b)
   150  }
   151  func (m *CanIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   152  	if deterministic {
   153  		return xxx_messageInfo_CanIRequest.Marshal(b, m, deterministic)
   154  	} else {
   155  		b = b[:cap(b)]
   156  		n, err := m.MarshalToSizedBuffer(b)
   157  		if err != nil {
   158  			return nil, err
   159  		}
   160  		return b[:n], nil
   161  	}
   162  }
   163  func (m *CanIRequest) XXX_Merge(src proto.Message) {
   164  	xxx_messageInfo_CanIRequest.Merge(m, src)
   165  }
   166  func (m *CanIRequest) XXX_Size() int {
   167  	return m.Size()
   168  }
   169  func (m *CanIRequest) XXX_DiscardUnknown() {
   170  	xxx_messageInfo_CanIRequest.DiscardUnknown(m)
   171  }
   172  
   173  var xxx_messageInfo_CanIRequest proto.InternalMessageInfo
   174  
   175  func (m *CanIRequest) GetResource() string {
   176  	if m != nil {
   177  		return m.Resource
   178  	}
   179  	return ""
   180  }
   181  
   182  func (m *CanIRequest) GetAction() string {
   183  	if m != nil {
   184  		return m.Action
   185  	}
   186  	return ""
   187  }
   188  
   189  func (m *CanIRequest) GetSubresource() string {
   190  	if m != nil {
   191  		return m.Subresource
   192  	}
   193  	return ""
   194  }
   195  
   196  type CanIResponse struct {
   197  	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
   198  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   199  	XXX_unrecognized     []byte   `json:"-"`
   200  	XXX_sizecache        int32    `json:"-"`
   201  }
   202  
   203  func (m *CanIResponse) Reset()         { *m = CanIResponse{} }
   204  func (m *CanIResponse) String() string { return proto.CompactTextString(m) }
   205  func (*CanIResponse) ProtoMessage()    {}
   206  func (*CanIResponse) Descriptor() ([]byte, []int) {
   207  	return fileDescriptor_56d089a9b5e998c0, []int{3}
   208  }
   209  func (m *CanIResponse) XXX_Unmarshal(b []byte) error {
   210  	return m.Unmarshal(b)
   211  }
   212  func (m *CanIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   213  	if deterministic {
   214  		return xxx_messageInfo_CanIResponse.Marshal(b, m, deterministic)
   215  	} else {
   216  		b = b[:cap(b)]
   217  		n, err := m.MarshalToSizedBuffer(b)
   218  		if err != nil {
   219  			return nil, err
   220  		}
   221  		return b[:n], nil
   222  	}
   223  }
   224  func (m *CanIResponse) XXX_Merge(src proto.Message) {
   225  	xxx_messageInfo_CanIResponse.Merge(m, src)
   226  }
   227  func (m *CanIResponse) XXX_Size() int {
   228  	return m.Size()
   229  }
   230  func (m *CanIResponse) XXX_DiscardUnknown() {
   231  	xxx_messageInfo_CanIResponse.DiscardUnknown(m)
   232  }
   233  
   234  var xxx_messageInfo_CanIResponse proto.InternalMessageInfo
   235  
   236  func (m *CanIResponse) GetValue() string {
   237  	if m != nil {
   238  		return m.Value
   239  	}
   240  	return ""
   241  }
   242  
   243  type GetAccountRequest struct {
   244  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   245  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   246  	XXX_unrecognized     []byte   `json:"-"`
   247  	XXX_sizecache        int32    `json:"-"`
   248  }
   249  
   250  func (m *GetAccountRequest) Reset()         { *m = GetAccountRequest{} }
   251  func (m *GetAccountRequest) String() string { return proto.CompactTextString(m) }
   252  func (*GetAccountRequest) ProtoMessage()    {}
   253  func (*GetAccountRequest) Descriptor() ([]byte, []int) {
   254  	return fileDescriptor_56d089a9b5e998c0, []int{4}
   255  }
   256  func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error {
   257  	return m.Unmarshal(b)
   258  }
   259  func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   260  	if deterministic {
   261  		return xxx_messageInfo_GetAccountRequest.Marshal(b, m, deterministic)
   262  	} else {
   263  		b = b[:cap(b)]
   264  		n, err := m.MarshalToSizedBuffer(b)
   265  		if err != nil {
   266  			return nil, err
   267  		}
   268  		return b[:n], nil
   269  	}
   270  }
   271  func (m *GetAccountRequest) XXX_Merge(src proto.Message) {
   272  	xxx_messageInfo_GetAccountRequest.Merge(m, src)
   273  }
   274  func (m *GetAccountRequest) XXX_Size() int {
   275  	return m.Size()
   276  }
   277  func (m *GetAccountRequest) XXX_DiscardUnknown() {
   278  	xxx_messageInfo_GetAccountRequest.DiscardUnknown(m)
   279  }
   280  
   281  var xxx_messageInfo_GetAccountRequest proto.InternalMessageInfo
   282  
   283  func (m *GetAccountRequest) GetName() string {
   284  	if m != nil {
   285  		return m.Name
   286  	}
   287  	return ""
   288  }
   289  
   290  type Account struct {
   291  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   292  	Enabled              bool     `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
   293  	Capabilities         []string `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
   294  	Tokens               []*Token `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"`
   295  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   296  	XXX_unrecognized     []byte   `json:"-"`
   297  	XXX_sizecache        int32    `json:"-"`
   298  }
   299  
   300  func (m *Account) Reset()         { *m = Account{} }
   301  func (m *Account) String() string { return proto.CompactTextString(m) }
   302  func (*Account) ProtoMessage()    {}
   303  func (*Account) Descriptor() ([]byte, []int) {
   304  	return fileDescriptor_56d089a9b5e998c0, []int{5}
   305  }
   306  func (m *Account) XXX_Unmarshal(b []byte) error {
   307  	return m.Unmarshal(b)
   308  }
   309  func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   310  	if deterministic {
   311  		return xxx_messageInfo_Account.Marshal(b, m, deterministic)
   312  	} else {
   313  		b = b[:cap(b)]
   314  		n, err := m.MarshalToSizedBuffer(b)
   315  		if err != nil {
   316  			return nil, err
   317  		}
   318  		return b[:n], nil
   319  	}
   320  }
   321  func (m *Account) XXX_Merge(src proto.Message) {
   322  	xxx_messageInfo_Account.Merge(m, src)
   323  }
   324  func (m *Account) XXX_Size() int {
   325  	return m.Size()
   326  }
   327  func (m *Account) XXX_DiscardUnknown() {
   328  	xxx_messageInfo_Account.DiscardUnknown(m)
   329  }
   330  
   331  var xxx_messageInfo_Account proto.InternalMessageInfo
   332  
   333  func (m *Account) GetName() string {
   334  	if m != nil {
   335  		return m.Name
   336  	}
   337  	return ""
   338  }
   339  
   340  func (m *Account) GetEnabled() bool {
   341  	if m != nil {
   342  		return m.Enabled
   343  	}
   344  	return false
   345  }
   346  
   347  func (m *Account) GetCapabilities() []string {
   348  	if m != nil {
   349  		return m.Capabilities
   350  	}
   351  	return nil
   352  }
   353  
   354  func (m *Account) GetTokens() []*Token {
   355  	if m != nil {
   356  		return m.Tokens
   357  	}
   358  	return nil
   359  }
   360  
   361  type AccountsList struct {
   362  	Items                []*Account `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
   363  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   364  	XXX_unrecognized     []byte     `json:"-"`
   365  	XXX_sizecache        int32      `json:"-"`
   366  }
   367  
   368  func (m *AccountsList) Reset()         { *m = AccountsList{} }
   369  func (m *AccountsList) String() string { return proto.CompactTextString(m) }
   370  func (*AccountsList) ProtoMessage()    {}
   371  func (*AccountsList) Descriptor() ([]byte, []int) {
   372  	return fileDescriptor_56d089a9b5e998c0, []int{6}
   373  }
   374  func (m *AccountsList) XXX_Unmarshal(b []byte) error {
   375  	return m.Unmarshal(b)
   376  }
   377  func (m *AccountsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   378  	if deterministic {
   379  		return xxx_messageInfo_AccountsList.Marshal(b, m, deterministic)
   380  	} else {
   381  		b = b[:cap(b)]
   382  		n, err := m.MarshalToSizedBuffer(b)
   383  		if err != nil {
   384  			return nil, err
   385  		}
   386  		return b[:n], nil
   387  	}
   388  }
   389  func (m *AccountsList) XXX_Merge(src proto.Message) {
   390  	xxx_messageInfo_AccountsList.Merge(m, src)
   391  }
   392  func (m *AccountsList) XXX_Size() int {
   393  	return m.Size()
   394  }
   395  func (m *AccountsList) XXX_DiscardUnknown() {
   396  	xxx_messageInfo_AccountsList.DiscardUnknown(m)
   397  }
   398  
   399  var xxx_messageInfo_AccountsList proto.InternalMessageInfo
   400  
   401  func (m *AccountsList) GetItems() []*Account {
   402  	if m != nil {
   403  		return m.Items
   404  	}
   405  	return nil
   406  }
   407  
   408  type Token struct {
   409  	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   410  	IssuedAt             int64    `protobuf:"varint,2,opt,name=issuedAt,proto3" json:"issuedAt,omitempty"`
   411  	ExpiresAt            int64    `protobuf:"varint,3,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"`
   412  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   413  	XXX_unrecognized     []byte   `json:"-"`
   414  	XXX_sizecache        int32    `json:"-"`
   415  }
   416  
   417  func (m *Token) Reset()         { *m = Token{} }
   418  func (m *Token) String() string { return proto.CompactTextString(m) }
   419  func (*Token) ProtoMessage()    {}
   420  func (*Token) Descriptor() ([]byte, []int) {
   421  	return fileDescriptor_56d089a9b5e998c0, []int{7}
   422  }
   423  func (m *Token) XXX_Unmarshal(b []byte) error {
   424  	return m.Unmarshal(b)
   425  }
   426  func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   427  	if deterministic {
   428  		return xxx_messageInfo_Token.Marshal(b, m, deterministic)
   429  	} else {
   430  		b = b[:cap(b)]
   431  		n, err := m.MarshalToSizedBuffer(b)
   432  		if err != nil {
   433  			return nil, err
   434  		}
   435  		return b[:n], nil
   436  	}
   437  }
   438  func (m *Token) XXX_Merge(src proto.Message) {
   439  	xxx_messageInfo_Token.Merge(m, src)
   440  }
   441  func (m *Token) XXX_Size() int {
   442  	return m.Size()
   443  }
   444  func (m *Token) XXX_DiscardUnknown() {
   445  	xxx_messageInfo_Token.DiscardUnknown(m)
   446  }
   447  
   448  var xxx_messageInfo_Token proto.InternalMessageInfo
   449  
   450  func (m *Token) GetId() string {
   451  	if m != nil {
   452  		return m.Id
   453  	}
   454  	return ""
   455  }
   456  
   457  func (m *Token) GetIssuedAt() int64 {
   458  	if m != nil {
   459  		return m.IssuedAt
   460  	}
   461  	return 0
   462  }
   463  
   464  func (m *Token) GetExpiresAt() int64 {
   465  	if m != nil {
   466  		return m.ExpiresAt
   467  	}
   468  	return 0
   469  }
   470  
   471  type TokensList struct {
   472  	Items                []*Token `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
   473  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   474  	XXX_unrecognized     []byte   `json:"-"`
   475  	XXX_sizecache        int32    `json:"-"`
   476  }
   477  
   478  func (m *TokensList) Reset()         { *m = TokensList{} }
   479  func (m *TokensList) String() string { return proto.CompactTextString(m) }
   480  func (*TokensList) ProtoMessage()    {}
   481  func (*TokensList) Descriptor() ([]byte, []int) {
   482  	return fileDescriptor_56d089a9b5e998c0, []int{8}
   483  }
   484  func (m *TokensList) XXX_Unmarshal(b []byte) error {
   485  	return m.Unmarshal(b)
   486  }
   487  func (m *TokensList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   488  	if deterministic {
   489  		return xxx_messageInfo_TokensList.Marshal(b, m, deterministic)
   490  	} else {
   491  		b = b[:cap(b)]
   492  		n, err := m.MarshalToSizedBuffer(b)
   493  		if err != nil {
   494  			return nil, err
   495  		}
   496  		return b[:n], nil
   497  	}
   498  }
   499  func (m *TokensList) XXX_Merge(src proto.Message) {
   500  	xxx_messageInfo_TokensList.Merge(m, src)
   501  }
   502  func (m *TokensList) XXX_Size() int {
   503  	return m.Size()
   504  }
   505  func (m *TokensList) XXX_DiscardUnknown() {
   506  	xxx_messageInfo_TokensList.DiscardUnknown(m)
   507  }
   508  
   509  var xxx_messageInfo_TokensList proto.InternalMessageInfo
   510  
   511  func (m *TokensList) GetItems() []*Token {
   512  	if m != nil {
   513  		return m.Items
   514  	}
   515  	return nil
   516  }
   517  
   518  type CreateTokenRequest struct {
   519  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   520  	// expiresIn represents a duration in seconds
   521  	ExpiresIn            int64    `protobuf:"varint,2,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
   522  	Id                   string   `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
   523  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   524  	XXX_unrecognized     []byte   `json:"-"`
   525  	XXX_sizecache        int32    `json:"-"`
   526  }
   527  
   528  func (m *CreateTokenRequest) Reset()         { *m = CreateTokenRequest{} }
   529  func (m *CreateTokenRequest) String() string { return proto.CompactTextString(m) }
   530  func (*CreateTokenRequest) ProtoMessage()    {}
   531  func (*CreateTokenRequest) Descriptor() ([]byte, []int) {
   532  	return fileDescriptor_56d089a9b5e998c0, []int{9}
   533  }
   534  func (m *CreateTokenRequest) XXX_Unmarshal(b []byte) error {
   535  	return m.Unmarshal(b)
   536  }
   537  func (m *CreateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   538  	if deterministic {
   539  		return xxx_messageInfo_CreateTokenRequest.Marshal(b, m, deterministic)
   540  	} else {
   541  		b = b[:cap(b)]
   542  		n, err := m.MarshalToSizedBuffer(b)
   543  		if err != nil {
   544  			return nil, err
   545  		}
   546  		return b[:n], nil
   547  	}
   548  }
   549  func (m *CreateTokenRequest) XXX_Merge(src proto.Message) {
   550  	xxx_messageInfo_CreateTokenRequest.Merge(m, src)
   551  }
   552  func (m *CreateTokenRequest) XXX_Size() int {
   553  	return m.Size()
   554  }
   555  func (m *CreateTokenRequest) XXX_DiscardUnknown() {
   556  	xxx_messageInfo_CreateTokenRequest.DiscardUnknown(m)
   557  }
   558  
   559  var xxx_messageInfo_CreateTokenRequest proto.InternalMessageInfo
   560  
   561  func (m *CreateTokenRequest) GetName() string {
   562  	if m != nil {
   563  		return m.Name
   564  	}
   565  	return ""
   566  }
   567  
   568  func (m *CreateTokenRequest) GetExpiresIn() int64 {
   569  	if m != nil {
   570  		return m.ExpiresIn
   571  	}
   572  	return 0
   573  }
   574  
   575  func (m *CreateTokenRequest) GetId() string {
   576  	if m != nil {
   577  		return m.Id
   578  	}
   579  	return ""
   580  }
   581  
   582  type CreateTokenResponse struct {
   583  	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
   584  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   585  	XXX_unrecognized     []byte   `json:"-"`
   586  	XXX_sizecache        int32    `json:"-"`
   587  }
   588  
   589  func (m *CreateTokenResponse) Reset()         { *m = CreateTokenResponse{} }
   590  func (m *CreateTokenResponse) String() string { return proto.CompactTextString(m) }
   591  func (*CreateTokenResponse) ProtoMessage()    {}
   592  func (*CreateTokenResponse) Descriptor() ([]byte, []int) {
   593  	return fileDescriptor_56d089a9b5e998c0, []int{10}
   594  }
   595  func (m *CreateTokenResponse) XXX_Unmarshal(b []byte) error {
   596  	return m.Unmarshal(b)
   597  }
   598  func (m *CreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   599  	if deterministic {
   600  		return xxx_messageInfo_CreateTokenResponse.Marshal(b, m, deterministic)
   601  	} else {
   602  		b = b[:cap(b)]
   603  		n, err := m.MarshalToSizedBuffer(b)
   604  		if err != nil {
   605  			return nil, err
   606  		}
   607  		return b[:n], nil
   608  	}
   609  }
   610  func (m *CreateTokenResponse) XXX_Merge(src proto.Message) {
   611  	xxx_messageInfo_CreateTokenResponse.Merge(m, src)
   612  }
   613  func (m *CreateTokenResponse) XXX_Size() int {
   614  	return m.Size()
   615  }
   616  func (m *CreateTokenResponse) XXX_DiscardUnknown() {
   617  	xxx_messageInfo_CreateTokenResponse.DiscardUnknown(m)
   618  }
   619  
   620  var xxx_messageInfo_CreateTokenResponse proto.InternalMessageInfo
   621  
   622  func (m *CreateTokenResponse) GetToken() string {
   623  	if m != nil {
   624  		return m.Token
   625  	}
   626  	return ""
   627  }
   628  
   629  type DeleteTokenRequest struct {
   630  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   631  	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   632  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   633  	XXX_unrecognized     []byte   `json:"-"`
   634  	XXX_sizecache        int32    `json:"-"`
   635  }
   636  
   637  func (m *DeleteTokenRequest) Reset()         { *m = DeleteTokenRequest{} }
   638  func (m *DeleteTokenRequest) String() string { return proto.CompactTextString(m) }
   639  func (*DeleteTokenRequest) ProtoMessage()    {}
   640  func (*DeleteTokenRequest) Descriptor() ([]byte, []int) {
   641  	return fileDescriptor_56d089a9b5e998c0, []int{11}
   642  }
   643  func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error {
   644  	return m.Unmarshal(b)
   645  }
   646  func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   647  	if deterministic {
   648  		return xxx_messageInfo_DeleteTokenRequest.Marshal(b, m, deterministic)
   649  	} else {
   650  		b = b[:cap(b)]
   651  		n, err := m.MarshalToSizedBuffer(b)
   652  		if err != nil {
   653  			return nil, err
   654  		}
   655  		return b[:n], nil
   656  	}
   657  }
   658  func (m *DeleteTokenRequest) XXX_Merge(src proto.Message) {
   659  	xxx_messageInfo_DeleteTokenRequest.Merge(m, src)
   660  }
   661  func (m *DeleteTokenRequest) XXX_Size() int {
   662  	return m.Size()
   663  }
   664  func (m *DeleteTokenRequest) XXX_DiscardUnknown() {
   665  	xxx_messageInfo_DeleteTokenRequest.DiscardUnknown(m)
   666  }
   667  
   668  var xxx_messageInfo_DeleteTokenRequest proto.InternalMessageInfo
   669  
   670  func (m *DeleteTokenRequest) GetName() string {
   671  	if m != nil {
   672  		return m.Name
   673  	}
   674  	return ""
   675  }
   676  
   677  func (m *DeleteTokenRequest) GetId() string {
   678  	if m != nil {
   679  		return m.Id
   680  	}
   681  	return ""
   682  }
   683  
   684  type ListAccountRequest struct {
   685  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   686  	XXX_unrecognized     []byte   `json:"-"`
   687  	XXX_sizecache        int32    `json:"-"`
   688  }
   689  
   690  func (m *ListAccountRequest) Reset()         { *m = ListAccountRequest{} }
   691  func (m *ListAccountRequest) String() string { return proto.CompactTextString(m) }
   692  func (*ListAccountRequest) ProtoMessage()    {}
   693  func (*ListAccountRequest) Descriptor() ([]byte, []int) {
   694  	return fileDescriptor_56d089a9b5e998c0, []int{12}
   695  }
   696  func (m *ListAccountRequest) XXX_Unmarshal(b []byte) error {
   697  	return m.Unmarshal(b)
   698  }
   699  func (m *ListAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   700  	if deterministic {
   701  		return xxx_messageInfo_ListAccountRequest.Marshal(b, m, deterministic)
   702  	} else {
   703  		b = b[:cap(b)]
   704  		n, err := m.MarshalToSizedBuffer(b)
   705  		if err != nil {
   706  			return nil, err
   707  		}
   708  		return b[:n], nil
   709  	}
   710  }
   711  func (m *ListAccountRequest) XXX_Merge(src proto.Message) {
   712  	xxx_messageInfo_ListAccountRequest.Merge(m, src)
   713  }
   714  func (m *ListAccountRequest) XXX_Size() int {
   715  	return m.Size()
   716  }
   717  func (m *ListAccountRequest) XXX_DiscardUnknown() {
   718  	xxx_messageInfo_ListAccountRequest.DiscardUnknown(m)
   719  }
   720  
   721  var xxx_messageInfo_ListAccountRequest proto.InternalMessageInfo
   722  
   723  type EmptyResponse struct {
   724  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   725  	XXX_unrecognized     []byte   `json:"-"`
   726  	XXX_sizecache        int32    `json:"-"`
   727  }
   728  
   729  func (m *EmptyResponse) Reset()         { *m = EmptyResponse{} }
   730  func (m *EmptyResponse) String() string { return proto.CompactTextString(m) }
   731  func (*EmptyResponse) ProtoMessage()    {}
   732  func (*EmptyResponse) Descriptor() ([]byte, []int) {
   733  	return fileDescriptor_56d089a9b5e998c0, []int{13}
   734  }
   735  func (m *EmptyResponse) XXX_Unmarshal(b []byte) error {
   736  	return m.Unmarshal(b)
   737  }
   738  func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   739  	if deterministic {
   740  		return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic)
   741  	} else {
   742  		b = b[:cap(b)]
   743  		n, err := m.MarshalToSizedBuffer(b)
   744  		if err != nil {
   745  			return nil, err
   746  		}
   747  		return b[:n], nil
   748  	}
   749  }
   750  func (m *EmptyResponse) XXX_Merge(src proto.Message) {
   751  	xxx_messageInfo_EmptyResponse.Merge(m, src)
   752  }
   753  func (m *EmptyResponse) XXX_Size() int {
   754  	return m.Size()
   755  }
   756  func (m *EmptyResponse) XXX_DiscardUnknown() {
   757  	xxx_messageInfo_EmptyResponse.DiscardUnknown(m)
   758  }
   759  
   760  var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo
   761  
   762  func init() {
   763  	proto.RegisterType((*UpdatePasswordRequest)(nil), "account.UpdatePasswordRequest")
   764  	proto.RegisterType((*UpdatePasswordResponse)(nil), "account.UpdatePasswordResponse")
   765  	proto.RegisterType((*CanIRequest)(nil), "account.CanIRequest")
   766  	proto.RegisterType((*CanIResponse)(nil), "account.CanIResponse")
   767  	proto.RegisterType((*GetAccountRequest)(nil), "account.GetAccountRequest")
   768  	proto.RegisterType((*Account)(nil), "account.Account")
   769  	proto.RegisterType((*AccountsList)(nil), "account.AccountsList")
   770  	proto.RegisterType((*Token)(nil), "account.Token")
   771  	proto.RegisterType((*TokensList)(nil), "account.TokensList")
   772  	proto.RegisterType((*CreateTokenRequest)(nil), "account.CreateTokenRequest")
   773  	proto.RegisterType((*CreateTokenResponse)(nil), "account.CreateTokenResponse")
   774  	proto.RegisterType((*DeleteTokenRequest)(nil), "account.DeleteTokenRequest")
   775  	proto.RegisterType((*ListAccountRequest)(nil), "account.ListAccountRequest")
   776  	proto.RegisterType((*EmptyResponse)(nil), "account.EmptyResponse")
   777  }
   778  
   779  func init() { proto.RegisterFile("server/account/account.proto", fileDescriptor_56d089a9b5e998c0) }
   780  
   781  var fileDescriptor_56d089a9b5e998c0 = []byte{
   782  	// 742 bytes of a gzipped FileDescriptorProto
   783  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xdd, 0x6e, 0xd3, 0x4a,
   784  	0x10, 0x96, 0x93, 0xa6, 0x3f, 0x93, 0x9c, 0xf4, 0x74, 0x4f, 0x9a, 0x63, 0xf9, 0xe4, 0x84, 0x74,
   785  	0x5b, 0xb5, 0xa1, 0xa8, 0xb5, 0x5a, 0x24, 0xfe, 0x6e, 0xaa, 0x52, 0x10, 0xaa, 0xc4, 0x05, 0x84,
   786  	0x9f, 0x8b, 0x72, 0xb5, 0x71, 0x46, 0x61, 0x69, 0x62, 0xbb, 0xde, 0x75, 0x0a, 0x8a, 0x72, 0x03,
   787  	0x8f, 0xc0, 0x15, 0x6f, 0xc4, 0x25, 0x12, 0x2f, 0x80, 0x2a, 0x1e, 0x04, 0x79, 0xbd, 0x76, 0x9c,
   788  	0x9f, 0x22, 0xae, 0xbc, 0x33, 0xb3, 0x3b, 0xdf, 0x37, 0xb3, 0xdf, 0x78, 0xa1, 0x26, 0x30, 0x18,
   789  	0x60, 0x60, 0x33, 0xc7, 0xf1, 0x42, 0x57, 0x26, 0xdf, 0x7d, 0x3f, 0xf0, 0xa4, 0x47, 0x96, 0xb4,
   790  	0x69, 0x55, 0xba, 0x5e, 0xd7, 0x53, 0x3e, 0x3b, 0x5a, 0xc5, 0x61, 0xab, 0xd6, 0xf5, 0xbc, 0x6e,
   791  	0x0f, 0x6d, 0xe6, 0x73, 0x9b, 0xb9, 0xae, 0x27, 0x99, 0xe4, 0x9e, 0x2b, 0xe2, 0x28, 0xbd, 0x84,
   792  	0xf5, 0x57, 0x7e, 0x87, 0x49, 0x7c, 0xc6, 0x84, 0xb8, 0xf4, 0x82, 0x4e, 0x0b, 0x2f, 0x42, 0x14,
   793  	0x92, 0x34, 0xa0, 0xe8, 0xe2, 0x65, 0xe2, 0x35, 0x8d, 0x86, 0xd1, 0x5c, 0x69, 0x65, 0x5d, 0xa4,
   794  	0x09, 0xab, 0x4e, 0x18, 0x04, 0xe8, 0xca, 0x74, 0x57, 0x4e, 0xed, 0x9a, 0x76, 0x13, 0x02, 0x0b,
   795  	0x2e, 0xeb, 0xa3, 0x99, 0x57, 0x61, 0xb5, 0xa6, 0x26, 0x54, 0xa7, 0x81, 0x85, 0xef, 0xb9, 0x02,
   796  	0xa9, 0x03, 0xc5, 0x13, 0xe6, 0x9e, 0x26, 0x44, 0x2c, 0x58, 0x0e, 0x50, 0x78, 0x61, 0xe0, 0xa0,
   797  	0x66, 0x91, 0xda, 0xa4, 0x0a, 0x8b, 0xcc, 0x89, 0xca, 0xd1, 0xc8, 0xda, 0x8a, 0xc8, 0x8b, 0xb0,
   798  	0x9d, 0x1e, 0x8b, 0x71, 0xb3, 0x2e, 0xba, 0x05, 0xa5, 0x18, 0x24, 0x06, 0x25, 0x15, 0x28, 0x0c,
   799  	0x58, 0x2f, 0x4c, 0x20, 0x62, 0x83, 0xee, 0xc0, 0xda, 0x13, 0x94, 0xc7, 0x71, 0x7f, 0x13, 0x42,
   800  	0x49, 0x35, 0x46, 0xa6, 0x9a, 0x4f, 0x06, 0x2c, 0xe9, 0x6d, 0xf3, 0xe2, 0xc4, 0x84, 0x25, 0x74,
   801  	0x59, 0xbb, 0x87, 0x71, 0x8f, 0x96, 0x5b, 0x89, 0x49, 0x28, 0x94, 0x1c, 0xe6, 0xb3, 0x36, 0xef,
   802  	0x71, 0xc9, 0x51, 0x98, 0xf9, 0x46, 0xbe, 0xb9, 0xd2, 0x9a, 0xf0, 0x91, 0x6d, 0x58, 0x94, 0xde,
   803  	0x39, 0xba, 0xc2, 0x5c, 0x68, 0xe4, 0x9b, 0xc5, 0xc3, 0xf2, 0x7e, 0xa2, 0x80, 0x97, 0x91, 0xbb,
   804  	0xa5, 0xa3, 0xf4, 0x0e, 0x94, 0x34, 0x09, 0xf1, 0x94, 0x0b, 0x49, 0xb6, 0xa1, 0xc0, 0x25, 0xf6,
   805  	0x85, 0x69, 0xa8, 0x63, 0x7f, 0xa7, 0xc7, 0x92, 0x8a, 0xe2, 0x30, 0x7d, 0x0e, 0x05, 0x95, 0x88,
   806  	0x94, 0x21, 0xc7, 0x93, 0xbb, 0xce, 0xf1, 0x4e, 0xd4, 0x7b, 0x2e, 0x44, 0x88, 0x9d, 0x63, 0xa9,
   807  	0x78, 0xe7, 0x5b, 0xa9, 0x4d, 0x6a, 0xb0, 0x82, 0xef, 0x7d, 0x1e, 0xa0, 0x38, 0x96, 0xaa, 0xc3,
   808  	0xf9, 0xd6, 0xd8, 0x41, 0x0f, 0x01, 0x54, 0xca, 0x98, 0xc8, 0xd6, 0x24, 0x91, 0x69, 0xfe, 0x9a,
   809  	0xc6, 0x6b, 0x20, 0x27, 0x01, 0x32, 0x89, 0xb1, 0xf7, 0xfa, 0x76, 0x67, 0xb0, 0x4f, 0x5d, 0x4d,
   810  	0x6c, 0xec, 0xd0, 0x55, 0xe4, 0x93, 0x2a, 0xe8, 0x2d, 0xf8, 0x67, 0x22, 0xef, 0xf8, 0xca, 0x55,
   811  	0xdf, 0x92, 0x2b, 0x57, 0x06, 0xbd, 0x07, 0xe4, 0x11, 0xf6, 0xf0, 0x0f, 0x48, 0xc4, 0x30, 0xb9,
   812  	0x14, 0xa6, 0x02, 0x24, 0x2a, 0x76, 0x52, 0x2d, 0x74, 0x15, 0xfe, 0x7a, 0xdc, 0xf7, 0xe5, 0x87,
   813  	0x04, 0xf6, 0xf0, 0x4b, 0x01, 0xca, 0x7a, 0xcf, 0x0b, 0x0c, 0x06, 0xdc, 0x41, 0x22, 0x61, 0x21,
   814  	0x12, 0x23, 0xa9, 0xa4, 0x7d, 0xc9, 0x0c, 0x80, 0xb5, 0x3e, 0xe5, 0xd5, 0x63, 0x72, 0xf4, 0xf1,
   815  	0xfb, 0xcf, 0xcf, 0xb9, 0xfb, 0xe4, 0xae, 0x9a, 0xec, 0xc1, 0x41, 0xfa, 0x77, 0x70, 0x98, 0xbb,
   816  	0xc7, 0xed, 0x61, 0x22, 0xf5, 0x91, 0x3d, 0x8c, 0xa7, 0x62, 0x64, 0x0f, 0x33, 0x13, 0x30, 0x22,
   817  	0x03, 0x28, 0x4f, 0x4e, 0x20, 0xa9, 0xa7, 0x48, 0x73, 0xff, 0x09, 0xd6, 0x8d, 0x6b, 0xe3, 0x9a,
   818  	0xd3, 0xa6, 0xe2, 0xf4, 0xbf, 0x65, 0x4e, 0x73, 0xf2, 0xf5, 0xce, 0x07, 0xc6, 0x2e, 0x79, 0x03,
   819  	0xa5, 0x4c, 0x9f, 0x04, 0xf9, 0x2f, 0xcd, 0x3a, 0xdb, 0xbe, 0x4c, 0xf1, 0x59, 0x65, 0xd3, 0x7f,
   820  	0x15, 0xd0, 0x1a, 0x59, 0x9d, 0x02, 0x22, 0x67, 0x00, 0xe3, 0x89, 0x25, 0x56, 0x7a, 0x7a, 0x66,
   821  	0x8c, 0xad, 0x99, 0x69, 0xa0, 0x75, 0x95, 0xd4, 0x24, 0xd5, 0x69, 0xf6, 0xc3, 0xe8, 0xbe, 0x47,
   822  	0xe4, 0x02, 0x8a, 0x19, 0x1d, 0x65, 0x78, 0xcf, 0xaa, 0xd6, 0xaa, 0xcd, 0x0f, 0xea, 0x3e, 0xed,
   823  	0x28, 0xa4, 0x0d, 0x5a, 0x9b, 0x8f, 0x64, 0x2b, 0x29, 0x46, 0xbd, 0xea, 0x43, 0x31, 0xa3, 0xc6,
   824  	0x0c, 0xe4, 0xac, 0x46, 0xad, 0x6a, 0x1a, 0x9c, 0x10, 0x1c, 0xbd, 0xa9, 0xc0, 0x36, 0x77, 0x37,
   825  	0x7e, 0x07, 0x66, 0x0f, 0x79, 0x67, 0xf4, 0xf0, 0xe8, 0xeb, 0x55, 0xdd, 0xf8, 0x76, 0x55, 0x37,
   826  	0x7e, 0x5c, 0xd5, 0x8d, 0xb3, 0x83, 0x2e, 0x97, 0x6f, 0xc3, 0xf6, 0xbe, 0xe3, 0xf5, 0x6d, 0x16,
   827  	0xa8, 0xa7, 0xe5, 0x9d, 0x5a, 0xec, 0x39, 0x1d, 0xdb, 0x3f, 0xef, 0x46, 0xf9, 0x9c, 0x1e, 0xc7,
   828  	0xf1, 0x8b, 0xd4, 0x5e, 0x54, 0xaf, 0xca, 0xed, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xa8,
   829  	0x25, 0x6b, 0xb2, 0x06, 0x00, 0x00,
   830  }
   831  
   832  // Reference imports to suppress errors if they are not otherwise used.
   833  var _ context.Context
   834  var _ grpc.ClientConn
   835  
   836  // This is a compile-time assertion to ensure that this generated file
   837  // is compatible with the grpc package it is being compiled against.
   838  const _ = grpc.SupportPackageIsVersion4
   839  
   840  // AccountServiceClient is the client API for AccountService service.
   841  //
   842  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   843  type AccountServiceClient interface {
   844  	// CanI checks if the current account has permission to perform an action
   845  	CanI(ctx context.Context, in *CanIRequest, opts ...grpc.CallOption) (*CanIResponse, error)
   846  	// UpdatePassword updates an account's password to a new value
   847  	UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error)
   848  	// ListAccounts returns the list of accounts
   849  	ListAccounts(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*AccountsList, error)
   850  	// GetAccount returns an account
   851  	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
   852  	// CreateToken creates a token
   853  	CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error)
   854  	// DeleteToken deletes a token
   855  	DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
   856  }
   857  
   858  type accountServiceClient struct {
   859  	cc *grpc.ClientConn
   860  }
   861  
   862  func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient {
   863  	return &accountServiceClient{cc}
   864  }
   865  
   866  func (c *accountServiceClient) CanI(ctx context.Context, in *CanIRequest, opts ...grpc.CallOption) (*CanIResponse, error) {
   867  	out := new(CanIResponse)
   868  	err := c.cc.Invoke(ctx, "/account.AccountService/CanI", in, out, opts...)
   869  	if err != nil {
   870  		return nil, err
   871  	}
   872  	return out, nil
   873  }
   874  
   875  func (c *accountServiceClient) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error) {
   876  	out := new(UpdatePasswordResponse)
   877  	err := c.cc.Invoke(ctx, "/account.AccountService/UpdatePassword", in, out, opts...)
   878  	if err != nil {
   879  		return nil, err
   880  	}
   881  	return out, nil
   882  }
   883  
   884  func (c *accountServiceClient) ListAccounts(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*AccountsList, error) {
   885  	out := new(AccountsList)
   886  	err := c.cc.Invoke(ctx, "/account.AccountService/ListAccounts", in, out, opts...)
   887  	if err != nil {
   888  		return nil, err
   889  	}
   890  	return out, nil
   891  }
   892  
   893  func (c *accountServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) {
   894  	out := new(Account)
   895  	err := c.cc.Invoke(ctx, "/account.AccountService/GetAccount", in, out, opts...)
   896  	if err != nil {
   897  		return nil, err
   898  	}
   899  	return out, nil
   900  }
   901  
   902  func (c *accountServiceClient) CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error) {
   903  	out := new(CreateTokenResponse)
   904  	err := c.cc.Invoke(ctx, "/account.AccountService/CreateToken", in, out, opts...)
   905  	if err != nil {
   906  		return nil, err
   907  	}
   908  	return out, nil
   909  }
   910  
   911  func (c *accountServiceClient) DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
   912  	out := new(EmptyResponse)
   913  	err := c.cc.Invoke(ctx, "/account.AccountService/DeleteToken", in, out, opts...)
   914  	if err != nil {
   915  		return nil, err
   916  	}
   917  	return out, nil
   918  }
   919  
   920  // AccountServiceServer is the server API for AccountService service.
   921  type AccountServiceServer interface {
   922  	// CanI checks if the current account has permission to perform an action
   923  	CanI(context.Context, *CanIRequest) (*CanIResponse, error)
   924  	// UpdatePassword updates an account's password to a new value
   925  	UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
   926  	// ListAccounts returns the list of accounts
   927  	ListAccounts(context.Context, *ListAccountRequest) (*AccountsList, error)
   928  	// GetAccount returns an account
   929  	GetAccount(context.Context, *GetAccountRequest) (*Account, error)
   930  	// CreateToken creates a token
   931  	CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
   932  	// DeleteToken deletes a token
   933  	DeleteToken(context.Context, *DeleteTokenRequest) (*EmptyResponse, error)
   934  }
   935  
   936  // UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.
   937  type UnimplementedAccountServiceServer struct {
   938  }
   939  
   940  func (*UnimplementedAccountServiceServer) CanI(ctx context.Context, req *CanIRequest) (*CanIResponse, error) {
   941  	return nil, status.Errorf(codes.Unimplemented, "method CanI not implemented")
   942  }
   943  func (*UnimplementedAccountServiceServer) UpdatePassword(ctx context.Context, req *UpdatePasswordRequest) (*UpdatePasswordResponse, error) {
   944  	return nil, status.Errorf(codes.Unimplemented, "method UpdatePassword not implemented")
   945  }
   946  func (*UnimplementedAccountServiceServer) ListAccounts(ctx context.Context, req *ListAccountRequest) (*AccountsList, error) {
   947  	return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
   948  }
   949  func (*UnimplementedAccountServiceServer) GetAccount(ctx context.Context, req *GetAccountRequest) (*Account, error) {
   950  	return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented")
   951  }
   952  func (*UnimplementedAccountServiceServer) CreateToken(ctx context.Context, req *CreateTokenRequest) (*CreateTokenResponse, error) {
   953  	return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented")
   954  }
   955  func (*UnimplementedAccountServiceServer) DeleteToken(ctx context.Context, req *DeleteTokenRequest) (*EmptyResponse, error) {
   956  	return nil, status.Errorf(codes.Unimplemented, "method DeleteToken not implemented")
   957  }
   958  
   959  func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer) {
   960  	s.RegisterService(&_AccountService_serviceDesc, srv)
   961  }
   962  
   963  func _AccountService_CanI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   964  	in := new(CanIRequest)
   965  	if err := dec(in); err != nil {
   966  		return nil, err
   967  	}
   968  	if interceptor == nil {
   969  		return srv.(AccountServiceServer).CanI(ctx, in)
   970  	}
   971  	info := &grpc.UnaryServerInfo{
   972  		Server:     srv,
   973  		FullMethod: "/account.AccountService/CanI",
   974  	}
   975  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   976  		return srv.(AccountServiceServer).CanI(ctx, req.(*CanIRequest))
   977  	}
   978  	return interceptor(ctx, in, info, handler)
   979  }
   980  
   981  func _AccountService_UpdatePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   982  	in := new(UpdatePasswordRequest)
   983  	if err := dec(in); err != nil {
   984  		return nil, err
   985  	}
   986  	if interceptor == nil {
   987  		return srv.(AccountServiceServer).UpdatePassword(ctx, in)
   988  	}
   989  	info := &grpc.UnaryServerInfo{
   990  		Server:     srv,
   991  		FullMethod: "/account.AccountService/UpdatePassword",
   992  	}
   993  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   994  		return srv.(AccountServiceServer).UpdatePassword(ctx, req.(*UpdatePasswordRequest))
   995  	}
   996  	return interceptor(ctx, in, info, handler)
   997  }
   998  
   999  func _AccountService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1000  	in := new(ListAccountRequest)
  1001  	if err := dec(in); err != nil {
  1002  		return nil, err
  1003  	}
  1004  	if interceptor == nil {
  1005  		return srv.(AccountServiceServer).ListAccounts(ctx, in)
  1006  	}
  1007  	info := &grpc.UnaryServerInfo{
  1008  		Server:     srv,
  1009  		FullMethod: "/account.AccountService/ListAccounts",
  1010  	}
  1011  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1012  		return srv.(AccountServiceServer).ListAccounts(ctx, req.(*ListAccountRequest))
  1013  	}
  1014  	return interceptor(ctx, in, info, handler)
  1015  }
  1016  
  1017  func _AccountService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1018  	in := new(GetAccountRequest)
  1019  	if err := dec(in); err != nil {
  1020  		return nil, err
  1021  	}
  1022  	if interceptor == nil {
  1023  		return srv.(AccountServiceServer).GetAccount(ctx, in)
  1024  	}
  1025  	info := &grpc.UnaryServerInfo{
  1026  		Server:     srv,
  1027  		FullMethod: "/account.AccountService/GetAccount",
  1028  	}
  1029  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1030  		return srv.(AccountServiceServer).GetAccount(ctx, req.(*GetAccountRequest))
  1031  	}
  1032  	return interceptor(ctx, in, info, handler)
  1033  }
  1034  
  1035  func _AccountService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1036  	in := new(CreateTokenRequest)
  1037  	if err := dec(in); err != nil {
  1038  		return nil, err
  1039  	}
  1040  	if interceptor == nil {
  1041  		return srv.(AccountServiceServer).CreateToken(ctx, in)
  1042  	}
  1043  	info := &grpc.UnaryServerInfo{
  1044  		Server:     srv,
  1045  		FullMethod: "/account.AccountService/CreateToken",
  1046  	}
  1047  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1048  		return srv.(AccountServiceServer).CreateToken(ctx, req.(*CreateTokenRequest))
  1049  	}
  1050  	return interceptor(ctx, in, info, handler)
  1051  }
  1052  
  1053  func _AccountService_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1054  	in := new(DeleteTokenRequest)
  1055  	if err := dec(in); err != nil {
  1056  		return nil, err
  1057  	}
  1058  	if interceptor == nil {
  1059  		return srv.(AccountServiceServer).DeleteToken(ctx, in)
  1060  	}
  1061  	info := &grpc.UnaryServerInfo{
  1062  		Server:     srv,
  1063  		FullMethod: "/account.AccountService/DeleteToken",
  1064  	}
  1065  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1066  		return srv.(AccountServiceServer).DeleteToken(ctx, req.(*DeleteTokenRequest))
  1067  	}
  1068  	return interceptor(ctx, in, info, handler)
  1069  }
  1070  
  1071  var _AccountService_serviceDesc = grpc.ServiceDesc{
  1072  	ServiceName: "account.AccountService",
  1073  	HandlerType: (*AccountServiceServer)(nil),
  1074  	Methods: []grpc.MethodDesc{
  1075  		{
  1076  			MethodName: "CanI",
  1077  			Handler:    _AccountService_CanI_Handler,
  1078  		},
  1079  		{
  1080  			MethodName: "UpdatePassword",
  1081  			Handler:    _AccountService_UpdatePassword_Handler,
  1082  		},
  1083  		{
  1084  			MethodName: "ListAccounts",
  1085  			Handler:    _AccountService_ListAccounts_Handler,
  1086  		},
  1087  		{
  1088  			MethodName: "GetAccount",
  1089  			Handler:    _AccountService_GetAccount_Handler,
  1090  		},
  1091  		{
  1092  			MethodName: "CreateToken",
  1093  			Handler:    _AccountService_CreateToken_Handler,
  1094  		},
  1095  		{
  1096  			MethodName: "DeleteToken",
  1097  			Handler:    _AccountService_DeleteToken_Handler,
  1098  		},
  1099  	},
  1100  	Streams:  []grpc.StreamDesc{},
  1101  	Metadata: "server/account/account.proto",
  1102  }
  1103  
  1104  func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error) {
  1105  	size := m.Size()
  1106  	dAtA = make([]byte, size)
  1107  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1108  	if err != nil {
  1109  		return nil, err
  1110  	}
  1111  	return dAtA[:n], nil
  1112  }
  1113  
  1114  func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error) {
  1115  	size := m.Size()
  1116  	return m.MarshalToSizedBuffer(dAtA[:size])
  1117  }
  1118  
  1119  func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1120  	i := len(dAtA)
  1121  	_ = i
  1122  	var l int
  1123  	_ = l
  1124  	if m.XXX_unrecognized != nil {
  1125  		i -= len(m.XXX_unrecognized)
  1126  		copy(dAtA[i:], m.XXX_unrecognized)
  1127  	}
  1128  	if len(m.Name) > 0 {
  1129  		i -= len(m.Name)
  1130  		copy(dAtA[i:], m.Name)
  1131  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Name)))
  1132  		i--
  1133  		dAtA[i] = 0x1a
  1134  	}
  1135  	if len(m.CurrentPassword) > 0 {
  1136  		i -= len(m.CurrentPassword)
  1137  		copy(dAtA[i:], m.CurrentPassword)
  1138  		i = encodeVarintAccount(dAtA, i, uint64(len(m.CurrentPassword)))
  1139  		i--
  1140  		dAtA[i] = 0x12
  1141  	}
  1142  	if len(m.NewPassword) > 0 {
  1143  		i -= len(m.NewPassword)
  1144  		copy(dAtA[i:], m.NewPassword)
  1145  		i = encodeVarintAccount(dAtA, i, uint64(len(m.NewPassword)))
  1146  		i--
  1147  		dAtA[i] = 0xa
  1148  	}
  1149  	return len(dAtA) - i, nil
  1150  }
  1151  
  1152  func (m *UpdatePasswordResponse) Marshal() (dAtA []byte, err error) {
  1153  	size := m.Size()
  1154  	dAtA = make([]byte, size)
  1155  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1156  	if err != nil {
  1157  		return nil, err
  1158  	}
  1159  	return dAtA[:n], nil
  1160  }
  1161  
  1162  func (m *UpdatePasswordResponse) MarshalTo(dAtA []byte) (int, error) {
  1163  	size := m.Size()
  1164  	return m.MarshalToSizedBuffer(dAtA[:size])
  1165  }
  1166  
  1167  func (m *UpdatePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1168  	i := len(dAtA)
  1169  	_ = i
  1170  	var l int
  1171  	_ = l
  1172  	if m.XXX_unrecognized != nil {
  1173  		i -= len(m.XXX_unrecognized)
  1174  		copy(dAtA[i:], m.XXX_unrecognized)
  1175  	}
  1176  	return len(dAtA) - i, nil
  1177  }
  1178  
  1179  func (m *CanIRequest) Marshal() (dAtA []byte, err error) {
  1180  	size := m.Size()
  1181  	dAtA = make([]byte, size)
  1182  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1183  	if err != nil {
  1184  		return nil, err
  1185  	}
  1186  	return dAtA[:n], nil
  1187  }
  1188  
  1189  func (m *CanIRequest) MarshalTo(dAtA []byte) (int, error) {
  1190  	size := m.Size()
  1191  	return m.MarshalToSizedBuffer(dAtA[:size])
  1192  }
  1193  
  1194  func (m *CanIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1195  	i := len(dAtA)
  1196  	_ = i
  1197  	var l int
  1198  	_ = l
  1199  	if m.XXX_unrecognized != nil {
  1200  		i -= len(m.XXX_unrecognized)
  1201  		copy(dAtA[i:], m.XXX_unrecognized)
  1202  	}
  1203  	if len(m.Subresource) > 0 {
  1204  		i -= len(m.Subresource)
  1205  		copy(dAtA[i:], m.Subresource)
  1206  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Subresource)))
  1207  		i--
  1208  		dAtA[i] = 0x1a
  1209  	}
  1210  	if len(m.Action) > 0 {
  1211  		i -= len(m.Action)
  1212  		copy(dAtA[i:], m.Action)
  1213  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Action)))
  1214  		i--
  1215  		dAtA[i] = 0x12
  1216  	}
  1217  	if len(m.Resource) > 0 {
  1218  		i -= len(m.Resource)
  1219  		copy(dAtA[i:], m.Resource)
  1220  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Resource)))
  1221  		i--
  1222  		dAtA[i] = 0xa
  1223  	}
  1224  	return len(dAtA) - i, nil
  1225  }
  1226  
  1227  func (m *CanIResponse) Marshal() (dAtA []byte, err error) {
  1228  	size := m.Size()
  1229  	dAtA = make([]byte, size)
  1230  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1231  	if err != nil {
  1232  		return nil, err
  1233  	}
  1234  	return dAtA[:n], nil
  1235  }
  1236  
  1237  func (m *CanIResponse) MarshalTo(dAtA []byte) (int, error) {
  1238  	size := m.Size()
  1239  	return m.MarshalToSizedBuffer(dAtA[:size])
  1240  }
  1241  
  1242  func (m *CanIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1243  	i := len(dAtA)
  1244  	_ = i
  1245  	var l int
  1246  	_ = l
  1247  	if m.XXX_unrecognized != nil {
  1248  		i -= len(m.XXX_unrecognized)
  1249  		copy(dAtA[i:], m.XXX_unrecognized)
  1250  	}
  1251  	if len(m.Value) > 0 {
  1252  		i -= len(m.Value)
  1253  		copy(dAtA[i:], m.Value)
  1254  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Value)))
  1255  		i--
  1256  		dAtA[i] = 0xa
  1257  	}
  1258  	return len(dAtA) - i, nil
  1259  }
  1260  
  1261  func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) {
  1262  	size := m.Size()
  1263  	dAtA = make([]byte, size)
  1264  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1265  	if err != nil {
  1266  		return nil, err
  1267  	}
  1268  	return dAtA[:n], nil
  1269  }
  1270  
  1271  func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) {
  1272  	size := m.Size()
  1273  	return m.MarshalToSizedBuffer(dAtA[:size])
  1274  }
  1275  
  1276  func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1277  	i := len(dAtA)
  1278  	_ = i
  1279  	var l int
  1280  	_ = l
  1281  	if m.XXX_unrecognized != nil {
  1282  		i -= len(m.XXX_unrecognized)
  1283  		copy(dAtA[i:], m.XXX_unrecognized)
  1284  	}
  1285  	if len(m.Name) > 0 {
  1286  		i -= len(m.Name)
  1287  		copy(dAtA[i:], m.Name)
  1288  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Name)))
  1289  		i--
  1290  		dAtA[i] = 0xa
  1291  	}
  1292  	return len(dAtA) - i, nil
  1293  }
  1294  
  1295  func (m *Account) Marshal() (dAtA []byte, err error) {
  1296  	size := m.Size()
  1297  	dAtA = make([]byte, size)
  1298  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1299  	if err != nil {
  1300  		return nil, err
  1301  	}
  1302  	return dAtA[:n], nil
  1303  }
  1304  
  1305  func (m *Account) MarshalTo(dAtA []byte) (int, error) {
  1306  	size := m.Size()
  1307  	return m.MarshalToSizedBuffer(dAtA[:size])
  1308  }
  1309  
  1310  func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1311  	i := len(dAtA)
  1312  	_ = i
  1313  	var l int
  1314  	_ = l
  1315  	if m.XXX_unrecognized != nil {
  1316  		i -= len(m.XXX_unrecognized)
  1317  		copy(dAtA[i:], m.XXX_unrecognized)
  1318  	}
  1319  	if len(m.Tokens) > 0 {
  1320  		for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- {
  1321  			{
  1322  				size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1323  				if err != nil {
  1324  					return 0, err
  1325  				}
  1326  				i -= size
  1327  				i = encodeVarintAccount(dAtA, i, uint64(size))
  1328  			}
  1329  			i--
  1330  			dAtA[i] = 0x22
  1331  		}
  1332  	}
  1333  	if len(m.Capabilities) > 0 {
  1334  		for iNdEx := len(m.Capabilities) - 1; iNdEx >= 0; iNdEx-- {
  1335  			i -= len(m.Capabilities[iNdEx])
  1336  			copy(dAtA[i:], m.Capabilities[iNdEx])
  1337  			i = encodeVarintAccount(dAtA, i, uint64(len(m.Capabilities[iNdEx])))
  1338  			i--
  1339  			dAtA[i] = 0x1a
  1340  		}
  1341  	}
  1342  	if m.Enabled {
  1343  		i--
  1344  		if m.Enabled {
  1345  			dAtA[i] = 1
  1346  		} else {
  1347  			dAtA[i] = 0
  1348  		}
  1349  		i--
  1350  		dAtA[i] = 0x10
  1351  	}
  1352  	if len(m.Name) > 0 {
  1353  		i -= len(m.Name)
  1354  		copy(dAtA[i:], m.Name)
  1355  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Name)))
  1356  		i--
  1357  		dAtA[i] = 0xa
  1358  	}
  1359  	return len(dAtA) - i, nil
  1360  }
  1361  
  1362  func (m *AccountsList) Marshal() (dAtA []byte, err error) {
  1363  	size := m.Size()
  1364  	dAtA = make([]byte, size)
  1365  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1366  	if err != nil {
  1367  		return nil, err
  1368  	}
  1369  	return dAtA[:n], nil
  1370  }
  1371  
  1372  func (m *AccountsList) MarshalTo(dAtA []byte) (int, error) {
  1373  	size := m.Size()
  1374  	return m.MarshalToSizedBuffer(dAtA[:size])
  1375  }
  1376  
  1377  func (m *AccountsList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1378  	i := len(dAtA)
  1379  	_ = i
  1380  	var l int
  1381  	_ = l
  1382  	if m.XXX_unrecognized != nil {
  1383  		i -= len(m.XXX_unrecognized)
  1384  		copy(dAtA[i:], m.XXX_unrecognized)
  1385  	}
  1386  	if len(m.Items) > 0 {
  1387  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1388  			{
  1389  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1390  				if err != nil {
  1391  					return 0, err
  1392  				}
  1393  				i -= size
  1394  				i = encodeVarintAccount(dAtA, i, uint64(size))
  1395  			}
  1396  			i--
  1397  			dAtA[i] = 0xa
  1398  		}
  1399  	}
  1400  	return len(dAtA) - i, nil
  1401  }
  1402  
  1403  func (m *Token) Marshal() (dAtA []byte, err error) {
  1404  	size := m.Size()
  1405  	dAtA = make([]byte, size)
  1406  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1407  	if err != nil {
  1408  		return nil, err
  1409  	}
  1410  	return dAtA[:n], nil
  1411  }
  1412  
  1413  func (m *Token) MarshalTo(dAtA []byte) (int, error) {
  1414  	size := m.Size()
  1415  	return m.MarshalToSizedBuffer(dAtA[:size])
  1416  }
  1417  
  1418  func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1419  	i := len(dAtA)
  1420  	_ = i
  1421  	var l int
  1422  	_ = l
  1423  	if m.XXX_unrecognized != nil {
  1424  		i -= len(m.XXX_unrecognized)
  1425  		copy(dAtA[i:], m.XXX_unrecognized)
  1426  	}
  1427  	if m.ExpiresAt != 0 {
  1428  		i = encodeVarintAccount(dAtA, i, uint64(m.ExpiresAt))
  1429  		i--
  1430  		dAtA[i] = 0x18
  1431  	}
  1432  	if m.IssuedAt != 0 {
  1433  		i = encodeVarintAccount(dAtA, i, uint64(m.IssuedAt))
  1434  		i--
  1435  		dAtA[i] = 0x10
  1436  	}
  1437  	if len(m.Id) > 0 {
  1438  		i -= len(m.Id)
  1439  		copy(dAtA[i:], m.Id)
  1440  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Id)))
  1441  		i--
  1442  		dAtA[i] = 0xa
  1443  	}
  1444  	return len(dAtA) - i, nil
  1445  }
  1446  
  1447  func (m *TokensList) Marshal() (dAtA []byte, err error) {
  1448  	size := m.Size()
  1449  	dAtA = make([]byte, size)
  1450  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1451  	if err != nil {
  1452  		return nil, err
  1453  	}
  1454  	return dAtA[:n], nil
  1455  }
  1456  
  1457  func (m *TokensList) MarshalTo(dAtA []byte) (int, error) {
  1458  	size := m.Size()
  1459  	return m.MarshalToSizedBuffer(dAtA[:size])
  1460  }
  1461  
  1462  func (m *TokensList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1463  	i := len(dAtA)
  1464  	_ = i
  1465  	var l int
  1466  	_ = l
  1467  	if m.XXX_unrecognized != nil {
  1468  		i -= len(m.XXX_unrecognized)
  1469  		copy(dAtA[i:], m.XXX_unrecognized)
  1470  	}
  1471  	if len(m.Items) > 0 {
  1472  		for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  1473  			{
  1474  				size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1475  				if err != nil {
  1476  					return 0, err
  1477  				}
  1478  				i -= size
  1479  				i = encodeVarintAccount(dAtA, i, uint64(size))
  1480  			}
  1481  			i--
  1482  			dAtA[i] = 0xa
  1483  		}
  1484  	}
  1485  	return len(dAtA) - i, nil
  1486  }
  1487  
  1488  func (m *CreateTokenRequest) Marshal() (dAtA []byte, err error) {
  1489  	size := m.Size()
  1490  	dAtA = make([]byte, size)
  1491  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1492  	if err != nil {
  1493  		return nil, err
  1494  	}
  1495  	return dAtA[:n], nil
  1496  }
  1497  
  1498  func (m *CreateTokenRequest) MarshalTo(dAtA []byte) (int, error) {
  1499  	size := m.Size()
  1500  	return m.MarshalToSizedBuffer(dAtA[:size])
  1501  }
  1502  
  1503  func (m *CreateTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1504  	i := len(dAtA)
  1505  	_ = i
  1506  	var l int
  1507  	_ = l
  1508  	if m.XXX_unrecognized != nil {
  1509  		i -= len(m.XXX_unrecognized)
  1510  		copy(dAtA[i:], m.XXX_unrecognized)
  1511  	}
  1512  	if len(m.Id) > 0 {
  1513  		i -= len(m.Id)
  1514  		copy(dAtA[i:], m.Id)
  1515  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Id)))
  1516  		i--
  1517  		dAtA[i] = 0x1a
  1518  	}
  1519  	if m.ExpiresIn != 0 {
  1520  		i = encodeVarintAccount(dAtA, i, uint64(m.ExpiresIn))
  1521  		i--
  1522  		dAtA[i] = 0x10
  1523  	}
  1524  	if len(m.Name) > 0 {
  1525  		i -= len(m.Name)
  1526  		copy(dAtA[i:], m.Name)
  1527  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Name)))
  1528  		i--
  1529  		dAtA[i] = 0xa
  1530  	}
  1531  	return len(dAtA) - i, nil
  1532  }
  1533  
  1534  func (m *CreateTokenResponse) Marshal() (dAtA []byte, err error) {
  1535  	size := m.Size()
  1536  	dAtA = make([]byte, size)
  1537  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1538  	if err != nil {
  1539  		return nil, err
  1540  	}
  1541  	return dAtA[:n], nil
  1542  }
  1543  
  1544  func (m *CreateTokenResponse) MarshalTo(dAtA []byte) (int, error) {
  1545  	size := m.Size()
  1546  	return m.MarshalToSizedBuffer(dAtA[:size])
  1547  }
  1548  
  1549  func (m *CreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1550  	i := len(dAtA)
  1551  	_ = i
  1552  	var l int
  1553  	_ = l
  1554  	if m.XXX_unrecognized != nil {
  1555  		i -= len(m.XXX_unrecognized)
  1556  		copy(dAtA[i:], m.XXX_unrecognized)
  1557  	}
  1558  	if len(m.Token) > 0 {
  1559  		i -= len(m.Token)
  1560  		copy(dAtA[i:], m.Token)
  1561  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Token)))
  1562  		i--
  1563  		dAtA[i] = 0xa
  1564  	}
  1565  	return len(dAtA) - i, nil
  1566  }
  1567  
  1568  func (m *DeleteTokenRequest) Marshal() (dAtA []byte, err error) {
  1569  	size := m.Size()
  1570  	dAtA = make([]byte, size)
  1571  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1572  	if err != nil {
  1573  		return nil, err
  1574  	}
  1575  	return dAtA[:n], nil
  1576  }
  1577  
  1578  func (m *DeleteTokenRequest) MarshalTo(dAtA []byte) (int, error) {
  1579  	size := m.Size()
  1580  	return m.MarshalToSizedBuffer(dAtA[:size])
  1581  }
  1582  
  1583  func (m *DeleteTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1584  	i := len(dAtA)
  1585  	_ = i
  1586  	var l int
  1587  	_ = l
  1588  	if m.XXX_unrecognized != nil {
  1589  		i -= len(m.XXX_unrecognized)
  1590  		copy(dAtA[i:], m.XXX_unrecognized)
  1591  	}
  1592  	if len(m.Id) > 0 {
  1593  		i -= len(m.Id)
  1594  		copy(dAtA[i:], m.Id)
  1595  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Id)))
  1596  		i--
  1597  		dAtA[i] = 0x12
  1598  	}
  1599  	if len(m.Name) > 0 {
  1600  		i -= len(m.Name)
  1601  		copy(dAtA[i:], m.Name)
  1602  		i = encodeVarintAccount(dAtA, i, uint64(len(m.Name)))
  1603  		i--
  1604  		dAtA[i] = 0xa
  1605  	}
  1606  	return len(dAtA) - i, nil
  1607  }
  1608  
  1609  func (m *ListAccountRequest) Marshal() (dAtA []byte, err error) {
  1610  	size := m.Size()
  1611  	dAtA = make([]byte, size)
  1612  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1613  	if err != nil {
  1614  		return nil, err
  1615  	}
  1616  	return dAtA[:n], nil
  1617  }
  1618  
  1619  func (m *ListAccountRequest) MarshalTo(dAtA []byte) (int, error) {
  1620  	size := m.Size()
  1621  	return m.MarshalToSizedBuffer(dAtA[:size])
  1622  }
  1623  
  1624  func (m *ListAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1625  	i := len(dAtA)
  1626  	_ = i
  1627  	var l int
  1628  	_ = l
  1629  	if m.XXX_unrecognized != nil {
  1630  		i -= len(m.XXX_unrecognized)
  1631  		copy(dAtA[i:], m.XXX_unrecognized)
  1632  	}
  1633  	return len(dAtA) - i, nil
  1634  }
  1635  
  1636  func (m *EmptyResponse) Marshal() (dAtA []byte, err error) {
  1637  	size := m.Size()
  1638  	dAtA = make([]byte, size)
  1639  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1640  	if err != nil {
  1641  		return nil, err
  1642  	}
  1643  	return dAtA[:n], nil
  1644  }
  1645  
  1646  func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error) {
  1647  	size := m.Size()
  1648  	return m.MarshalToSizedBuffer(dAtA[:size])
  1649  }
  1650  
  1651  func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1652  	i := len(dAtA)
  1653  	_ = i
  1654  	var l int
  1655  	_ = l
  1656  	if m.XXX_unrecognized != nil {
  1657  		i -= len(m.XXX_unrecognized)
  1658  		copy(dAtA[i:], m.XXX_unrecognized)
  1659  	}
  1660  	return len(dAtA) - i, nil
  1661  }
  1662  
  1663  func encodeVarintAccount(dAtA []byte, offset int, v uint64) int {
  1664  	offset -= sovAccount(v)
  1665  	base := offset
  1666  	for v >= 1<<7 {
  1667  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1668  		v >>= 7
  1669  		offset++
  1670  	}
  1671  	dAtA[offset] = uint8(v)
  1672  	return base
  1673  }
  1674  func (m *UpdatePasswordRequest) Size() (n int) {
  1675  	if m == nil {
  1676  		return 0
  1677  	}
  1678  	var l int
  1679  	_ = l
  1680  	l = len(m.NewPassword)
  1681  	if l > 0 {
  1682  		n += 1 + l + sovAccount(uint64(l))
  1683  	}
  1684  	l = len(m.CurrentPassword)
  1685  	if l > 0 {
  1686  		n += 1 + l + sovAccount(uint64(l))
  1687  	}
  1688  	l = len(m.Name)
  1689  	if l > 0 {
  1690  		n += 1 + l + sovAccount(uint64(l))
  1691  	}
  1692  	if m.XXX_unrecognized != nil {
  1693  		n += len(m.XXX_unrecognized)
  1694  	}
  1695  	return n
  1696  }
  1697  
  1698  func (m *UpdatePasswordResponse) Size() (n int) {
  1699  	if m == nil {
  1700  		return 0
  1701  	}
  1702  	var l int
  1703  	_ = l
  1704  	if m.XXX_unrecognized != nil {
  1705  		n += len(m.XXX_unrecognized)
  1706  	}
  1707  	return n
  1708  }
  1709  
  1710  func (m *CanIRequest) Size() (n int) {
  1711  	if m == nil {
  1712  		return 0
  1713  	}
  1714  	var l int
  1715  	_ = l
  1716  	l = len(m.Resource)
  1717  	if l > 0 {
  1718  		n += 1 + l + sovAccount(uint64(l))
  1719  	}
  1720  	l = len(m.Action)
  1721  	if l > 0 {
  1722  		n += 1 + l + sovAccount(uint64(l))
  1723  	}
  1724  	l = len(m.Subresource)
  1725  	if l > 0 {
  1726  		n += 1 + l + sovAccount(uint64(l))
  1727  	}
  1728  	if m.XXX_unrecognized != nil {
  1729  		n += len(m.XXX_unrecognized)
  1730  	}
  1731  	return n
  1732  }
  1733  
  1734  func (m *CanIResponse) Size() (n int) {
  1735  	if m == nil {
  1736  		return 0
  1737  	}
  1738  	var l int
  1739  	_ = l
  1740  	l = len(m.Value)
  1741  	if l > 0 {
  1742  		n += 1 + l + sovAccount(uint64(l))
  1743  	}
  1744  	if m.XXX_unrecognized != nil {
  1745  		n += len(m.XXX_unrecognized)
  1746  	}
  1747  	return n
  1748  }
  1749  
  1750  func (m *GetAccountRequest) Size() (n int) {
  1751  	if m == nil {
  1752  		return 0
  1753  	}
  1754  	var l int
  1755  	_ = l
  1756  	l = len(m.Name)
  1757  	if l > 0 {
  1758  		n += 1 + l + sovAccount(uint64(l))
  1759  	}
  1760  	if m.XXX_unrecognized != nil {
  1761  		n += len(m.XXX_unrecognized)
  1762  	}
  1763  	return n
  1764  }
  1765  
  1766  func (m *Account) Size() (n int) {
  1767  	if m == nil {
  1768  		return 0
  1769  	}
  1770  	var l int
  1771  	_ = l
  1772  	l = len(m.Name)
  1773  	if l > 0 {
  1774  		n += 1 + l + sovAccount(uint64(l))
  1775  	}
  1776  	if m.Enabled {
  1777  		n += 2
  1778  	}
  1779  	if len(m.Capabilities) > 0 {
  1780  		for _, s := range m.Capabilities {
  1781  			l = len(s)
  1782  			n += 1 + l + sovAccount(uint64(l))
  1783  		}
  1784  	}
  1785  	if len(m.Tokens) > 0 {
  1786  		for _, e := range m.Tokens {
  1787  			l = e.Size()
  1788  			n += 1 + l + sovAccount(uint64(l))
  1789  		}
  1790  	}
  1791  	if m.XXX_unrecognized != nil {
  1792  		n += len(m.XXX_unrecognized)
  1793  	}
  1794  	return n
  1795  }
  1796  
  1797  func (m *AccountsList) Size() (n int) {
  1798  	if m == nil {
  1799  		return 0
  1800  	}
  1801  	var l int
  1802  	_ = l
  1803  	if len(m.Items) > 0 {
  1804  		for _, e := range m.Items {
  1805  			l = e.Size()
  1806  			n += 1 + l + sovAccount(uint64(l))
  1807  		}
  1808  	}
  1809  	if m.XXX_unrecognized != nil {
  1810  		n += len(m.XXX_unrecognized)
  1811  	}
  1812  	return n
  1813  }
  1814  
  1815  func (m *Token) Size() (n int) {
  1816  	if m == nil {
  1817  		return 0
  1818  	}
  1819  	var l int
  1820  	_ = l
  1821  	l = len(m.Id)
  1822  	if l > 0 {
  1823  		n += 1 + l + sovAccount(uint64(l))
  1824  	}
  1825  	if m.IssuedAt != 0 {
  1826  		n += 1 + sovAccount(uint64(m.IssuedAt))
  1827  	}
  1828  	if m.ExpiresAt != 0 {
  1829  		n += 1 + sovAccount(uint64(m.ExpiresAt))
  1830  	}
  1831  	if m.XXX_unrecognized != nil {
  1832  		n += len(m.XXX_unrecognized)
  1833  	}
  1834  	return n
  1835  }
  1836  
  1837  func (m *TokensList) Size() (n int) {
  1838  	if m == nil {
  1839  		return 0
  1840  	}
  1841  	var l int
  1842  	_ = l
  1843  	if len(m.Items) > 0 {
  1844  		for _, e := range m.Items {
  1845  			l = e.Size()
  1846  			n += 1 + l + sovAccount(uint64(l))
  1847  		}
  1848  	}
  1849  	if m.XXX_unrecognized != nil {
  1850  		n += len(m.XXX_unrecognized)
  1851  	}
  1852  	return n
  1853  }
  1854  
  1855  func (m *CreateTokenRequest) Size() (n int) {
  1856  	if m == nil {
  1857  		return 0
  1858  	}
  1859  	var l int
  1860  	_ = l
  1861  	l = len(m.Name)
  1862  	if l > 0 {
  1863  		n += 1 + l + sovAccount(uint64(l))
  1864  	}
  1865  	if m.ExpiresIn != 0 {
  1866  		n += 1 + sovAccount(uint64(m.ExpiresIn))
  1867  	}
  1868  	l = len(m.Id)
  1869  	if l > 0 {
  1870  		n += 1 + l + sovAccount(uint64(l))
  1871  	}
  1872  	if m.XXX_unrecognized != nil {
  1873  		n += len(m.XXX_unrecognized)
  1874  	}
  1875  	return n
  1876  }
  1877  
  1878  func (m *CreateTokenResponse) Size() (n int) {
  1879  	if m == nil {
  1880  		return 0
  1881  	}
  1882  	var l int
  1883  	_ = l
  1884  	l = len(m.Token)
  1885  	if l > 0 {
  1886  		n += 1 + l + sovAccount(uint64(l))
  1887  	}
  1888  	if m.XXX_unrecognized != nil {
  1889  		n += len(m.XXX_unrecognized)
  1890  	}
  1891  	return n
  1892  }
  1893  
  1894  func (m *DeleteTokenRequest) Size() (n int) {
  1895  	if m == nil {
  1896  		return 0
  1897  	}
  1898  	var l int
  1899  	_ = l
  1900  	l = len(m.Name)
  1901  	if l > 0 {
  1902  		n += 1 + l + sovAccount(uint64(l))
  1903  	}
  1904  	l = len(m.Id)
  1905  	if l > 0 {
  1906  		n += 1 + l + sovAccount(uint64(l))
  1907  	}
  1908  	if m.XXX_unrecognized != nil {
  1909  		n += len(m.XXX_unrecognized)
  1910  	}
  1911  	return n
  1912  }
  1913  
  1914  func (m *ListAccountRequest) Size() (n int) {
  1915  	if m == nil {
  1916  		return 0
  1917  	}
  1918  	var l int
  1919  	_ = l
  1920  	if m.XXX_unrecognized != nil {
  1921  		n += len(m.XXX_unrecognized)
  1922  	}
  1923  	return n
  1924  }
  1925  
  1926  func (m *EmptyResponse) Size() (n int) {
  1927  	if m == nil {
  1928  		return 0
  1929  	}
  1930  	var l int
  1931  	_ = l
  1932  	if m.XXX_unrecognized != nil {
  1933  		n += len(m.XXX_unrecognized)
  1934  	}
  1935  	return n
  1936  }
  1937  
  1938  func sovAccount(x uint64) (n int) {
  1939  	return (math_bits.Len64(x|1) + 6) / 7
  1940  }
  1941  func sozAccount(x uint64) (n int) {
  1942  	return sovAccount(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1943  }
  1944  func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error {
  1945  	l := len(dAtA)
  1946  	iNdEx := 0
  1947  	for iNdEx < l {
  1948  		preIndex := iNdEx
  1949  		var wire uint64
  1950  		for shift := uint(0); ; shift += 7 {
  1951  			if shift >= 64 {
  1952  				return ErrIntOverflowAccount
  1953  			}
  1954  			if iNdEx >= l {
  1955  				return io.ErrUnexpectedEOF
  1956  			}
  1957  			b := dAtA[iNdEx]
  1958  			iNdEx++
  1959  			wire |= uint64(b&0x7F) << shift
  1960  			if b < 0x80 {
  1961  				break
  1962  			}
  1963  		}
  1964  		fieldNum := int32(wire >> 3)
  1965  		wireType := int(wire & 0x7)
  1966  		if wireType == 4 {
  1967  			return fmt.Errorf("proto: UpdatePasswordRequest: wiretype end group for non-group")
  1968  		}
  1969  		if fieldNum <= 0 {
  1970  			return fmt.Errorf("proto: UpdatePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1971  		}
  1972  		switch fieldNum {
  1973  		case 1:
  1974  			if wireType != 2 {
  1975  				return fmt.Errorf("proto: wrong wireType = %d for field NewPassword", wireType)
  1976  			}
  1977  			var stringLen uint64
  1978  			for shift := uint(0); ; shift += 7 {
  1979  				if shift >= 64 {
  1980  					return ErrIntOverflowAccount
  1981  				}
  1982  				if iNdEx >= l {
  1983  					return io.ErrUnexpectedEOF
  1984  				}
  1985  				b := dAtA[iNdEx]
  1986  				iNdEx++
  1987  				stringLen |= uint64(b&0x7F) << shift
  1988  				if b < 0x80 {
  1989  					break
  1990  				}
  1991  			}
  1992  			intStringLen := int(stringLen)
  1993  			if intStringLen < 0 {
  1994  				return ErrInvalidLengthAccount
  1995  			}
  1996  			postIndex := iNdEx + intStringLen
  1997  			if postIndex < 0 {
  1998  				return ErrInvalidLengthAccount
  1999  			}
  2000  			if postIndex > l {
  2001  				return io.ErrUnexpectedEOF
  2002  			}
  2003  			m.NewPassword = string(dAtA[iNdEx:postIndex])
  2004  			iNdEx = postIndex
  2005  		case 2:
  2006  			if wireType != 2 {
  2007  				return fmt.Errorf("proto: wrong wireType = %d for field CurrentPassword", wireType)
  2008  			}
  2009  			var stringLen uint64
  2010  			for shift := uint(0); ; shift += 7 {
  2011  				if shift >= 64 {
  2012  					return ErrIntOverflowAccount
  2013  				}
  2014  				if iNdEx >= l {
  2015  					return io.ErrUnexpectedEOF
  2016  				}
  2017  				b := dAtA[iNdEx]
  2018  				iNdEx++
  2019  				stringLen |= uint64(b&0x7F) << shift
  2020  				if b < 0x80 {
  2021  					break
  2022  				}
  2023  			}
  2024  			intStringLen := int(stringLen)
  2025  			if intStringLen < 0 {
  2026  				return ErrInvalidLengthAccount
  2027  			}
  2028  			postIndex := iNdEx + intStringLen
  2029  			if postIndex < 0 {
  2030  				return ErrInvalidLengthAccount
  2031  			}
  2032  			if postIndex > l {
  2033  				return io.ErrUnexpectedEOF
  2034  			}
  2035  			m.CurrentPassword = string(dAtA[iNdEx:postIndex])
  2036  			iNdEx = postIndex
  2037  		case 3:
  2038  			if wireType != 2 {
  2039  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2040  			}
  2041  			var stringLen uint64
  2042  			for shift := uint(0); ; shift += 7 {
  2043  				if shift >= 64 {
  2044  					return ErrIntOverflowAccount
  2045  				}
  2046  				if iNdEx >= l {
  2047  					return io.ErrUnexpectedEOF
  2048  				}
  2049  				b := dAtA[iNdEx]
  2050  				iNdEx++
  2051  				stringLen |= uint64(b&0x7F) << shift
  2052  				if b < 0x80 {
  2053  					break
  2054  				}
  2055  			}
  2056  			intStringLen := int(stringLen)
  2057  			if intStringLen < 0 {
  2058  				return ErrInvalidLengthAccount
  2059  			}
  2060  			postIndex := iNdEx + intStringLen
  2061  			if postIndex < 0 {
  2062  				return ErrInvalidLengthAccount
  2063  			}
  2064  			if postIndex > l {
  2065  				return io.ErrUnexpectedEOF
  2066  			}
  2067  			m.Name = string(dAtA[iNdEx:postIndex])
  2068  			iNdEx = postIndex
  2069  		default:
  2070  			iNdEx = preIndex
  2071  			skippy, err := skipAccount(dAtA[iNdEx:])
  2072  			if err != nil {
  2073  				return err
  2074  			}
  2075  			if skippy < 0 {
  2076  				return ErrInvalidLengthAccount
  2077  			}
  2078  			if (iNdEx + skippy) < 0 {
  2079  				return ErrInvalidLengthAccount
  2080  			}
  2081  			if (iNdEx + skippy) > l {
  2082  				return io.ErrUnexpectedEOF
  2083  			}
  2084  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2085  			iNdEx += skippy
  2086  		}
  2087  	}
  2088  
  2089  	if iNdEx > l {
  2090  		return io.ErrUnexpectedEOF
  2091  	}
  2092  	return nil
  2093  }
  2094  func (m *UpdatePasswordResponse) Unmarshal(dAtA []byte) error {
  2095  	l := len(dAtA)
  2096  	iNdEx := 0
  2097  	for iNdEx < l {
  2098  		preIndex := iNdEx
  2099  		var wire uint64
  2100  		for shift := uint(0); ; shift += 7 {
  2101  			if shift >= 64 {
  2102  				return ErrIntOverflowAccount
  2103  			}
  2104  			if iNdEx >= l {
  2105  				return io.ErrUnexpectedEOF
  2106  			}
  2107  			b := dAtA[iNdEx]
  2108  			iNdEx++
  2109  			wire |= uint64(b&0x7F) << shift
  2110  			if b < 0x80 {
  2111  				break
  2112  			}
  2113  		}
  2114  		fieldNum := int32(wire >> 3)
  2115  		wireType := int(wire & 0x7)
  2116  		if wireType == 4 {
  2117  			return fmt.Errorf("proto: UpdatePasswordResponse: wiretype end group for non-group")
  2118  		}
  2119  		if fieldNum <= 0 {
  2120  			return fmt.Errorf("proto: UpdatePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2121  		}
  2122  		switch fieldNum {
  2123  		default:
  2124  			iNdEx = preIndex
  2125  			skippy, err := skipAccount(dAtA[iNdEx:])
  2126  			if err != nil {
  2127  				return err
  2128  			}
  2129  			if skippy < 0 {
  2130  				return ErrInvalidLengthAccount
  2131  			}
  2132  			if (iNdEx + skippy) < 0 {
  2133  				return ErrInvalidLengthAccount
  2134  			}
  2135  			if (iNdEx + skippy) > l {
  2136  				return io.ErrUnexpectedEOF
  2137  			}
  2138  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2139  			iNdEx += skippy
  2140  		}
  2141  	}
  2142  
  2143  	if iNdEx > l {
  2144  		return io.ErrUnexpectedEOF
  2145  	}
  2146  	return nil
  2147  }
  2148  func (m *CanIRequest) Unmarshal(dAtA []byte) error {
  2149  	l := len(dAtA)
  2150  	iNdEx := 0
  2151  	for iNdEx < l {
  2152  		preIndex := iNdEx
  2153  		var wire uint64
  2154  		for shift := uint(0); ; shift += 7 {
  2155  			if shift >= 64 {
  2156  				return ErrIntOverflowAccount
  2157  			}
  2158  			if iNdEx >= l {
  2159  				return io.ErrUnexpectedEOF
  2160  			}
  2161  			b := dAtA[iNdEx]
  2162  			iNdEx++
  2163  			wire |= uint64(b&0x7F) << shift
  2164  			if b < 0x80 {
  2165  				break
  2166  			}
  2167  		}
  2168  		fieldNum := int32(wire >> 3)
  2169  		wireType := int(wire & 0x7)
  2170  		if wireType == 4 {
  2171  			return fmt.Errorf("proto: CanIRequest: wiretype end group for non-group")
  2172  		}
  2173  		if fieldNum <= 0 {
  2174  			return fmt.Errorf("proto: CanIRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2175  		}
  2176  		switch fieldNum {
  2177  		case 1:
  2178  			if wireType != 2 {
  2179  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2180  			}
  2181  			var stringLen uint64
  2182  			for shift := uint(0); ; shift += 7 {
  2183  				if shift >= 64 {
  2184  					return ErrIntOverflowAccount
  2185  				}
  2186  				if iNdEx >= l {
  2187  					return io.ErrUnexpectedEOF
  2188  				}
  2189  				b := dAtA[iNdEx]
  2190  				iNdEx++
  2191  				stringLen |= uint64(b&0x7F) << shift
  2192  				if b < 0x80 {
  2193  					break
  2194  				}
  2195  			}
  2196  			intStringLen := int(stringLen)
  2197  			if intStringLen < 0 {
  2198  				return ErrInvalidLengthAccount
  2199  			}
  2200  			postIndex := iNdEx + intStringLen
  2201  			if postIndex < 0 {
  2202  				return ErrInvalidLengthAccount
  2203  			}
  2204  			if postIndex > l {
  2205  				return io.ErrUnexpectedEOF
  2206  			}
  2207  			m.Resource = string(dAtA[iNdEx:postIndex])
  2208  			iNdEx = postIndex
  2209  		case 2:
  2210  			if wireType != 2 {
  2211  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  2212  			}
  2213  			var stringLen uint64
  2214  			for shift := uint(0); ; shift += 7 {
  2215  				if shift >= 64 {
  2216  					return ErrIntOverflowAccount
  2217  				}
  2218  				if iNdEx >= l {
  2219  					return io.ErrUnexpectedEOF
  2220  				}
  2221  				b := dAtA[iNdEx]
  2222  				iNdEx++
  2223  				stringLen |= uint64(b&0x7F) << shift
  2224  				if b < 0x80 {
  2225  					break
  2226  				}
  2227  			}
  2228  			intStringLen := int(stringLen)
  2229  			if intStringLen < 0 {
  2230  				return ErrInvalidLengthAccount
  2231  			}
  2232  			postIndex := iNdEx + intStringLen
  2233  			if postIndex < 0 {
  2234  				return ErrInvalidLengthAccount
  2235  			}
  2236  			if postIndex > l {
  2237  				return io.ErrUnexpectedEOF
  2238  			}
  2239  			m.Action = string(dAtA[iNdEx:postIndex])
  2240  			iNdEx = postIndex
  2241  		case 3:
  2242  			if wireType != 2 {
  2243  				return fmt.Errorf("proto: wrong wireType = %d for field Subresource", wireType)
  2244  			}
  2245  			var stringLen uint64
  2246  			for shift := uint(0); ; shift += 7 {
  2247  				if shift >= 64 {
  2248  					return ErrIntOverflowAccount
  2249  				}
  2250  				if iNdEx >= l {
  2251  					return io.ErrUnexpectedEOF
  2252  				}
  2253  				b := dAtA[iNdEx]
  2254  				iNdEx++
  2255  				stringLen |= uint64(b&0x7F) << shift
  2256  				if b < 0x80 {
  2257  					break
  2258  				}
  2259  			}
  2260  			intStringLen := int(stringLen)
  2261  			if intStringLen < 0 {
  2262  				return ErrInvalidLengthAccount
  2263  			}
  2264  			postIndex := iNdEx + intStringLen
  2265  			if postIndex < 0 {
  2266  				return ErrInvalidLengthAccount
  2267  			}
  2268  			if postIndex > l {
  2269  				return io.ErrUnexpectedEOF
  2270  			}
  2271  			m.Subresource = string(dAtA[iNdEx:postIndex])
  2272  			iNdEx = postIndex
  2273  		default:
  2274  			iNdEx = preIndex
  2275  			skippy, err := skipAccount(dAtA[iNdEx:])
  2276  			if err != nil {
  2277  				return err
  2278  			}
  2279  			if skippy < 0 {
  2280  				return ErrInvalidLengthAccount
  2281  			}
  2282  			if (iNdEx + skippy) < 0 {
  2283  				return ErrInvalidLengthAccount
  2284  			}
  2285  			if (iNdEx + skippy) > l {
  2286  				return io.ErrUnexpectedEOF
  2287  			}
  2288  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2289  			iNdEx += skippy
  2290  		}
  2291  	}
  2292  
  2293  	if iNdEx > l {
  2294  		return io.ErrUnexpectedEOF
  2295  	}
  2296  	return nil
  2297  }
  2298  func (m *CanIResponse) Unmarshal(dAtA []byte) error {
  2299  	l := len(dAtA)
  2300  	iNdEx := 0
  2301  	for iNdEx < l {
  2302  		preIndex := iNdEx
  2303  		var wire uint64
  2304  		for shift := uint(0); ; shift += 7 {
  2305  			if shift >= 64 {
  2306  				return ErrIntOverflowAccount
  2307  			}
  2308  			if iNdEx >= l {
  2309  				return io.ErrUnexpectedEOF
  2310  			}
  2311  			b := dAtA[iNdEx]
  2312  			iNdEx++
  2313  			wire |= uint64(b&0x7F) << shift
  2314  			if b < 0x80 {
  2315  				break
  2316  			}
  2317  		}
  2318  		fieldNum := int32(wire >> 3)
  2319  		wireType := int(wire & 0x7)
  2320  		if wireType == 4 {
  2321  			return fmt.Errorf("proto: CanIResponse: wiretype end group for non-group")
  2322  		}
  2323  		if fieldNum <= 0 {
  2324  			return fmt.Errorf("proto: CanIResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2325  		}
  2326  		switch fieldNum {
  2327  		case 1:
  2328  			if wireType != 2 {
  2329  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  2330  			}
  2331  			var stringLen uint64
  2332  			for shift := uint(0); ; shift += 7 {
  2333  				if shift >= 64 {
  2334  					return ErrIntOverflowAccount
  2335  				}
  2336  				if iNdEx >= l {
  2337  					return io.ErrUnexpectedEOF
  2338  				}
  2339  				b := dAtA[iNdEx]
  2340  				iNdEx++
  2341  				stringLen |= uint64(b&0x7F) << shift
  2342  				if b < 0x80 {
  2343  					break
  2344  				}
  2345  			}
  2346  			intStringLen := int(stringLen)
  2347  			if intStringLen < 0 {
  2348  				return ErrInvalidLengthAccount
  2349  			}
  2350  			postIndex := iNdEx + intStringLen
  2351  			if postIndex < 0 {
  2352  				return ErrInvalidLengthAccount
  2353  			}
  2354  			if postIndex > l {
  2355  				return io.ErrUnexpectedEOF
  2356  			}
  2357  			m.Value = string(dAtA[iNdEx:postIndex])
  2358  			iNdEx = postIndex
  2359  		default:
  2360  			iNdEx = preIndex
  2361  			skippy, err := skipAccount(dAtA[iNdEx:])
  2362  			if err != nil {
  2363  				return err
  2364  			}
  2365  			if skippy < 0 {
  2366  				return ErrInvalidLengthAccount
  2367  			}
  2368  			if (iNdEx + skippy) < 0 {
  2369  				return ErrInvalidLengthAccount
  2370  			}
  2371  			if (iNdEx + skippy) > l {
  2372  				return io.ErrUnexpectedEOF
  2373  			}
  2374  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2375  			iNdEx += skippy
  2376  		}
  2377  	}
  2378  
  2379  	if iNdEx > l {
  2380  		return io.ErrUnexpectedEOF
  2381  	}
  2382  	return nil
  2383  }
  2384  func (m *GetAccountRequest) Unmarshal(dAtA []byte) error {
  2385  	l := len(dAtA)
  2386  	iNdEx := 0
  2387  	for iNdEx < l {
  2388  		preIndex := iNdEx
  2389  		var wire uint64
  2390  		for shift := uint(0); ; shift += 7 {
  2391  			if shift >= 64 {
  2392  				return ErrIntOverflowAccount
  2393  			}
  2394  			if iNdEx >= l {
  2395  				return io.ErrUnexpectedEOF
  2396  			}
  2397  			b := dAtA[iNdEx]
  2398  			iNdEx++
  2399  			wire |= uint64(b&0x7F) << shift
  2400  			if b < 0x80 {
  2401  				break
  2402  			}
  2403  		}
  2404  		fieldNum := int32(wire >> 3)
  2405  		wireType := int(wire & 0x7)
  2406  		if wireType == 4 {
  2407  			return fmt.Errorf("proto: GetAccountRequest: wiretype end group for non-group")
  2408  		}
  2409  		if fieldNum <= 0 {
  2410  			return fmt.Errorf("proto: GetAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2411  		}
  2412  		switch fieldNum {
  2413  		case 1:
  2414  			if wireType != 2 {
  2415  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2416  			}
  2417  			var stringLen uint64
  2418  			for shift := uint(0); ; shift += 7 {
  2419  				if shift >= 64 {
  2420  					return ErrIntOverflowAccount
  2421  				}
  2422  				if iNdEx >= l {
  2423  					return io.ErrUnexpectedEOF
  2424  				}
  2425  				b := dAtA[iNdEx]
  2426  				iNdEx++
  2427  				stringLen |= uint64(b&0x7F) << shift
  2428  				if b < 0x80 {
  2429  					break
  2430  				}
  2431  			}
  2432  			intStringLen := int(stringLen)
  2433  			if intStringLen < 0 {
  2434  				return ErrInvalidLengthAccount
  2435  			}
  2436  			postIndex := iNdEx + intStringLen
  2437  			if postIndex < 0 {
  2438  				return ErrInvalidLengthAccount
  2439  			}
  2440  			if postIndex > l {
  2441  				return io.ErrUnexpectedEOF
  2442  			}
  2443  			m.Name = string(dAtA[iNdEx:postIndex])
  2444  			iNdEx = postIndex
  2445  		default:
  2446  			iNdEx = preIndex
  2447  			skippy, err := skipAccount(dAtA[iNdEx:])
  2448  			if err != nil {
  2449  				return err
  2450  			}
  2451  			if skippy < 0 {
  2452  				return ErrInvalidLengthAccount
  2453  			}
  2454  			if (iNdEx + skippy) < 0 {
  2455  				return ErrInvalidLengthAccount
  2456  			}
  2457  			if (iNdEx + skippy) > l {
  2458  				return io.ErrUnexpectedEOF
  2459  			}
  2460  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2461  			iNdEx += skippy
  2462  		}
  2463  	}
  2464  
  2465  	if iNdEx > l {
  2466  		return io.ErrUnexpectedEOF
  2467  	}
  2468  	return nil
  2469  }
  2470  func (m *Account) Unmarshal(dAtA []byte) error {
  2471  	l := len(dAtA)
  2472  	iNdEx := 0
  2473  	for iNdEx < l {
  2474  		preIndex := iNdEx
  2475  		var wire uint64
  2476  		for shift := uint(0); ; shift += 7 {
  2477  			if shift >= 64 {
  2478  				return ErrIntOverflowAccount
  2479  			}
  2480  			if iNdEx >= l {
  2481  				return io.ErrUnexpectedEOF
  2482  			}
  2483  			b := dAtA[iNdEx]
  2484  			iNdEx++
  2485  			wire |= uint64(b&0x7F) << shift
  2486  			if b < 0x80 {
  2487  				break
  2488  			}
  2489  		}
  2490  		fieldNum := int32(wire >> 3)
  2491  		wireType := int(wire & 0x7)
  2492  		if wireType == 4 {
  2493  			return fmt.Errorf("proto: Account: wiretype end group for non-group")
  2494  		}
  2495  		if fieldNum <= 0 {
  2496  			return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire)
  2497  		}
  2498  		switch fieldNum {
  2499  		case 1:
  2500  			if wireType != 2 {
  2501  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2502  			}
  2503  			var stringLen uint64
  2504  			for shift := uint(0); ; shift += 7 {
  2505  				if shift >= 64 {
  2506  					return ErrIntOverflowAccount
  2507  				}
  2508  				if iNdEx >= l {
  2509  					return io.ErrUnexpectedEOF
  2510  				}
  2511  				b := dAtA[iNdEx]
  2512  				iNdEx++
  2513  				stringLen |= uint64(b&0x7F) << shift
  2514  				if b < 0x80 {
  2515  					break
  2516  				}
  2517  			}
  2518  			intStringLen := int(stringLen)
  2519  			if intStringLen < 0 {
  2520  				return ErrInvalidLengthAccount
  2521  			}
  2522  			postIndex := iNdEx + intStringLen
  2523  			if postIndex < 0 {
  2524  				return ErrInvalidLengthAccount
  2525  			}
  2526  			if postIndex > l {
  2527  				return io.ErrUnexpectedEOF
  2528  			}
  2529  			m.Name = string(dAtA[iNdEx:postIndex])
  2530  			iNdEx = postIndex
  2531  		case 2:
  2532  			if wireType != 0 {
  2533  				return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
  2534  			}
  2535  			var v int
  2536  			for shift := uint(0); ; shift += 7 {
  2537  				if shift >= 64 {
  2538  					return ErrIntOverflowAccount
  2539  				}
  2540  				if iNdEx >= l {
  2541  					return io.ErrUnexpectedEOF
  2542  				}
  2543  				b := dAtA[iNdEx]
  2544  				iNdEx++
  2545  				v |= int(b&0x7F) << shift
  2546  				if b < 0x80 {
  2547  					break
  2548  				}
  2549  			}
  2550  			m.Enabled = bool(v != 0)
  2551  		case 3:
  2552  			if wireType != 2 {
  2553  				return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType)
  2554  			}
  2555  			var stringLen uint64
  2556  			for shift := uint(0); ; shift += 7 {
  2557  				if shift >= 64 {
  2558  					return ErrIntOverflowAccount
  2559  				}
  2560  				if iNdEx >= l {
  2561  					return io.ErrUnexpectedEOF
  2562  				}
  2563  				b := dAtA[iNdEx]
  2564  				iNdEx++
  2565  				stringLen |= uint64(b&0x7F) << shift
  2566  				if b < 0x80 {
  2567  					break
  2568  				}
  2569  			}
  2570  			intStringLen := int(stringLen)
  2571  			if intStringLen < 0 {
  2572  				return ErrInvalidLengthAccount
  2573  			}
  2574  			postIndex := iNdEx + intStringLen
  2575  			if postIndex < 0 {
  2576  				return ErrInvalidLengthAccount
  2577  			}
  2578  			if postIndex > l {
  2579  				return io.ErrUnexpectedEOF
  2580  			}
  2581  			m.Capabilities = append(m.Capabilities, string(dAtA[iNdEx:postIndex]))
  2582  			iNdEx = postIndex
  2583  		case 4:
  2584  			if wireType != 2 {
  2585  				return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType)
  2586  			}
  2587  			var msglen int
  2588  			for shift := uint(0); ; shift += 7 {
  2589  				if shift >= 64 {
  2590  					return ErrIntOverflowAccount
  2591  				}
  2592  				if iNdEx >= l {
  2593  					return io.ErrUnexpectedEOF
  2594  				}
  2595  				b := dAtA[iNdEx]
  2596  				iNdEx++
  2597  				msglen |= int(b&0x7F) << shift
  2598  				if b < 0x80 {
  2599  					break
  2600  				}
  2601  			}
  2602  			if msglen < 0 {
  2603  				return ErrInvalidLengthAccount
  2604  			}
  2605  			postIndex := iNdEx + msglen
  2606  			if postIndex < 0 {
  2607  				return ErrInvalidLengthAccount
  2608  			}
  2609  			if postIndex > l {
  2610  				return io.ErrUnexpectedEOF
  2611  			}
  2612  			m.Tokens = append(m.Tokens, &Token{})
  2613  			if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2614  				return err
  2615  			}
  2616  			iNdEx = postIndex
  2617  		default:
  2618  			iNdEx = preIndex
  2619  			skippy, err := skipAccount(dAtA[iNdEx:])
  2620  			if err != nil {
  2621  				return err
  2622  			}
  2623  			if skippy < 0 {
  2624  				return ErrInvalidLengthAccount
  2625  			}
  2626  			if (iNdEx + skippy) < 0 {
  2627  				return ErrInvalidLengthAccount
  2628  			}
  2629  			if (iNdEx + skippy) > l {
  2630  				return io.ErrUnexpectedEOF
  2631  			}
  2632  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2633  			iNdEx += skippy
  2634  		}
  2635  	}
  2636  
  2637  	if iNdEx > l {
  2638  		return io.ErrUnexpectedEOF
  2639  	}
  2640  	return nil
  2641  }
  2642  func (m *AccountsList) Unmarshal(dAtA []byte) error {
  2643  	l := len(dAtA)
  2644  	iNdEx := 0
  2645  	for iNdEx < l {
  2646  		preIndex := iNdEx
  2647  		var wire uint64
  2648  		for shift := uint(0); ; shift += 7 {
  2649  			if shift >= 64 {
  2650  				return ErrIntOverflowAccount
  2651  			}
  2652  			if iNdEx >= l {
  2653  				return io.ErrUnexpectedEOF
  2654  			}
  2655  			b := dAtA[iNdEx]
  2656  			iNdEx++
  2657  			wire |= uint64(b&0x7F) << shift
  2658  			if b < 0x80 {
  2659  				break
  2660  			}
  2661  		}
  2662  		fieldNum := int32(wire >> 3)
  2663  		wireType := int(wire & 0x7)
  2664  		if wireType == 4 {
  2665  			return fmt.Errorf("proto: AccountsList: wiretype end group for non-group")
  2666  		}
  2667  		if fieldNum <= 0 {
  2668  			return fmt.Errorf("proto: AccountsList: illegal tag %d (wire type %d)", fieldNum, wire)
  2669  		}
  2670  		switch fieldNum {
  2671  		case 1:
  2672  			if wireType != 2 {
  2673  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2674  			}
  2675  			var msglen int
  2676  			for shift := uint(0); ; shift += 7 {
  2677  				if shift >= 64 {
  2678  					return ErrIntOverflowAccount
  2679  				}
  2680  				if iNdEx >= l {
  2681  					return io.ErrUnexpectedEOF
  2682  				}
  2683  				b := dAtA[iNdEx]
  2684  				iNdEx++
  2685  				msglen |= int(b&0x7F) << shift
  2686  				if b < 0x80 {
  2687  					break
  2688  				}
  2689  			}
  2690  			if msglen < 0 {
  2691  				return ErrInvalidLengthAccount
  2692  			}
  2693  			postIndex := iNdEx + msglen
  2694  			if postIndex < 0 {
  2695  				return ErrInvalidLengthAccount
  2696  			}
  2697  			if postIndex > l {
  2698  				return io.ErrUnexpectedEOF
  2699  			}
  2700  			m.Items = append(m.Items, &Account{})
  2701  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2702  				return err
  2703  			}
  2704  			iNdEx = postIndex
  2705  		default:
  2706  			iNdEx = preIndex
  2707  			skippy, err := skipAccount(dAtA[iNdEx:])
  2708  			if err != nil {
  2709  				return err
  2710  			}
  2711  			if skippy < 0 {
  2712  				return ErrInvalidLengthAccount
  2713  			}
  2714  			if (iNdEx + skippy) < 0 {
  2715  				return ErrInvalidLengthAccount
  2716  			}
  2717  			if (iNdEx + skippy) > l {
  2718  				return io.ErrUnexpectedEOF
  2719  			}
  2720  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2721  			iNdEx += skippy
  2722  		}
  2723  	}
  2724  
  2725  	if iNdEx > l {
  2726  		return io.ErrUnexpectedEOF
  2727  	}
  2728  	return nil
  2729  }
  2730  func (m *Token) Unmarshal(dAtA []byte) error {
  2731  	l := len(dAtA)
  2732  	iNdEx := 0
  2733  	for iNdEx < l {
  2734  		preIndex := iNdEx
  2735  		var wire uint64
  2736  		for shift := uint(0); ; shift += 7 {
  2737  			if shift >= 64 {
  2738  				return ErrIntOverflowAccount
  2739  			}
  2740  			if iNdEx >= l {
  2741  				return io.ErrUnexpectedEOF
  2742  			}
  2743  			b := dAtA[iNdEx]
  2744  			iNdEx++
  2745  			wire |= uint64(b&0x7F) << shift
  2746  			if b < 0x80 {
  2747  				break
  2748  			}
  2749  		}
  2750  		fieldNum := int32(wire >> 3)
  2751  		wireType := int(wire & 0x7)
  2752  		if wireType == 4 {
  2753  			return fmt.Errorf("proto: Token: wiretype end group for non-group")
  2754  		}
  2755  		if fieldNum <= 0 {
  2756  			return fmt.Errorf("proto: Token: illegal tag %d (wire type %d)", fieldNum, wire)
  2757  		}
  2758  		switch fieldNum {
  2759  		case 1:
  2760  			if wireType != 2 {
  2761  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  2762  			}
  2763  			var stringLen uint64
  2764  			for shift := uint(0); ; shift += 7 {
  2765  				if shift >= 64 {
  2766  					return ErrIntOverflowAccount
  2767  				}
  2768  				if iNdEx >= l {
  2769  					return io.ErrUnexpectedEOF
  2770  				}
  2771  				b := dAtA[iNdEx]
  2772  				iNdEx++
  2773  				stringLen |= uint64(b&0x7F) << shift
  2774  				if b < 0x80 {
  2775  					break
  2776  				}
  2777  			}
  2778  			intStringLen := int(stringLen)
  2779  			if intStringLen < 0 {
  2780  				return ErrInvalidLengthAccount
  2781  			}
  2782  			postIndex := iNdEx + intStringLen
  2783  			if postIndex < 0 {
  2784  				return ErrInvalidLengthAccount
  2785  			}
  2786  			if postIndex > l {
  2787  				return io.ErrUnexpectedEOF
  2788  			}
  2789  			m.Id = string(dAtA[iNdEx:postIndex])
  2790  			iNdEx = postIndex
  2791  		case 2:
  2792  			if wireType != 0 {
  2793  				return fmt.Errorf("proto: wrong wireType = %d for field IssuedAt", wireType)
  2794  			}
  2795  			m.IssuedAt = 0
  2796  			for shift := uint(0); ; shift += 7 {
  2797  				if shift >= 64 {
  2798  					return ErrIntOverflowAccount
  2799  				}
  2800  				if iNdEx >= l {
  2801  					return io.ErrUnexpectedEOF
  2802  				}
  2803  				b := dAtA[iNdEx]
  2804  				iNdEx++
  2805  				m.IssuedAt |= int64(b&0x7F) << shift
  2806  				if b < 0x80 {
  2807  					break
  2808  				}
  2809  			}
  2810  		case 3:
  2811  			if wireType != 0 {
  2812  				return fmt.Errorf("proto: wrong wireType = %d for field ExpiresAt", wireType)
  2813  			}
  2814  			m.ExpiresAt = 0
  2815  			for shift := uint(0); ; shift += 7 {
  2816  				if shift >= 64 {
  2817  					return ErrIntOverflowAccount
  2818  				}
  2819  				if iNdEx >= l {
  2820  					return io.ErrUnexpectedEOF
  2821  				}
  2822  				b := dAtA[iNdEx]
  2823  				iNdEx++
  2824  				m.ExpiresAt |= int64(b&0x7F) << shift
  2825  				if b < 0x80 {
  2826  					break
  2827  				}
  2828  			}
  2829  		default:
  2830  			iNdEx = preIndex
  2831  			skippy, err := skipAccount(dAtA[iNdEx:])
  2832  			if err != nil {
  2833  				return err
  2834  			}
  2835  			if skippy < 0 {
  2836  				return ErrInvalidLengthAccount
  2837  			}
  2838  			if (iNdEx + skippy) < 0 {
  2839  				return ErrInvalidLengthAccount
  2840  			}
  2841  			if (iNdEx + skippy) > l {
  2842  				return io.ErrUnexpectedEOF
  2843  			}
  2844  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2845  			iNdEx += skippy
  2846  		}
  2847  	}
  2848  
  2849  	if iNdEx > l {
  2850  		return io.ErrUnexpectedEOF
  2851  	}
  2852  	return nil
  2853  }
  2854  func (m *TokensList) Unmarshal(dAtA []byte) error {
  2855  	l := len(dAtA)
  2856  	iNdEx := 0
  2857  	for iNdEx < l {
  2858  		preIndex := iNdEx
  2859  		var wire uint64
  2860  		for shift := uint(0); ; shift += 7 {
  2861  			if shift >= 64 {
  2862  				return ErrIntOverflowAccount
  2863  			}
  2864  			if iNdEx >= l {
  2865  				return io.ErrUnexpectedEOF
  2866  			}
  2867  			b := dAtA[iNdEx]
  2868  			iNdEx++
  2869  			wire |= uint64(b&0x7F) << shift
  2870  			if b < 0x80 {
  2871  				break
  2872  			}
  2873  		}
  2874  		fieldNum := int32(wire >> 3)
  2875  		wireType := int(wire & 0x7)
  2876  		if wireType == 4 {
  2877  			return fmt.Errorf("proto: TokensList: wiretype end group for non-group")
  2878  		}
  2879  		if fieldNum <= 0 {
  2880  			return fmt.Errorf("proto: TokensList: illegal tag %d (wire type %d)", fieldNum, wire)
  2881  		}
  2882  		switch fieldNum {
  2883  		case 1:
  2884  			if wireType != 2 {
  2885  				return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  2886  			}
  2887  			var msglen int
  2888  			for shift := uint(0); ; shift += 7 {
  2889  				if shift >= 64 {
  2890  					return ErrIntOverflowAccount
  2891  				}
  2892  				if iNdEx >= l {
  2893  					return io.ErrUnexpectedEOF
  2894  				}
  2895  				b := dAtA[iNdEx]
  2896  				iNdEx++
  2897  				msglen |= int(b&0x7F) << shift
  2898  				if b < 0x80 {
  2899  					break
  2900  				}
  2901  			}
  2902  			if msglen < 0 {
  2903  				return ErrInvalidLengthAccount
  2904  			}
  2905  			postIndex := iNdEx + msglen
  2906  			if postIndex < 0 {
  2907  				return ErrInvalidLengthAccount
  2908  			}
  2909  			if postIndex > l {
  2910  				return io.ErrUnexpectedEOF
  2911  			}
  2912  			m.Items = append(m.Items, &Token{})
  2913  			if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2914  				return err
  2915  			}
  2916  			iNdEx = postIndex
  2917  		default:
  2918  			iNdEx = preIndex
  2919  			skippy, err := skipAccount(dAtA[iNdEx:])
  2920  			if err != nil {
  2921  				return err
  2922  			}
  2923  			if skippy < 0 {
  2924  				return ErrInvalidLengthAccount
  2925  			}
  2926  			if (iNdEx + skippy) < 0 {
  2927  				return ErrInvalidLengthAccount
  2928  			}
  2929  			if (iNdEx + skippy) > l {
  2930  				return io.ErrUnexpectedEOF
  2931  			}
  2932  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2933  			iNdEx += skippy
  2934  		}
  2935  	}
  2936  
  2937  	if iNdEx > l {
  2938  		return io.ErrUnexpectedEOF
  2939  	}
  2940  	return nil
  2941  }
  2942  func (m *CreateTokenRequest) Unmarshal(dAtA []byte) error {
  2943  	l := len(dAtA)
  2944  	iNdEx := 0
  2945  	for iNdEx < l {
  2946  		preIndex := iNdEx
  2947  		var wire uint64
  2948  		for shift := uint(0); ; shift += 7 {
  2949  			if shift >= 64 {
  2950  				return ErrIntOverflowAccount
  2951  			}
  2952  			if iNdEx >= l {
  2953  				return io.ErrUnexpectedEOF
  2954  			}
  2955  			b := dAtA[iNdEx]
  2956  			iNdEx++
  2957  			wire |= uint64(b&0x7F) << shift
  2958  			if b < 0x80 {
  2959  				break
  2960  			}
  2961  		}
  2962  		fieldNum := int32(wire >> 3)
  2963  		wireType := int(wire & 0x7)
  2964  		if wireType == 4 {
  2965  			return fmt.Errorf("proto: CreateTokenRequest: wiretype end group for non-group")
  2966  		}
  2967  		if fieldNum <= 0 {
  2968  			return fmt.Errorf("proto: CreateTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2969  		}
  2970  		switch fieldNum {
  2971  		case 1:
  2972  			if wireType != 2 {
  2973  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2974  			}
  2975  			var stringLen uint64
  2976  			for shift := uint(0); ; shift += 7 {
  2977  				if shift >= 64 {
  2978  					return ErrIntOverflowAccount
  2979  				}
  2980  				if iNdEx >= l {
  2981  					return io.ErrUnexpectedEOF
  2982  				}
  2983  				b := dAtA[iNdEx]
  2984  				iNdEx++
  2985  				stringLen |= uint64(b&0x7F) << shift
  2986  				if b < 0x80 {
  2987  					break
  2988  				}
  2989  			}
  2990  			intStringLen := int(stringLen)
  2991  			if intStringLen < 0 {
  2992  				return ErrInvalidLengthAccount
  2993  			}
  2994  			postIndex := iNdEx + intStringLen
  2995  			if postIndex < 0 {
  2996  				return ErrInvalidLengthAccount
  2997  			}
  2998  			if postIndex > l {
  2999  				return io.ErrUnexpectedEOF
  3000  			}
  3001  			m.Name = string(dAtA[iNdEx:postIndex])
  3002  			iNdEx = postIndex
  3003  		case 2:
  3004  			if wireType != 0 {
  3005  				return fmt.Errorf("proto: wrong wireType = %d for field ExpiresIn", wireType)
  3006  			}
  3007  			m.ExpiresIn = 0
  3008  			for shift := uint(0); ; shift += 7 {
  3009  				if shift >= 64 {
  3010  					return ErrIntOverflowAccount
  3011  				}
  3012  				if iNdEx >= l {
  3013  					return io.ErrUnexpectedEOF
  3014  				}
  3015  				b := dAtA[iNdEx]
  3016  				iNdEx++
  3017  				m.ExpiresIn |= int64(b&0x7F) << shift
  3018  				if b < 0x80 {
  3019  					break
  3020  				}
  3021  			}
  3022  		case 3:
  3023  			if wireType != 2 {
  3024  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3025  			}
  3026  			var stringLen uint64
  3027  			for shift := uint(0); ; shift += 7 {
  3028  				if shift >= 64 {
  3029  					return ErrIntOverflowAccount
  3030  				}
  3031  				if iNdEx >= l {
  3032  					return io.ErrUnexpectedEOF
  3033  				}
  3034  				b := dAtA[iNdEx]
  3035  				iNdEx++
  3036  				stringLen |= uint64(b&0x7F) << shift
  3037  				if b < 0x80 {
  3038  					break
  3039  				}
  3040  			}
  3041  			intStringLen := int(stringLen)
  3042  			if intStringLen < 0 {
  3043  				return ErrInvalidLengthAccount
  3044  			}
  3045  			postIndex := iNdEx + intStringLen
  3046  			if postIndex < 0 {
  3047  				return ErrInvalidLengthAccount
  3048  			}
  3049  			if postIndex > l {
  3050  				return io.ErrUnexpectedEOF
  3051  			}
  3052  			m.Id = string(dAtA[iNdEx:postIndex])
  3053  			iNdEx = postIndex
  3054  		default:
  3055  			iNdEx = preIndex
  3056  			skippy, err := skipAccount(dAtA[iNdEx:])
  3057  			if err != nil {
  3058  				return err
  3059  			}
  3060  			if skippy < 0 {
  3061  				return ErrInvalidLengthAccount
  3062  			}
  3063  			if (iNdEx + skippy) < 0 {
  3064  				return ErrInvalidLengthAccount
  3065  			}
  3066  			if (iNdEx + skippy) > l {
  3067  				return io.ErrUnexpectedEOF
  3068  			}
  3069  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3070  			iNdEx += skippy
  3071  		}
  3072  	}
  3073  
  3074  	if iNdEx > l {
  3075  		return io.ErrUnexpectedEOF
  3076  	}
  3077  	return nil
  3078  }
  3079  func (m *CreateTokenResponse) Unmarshal(dAtA []byte) error {
  3080  	l := len(dAtA)
  3081  	iNdEx := 0
  3082  	for iNdEx < l {
  3083  		preIndex := iNdEx
  3084  		var wire uint64
  3085  		for shift := uint(0); ; shift += 7 {
  3086  			if shift >= 64 {
  3087  				return ErrIntOverflowAccount
  3088  			}
  3089  			if iNdEx >= l {
  3090  				return io.ErrUnexpectedEOF
  3091  			}
  3092  			b := dAtA[iNdEx]
  3093  			iNdEx++
  3094  			wire |= uint64(b&0x7F) << shift
  3095  			if b < 0x80 {
  3096  				break
  3097  			}
  3098  		}
  3099  		fieldNum := int32(wire >> 3)
  3100  		wireType := int(wire & 0x7)
  3101  		if wireType == 4 {
  3102  			return fmt.Errorf("proto: CreateTokenResponse: wiretype end group for non-group")
  3103  		}
  3104  		if fieldNum <= 0 {
  3105  			return fmt.Errorf("proto: CreateTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3106  		}
  3107  		switch fieldNum {
  3108  		case 1:
  3109  			if wireType != 2 {
  3110  				return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  3111  			}
  3112  			var stringLen uint64
  3113  			for shift := uint(0); ; shift += 7 {
  3114  				if shift >= 64 {
  3115  					return ErrIntOverflowAccount
  3116  				}
  3117  				if iNdEx >= l {
  3118  					return io.ErrUnexpectedEOF
  3119  				}
  3120  				b := dAtA[iNdEx]
  3121  				iNdEx++
  3122  				stringLen |= uint64(b&0x7F) << shift
  3123  				if b < 0x80 {
  3124  					break
  3125  				}
  3126  			}
  3127  			intStringLen := int(stringLen)
  3128  			if intStringLen < 0 {
  3129  				return ErrInvalidLengthAccount
  3130  			}
  3131  			postIndex := iNdEx + intStringLen
  3132  			if postIndex < 0 {
  3133  				return ErrInvalidLengthAccount
  3134  			}
  3135  			if postIndex > l {
  3136  				return io.ErrUnexpectedEOF
  3137  			}
  3138  			m.Token = string(dAtA[iNdEx:postIndex])
  3139  			iNdEx = postIndex
  3140  		default:
  3141  			iNdEx = preIndex
  3142  			skippy, err := skipAccount(dAtA[iNdEx:])
  3143  			if err != nil {
  3144  				return err
  3145  			}
  3146  			if skippy < 0 {
  3147  				return ErrInvalidLengthAccount
  3148  			}
  3149  			if (iNdEx + skippy) < 0 {
  3150  				return ErrInvalidLengthAccount
  3151  			}
  3152  			if (iNdEx + skippy) > l {
  3153  				return io.ErrUnexpectedEOF
  3154  			}
  3155  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3156  			iNdEx += skippy
  3157  		}
  3158  	}
  3159  
  3160  	if iNdEx > l {
  3161  		return io.ErrUnexpectedEOF
  3162  	}
  3163  	return nil
  3164  }
  3165  func (m *DeleteTokenRequest) Unmarshal(dAtA []byte) error {
  3166  	l := len(dAtA)
  3167  	iNdEx := 0
  3168  	for iNdEx < l {
  3169  		preIndex := iNdEx
  3170  		var wire uint64
  3171  		for shift := uint(0); ; shift += 7 {
  3172  			if shift >= 64 {
  3173  				return ErrIntOverflowAccount
  3174  			}
  3175  			if iNdEx >= l {
  3176  				return io.ErrUnexpectedEOF
  3177  			}
  3178  			b := dAtA[iNdEx]
  3179  			iNdEx++
  3180  			wire |= uint64(b&0x7F) << shift
  3181  			if b < 0x80 {
  3182  				break
  3183  			}
  3184  		}
  3185  		fieldNum := int32(wire >> 3)
  3186  		wireType := int(wire & 0x7)
  3187  		if wireType == 4 {
  3188  			return fmt.Errorf("proto: DeleteTokenRequest: wiretype end group for non-group")
  3189  		}
  3190  		if fieldNum <= 0 {
  3191  			return fmt.Errorf("proto: DeleteTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3192  		}
  3193  		switch fieldNum {
  3194  		case 1:
  3195  			if wireType != 2 {
  3196  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3197  			}
  3198  			var stringLen uint64
  3199  			for shift := uint(0); ; shift += 7 {
  3200  				if shift >= 64 {
  3201  					return ErrIntOverflowAccount
  3202  				}
  3203  				if iNdEx >= l {
  3204  					return io.ErrUnexpectedEOF
  3205  				}
  3206  				b := dAtA[iNdEx]
  3207  				iNdEx++
  3208  				stringLen |= uint64(b&0x7F) << shift
  3209  				if b < 0x80 {
  3210  					break
  3211  				}
  3212  			}
  3213  			intStringLen := int(stringLen)
  3214  			if intStringLen < 0 {
  3215  				return ErrInvalidLengthAccount
  3216  			}
  3217  			postIndex := iNdEx + intStringLen
  3218  			if postIndex < 0 {
  3219  				return ErrInvalidLengthAccount
  3220  			}
  3221  			if postIndex > l {
  3222  				return io.ErrUnexpectedEOF
  3223  			}
  3224  			m.Name = string(dAtA[iNdEx:postIndex])
  3225  			iNdEx = postIndex
  3226  		case 2:
  3227  			if wireType != 2 {
  3228  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3229  			}
  3230  			var stringLen uint64
  3231  			for shift := uint(0); ; shift += 7 {
  3232  				if shift >= 64 {
  3233  					return ErrIntOverflowAccount
  3234  				}
  3235  				if iNdEx >= l {
  3236  					return io.ErrUnexpectedEOF
  3237  				}
  3238  				b := dAtA[iNdEx]
  3239  				iNdEx++
  3240  				stringLen |= uint64(b&0x7F) << shift
  3241  				if b < 0x80 {
  3242  					break
  3243  				}
  3244  			}
  3245  			intStringLen := int(stringLen)
  3246  			if intStringLen < 0 {
  3247  				return ErrInvalidLengthAccount
  3248  			}
  3249  			postIndex := iNdEx + intStringLen
  3250  			if postIndex < 0 {
  3251  				return ErrInvalidLengthAccount
  3252  			}
  3253  			if postIndex > l {
  3254  				return io.ErrUnexpectedEOF
  3255  			}
  3256  			m.Id = string(dAtA[iNdEx:postIndex])
  3257  			iNdEx = postIndex
  3258  		default:
  3259  			iNdEx = preIndex
  3260  			skippy, err := skipAccount(dAtA[iNdEx:])
  3261  			if err != nil {
  3262  				return err
  3263  			}
  3264  			if skippy < 0 {
  3265  				return ErrInvalidLengthAccount
  3266  			}
  3267  			if (iNdEx + skippy) < 0 {
  3268  				return ErrInvalidLengthAccount
  3269  			}
  3270  			if (iNdEx + skippy) > l {
  3271  				return io.ErrUnexpectedEOF
  3272  			}
  3273  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3274  			iNdEx += skippy
  3275  		}
  3276  	}
  3277  
  3278  	if iNdEx > l {
  3279  		return io.ErrUnexpectedEOF
  3280  	}
  3281  	return nil
  3282  }
  3283  func (m *ListAccountRequest) Unmarshal(dAtA []byte) error {
  3284  	l := len(dAtA)
  3285  	iNdEx := 0
  3286  	for iNdEx < l {
  3287  		preIndex := iNdEx
  3288  		var wire uint64
  3289  		for shift := uint(0); ; shift += 7 {
  3290  			if shift >= 64 {
  3291  				return ErrIntOverflowAccount
  3292  			}
  3293  			if iNdEx >= l {
  3294  				return io.ErrUnexpectedEOF
  3295  			}
  3296  			b := dAtA[iNdEx]
  3297  			iNdEx++
  3298  			wire |= uint64(b&0x7F) << shift
  3299  			if b < 0x80 {
  3300  				break
  3301  			}
  3302  		}
  3303  		fieldNum := int32(wire >> 3)
  3304  		wireType := int(wire & 0x7)
  3305  		if wireType == 4 {
  3306  			return fmt.Errorf("proto: ListAccountRequest: wiretype end group for non-group")
  3307  		}
  3308  		if fieldNum <= 0 {
  3309  			return fmt.Errorf("proto: ListAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3310  		}
  3311  		switch fieldNum {
  3312  		default:
  3313  			iNdEx = preIndex
  3314  			skippy, err := skipAccount(dAtA[iNdEx:])
  3315  			if err != nil {
  3316  				return err
  3317  			}
  3318  			if skippy < 0 {
  3319  				return ErrInvalidLengthAccount
  3320  			}
  3321  			if (iNdEx + skippy) < 0 {
  3322  				return ErrInvalidLengthAccount
  3323  			}
  3324  			if (iNdEx + skippy) > l {
  3325  				return io.ErrUnexpectedEOF
  3326  			}
  3327  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3328  			iNdEx += skippy
  3329  		}
  3330  	}
  3331  
  3332  	if iNdEx > l {
  3333  		return io.ErrUnexpectedEOF
  3334  	}
  3335  	return nil
  3336  }
  3337  func (m *EmptyResponse) Unmarshal(dAtA []byte) error {
  3338  	l := len(dAtA)
  3339  	iNdEx := 0
  3340  	for iNdEx < l {
  3341  		preIndex := iNdEx
  3342  		var wire uint64
  3343  		for shift := uint(0); ; shift += 7 {
  3344  			if shift >= 64 {
  3345  				return ErrIntOverflowAccount
  3346  			}
  3347  			if iNdEx >= l {
  3348  				return io.ErrUnexpectedEOF
  3349  			}
  3350  			b := dAtA[iNdEx]
  3351  			iNdEx++
  3352  			wire |= uint64(b&0x7F) << shift
  3353  			if b < 0x80 {
  3354  				break
  3355  			}
  3356  		}
  3357  		fieldNum := int32(wire >> 3)
  3358  		wireType := int(wire & 0x7)
  3359  		if wireType == 4 {
  3360  			return fmt.Errorf("proto: EmptyResponse: wiretype end group for non-group")
  3361  		}
  3362  		if fieldNum <= 0 {
  3363  			return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3364  		}
  3365  		switch fieldNum {
  3366  		default:
  3367  			iNdEx = preIndex
  3368  			skippy, err := skipAccount(dAtA[iNdEx:])
  3369  			if err != nil {
  3370  				return err
  3371  			}
  3372  			if skippy < 0 {
  3373  				return ErrInvalidLengthAccount
  3374  			}
  3375  			if (iNdEx + skippy) < 0 {
  3376  				return ErrInvalidLengthAccount
  3377  			}
  3378  			if (iNdEx + skippy) > l {
  3379  				return io.ErrUnexpectedEOF
  3380  			}
  3381  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3382  			iNdEx += skippy
  3383  		}
  3384  	}
  3385  
  3386  	if iNdEx > l {
  3387  		return io.ErrUnexpectedEOF
  3388  	}
  3389  	return nil
  3390  }
  3391  func skipAccount(dAtA []byte) (n int, err error) {
  3392  	l := len(dAtA)
  3393  	iNdEx := 0
  3394  	depth := 0
  3395  	for iNdEx < l {
  3396  		var wire uint64
  3397  		for shift := uint(0); ; shift += 7 {
  3398  			if shift >= 64 {
  3399  				return 0, ErrIntOverflowAccount
  3400  			}
  3401  			if iNdEx >= l {
  3402  				return 0, io.ErrUnexpectedEOF
  3403  			}
  3404  			b := dAtA[iNdEx]
  3405  			iNdEx++
  3406  			wire |= (uint64(b) & 0x7F) << shift
  3407  			if b < 0x80 {
  3408  				break
  3409  			}
  3410  		}
  3411  		wireType := int(wire & 0x7)
  3412  		switch wireType {
  3413  		case 0:
  3414  			for shift := uint(0); ; shift += 7 {
  3415  				if shift >= 64 {
  3416  					return 0, ErrIntOverflowAccount
  3417  				}
  3418  				if iNdEx >= l {
  3419  					return 0, io.ErrUnexpectedEOF
  3420  				}
  3421  				iNdEx++
  3422  				if dAtA[iNdEx-1] < 0x80 {
  3423  					break
  3424  				}
  3425  			}
  3426  		case 1:
  3427  			iNdEx += 8
  3428  		case 2:
  3429  			var length int
  3430  			for shift := uint(0); ; shift += 7 {
  3431  				if shift >= 64 {
  3432  					return 0, ErrIntOverflowAccount
  3433  				}
  3434  				if iNdEx >= l {
  3435  					return 0, io.ErrUnexpectedEOF
  3436  				}
  3437  				b := dAtA[iNdEx]
  3438  				iNdEx++
  3439  				length |= (int(b) & 0x7F) << shift
  3440  				if b < 0x80 {
  3441  					break
  3442  				}
  3443  			}
  3444  			if length < 0 {
  3445  				return 0, ErrInvalidLengthAccount
  3446  			}
  3447  			iNdEx += length
  3448  		case 3:
  3449  			depth++
  3450  		case 4:
  3451  			if depth == 0 {
  3452  				return 0, ErrUnexpectedEndOfGroupAccount
  3453  			}
  3454  			depth--
  3455  		case 5:
  3456  			iNdEx += 4
  3457  		default:
  3458  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3459  		}
  3460  		if iNdEx < 0 {
  3461  			return 0, ErrInvalidLengthAccount
  3462  		}
  3463  		if depth == 0 {
  3464  			return iNdEx, nil
  3465  		}
  3466  	}
  3467  	return 0, io.ErrUnexpectedEOF
  3468  }
  3469  
  3470  var (
  3471  	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
  3472  	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
  3473  	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
  3474  )