github.com/pachyderm/pachyderm@v1.13.4/src/client/enterprise/enterprise.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: client/enterprise/enterprise.proto
     3  
     4  package enterprise
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	types "github.com/gogo/protobuf/types"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  type State int32
    31  
    32  const (
    33  	State_NONE    State = 0
    34  	State_ACTIVE  State = 1
    35  	State_EXPIRED State = 2
    36  )
    37  
    38  var State_name = map[int32]string{
    39  	0: "NONE",
    40  	1: "ACTIVE",
    41  	2: "EXPIRED",
    42  }
    43  
    44  var State_value = map[string]int32{
    45  	"NONE":    0,
    46  	"ACTIVE":  1,
    47  	"EXPIRED": 2,
    48  }
    49  
    50  func (x State) String() string {
    51  	return proto.EnumName(State_name, int32(x))
    52  }
    53  
    54  func (State) EnumDescriptor() ([]byte, []int) {
    55  	return fileDescriptor_88d07275108cec01, []int{0}
    56  }
    57  
    58  // EnterpriseRecord is the record we store in etcd for a Pachyderm enterprise
    59  // token that has been provided to a Pachyderm cluster
    60  type EnterpriseRecord struct {
    61  	ActivationCode string `protobuf:"bytes,1,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
    62  	// expires is a timestamp indicating when this activation code will expire.
    63  	Expires              *types.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
    64  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    65  	XXX_unrecognized     []byte           `json:"-"`
    66  	XXX_sizecache        int32            `json:"-"`
    67  }
    68  
    69  func (m *EnterpriseRecord) Reset()         { *m = EnterpriseRecord{} }
    70  func (m *EnterpriseRecord) String() string { return proto.CompactTextString(m) }
    71  func (*EnterpriseRecord) ProtoMessage()    {}
    72  func (*EnterpriseRecord) Descriptor() ([]byte, []int) {
    73  	return fileDescriptor_88d07275108cec01, []int{0}
    74  }
    75  func (m *EnterpriseRecord) XXX_Unmarshal(b []byte) error {
    76  	return m.Unmarshal(b)
    77  }
    78  func (m *EnterpriseRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    79  	if deterministic {
    80  		return xxx_messageInfo_EnterpriseRecord.Marshal(b, m, deterministic)
    81  	} else {
    82  		b = b[:cap(b)]
    83  		n, err := m.MarshalToSizedBuffer(b)
    84  		if err != nil {
    85  			return nil, err
    86  		}
    87  		return b[:n], nil
    88  	}
    89  }
    90  func (m *EnterpriseRecord) XXX_Merge(src proto.Message) {
    91  	xxx_messageInfo_EnterpriseRecord.Merge(m, src)
    92  }
    93  func (m *EnterpriseRecord) XXX_Size() int {
    94  	return m.Size()
    95  }
    96  func (m *EnterpriseRecord) XXX_DiscardUnknown() {
    97  	xxx_messageInfo_EnterpriseRecord.DiscardUnknown(m)
    98  }
    99  
   100  var xxx_messageInfo_EnterpriseRecord proto.InternalMessageInfo
   101  
   102  func (m *EnterpriseRecord) GetActivationCode() string {
   103  	if m != nil {
   104  		return m.ActivationCode
   105  	}
   106  	return ""
   107  }
   108  
   109  func (m *EnterpriseRecord) GetExpires() *types.Timestamp {
   110  	if m != nil {
   111  		return m.Expires
   112  	}
   113  	return nil
   114  }
   115  
   116  // TokenInfo contains information about the currently active enterprise token
   117  type TokenInfo struct {
   118  	// expires indicates when the current token expires (unset if there is no
   119  	// current token)
   120  	Expires              *types.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"`
   121  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   122  	XXX_unrecognized     []byte           `json:"-"`
   123  	XXX_sizecache        int32            `json:"-"`
   124  }
   125  
   126  func (m *TokenInfo) Reset()         { *m = TokenInfo{} }
   127  func (m *TokenInfo) String() string { return proto.CompactTextString(m) }
   128  func (*TokenInfo) ProtoMessage()    {}
   129  func (*TokenInfo) Descriptor() ([]byte, []int) {
   130  	return fileDescriptor_88d07275108cec01, []int{1}
   131  }
   132  func (m *TokenInfo) XXX_Unmarshal(b []byte) error {
   133  	return m.Unmarshal(b)
   134  }
   135  func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   136  	if deterministic {
   137  		return xxx_messageInfo_TokenInfo.Marshal(b, m, deterministic)
   138  	} else {
   139  		b = b[:cap(b)]
   140  		n, err := m.MarshalToSizedBuffer(b)
   141  		if err != nil {
   142  			return nil, err
   143  		}
   144  		return b[:n], nil
   145  	}
   146  }
   147  func (m *TokenInfo) XXX_Merge(src proto.Message) {
   148  	xxx_messageInfo_TokenInfo.Merge(m, src)
   149  }
   150  func (m *TokenInfo) XXX_Size() int {
   151  	return m.Size()
   152  }
   153  func (m *TokenInfo) XXX_DiscardUnknown() {
   154  	xxx_messageInfo_TokenInfo.DiscardUnknown(m)
   155  }
   156  
   157  var xxx_messageInfo_TokenInfo proto.InternalMessageInfo
   158  
   159  func (m *TokenInfo) GetExpires() *types.Timestamp {
   160  	if m != nil {
   161  		return m.Expires
   162  	}
   163  	return nil
   164  }
   165  
   166  type ActivateRequest struct {
   167  	// activation_code is a Pachyderm enterprise activation code. New users can
   168  	// obtain trial activation codes
   169  	ActivationCode string `protobuf:"bytes,1,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
   170  	// expires is a timestamp indicating when this activation code will expire.
   171  	// This should not generally be set (it's primarily used for testing), and is
   172  	// only applied if it's earlier than the signed expiration time in
   173  	// 'activation_code'.
   174  	Expires              *types.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
   175  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   176  	XXX_unrecognized     []byte           `json:"-"`
   177  	XXX_sizecache        int32            `json:"-"`
   178  }
   179  
   180  func (m *ActivateRequest) Reset()         { *m = ActivateRequest{} }
   181  func (m *ActivateRequest) String() string { return proto.CompactTextString(m) }
   182  func (*ActivateRequest) ProtoMessage()    {}
   183  func (*ActivateRequest) Descriptor() ([]byte, []int) {
   184  	return fileDescriptor_88d07275108cec01, []int{2}
   185  }
   186  func (m *ActivateRequest) XXX_Unmarshal(b []byte) error {
   187  	return m.Unmarshal(b)
   188  }
   189  func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   190  	if deterministic {
   191  		return xxx_messageInfo_ActivateRequest.Marshal(b, m, deterministic)
   192  	} else {
   193  		b = b[:cap(b)]
   194  		n, err := m.MarshalToSizedBuffer(b)
   195  		if err != nil {
   196  			return nil, err
   197  		}
   198  		return b[:n], nil
   199  	}
   200  }
   201  func (m *ActivateRequest) XXX_Merge(src proto.Message) {
   202  	xxx_messageInfo_ActivateRequest.Merge(m, src)
   203  }
   204  func (m *ActivateRequest) XXX_Size() int {
   205  	return m.Size()
   206  }
   207  func (m *ActivateRequest) XXX_DiscardUnknown() {
   208  	xxx_messageInfo_ActivateRequest.DiscardUnknown(m)
   209  }
   210  
   211  var xxx_messageInfo_ActivateRequest proto.InternalMessageInfo
   212  
   213  func (m *ActivateRequest) GetActivationCode() string {
   214  	if m != nil {
   215  		return m.ActivationCode
   216  	}
   217  	return ""
   218  }
   219  
   220  func (m *ActivateRequest) GetExpires() *types.Timestamp {
   221  	if m != nil {
   222  		return m.Expires
   223  	}
   224  	return nil
   225  }
   226  
   227  type ActivateResponse struct {
   228  	Info                 *TokenInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
   229  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   230  	XXX_unrecognized     []byte     `json:"-"`
   231  	XXX_sizecache        int32      `json:"-"`
   232  }
   233  
   234  func (m *ActivateResponse) Reset()         { *m = ActivateResponse{} }
   235  func (m *ActivateResponse) String() string { return proto.CompactTextString(m) }
   236  func (*ActivateResponse) ProtoMessage()    {}
   237  func (*ActivateResponse) Descriptor() ([]byte, []int) {
   238  	return fileDescriptor_88d07275108cec01, []int{3}
   239  }
   240  func (m *ActivateResponse) XXX_Unmarshal(b []byte) error {
   241  	return m.Unmarshal(b)
   242  }
   243  func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   244  	if deterministic {
   245  		return xxx_messageInfo_ActivateResponse.Marshal(b, m, deterministic)
   246  	} else {
   247  		b = b[:cap(b)]
   248  		n, err := m.MarshalToSizedBuffer(b)
   249  		if err != nil {
   250  			return nil, err
   251  		}
   252  		return b[:n], nil
   253  	}
   254  }
   255  func (m *ActivateResponse) XXX_Merge(src proto.Message) {
   256  	xxx_messageInfo_ActivateResponse.Merge(m, src)
   257  }
   258  func (m *ActivateResponse) XXX_Size() int {
   259  	return m.Size()
   260  }
   261  func (m *ActivateResponse) XXX_DiscardUnknown() {
   262  	xxx_messageInfo_ActivateResponse.DiscardUnknown(m)
   263  }
   264  
   265  var xxx_messageInfo_ActivateResponse proto.InternalMessageInfo
   266  
   267  func (m *ActivateResponse) GetInfo() *TokenInfo {
   268  	if m != nil {
   269  		return m.Info
   270  	}
   271  	return nil
   272  }
   273  
   274  type GetStateRequest struct {
   275  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   276  	XXX_unrecognized     []byte   `json:"-"`
   277  	XXX_sizecache        int32    `json:"-"`
   278  }
   279  
   280  func (m *GetStateRequest) Reset()         { *m = GetStateRequest{} }
   281  func (m *GetStateRequest) String() string { return proto.CompactTextString(m) }
   282  func (*GetStateRequest) ProtoMessage()    {}
   283  func (*GetStateRequest) Descriptor() ([]byte, []int) {
   284  	return fileDescriptor_88d07275108cec01, []int{4}
   285  }
   286  func (m *GetStateRequest) XXX_Unmarshal(b []byte) error {
   287  	return m.Unmarshal(b)
   288  }
   289  func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   290  	if deterministic {
   291  		return xxx_messageInfo_GetStateRequest.Marshal(b, m, deterministic)
   292  	} else {
   293  		b = b[:cap(b)]
   294  		n, err := m.MarshalToSizedBuffer(b)
   295  		if err != nil {
   296  			return nil, err
   297  		}
   298  		return b[:n], nil
   299  	}
   300  }
   301  func (m *GetStateRequest) XXX_Merge(src proto.Message) {
   302  	xxx_messageInfo_GetStateRequest.Merge(m, src)
   303  }
   304  func (m *GetStateRequest) XXX_Size() int {
   305  	return m.Size()
   306  }
   307  func (m *GetStateRequest) XXX_DiscardUnknown() {
   308  	xxx_messageInfo_GetStateRequest.DiscardUnknown(m)
   309  }
   310  
   311  var xxx_messageInfo_GetStateRequest proto.InternalMessageInfo
   312  
   313  type GetStateResponse struct {
   314  	State State      `protobuf:"varint,1,opt,name=state,proto3,enum=enterprise.State" json:"state,omitempty"`
   315  	Info  *TokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
   316  	// activation_code will always be an empty string,
   317  	// call GetEnterpriseCode to get the activation code
   318  	ActivationCode       string   `protobuf:"bytes,3,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
   319  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   320  	XXX_unrecognized     []byte   `json:"-"`
   321  	XXX_sizecache        int32    `json:"-"`
   322  }
   323  
   324  func (m *GetStateResponse) Reset()         { *m = GetStateResponse{} }
   325  func (m *GetStateResponse) String() string { return proto.CompactTextString(m) }
   326  func (*GetStateResponse) ProtoMessage()    {}
   327  func (*GetStateResponse) Descriptor() ([]byte, []int) {
   328  	return fileDescriptor_88d07275108cec01, []int{5}
   329  }
   330  func (m *GetStateResponse) XXX_Unmarshal(b []byte) error {
   331  	return m.Unmarshal(b)
   332  }
   333  func (m *GetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   334  	if deterministic {
   335  		return xxx_messageInfo_GetStateResponse.Marshal(b, m, deterministic)
   336  	} else {
   337  		b = b[:cap(b)]
   338  		n, err := m.MarshalToSizedBuffer(b)
   339  		if err != nil {
   340  			return nil, err
   341  		}
   342  		return b[:n], nil
   343  	}
   344  }
   345  func (m *GetStateResponse) XXX_Merge(src proto.Message) {
   346  	xxx_messageInfo_GetStateResponse.Merge(m, src)
   347  }
   348  func (m *GetStateResponse) XXX_Size() int {
   349  	return m.Size()
   350  }
   351  func (m *GetStateResponse) XXX_DiscardUnknown() {
   352  	xxx_messageInfo_GetStateResponse.DiscardUnknown(m)
   353  }
   354  
   355  var xxx_messageInfo_GetStateResponse proto.InternalMessageInfo
   356  
   357  func (m *GetStateResponse) GetState() State {
   358  	if m != nil {
   359  		return m.State
   360  	}
   361  	return State_NONE
   362  }
   363  
   364  func (m *GetStateResponse) GetInfo() *TokenInfo {
   365  	if m != nil {
   366  		return m.Info
   367  	}
   368  	return nil
   369  }
   370  
   371  func (m *GetStateResponse) GetActivationCode() string {
   372  	if m != nil {
   373  		return m.ActivationCode
   374  	}
   375  	return ""
   376  }
   377  
   378  type GetActivationCodeRequest struct {
   379  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   380  	XXX_unrecognized     []byte   `json:"-"`
   381  	XXX_sizecache        int32    `json:"-"`
   382  }
   383  
   384  func (m *GetActivationCodeRequest) Reset()         { *m = GetActivationCodeRequest{} }
   385  func (m *GetActivationCodeRequest) String() string { return proto.CompactTextString(m) }
   386  func (*GetActivationCodeRequest) ProtoMessage()    {}
   387  func (*GetActivationCodeRequest) Descriptor() ([]byte, []int) {
   388  	return fileDescriptor_88d07275108cec01, []int{6}
   389  }
   390  func (m *GetActivationCodeRequest) XXX_Unmarshal(b []byte) error {
   391  	return m.Unmarshal(b)
   392  }
   393  func (m *GetActivationCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   394  	if deterministic {
   395  		return xxx_messageInfo_GetActivationCodeRequest.Marshal(b, m, deterministic)
   396  	} else {
   397  		b = b[:cap(b)]
   398  		n, err := m.MarshalToSizedBuffer(b)
   399  		if err != nil {
   400  			return nil, err
   401  		}
   402  		return b[:n], nil
   403  	}
   404  }
   405  func (m *GetActivationCodeRequest) XXX_Merge(src proto.Message) {
   406  	xxx_messageInfo_GetActivationCodeRequest.Merge(m, src)
   407  }
   408  func (m *GetActivationCodeRequest) XXX_Size() int {
   409  	return m.Size()
   410  }
   411  func (m *GetActivationCodeRequest) XXX_DiscardUnknown() {
   412  	xxx_messageInfo_GetActivationCodeRequest.DiscardUnknown(m)
   413  }
   414  
   415  var xxx_messageInfo_GetActivationCodeRequest proto.InternalMessageInfo
   416  
   417  type GetActivationCodeResponse struct {
   418  	State                State      `protobuf:"varint,1,opt,name=state,proto3,enum=enterprise.State" json:"state,omitempty"`
   419  	Info                 *TokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
   420  	ActivationCode       string     `protobuf:"bytes,3,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
   421  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   422  	XXX_unrecognized     []byte     `json:"-"`
   423  	XXX_sizecache        int32      `json:"-"`
   424  }
   425  
   426  func (m *GetActivationCodeResponse) Reset()         { *m = GetActivationCodeResponse{} }
   427  func (m *GetActivationCodeResponse) String() string { return proto.CompactTextString(m) }
   428  func (*GetActivationCodeResponse) ProtoMessage()    {}
   429  func (*GetActivationCodeResponse) Descriptor() ([]byte, []int) {
   430  	return fileDescriptor_88d07275108cec01, []int{7}
   431  }
   432  func (m *GetActivationCodeResponse) XXX_Unmarshal(b []byte) error {
   433  	return m.Unmarshal(b)
   434  }
   435  func (m *GetActivationCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   436  	if deterministic {
   437  		return xxx_messageInfo_GetActivationCodeResponse.Marshal(b, m, deterministic)
   438  	} else {
   439  		b = b[:cap(b)]
   440  		n, err := m.MarshalToSizedBuffer(b)
   441  		if err != nil {
   442  			return nil, err
   443  		}
   444  		return b[:n], nil
   445  	}
   446  }
   447  func (m *GetActivationCodeResponse) XXX_Merge(src proto.Message) {
   448  	xxx_messageInfo_GetActivationCodeResponse.Merge(m, src)
   449  }
   450  func (m *GetActivationCodeResponse) XXX_Size() int {
   451  	return m.Size()
   452  }
   453  func (m *GetActivationCodeResponse) XXX_DiscardUnknown() {
   454  	xxx_messageInfo_GetActivationCodeResponse.DiscardUnknown(m)
   455  }
   456  
   457  var xxx_messageInfo_GetActivationCodeResponse proto.InternalMessageInfo
   458  
   459  func (m *GetActivationCodeResponse) GetState() State {
   460  	if m != nil {
   461  		return m.State
   462  	}
   463  	return State_NONE
   464  }
   465  
   466  func (m *GetActivationCodeResponse) GetInfo() *TokenInfo {
   467  	if m != nil {
   468  		return m.Info
   469  	}
   470  	return nil
   471  }
   472  
   473  func (m *GetActivationCodeResponse) GetActivationCode() string {
   474  	if m != nil {
   475  		return m.ActivationCode
   476  	}
   477  	return ""
   478  }
   479  
   480  type DeactivateRequest struct {
   481  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   482  	XXX_unrecognized     []byte   `json:"-"`
   483  	XXX_sizecache        int32    `json:"-"`
   484  }
   485  
   486  func (m *DeactivateRequest) Reset()         { *m = DeactivateRequest{} }
   487  func (m *DeactivateRequest) String() string { return proto.CompactTextString(m) }
   488  func (*DeactivateRequest) ProtoMessage()    {}
   489  func (*DeactivateRequest) Descriptor() ([]byte, []int) {
   490  	return fileDescriptor_88d07275108cec01, []int{8}
   491  }
   492  func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error {
   493  	return m.Unmarshal(b)
   494  }
   495  func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   496  	if deterministic {
   497  		return xxx_messageInfo_DeactivateRequest.Marshal(b, m, deterministic)
   498  	} else {
   499  		b = b[:cap(b)]
   500  		n, err := m.MarshalToSizedBuffer(b)
   501  		if err != nil {
   502  			return nil, err
   503  		}
   504  		return b[:n], nil
   505  	}
   506  }
   507  func (m *DeactivateRequest) XXX_Merge(src proto.Message) {
   508  	xxx_messageInfo_DeactivateRequest.Merge(m, src)
   509  }
   510  func (m *DeactivateRequest) XXX_Size() int {
   511  	return m.Size()
   512  }
   513  func (m *DeactivateRequest) XXX_DiscardUnknown() {
   514  	xxx_messageInfo_DeactivateRequest.DiscardUnknown(m)
   515  }
   516  
   517  var xxx_messageInfo_DeactivateRequest proto.InternalMessageInfo
   518  
   519  type DeactivateResponse struct {
   520  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   521  	XXX_unrecognized     []byte   `json:"-"`
   522  	XXX_sizecache        int32    `json:"-"`
   523  }
   524  
   525  func (m *DeactivateResponse) Reset()         { *m = DeactivateResponse{} }
   526  func (m *DeactivateResponse) String() string { return proto.CompactTextString(m) }
   527  func (*DeactivateResponse) ProtoMessage()    {}
   528  func (*DeactivateResponse) Descriptor() ([]byte, []int) {
   529  	return fileDescriptor_88d07275108cec01, []int{9}
   530  }
   531  func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error {
   532  	return m.Unmarshal(b)
   533  }
   534  func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   535  	if deterministic {
   536  		return xxx_messageInfo_DeactivateResponse.Marshal(b, m, deterministic)
   537  	} else {
   538  		b = b[:cap(b)]
   539  		n, err := m.MarshalToSizedBuffer(b)
   540  		if err != nil {
   541  			return nil, err
   542  		}
   543  		return b[:n], nil
   544  	}
   545  }
   546  func (m *DeactivateResponse) XXX_Merge(src proto.Message) {
   547  	xxx_messageInfo_DeactivateResponse.Merge(m, src)
   548  }
   549  func (m *DeactivateResponse) XXX_Size() int {
   550  	return m.Size()
   551  }
   552  func (m *DeactivateResponse) XXX_DiscardUnknown() {
   553  	xxx_messageInfo_DeactivateResponse.DiscardUnknown(m)
   554  }
   555  
   556  var xxx_messageInfo_DeactivateResponse proto.InternalMessageInfo
   557  
   558  func init() {
   559  	proto.RegisterEnum("enterprise.State", State_name, State_value)
   560  	proto.RegisterType((*EnterpriseRecord)(nil), "enterprise.EnterpriseRecord")
   561  	proto.RegisterType((*TokenInfo)(nil), "enterprise.TokenInfo")
   562  	proto.RegisterType((*ActivateRequest)(nil), "enterprise.ActivateRequest")
   563  	proto.RegisterType((*ActivateResponse)(nil), "enterprise.ActivateResponse")
   564  	proto.RegisterType((*GetStateRequest)(nil), "enterprise.GetStateRequest")
   565  	proto.RegisterType((*GetStateResponse)(nil), "enterprise.GetStateResponse")
   566  	proto.RegisterType((*GetActivationCodeRequest)(nil), "enterprise.GetActivationCodeRequest")
   567  	proto.RegisterType((*GetActivationCodeResponse)(nil), "enterprise.GetActivationCodeResponse")
   568  	proto.RegisterType((*DeactivateRequest)(nil), "enterprise.DeactivateRequest")
   569  	proto.RegisterType((*DeactivateResponse)(nil), "enterprise.DeactivateResponse")
   570  }
   571  
   572  func init() {
   573  	proto.RegisterFile("client/enterprise/enterprise.proto", fileDescriptor_88d07275108cec01)
   574  }
   575  
   576  var fileDescriptor_88d07275108cec01 = []byte{
   577  	// 473 bytes of a gzipped FileDescriptorProto
   578  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
   579  	0x10, 0xcd, 0xa6, 0xdf, 0x53, 0xa9, 0x71, 0x16, 0x90, 0x82, 0x81, 0x50, 0xad, 0x40, 0x2d, 0x3d,
   580  	0xd8, 0x52, 0xe8, 0x95, 0x83, 0xdb, 0x5a, 0x51, 0x0e, 0x94, 0xca, 0x44, 0x08, 0x71, 0x41, 0x8e,
   581  	0x33, 0x49, 0x57, 0x34, 0x5e, 0xd7, 0xbb, 0x41, 0xf0, 0x2b, 0xb8, 0xf2, 0x93, 0x10, 0x27, 0x7e,
   582  	0x02, 0xca, 0x2f, 0x41, 0xb5, 0x6b, 0x7b, 0xed, 0x18, 0x85, 0x0b, 0x52, 0x6f, 0xab, 0x37, 0x6f,
   583  	0xdf, 0x7b, 0x9e, 0x19, 0x2f, 0xb0, 0xe0, 0x8a, 0x63, 0xa8, 0x6c, 0x0c, 0x15, 0xc6, 0x51, 0xcc,
   584  	0x25, 0x6a, 0x47, 0x2b, 0x8a, 0x85, 0x12, 0x14, 0x0a, 0xc4, 0x7c, 0x3a, 0x15, 0x62, 0x7a, 0x85,
   585  	0x76, 0x52, 0x19, 0xcd, 0x27, 0xb6, 0xe2, 0x33, 0x94, 0xca, 0x9f, 0x45, 0x29, 0x99, 0x5d, 0x83,
   586  	0xe1, 0xe6, 0x74, 0x0f, 0x03, 0x11, 0x8f, 0xe9, 0x01, 0xb4, 0xfc, 0x40, 0xf1, 0xcf, 0xbe, 0xe2,
   587  	0x22, 0xfc, 0x18, 0x88, 0x31, 0x76, 0xc8, 0x3e, 0x39, 0xdc, 0xf1, 0xf6, 0x0a, 0xf8, 0x54, 0x8c,
   588  	0x91, 0x1e, 0xc3, 0x16, 0x7e, 0x89, 0x78, 0x8c, 0xb2, 0xd3, 0xdc, 0x27, 0x87, 0xbb, 0x3d, 0xd3,
   589  	0x4a, 0xfd, 0xac, 0xcc, 0xcf, 0x1a, 0x66, 0x7e, 0x5e, 0x46, 0x65, 0x0e, 0xec, 0x0c, 0xc5, 0x27,
   590  	0x0c, 0x07, 0xe1, 0x44, 0xe8, 0x12, 0xe4, 0xdf, 0x25, 0x22, 0x68, 0x39, 0x69, 0x14, 0xf4, 0xf0,
   591  	0x7a, 0x8e, 0x52, 0xfd, 0xef, 0xd0, 0xaf, 0xc0, 0x28, 0x1c, 0x65, 0x24, 0x42, 0x89, 0xf4, 0x05,
   592  	0xac, 0xf3, 0x70, 0x22, 0x6e, 0x83, 0x3f, 0xb0, 0xb4, 0x49, 0xe4, 0x1f, 0xe8, 0x25, 0x14, 0xd6,
   593  	0x86, 0x56, 0x1f, 0xd5, 0x5b, 0x55, 0x04, 0x66, 0xdf, 0x08, 0x18, 0x05, 0x76, 0x2b, 0x79, 0x00,
   594  	0x1b, 0xf2, 0x06, 0x48, 0x34, 0xf7, 0x7a, 0x6d, 0x5d, 0x33, 0x65, 0xa6, 0xf5, 0xdc, 0xbb, 0xb9,
   595  	0xd2, 0xbb, 0xae, 0x33, 0x6b, 0x75, 0x9d, 0x61, 0x26, 0x74, 0xfa, 0xa8, 0x9c, 0x12, 0x98, 0xa5,
   596  	0xfd, 0x4e, 0xe0, 0x61, 0x4d, 0xf1, 0x2e, 0xc4, 0xbe, 0x07, 0xed, 0x33, 0xf4, 0xcb, 0xeb, 0xc0,
   597  	0xee, 0x03, 0xd5, 0xc1, 0x34, 0xe7, 0xd1, 0x11, 0x6c, 0x24, 0x71, 0xe8, 0x36, 0xac, 0x9f, 0xbf,
   598  	0x39, 0x77, 0x8d, 0x06, 0x05, 0xd8, 0x74, 0x4e, 0x87, 0x83, 0x77, 0xae, 0x41, 0xe8, 0x2e, 0x6c,
   599  	0xb9, 0xef, 0x2f, 0x06, 0x9e, 0x7b, 0x66, 0x34, 0x7b, 0x3f, 0x9b, 0xb0, 0xe6, 0x5c, 0x0c, 0x68,
   600  	0x1f, 0xb6, 0xb3, 0xc9, 0xd3, 0x47, 0x7a, 0xe0, 0xca, 0x06, 0x9a, 0x8f, 0xeb, 0x8b, 0xa9, 0x35,
   601  	0x6b, 0xdc, 0x08, 0x65, 0xf3, 0x2e, 0x0b, 0x55, 0x36, 0xa3, 0x2c, 0x54, 0x5d, 0x11, 0xd6, 0xa0,
   602  	0x23, 0x68, 0x2f, 0x8d, 0x82, 0x3e, 0xab, 0x5c, 0xaa, 0x1d, 0xa3, 0xf9, 0x7c, 0x05, 0x2b, 0xf7,
   603  	0x78, 0x0d, 0x50, 0xf4, 0x8f, 0x3e, 0xd1, 0xaf, 0x2d, 0x35, 0xdb, 0xec, 0xfe, 0xad, 0x9c, 0xc9,
   604  	0x9d, 0x9c, 0xfc, 0x58, 0x74, 0xc9, 0xaf, 0x45, 0x97, 0xfc, 0x5e, 0x74, 0xc9, 0x87, 0xe3, 0x29,
   605  	0x57, 0x97, 0xf3, 0x91, 0x15, 0x88, 0x99, 0x1d, 0xf9, 0xc1, 0xe5, 0xd7, 0x31, 0xc6, 0xfa, 0x49,
   606  	0xc6, 0x81, 0xbd, 0xf4, 0xd0, 0x8d, 0x36, 0x93, 0xff, 0xf3, 0xe5, 0x9f, 0x00, 0x00, 0x00, 0xff,
   607  	0xff, 0x1f, 0x92, 0x92, 0xc4, 0x04, 0x05, 0x00, 0x00,
   608  }
   609  
   610  // Reference imports to suppress errors if they are not otherwise used.
   611  var _ context.Context
   612  var _ grpc.ClientConn
   613  
   614  // This is a compile-time assertion to ensure that this generated file
   615  // is compatible with the grpc package it is being compiled against.
   616  const _ = grpc.SupportPackageIsVersion4
   617  
   618  // APIClient is the client API for API service.
   619  //
   620  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   621  type APIClient interface {
   622  	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
   623  	// features, such as the Pachyderm Dashboard and Auth system
   624  	Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error)
   625  	GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error)
   626  	GetActivationCode(ctx context.Context, in *GetActivationCodeRequest, opts ...grpc.CallOption) (*GetActivationCodeResponse, error)
   627  	// Deactivate is a testing API. It removes a cluster's enterprise activation
   628  	// token and sets its enterprise state to NONE (normally, once a cluster has
   629  	// been activated, the only reachable state is EXPIRED).
   630  	//
   631  	// NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in
   632  	// its cluster). This is to avoid dealing with invalid, intermediate states
   633  	// (e.g. auth is activated but enterprise state is NONE)
   634  	Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error)
   635  }
   636  
   637  type aPIClient struct {
   638  	cc *grpc.ClientConn
   639  }
   640  
   641  func NewAPIClient(cc *grpc.ClientConn) APIClient {
   642  	return &aPIClient{cc}
   643  }
   644  
   645  func (c *aPIClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) {
   646  	out := new(ActivateResponse)
   647  	err := c.cc.Invoke(ctx, "/enterprise.API/Activate", in, out, opts...)
   648  	if err != nil {
   649  		return nil, err
   650  	}
   651  	return out, nil
   652  }
   653  
   654  func (c *aPIClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) {
   655  	out := new(GetStateResponse)
   656  	err := c.cc.Invoke(ctx, "/enterprise.API/GetState", in, out, opts...)
   657  	if err != nil {
   658  		return nil, err
   659  	}
   660  	return out, nil
   661  }
   662  
   663  func (c *aPIClient) GetActivationCode(ctx context.Context, in *GetActivationCodeRequest, opts ...grpc.CallOption) (*GetActivationCodeResponse, error) {
   664  	out := new(GetActivationCodeResponse)
   665  	err := c.cc.Invoke(ctx, "/enterprise.API/GetActivationCode", in, out, opts...)
   666  	if err != nil {
   667  		return nil, err
   668  	}
   669  	return out, nil
   670  }
   671  
   672  func (c *aPIClient) Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) {
   673  	out := new(DeactivateResponse)
   674  	err := c.cc.Invoke(ctx, "/enterprise.API/Deactivate", in, out, opts...)
   675  	if err != nil {
   676  		return nil, err
   677  	}
   678  	return out, nil
   679  }
   680  
   681  // APIServer is the server API for API service.
   682  type APIServer interface {
   683  	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
   684  	// features, such as the Pachyderm Dashboard and Auth system
   685  	Activate(context.Context, *ActivateRequest) (*ActivateResponse, error)
   686  	GetState(context.Context, *GetStateRequest) (*GetStateResponse, error)
   687  	GetActivationCode(context.Context, *GetActivationCodeRequest) (*GetActivationCodeResponse, error)
   688  	// Deactivate is a testing API. It removes a cluster's enterprise activation
   689  	// token and sets its enterprise state to NONE (normally, once a cluster has
   690  	// been activated, the only reachable state is EXPIRED).
   691  	//
   692  	// NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in
   693  	// its cluster). This is to avoid dealing with invalid, intermediate states
   694  	// (e.g. auth is activated but enterprise state is NONE)
   695  	Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
   696  }
   697  
   698  // UnimplementedAPIServer can be embedded to have forward compatible implementations.
   699  type UnimplementedAPIServer struct {
   700  }
   701  
   702  func (*UnimplementedAPIServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error) {
   703  	return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented")
   704  }
   705  func (*UnimplementedAPIServer) GetState(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) {
   706  	return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented")
   707  }
   708  func (*UnimplementedAPIServer) GetActivationCode(ctx context.Context, req *GetActivationCodeRequest) (*GetActivationCodeResponse, error) {
   709  	return nil, status.Errorf(codes.Unimplemented, "method GetActivationCode not implemented")
   710  }
   711  func (*UnimplementedAPIServer) Deactivate(ctx context.Context, req *DeactivateRequest) (*DeactivateResponse, error) {
   712  	return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented")
   713  }
   714  
   715  func RegisterAPIServer(s *grpc.Server, srv APIServer) {
   716  	s.RegisterService(&_API_serviceDesc, srv)
   717  }
   718  
   719  func _API_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   720  	in := new(ActivateRequest)
   721  	if err := dec(in); err != nil {
   722  		return nil, err
   723  	}
   724  	if interceptor == nil {
   725  		return srv.(APIServer).Activate(ctx, in)
   726  	}
   727  	info := &grpc.UnaryServerInfo{
   728  		Server:     srv,
   729  		FullMethod: "/enterprise.API/Activate",
   730  	}
   731  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   732  		return srv.(APIServer).Activate(ctx, req.(*ActivateRequest))
   733  	}
   734  	return interceptor(ctx, in, info, handler)
   735  }
   736  
   737  func _API_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   738  	in := new(GetStateRequest)
   739  	if err := dec(in); err != nil {
   740  		return nil, err
   741  	}
   742  	if interceptor == nil {
   743  		return srv.(APIServer).GetState(ctx, in)
   744  	}
   745  	info := &grpc.UnaryServerInfo{
   746  		Server:     srv,
   747  		FullMethod: "/enterprise.API/GetState",
   748  	}
   749  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   750  		return srv.(APIServer).GetState(ctx, req.(*GetStateRequest))
   751  	}
   752  	return interceptor(ctx, in, info, handler)
   753  }
   754  
   755  func _API_GetActivationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   756  	in := new(GetActivationCodeRequest)
   757  	if err := dec(in); err != nil {
   758  		return nil, err
   759  	}
   760  	if interceptor == nil {
   761  		return srv.(APIServer).GetActivationCode(ctx, in)
   762  	}
   763  	info := &grpc.UnaryServerInfo{
   764  		Server:     srv,
   765  		FullMethod: "/enterprise.API/GetActivationCode",
   766  	}
   767  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   768  		return srv.(APIServer).GetActivationCode(ctx, req.(*GetActivationCodeRequest))
   769  	}
   770  	return interceptor(ctx, in, info, handler)
   771  }
   772  
   773  func _API_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   774  	in := new(DeactivateRequest)
   775  	if err := dec(in); err != nil {
   776  		return nil, err
   777  	}
   778  	if interceptor == nil {
   779  		return srv.(APIServer).Deactivate(ctx, in)
   780  	}
   781  	info := &grpc.UnaryServerInfo{
   782  		Server:     srv,
   783  		FullMethod: "/enterprise.API/Deactivate",
   784  	}
   785  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   786  		return srv.(APIServer).Deactivate(ctx, req.(*DeactivateRequest))
   787  	}
   788  	return interceptor(ctx, in, info, handler)
   789  }
   790  
   791  var _API_serviceDesc = grpc.ServiceDesc{
   792  	ServiceName: "enterprise.API",
   793  	HandlerType: (*APIServer)(nil),
   794  	Methods: []grpc.MethodDesc{
   795  		{
   796  			MethodName: "Activate",
   797  			Handler:    _API_Activate_Handler,
   798  		},
   799  		{
   800  			MethodName: "GetState",
   801  			Handler:    _API_GetState_Handler,
   802  		},
   803  		{
   804  			MethodName: "GetActivationCode",
   805  			Handler:    _API_GetActivationCode_Handler,
   806  		},
   807  		{
   808  			MethodName: "Deactivate",
   809  			Handler:    _API_Deactivate_Handler,
   810  		},
   811  	},
   812  	Streams:  []grpc.StreamDesc{},
   813  	Metadata: "client/enterprise/enterprise.proto",
   814  }
   815  
   816  func (m *EnterpriseRecord) Marshal() (dAtA []byte, err error) {
   817  	size := m.Size()
   818  	dAtA = make([]byte, size)
   819  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   820  	if err != nil {
   821  		return nil, err
   822  	}
   823  	return dAtA[:n], nil
   824  }
   825  
   826  func (m *EnterpriseRecord) MarshalTo(dAtA []byte) (int, error) {
   827  	size := m.Size()
   828  	return m.MarshalToSizedBuffer(dAtA[:size])
   829  }
   830  
   831  func (m *EnterpriseRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   832  	i := len(dAtA)
   833  	_ = i
   834  	var l int
   835  	_ = l
   836  	if m.XXX_unrecognized != nil {
   837  		i -= len(m.XXX_unrecognized)
   838  		copy(dAtA[i:], m.XXX_unrecognized)
   839  	}
   840  	if m.Expires != nil {
   841  		{
   842  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   843  			if err != nil {
   844  				return 0, err
   845  			}
   846  			i -= size
   847  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   848  		}
   849  		i--
   850  		dAtA[i] = 0x12
   851  	}
   852  	if len(m.ActivationCode) > 0 {
   853  		i -= len(m.ActivationCode)
   854  		copy(dAtA[i:], m.ActivationCode)
   855  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
   856  		i--
   857  		dAtA[i] = 0xa
   858  	}
   859  	return len(dAtA) - i, nil
   860  }
   861  
   862  func (m *TokenInfo) Marshal() (dAtA []byte, err error) {
   863  	size := m.Size()
   864  	dAtA = make([]byte, size)
   865  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   866  	if err != nil {
   867  		return nil, err
   868  	}
   869  	return dAtA[:n], nil
   870  }
   871  
   872  func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error) {
   873  	size := m.Size()
   874  	return m.MarshalToSizedBuffer(dAtA[:size])
   875  }
   876  
   877  func (m *TokenInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   878  	i := len(dAtA)
   879  	_ = i
   880  	var l int
   881  	_ = l
   882  	if m.XXX_unrecognized != nil {
   883  		i -= len(m.XXX_unrecognized)
   884  		copy(dAtA[i:], m.XXX_unrecognized)
   885  	}
   886  	if m.Expires != nil {
   887  		{
   888  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   889  			if err != nil {
   890  				return 0, err
   891  			}
   892  			i -= size
   893  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   894  		}
   895  		i--
   896  		dAtA[i] = 0xa
   897  	}
   898  	return len(dAtA) - i, nil
   899  }
   900  
   901  func (m *ActivateRequest) Marshal() (dAtA []byte, err error) {
   902  	size := m.Size()
   903  	dAtA = make([]byte, size)
   904  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   905  	if err != nil {
   906  		return nil, err
   907  	}
   908  	return dAtA[:n], nil
   909  }
   910  
   911  func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error) {
   912  	size := m.Size()
   913  	return m.MarshalToSizedBuffer(dAtA[:size])
   914  }
   915  
   916  func (m *ActivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   917  	i := len(dAtA)
   918  	_ = i
   919  	var l int
   920  	_ = l
   921  	if m.XXX_unrecognized != nil {
   922  		i -= len(m.XXX_unrecognized)
   923  		copy(dAtA[i:], m.XXX_unrecognized)
   924  	}
   925  	if m.Expires != nil {
   926  		{
   927  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   928  			if err != nil {
   929  				return 0, err
   930  			}
   931  			i -= size
   932  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   933  		}
   934  		i--
   935  		dAtA[i] = 0x12
   936  	}
   937  	if len(m.ActivationCode) > 0 {
   938  		i -= len(m.ActivationCode)
   939  		copy(dAtA[i:], m.ActivationCode)
   940  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
   941  		i--
   942  		dAtA[i] = 0xa
   943  	}
   944  	return len(dAtA) - i, nil
   945  }
   946  
   947  func (m *ActivateResponse) Marshal() (dAtA []byte, err error) {
   948  	size := m.Size()
   949  	dAtA = make([]byte, size)
   950  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   951  	if err != nil {
   952  		return nil, err
   953  	}
   954  	return dAtA[:n], nil
   955  }
   956  
   957  func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error) {
   958  	size := m.Size()
   959  	return m.MarshalToSizedBuffer(dAtA[:size])
   960  }
   961  
   962  func (m *ActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   963  	i := len(dAtA)
   964  	_ = i
   965  	var l int
   966  	_ = l
   967  	if m.XXX_unrecognized != nil {
   968  		i -= len(m.XXX_unrecognized)
   969  		copy(dAtA[i:], m.XXX_unrecognized)
   970  	}
   971  	if m.Info != nil {
   972  		{
   973  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
   974  			if err != nil {
   975  				return 0, err
   976  			}
   977  			i -= size
   978  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   979  		}
   980  		i--
   981  		dAtA[i] = 0xa
   982  	}
   983  	return len(dAtA) - i, nil
   984  }
   985  
   986  func (m *GetStateRequest) Marshal() (dAtA []byte, err error) {
   987  	size := m.Size()
   988  	dAtA = make([]byte, size)
   989  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   990  	if err != nil {
   991  		return nil, err
   992  	}
   993  	return dAtA[:n], nil
   994  }
   995  
   996  func (m *GetStateRequest) MarshalTo(dAtA []byte) (int, error) {
   997  	size := m.Size()
   998  	return m.MarshalToSizedBuffer(dAtA[:size])
   999  }
  1000  
  1001  func (m *GetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1002  	i := len(dAtA)
  1003  	_ = i
  1004  	var l int
  1005  	_ = l
  1006  	if m.XXX_unrecognized != nil {
  1007  		i -= len(m.XXX_unrecognized)
  1008  		copy(dAtA[i:], m.XXX_unrecognized)
  1009  	}
  1010  	return len(dAtA) - i, nil
  1011  }
  1012  
  1013  func (m *GetStateResponse) Marshal() (dAtA []byte, err error) {
  1014  	size := m.Size()
  1015  	dAtA = make([]byte, size)
  1016  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1017  	if err != nil {
  1018  		return nil, err
  1019  	}
  1020  	return dAtA[:n], nil
  1021  }
  1022  
  1023  func (m *GetStateResponse) MarshalTo(dAtA []byte) (int, error) {
  1024  	size := m.Size()
  1025  	return m.MarshalToSizedBuffer(dAtA[:size])
  1026  }
  1027  
  1028  func (m *GetStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1029  	i := len(dAtA)
  1030  	_ = i
  1031  	var l int
  1032  	_ = l
  1033  	if m.XXX_unrecognized != nil {
  1034  		i -= len(m.XXX_unrecognized)
  1035  		copy(dAtA[i:], m.XXX_unrecognized)
  1036  	}
  1037  	if len(m.ActivationCode) > 0 {
  1038  		i -= len(m.ActivationCode)
  1039  		copy(dAtA[i:], m.ActivationCode)
  1040  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
  1041  		i--
  1042  		dAtA[i] = 0x1a
  1043  	}
  1044  	if m.Info != nil {
  1045  		{
  1046  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  1047  			if err != nil {
  1048  				return 0, err
  1049  			}
  1050  			i -= size
  1051  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
  1052  		}
  1053  		i--
  1054  		dAtA[i] = 0x12
  1055  	}
  1056  	if m.State != 0 {
  1057  		i = encodeVarintEnterprise(dAtA, i, uint64(m.State))
  1058  		i--
  1059  		dAtA[i] = 0x8
  1060  	}
  1061  	return len(dAtA) - i, nil
  1062  }
  1063  
  1064  func (m *GetActivationCodeRequest) Marshal() (dAtA []byte, err error) {
  1065  	size := m.Size()
  1066  	dAtA = make([]byte, size)
  1067  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1068  	if err != nil {
  1069  		return nil, err
  1070  	}
  1071  	return dAtA[:n], nil
  1072  }
  1073  
  1074  func (m *GetActivationCodeRequest) MarshalTo(dAtA []byte) (int, error) {
  1075  	size := m.Size()
  1076  	return m.MarshalToSizedBuffer(dAtA[:size])
  1077  }
  1078  
  1079  func (m *GetActivationCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1080  	i := len(dAtA)
  1081  	_ = i
  1082  	var l int
  1083  	_ = l
  1084  	if m.XXX_unrecognized != nil {
  1085  		i -= len(m.XXX_unrecognized)
  1086  		copy(dAtA[i:], m.XXX_unrecognized)
  1087  	}
  1088  	return len(dAtA) - i, nil
  1089  }
  1090  
  1091  func (m *GetActivationCodeResponse) Marshal() (dAtA []byte, err error) {
  1092  	size := m.Size()
  1093  	dAtA = make([]byte, size)
  1094  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1095  	if err != nil {
  1096  		return nil, err
  1097  	}
  1098  	return dAtA[:n], nil
  1099  }
  1100  
  1101  func (m *GetActivationCodeResponse) MarshalTo(dAtA []byte) (int, error) {
  1102  	size := m.Size()
  1103  	return m.MarshalToSizedBuffer(dAtA[:size])
  1104  }
  1105  
  1106  func (m *GetActivationCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1107  	i := len(dAtA)
  1108  	_ = i
  1109  	var l int
  1110  	_ = l
  1111  	if m.XXX_unrecognized != nil {
  1112  		i -= len(m.XXX_unrecognized)
  1113  		copy(dAtA[i:], m.XXX_unrecognized)
  1114  	}
  1115  	if len(m.ActivationCode) > 0 {
  1116  		i -= len(m.ActivationCode)
  1117  		copy(dAtA[i:], m.ActivationCode)
  1118  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
  1119  		i--
  1120  		dAtA[i] = 0x1a
  1121  	}
  1122  	if m.Info != nil {
  1123  		{
  1124  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  1125  			if err != nil {
  1126  				return 0, err
  1127  			}
  1128  			i -= size
  1129  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
  1130  		}
  1131  		i--
  1132  		dAtA[i] = 0x12
  1133  	}
  1134  	if m.State != 0 {
  1135  		i = encodeVarintEnterprise(dAtA, i, uint64(m.State))
  1136  		i--
  1137  		dAtA[i] = 0x8
  1138  	}
  1139  	return len(dAtA) - i, nil
  1140  }
  1141  
  1142  func (m *DeactivateRequest) Marshal() (dAtA []byte, err error) {
  1143  	size := m.Size()
  1144  	dAtA = make([]byte, size)
  1145  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1146  	if err != nil {
  1147  		return nil, err
  1148  	}
  1149  	return dAtA[:n], nil
  1150  }
  1151  
  1152  func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error) {
  1153  	size := m.Size()
  1154  	return m.MarshalToSizedBuffer(dAtA[:size])
  1155  }
  1156  
  1157  func (m *DeactivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1158  	i := len(dAtA)
  1159  	_ = i
  1160  	var l int
  1161  	_ = l
  1162  	if m.XXX_unrecognized != nil {
  1163  		i -= len(m.XXX_unrecognized)
  1164  		copy(dAtA[i:], m.XXX_unrecognized)
  1165  	}
  1166  	return len(dAtA) - i, nil
  1167  }
  1168  
  1169  func (m *DeactivateResponse) Marshal() (dAtA []byte, err error) {
  1170  	size := m.Size()
  1171  	dAtA = make([]byte, size)
  1172  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1173  	if err != nil {
  1174  		return nil, err
  1175  	}
  1176  	return dAtA[:n], nil
  1177  }
  1178  
  1179  func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error) {
  1180  	size := m.Size()
  1181  	return m.MarshalToSizedBuffer(dAtA[:size])
  1182  }
  1183  
  1184  func (m *DeactivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1185  	i := len(dAtA)
  1186  	_ = i
  1187  	var l int
  1188  	_ = l
  1189  	if m.XXX_unrecognized != nil {
  1190  		i -= len(m.XXX_unrecognized)
  1191  		copy(dAtA[i:], m.XXX_unrecognized)
  1192  	}
  1193  	return len(dAtA) - i, nil
  1194  }
  1195  
  1196  func encodeVarintEnterprise(dAtA []byte, offset int, v uint64) int {
  1197  	offset -= sovEnterprise(v)
  1198  	base := offset
  1199  	for v >= 1<<7 {
  1200  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1201  		v >>= 7
  1202  		offset++
  1203  	}
  1204  	dAtA[offset] = uint8(v)
  1205  	return base
  1206  }
  1207  func (m *EnterpriseRecord) Size() (n int) {
  1208  	if m == nil {
  1209  		return 0
  1210  	}
  1211  	var l int
  1212  	_ = l
  1213  	l = len(m.ActivationCode)
  1214  	if l > 0 {
  1215  		n += 1 + l + sovEnterprise(uint64(l))
  1216  	}
  1217  	if m.Expires != nil {
  1218  		l = m.Expires.Size()
  1219  		n += 1 + l + sovEnterprise(uint64(l))
  1220  	}
  1221  	if m.XXX_unrecognized != nil {
  1222  		n += len(m.XXX_unrecognized)
  1223  	}
  1224  	return n
  1225  }
  1226  
  1227  func (m *TokenInfo) Size() (n int) {
  1228  	if m == nil {
  1229  		return 0
  1230  	}
  1231  	var l int
  1232  	_ = l
  1233  	if m.Expires != nil {
  1234  		l = m.Expires.Size()
  1235  		n += 1 + l + sovEnterprise(uint64(l))
  1236  	}
  1237  	if m.XXX_unrecognized != nil {
  1238  		n += len(m.XXX_unrecognized)
  1239  	}
  1240  	return n
  1241  }
  1242  
  1243  func (m *ActivateRequest) Size() (n int) {
  1244  	if m == nil {
  1245  		return 0
  1246  	}
  1247  	var l int
  1248  	_ = l
  1249  	l = len(m.ActivationCode)
  1250  	if l > 0 {
  1251  		n += 1 + l + sovEnterprise(uint64(l))
  1252  	}
  1253  	if m.Expires != nil {
  1254  		l = m.Expires.Size()
  1255  		n += 1 + l + sovEnterprise(uint64(l))
  1256  	}
  1257  	if m.XXX_unrecognized != nil {
  1258  		n += len(m.XXX_unrecognized)
  1259  	}
  1260  	return n
  1261  }
  1262  
  1263  func (m *ActivateResponse) Size() (n int) {
  1264  	if m == nil {
  1265  		return 0
  1266  	}
  1267  	var l int
  1268  	_ = l
  1269  	if m.Info != nil {
  1270  		l = m.Info.Size()
  1271  		n += 1 + l + sovEnterprise(uint64(l))
  1272  	}
  1273  	if m.XXX_unrecognized != nil {
  1274  		n += len(m.XXX_unrecognized)
  1275  	}
  1276  	return n
  1277  }
  1278  
  1279  func (m *GetStateRequest) Size() (n int) {
  1280  	if m == nil {
  1281  		return 0
  1282  	}
  1283  	var l int
  1284  	_ = l
  1285  	if m.XXX_unrecognized != nil {
  1286  		n += len(m.XXX_unrecognized)
  1287  	}
  1288  	return n
  1289  }
  1290  
  1291  func (m *GetStateResponse) Size() (n int) {
  1292  	if m == nil {
  1293  		return 0
  1294  	}
  1295  	var l int
  1296  	_ = l
  1297  	if m.State != 0 {
  1298  		n += 1 + sovEnterprise(uint64(m.State))
  1299  	}
  1300  	if m.Info != nil {
  1301  		l = m.Info.Size()
  1302  		n += 1 + l + sovEnterprise(uint64(l))
  1303  	}
  1304  	l = len(m.ActivationCode)
  1305  	if l > 0 {
  1306  		n += 1 + l + sovEnterprise(uint64(l))
  1307  	}
  1308  	if m.XXX_unrecognized != nil {
  1309  		n += len(m.XXX_unrecognized)
  1310  	}
  1311  	return n
  1312  }
  1313  
  1314  func (m *GetActivationCodeRequest) Size() (n int) {
  1315  	if m == nil {
  1316  		return 0
  1317  	}
  1318  	var l int
  1319  	_ = l
  1320  	if m.XXX_unrecognized != nil {
  1321  		n += len(m.XXX_unrecognized)
  1322  	}
  1323  	return n
  1324  }
  1325  
  1326  func (m *GetActivationCodeResponse) Size() (n int) {
  1327  	if m == nil {
  1328  		return 0
  1329  	}
  1330  	var l int
  1331  	_ = l
  1332  	if m.State != 0 {
  1333  		n += 1 + sovEnterprise(uint64(m.State))
  1334  	}
  1335  	if m.Info != nil {
  1336  		l = m.Info.Size()
  1337  		n += 1 + l + sovEnterprise(uint64(l))
  1338  	}
  1339  	l = len(m.ActivationCode)
  1340  	if l > 0 {
  1341  		n += 1 + l + sovEnterprise(uint64(l))
  1342  	}
  1343  	if m.XXX_unrecognized != nil {
  1344  		n += len(m.XXX_unrecognized)
  1345  	}
  1346  	return n
  1347  }
  1348  
  1349  func (m *DeactivateRequest) Size() (n int) {
  1350  	if m == nil {
  1351  		return 0
  1352  	}
  1353  	var l int
  1354  	_ = l
  1355  	if m.XXX_unrecognized != nil {
  1356  		n += len(m.XXX_unrecognized)
  1357  	}
  1358  	return n
  1359  }
  1360  
  1361  func (m *DeactivateResponse) Size() (n int) {
  1362  	if m == nil {
  1363  		return 0
  1364  	}
  1365  	var l int
  1366  	_ = l
  1367  	if m.XXX_unrecognized != nil {
  1368  		n += len(m.XXX_unrecognized)
  1369  	}
  1370  	return n
  1371  }
  1372  
  1373  func sovEnterprise(x uint64) (n int) {
  1374  	return (math_bits.Len64(x|1) + 6) / 7
  1375  }
  1376  func sozEnterprise(x uint64) (n int) {
  1377  	return sovEnterprise(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1378  }
  1379  func (m *EnterpriseRecord) Unmarshal(dAtA []byte) error {
  1380  	l := len(dAtA)
  1381  	iNdEx := 0
  1382  	for iNdEx < l {
  1383  		preIndex := iNdEx
  1384  		var wire uint64
  1385  		for shift := uint(0); ; shift += 7 {
  1386  			if shift >= 64 {
  1387  				return ErrIntOverflowEnterprise
  1388  			}
  1389  			if iNdEx >= l {
  1390  				return io.ErrUnexpectedEOF
  1391  			}
  1392  			b := dAtA[iNdEx]
  1393  			iNdEx++
  1394  			wire |= uint64(b&0x7F) << shift
  1395  			if b < 0x80 {
  1396  				break
  1397  			}
  1398  		}
  1399  		fieldNum := int32(wire >> 3)
  1400  		wireType := int(wire & 0x7)
  1401  		if wireType == 4 {
  1402  			return fmt.Errorf("proto: EnterpriseRecord: wiretype end group for non-group")
  1403  		}
  1404  		if fieldNum <= 0 {
  1405  			return fmt.Errorf("proto: EnterpriseRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1406  		}
  1407  		switch fieldNum {
  1408  		case 1:
  1409  			if wireType != 2 {
  1410  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  1411  			}
  1412  			var stringLen uint64
  1413  			for shift := uint(0); ; shift += 7 {
  1414  				if shift >= 64 {
  1415  					return ErrIntOverflowEnterprise
  1416  				}
  1417  				if iNdEx >= l {
  1418  					return io.ErrUnexpectedEOF
  1419  				}
  1420  				b := dAtA[iNdEx]
  1421  				iNdEx++
  1422  				stringLen |= uint64(b&0x7F) << shift
  1423  				if b < 0x80 {
  1424  					break
  1425  				}
  1426  			}
  1427  			intStringLen := int(stringLen)
  1428  			if intStringLen < 0 {
  1429  				return ErrInvalidLengthEnterprise
  1430  			}
  1431  			postIndex := iNdEx + intStringLen
  1432  			if postIndex < 0 {
  1433  				return ErrInvalidLengthEnterprise
  1434  			}
  1435  			if postIndex > l {
  1436  				return io.ErrUnexpectedEOF
  1437  			}
  1438  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  1439  			iNdEx = postIndex
  1440  		case 2:
  1441  			if wireType != 2 {
  1442  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1443  			}
  1444  			var msglen int
  1445  			for shift := uint(0); ; shift += 7 {
  1446  				if shift >= 64 {
  1447  					return ErrIntOverflowEnterprise
  1448  				}
  1449  				if iNdEx >= l {
  1450  					return io.ErrUnexpectedEOF
  1451  				}
  1452  				b := dAtA[iNdEx]
  1453  				iNdEx++
  1454  				msglen |= int(b&0x7F) << shift
  1455  				if b < 0x80 {
  1456  					break
  1457  				}
  1458  			}
  1459  			if msglen < 0 {
  1460  				return ErrInvalidLengthEnterprise
  1461  			}
  1462  			postIndex := iNdEx + msglen
  1463  			if postIndex < 0 {
  1464  				return ErrInvalidLengthEnterprise
  1465  			}
  1466  			if postIndex > l {
  1467  				return io.ErrUnexpectedEOF
  1468  			}
  1469  			if m.Expires == nil {
  1470  				m.Expires = &types.Timestamp{}
  1471  			}
  1472  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1473  				return err
  1474  			}
  1475  			iNdEx = postIndex
  1476  		default:
  1477  			iNdEx = preIndex
  1478  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1479  			if err != nil {
  1480  				return err
  1481  			}
  1482  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1483  				return ErrInvalidLengthEnterprise
  1484  			}
  1485  			if (iNdEx + skippy) > l {
  1486  				return io.ErrUnexpectedEOF
  1487  			}
  1488  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1489  			iNdEx += skippy
  1490  		}
  1491  	}
  1492  
  1493  	if iNdEx > l {
  1494  		return io.ErrUnexpectedEOF
  1495  	}
  1496  	return nil
  1497  }
  1498  func (m *TokenInfo) Unmarshal(dAtA []byte) error {
  1499  	l := len(dAtA)
  1500  	iNdEx := 0
  1501  	for iNdEx < l {
  1502  		preIndex := iNdEx
  1503  		var wire uint64
  1504  		for shift := uint(0); ; shift += 7 {
  1505  			if shift >= 64 {
  1506  				return ErrIntOverflowEnterprise
  1507  			}
  1508  			if iNdEx >= l {
  1509  				return io.ErrUnexpectedEOF
  1510  			}
  1511  			b := dAtA[iNdEx]
  1512  			iNdEx++
  1513  			wire |= uint64(b&0x7F) << shift
  1514  			if b < 0x80 {
  1515  				break
  1516  			}
  1517  		}
  1518  		fieldNum := int32(wire >> 3)
  1519  		wireType := int(wire & 0x7)
  1520  		if wireType == 4 {
  1521  			return fmt.Errorf("proto: TokenInfo: wiretype end group for non-group")
  1522  		}
  1523  		if fieldNum <= 0 {
  1524  			return fmt.Errorf("proto: TokenInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1525  		}
  1526  		switch fieldNum {
  1527  		case 1:
  1528  			if wireType != 2 {
  1529  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1530  			}
  1531  			var msglen int
  1532  			for shift := uint(0); ; shift += 7 {
  1533  				if shift >= 64 {
  1534  					return ErrIntOverflowEnterprise
  1535  				}
  1536  				if iNdEx >= l {
  1537  					return io.ErrUnexpectedEOF
  1538  				}
  1539  				b := dAtA[iNdEx]
  1540  				iNdEx++
  1541  				msglen |= int(b&0x7F) << shift
  1542  				if b < 0x80 {
  1543  					break
  1544  				}
  1545  			}
  1546  			if msglen < 0 {
  1547  				return ErrInvalidLengthEnterprise
  1548  			}
  1549  			postIndex := iNdEx + msglen
  1550  			if postIndex < 0 {
  1551  				return ErrInvalidLengthEnterprise
  1552  			}
  1553  			if postIndex > l {
  1554  				return io.ErrUnexpectedEOF
  1555  			}
  1556  			if m.Expires == nil {
  1557  				m.Expires = &types.Timestamp{}
  1558  			}
  1559  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1560  				return err
  1561  			}
  1562  			iNdEx = postIndex
  1563  		default:
  1564  			iNdEx = preIndex
  1565  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1566  			if err != nil {
  1567  				return err
  1568  			}
  1569  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1570  				return ErrInvalidLengthEnterprise
  1571  			}
  1572  			if (iNdEx + skippy) > l {
  1573  				return io.ErrUnexpectedEOF
  1574  			}
  1575  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1576  			iNdEx += skippy
  1577  		}
  1578  	}
  1579  
  1580  	if iNdEx > l {
  1581  		return io.ErrUnexpectedEOF
  1582  	}
  1583  	return nil
  1584  }
  1585  func (m *ActivateRequest) Unmarshal(dAtA []byte) error {
  1586  	l := len(dAtA)
  1587  	iNdEx := 0
  1588  	for iNdEx < l {
  1589  		preIndex := iNdEx
  1590  		var wire uint64
  1591  		for shift := uint(0); ; shift += 7 {
  1592  			if shift >= 64 {
  1593  				return ErrIntOverflowEnterprise
  1594  			}
  1595  			if iNdEx >= l {
  1596  				return io.ErrUnexpectedEOF
  1597  			}
  1598  			b := dAtA[iNdEx]
  1599  			iNdEx++
  1600  			wire |= uint64(b&0x7F) << shift
  1601  			if b < 0x80 {
  1602  				break
  1603  			}
  1604  		}
  1605  		fieldNum := int32(wire >> 3)
  1606  		wireType := int(wire & 0x7)
  1607  		if wireType == 4 {
  1608  			return fmt.Errorf("proto: ActivateRequest: wiretype end group for non-group")
  1609  		}
  1610  		if fieldNum <= 0 {
  1611  			return fmt.Errorf("proto: ActivateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1612  		}
  1613  		switch fieldNum {
  1614  		case 1:
  1615  			if wireType != 2 {
  1616  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  1617  			}
  1618  			var stringLen uint64
  1619  			for shift := uint(0); ; shift += 7 {
  1620  				if shift >= 64 {
  1621  					return ErrIntOverflowEnterprise
  1622  				}
  1623  				if iNdEx >= l {
  1624  					return io.ErrUnexpectedEOF
  1625  				}
  1626  				b := dAtA[iNdEx]
  1627  				iNdEx++
  1628  				stringLen |= uint64(b&0x7F) << shift
  1629  				if b < 0x80 {
  1630  					break
  1631  				}
  1632  			}
  1633  			intStringLen := int(stringLen)
  1634  			if intStringLen < 0 {
  1635  				return ErrInvalidLengthEnterprise
  1636  			}
  1637  			postIndex := iNdEx + intStringLen
  1638  			if postIndex < 0 {
  1639  				return ErrInvalidLengthEnterprise
  1640  			}
  1641  			if postIndex > l {
  1642  				return io.ErrUnexpectedEOF
  1643  			}
  1644  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  1645  			iNdEx = postIndex
  1646  		case 2:
  1647  			if wireType != 2 {
  1648  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1649  			}
  1650  			var msglen int
  1651  			for shift := uint(0); ; shift += 7 {
  1652  				if shift >= 64 {
  1653  					return ErrIntOverflowEnterprise
  1654  				}
  1655  				if iNdEx >= l {
  1656  					return io.ErrUnexpectedEOF
  1657  				}
  1658  				b := dAtA[iNdEx]
  1659  				iNdEx++
  1660  				msglen |= int(b&0x7F) << shift
  1661  				if b < 0x80 {
  1662  					break
  1663  				}
  1664  			}
  1665  			if msglen < 0 {
  1666  				return ErrInvalidLengthEnterprise
  1667  			}
  1668  			postIndex := iNdEx + msglen
  1669  			if postIndex < 0 {
  1670  				return ErrInvalidLengthEnterprise
  1671  			}
  1672  			if postIndex > l {
  1673  				return io.ErrUnexpectedEOF
  1674  			}
  1675  			if m.Expires == nil {
  1676  				m.Expires = &types.Timestamp{}
  1677  			}
  1678  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1679  				return err
  1680  			}
  1681  			iNdEx = postIndex
  1682  		default:
  1683  			iNdEx = preIndex
  1684  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1685  			if err != nil {
  1686  				return err
  1687  			}
  1688  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1689  				return ErrInvalidLengthEnterprise
  1690  			}
  1691  			if (iNdEx + skippy) > l {
  1692  				return io.ErrUnexpectedEOF
  1693  			}
  1694  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1695  			iNdEx += skippy
  1696  		}
  1697  	}
  1698  
  1699  	if iNdEx > l {
  1700  		return io.ErrUnexpectedEOF
  1701  	}
  1702  	return nil
  1703  }
  1704  func (m *ActivateResponse) Unmarshal(dAtA []byte) error {
  1705  	l := len(dAtA)
  1706  	iNdEx := 0
  1707  	for iNdEx < l {
  1708  		preIndex := iNdEx
  1709  		var wire uint64
  1710  		for shift := uint(0); ; shift += 7 {
  1711  			if shift >= 64 {
  1712  				return ErrIntOverflowEnterprise
  1713  			}
  1714  			if iNdEx >= l {
  1715  				return io.ErrUnexpectedEOF
  1716  			}
  1717  			b := dAtA[iNdEx]
  1718  			iNdEx++
  1719  			wire |= uint64(b&0x7F) << shift
  1720  			if b < 0x80 {
  1721  				break
  1722  			}
  1723  		}
  1724  		fieldNum := int32(wire >> 3)
  1725  		wireType := int(wire & 0x7)
  1726  		if wireType == 4 {
  1727  			return fmt.Errorf("proto: ActivateResponse: wiretype end group for non-group")
  1728  		}
  1729  		if fieldNum <= 0 {
  1730  			return fmt.Errorf("proto: ActivateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1731  		}
  1732  		switch fieldNum {
  1733  		case 1:
  1734  			if wireType != 2 {
  1735  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  1736  			}
  1737  			var msglen int
  1738  			for shift := uint(0); ; shift += 7 {
  1739  				if shift >= 64 {
  1740  					return ErrIntOverflowEnterprise
  1741  				}
  1742  				if iNdEx >= l {
  1743  					return io.ErrUnexpectedEOF
  1744  				}
  1745  				b := dAtA[iNdEx]
  1746  				iNdEx++
  1747  				msglen |= int(b&0x7F) << shift
  1748  				if b < 0x80 {
  1749  					break
  1750  				}
  1751  			}
  1752  			if msglen < 0 {
  1753  				return ErrInvalidLengthEnterprise
  1754  			}
  1755  			postIndex := iNdEx + msglen
  1756  			if postIndex < 0 {
  1757  				return ErrInvalidLengthEnterprise
  1758  			}
  1759  			if postIndex > l {
  1760  				return io.ErrUnexpectedEOF
  1761  			}
  1762  			if m.Info == nil {
  1763  				m.Info = &TokenInfo{}
  1764  			}
  1765  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1766  				return err
  1767  			}
  1768  			iNdEx = postIndex
  1769  		default:
  1770  			iNdEx = preIndex
  1771  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1772  			if err != nil {
  1773  				return err
  1774  			}
  1775  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1776  				return ErrInvalidLengthEnterprise
  1777  			}
  1778  			if (iNdEx + skippy) > l {
  1779  				return io.ErrUnexpectedEOF
  1780  			}
  1781  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1782  			iNdEx += skippy
  1783  		}
  1784  	}
  1785  
  1786  	if iNdEx > l {
  1787  		return io.ErrUnexpectedEOF
  1788  	}
  1789  	return nil
  1790  }
  1791  func (m *GetStateRequest) Unmarshal(dAtA []byte) error {
  1792  	l := len(dAtA)
  1793  	iNdEx := 0
  1794  	for iNdEx < l {
  1795  		preIndex := iNdEx
  1796  		var wire uint64
  1797  		for shift := uint(0); ; shift += 7 {
  1798  			if shift >= 64 {
  1799  				return ErrIntOverflowEnterprise
  1800  			}
  1801  			if iNdEx >= l {
  1802  				return io.ErrUnexpectedEOF
  1803  			}
  1804  			b := dAtA[iNdEx]
  1805  			iNdEx++
  1806  			wire |= uint64(b&0x7F) << shift
  1807  			if b < 0x80 {
  1808  				break
  1809  			}
  1810  		}
  1811  		fieldNum := int32(wire >> 3)
  1812  		wireType := int(wire & 0x7)
  1813  		if wireType == 4 {
  1814  			return fmt.Errorf("proto: GetStateRequest: wiretype end group for non-group")
  1815  		}
  1816  		if fieldNum <= 0 {
  1817  			return fmt.Errorf("proto: GetStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1818  		}
  1819  		switch fieldNum {
  1820  		default:
  1821  			iNdEx = preIndex
  1822  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1823  			if err != nil {
  1824  				return err
  1825  			}
  1826  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1827  				return ErrInvalidLengthEnterprise
  1828  			}
  1829  			if (iNdEx + skippy) > l {
  1830  				return io.ErrUnexpectedEOF
  1831  			}
  1832  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1833  			iNdEx += skippy
  1834  		}
  1835  	}
  1836  
  1837  	if iNdEx > l {
  1838  		return io.ErrUnexpectedEOF
  1839  	}
  1840  	return nil
  1841  }
  1842  func (m *GetStateResponse) Unmarshal(dAtA []byte) error {
  1843  	l := len(dAtA)
  1844  	iNdEx := 0
  1845  	for iNdEx < l {
  1846  		preIndex := iNdEx
  1847  		var wire uint64
  1848  		for shift := uint(0); ; shift += 7 {
  1849  			if shift >= 64 {
  1850  				return ErrIntOverflowEnterprise
  1851  			}
  1852  			if iNdEx >= l {
  1853  				return io.ErrUnexpectedEOF
  1854  			}
  1855  			b := dAtA[iNdEx]
  1856  			iNdEx++
  1857  			wire |= uint64(b&0x7F) << shift
  1858  			if b < 0x80 {
  1859  				break
  1860  			}
  1861  		}
  1862  		fieldNum := int32(wire >> 3)
  1863  		wireType := int(wire & 0x7)
  1864  		if wireType == 4 {
  1865  			return fmt.Errorf("proto: GetStateResponse: wiretype end group for non-group")
  1866  		}
  1867  		if fieldNum <= 0 {
  1868  			return fmt.Errorf("proto: GetStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1869  		}
  1870  		switch fieldNum {
  1871  		case 1:
  1872  			if wireType != 0 {
  1873  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1874  			}
  1875  			m.State = 0
  1876  			for shift := uint(0); ; shift += 7 {
  1877  				if shift >= 64 {
  1878  					return ErrIntOverflowEnterprise
  1879  				}
  1880  				if iNdEx >= l {
  1881  					return io.ErrUnexpectedEOF
  1882  				}
  1883  				b := dAtA[iNdEx]
  1884  				iNdEx++
  1885  				m.State |= State(b&0x7F) << shift
  1886  				if b < 0x80 {
  1887  					break
  1888  				}
  1889  			}
  1890  		case 2:
  1891  			if wireType != 2 {
  1892  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  1893  			}
  1894  			var msglen int
  1895  			for shift := uint(0); ; shift += 7 {
  1896  				if shift >= 64 {
  1897  					return ErrIntOverflowEnterprise
  1898  				}
  1899  				if iNdEx >= l {
  1900  					return io.ErrUnexpectedEOF
  1901  				}
  1902  				b := dAtA[iNdEx]
  1903  				iNdEx++
  1904  				msglen |= int(b&0x7F) << shift
  1905  				if b < 0x80 {
  1906  					break
  1907  				}
  1908  			}
  1909  			if msglen < 0 {
  1910  				return ErrInvalidLengthEnterprise
  1911  			}
  1912  			postIndex := iNdEx + msglen
  1913  			if postIndex < 0 {
  1914  				return ErrInvalidLengthEnterprise
  1915  			}
  1916  			if postIndex > l {
  1917  				return io.ErrUnexpectedEOF
  1918  			}
  1919  			if m.Info == nil {
  1920  				m.Info = &TokenInfo{}
  1921  			}
  1922  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1923  				return err
  1924  			}
  1925  			iNdEx = postIndex
  1926  		case 3:
  1927  			if wireType != 2 {
  1928  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  1929  			}
  1930  			var stringLen uint64
  1931  			for shift := uint(0); ; shift += 7 {
  1932  				if shift >= 64 {
  1933  					return ErrIntOverflowEnterprise
  1934  				}
  1935  				if iNdEx >= l {
  1936  					return io.ErrUnexpectedEOF
  1937  				}
  1938  				b := dAtA[iNdEx]
  1939  				iNdEx++
  1940  				stringLen |= uint64(b&0x7F) << shift
  1941  				if b < 0x80 {
  1942  					break
  1943  				}
  1944  			}
  1945  			intStringLen := int(stringLen)
  1946  			if intStringLen < 0 {
  1947  				return ErrInvalidLengthEnterprise
  1948  			}
  1949  			postIndex := iNdEx + intStringLen
  1950  			if postIndex < 0 {
  1951  				return ErrInvalidLengthEnterprise
  1952  			}
  1953  			if postIndex > l {
  1954  				return io.ErrUnexpectedEOF
  1955  			}
  1956  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  1957  			iNdEx = postIndex
  1958  		default:
  1959  			iNdEx = preIndex
  1960  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1961  			if err != nil {
  1962  				return err
  1963  			}
  1964  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1965  				return ErrInvalidLengthEnterprise
  1966  			}
  1967  			if (iNdEx + skippy) > l {
  1968  				return io.ErrUnexpectedEOF
  1969  			}
  1970  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1971  			iNdEx += skippy
  1972  		}
  1973  	}
  1974  
  1975  	if iNdEx > l {
  1976  		return io.ErrUnexpectedEOF
  1977  	}
  1978  	return nil
  1979  }
  1980  func (m *GetActivationCodeRequest) Unmarshal(dAtA []byte) error {
  1981  	l := len(dAtA)
  1982  	iNdEx := 0
  1983  	for iNdEx < l {
  1984  		preIndex := iNdEx
  1985  		var wire uint64
  1986  		for shift := uint(0); ; shift += 7 {
  1987  			if shift >= 64 {
  1988  				return ErrIntOverflowEnterprise
  1989  			}
  1990  			if iNdEx >= l {
  1991  				return io.ErrUnexpectedEOF
  1992  			}
  1993  			b := dAtA[iNdEx]
  1994  			iNdEx++
  1995  			wire |= uint64(b&0x7F) << shift
  1996  			if b < 0x80 {
  1997  				break
  1998  			}
  1999  		}
  2000  		fieldNum := int32(wire >> 3)
  2001  		wireType := int(wire & 0x7)
  2002  		if wireType == 4 {
  2003  			return fmt.Errorf("proto: GetActivationCodeRequest: wiretype end group for non-group")
  2004  		}
  2005  		if fieldNum <= 0 {
  2006  			return fmt.Errorf("proto: GetActivationCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2007  		}
  2008  		switch fieldNum {
  2009  		default:
  2010  			iNdEx = preIndex
  2011  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  2012  			if err != nil {
  2013  				return err
  2014  			}
  2015  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2016  				return ErrInvalidLengthEnterprise
  2017  			}
  2018  			if (iNdEx + skippy) > l {
  2019  				return io.ErrUnexpectedEOF
  2020  			}
  2021  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2022  			iNdEx += skippy
  2023  		}
  2024  	}
  2025  
  2026  	if iNdEx > l {
  2027  		return io.ErrUnexpectedEOF
  2028  	}
  2029  	return nil
  2030  }
  2031  func (m *GetActivationCodeResponse) Unmarshal(dAtA []byte) error {
  2032  	l := len(dAtA)
  2033  	iNdEx := 0
  2034  	for iNdEx < l {
  2035  		preIndex := iNdEx
  2036  		var wire uint64
  2037  		for shift := uint(0); ; shift += 7 {
  2038  			if shift >= 64 {
  2039  				return ErrIntOverflowEnterprise
  2040  			}
  2041  			if iNdEx >= l {
  2042  				return io.ErrUnexpectedEOF
  2043  			}
  2044  			b := dAtA[iNdEx]
  2045  			iNdEx++
  2046  			wire |= uint64(b&0x7F) << shift
  2047  			if b < 0x80 {
  2048  				break
  2049  			}
  2050  		}
  2051  		fieldNum := int32(wire >> 3)
  2052  		wireType := int(wire & 0x7)
  2053  		if wireType == 4 {
  2054  			return fmt.Errorf("proto: GetActivationCodeResponse: wiretype end group for non-group")
  2055  		}
  2056  		if fieldNum <= 0 {
  2057  			return fmt.Errorf("proto: GetActivationCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2058  		}
  2059  		switch fieldNum {
  2060  		case 1:
  2061  			if wireType != 0 {
  2062  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  2063  			}
  2064  			m.State = 0
  2065  			for shift := uint(0); ; shift += 7 {
  2066  				if shift >= 64 {
  2067  					return ErrIntOverflowEnterprise
  2068  				}
  2069  				if iNdEx >= l {
  2070  					return io.ErrUnexpectedEOF
  2071  				}
  2072  				b := dAtA[iNdEx]
  2073  				iNdEx++
  2074  				m.State |= State(b&0x7F) << shift
  2075  				if b < 0x80 {
  2076  					break
  2077  				}
  2078  			}
  2079  		case 2:
  2080  			if wireType != 2 {
  2081  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  2082  			}
  2083  			var msglen int
  2084  			for shift := uint(0); ; shift += 7 {
  2085  				if shift >= 64 {
  2086  					return ErrIntOverflowEnterprise
  2087  				}
  2088  				if iNdEx >= l {
  2089  					return io.ErrUnexpectedEOF
  2090  				}
  2091  				b := dAtA[iNdEx]
  2092  				iNdEx++
  2093  				msglen |= int(b&0x7F) << shift
  2094  				if b < 0x80 {
  2095  					break
  2096  				}
  2097  			}
  2098  			if msglen < 0 {
  2099  				return ErrInvalidLengthEnterprise
  2100  			}
  2101  			postIndex := iNdEx + msglen
  2102  			if postIndex < 0 {
  2103  				return ErrInvalidLengthEnterprise
  2104  			}
  2105  			if postIndex > l {
  2106  				return io.ErrUnexpectedEOF
  2107  			}
  2108  			if m.Info == nil {
  2109  				m.Info = &TokenInfo{}
  2110  			}
  2111  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2112  				return err
  2113  			}
  2114  			iNdEx = postIndex
  2115  		case 3:
  2116  			if wireType != 2 {
  2117  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  2118  			}
  2119  			var stringLen uint64
  2120  			for shift := uint(0); ; shift += 7 {
  2121  				if shift >= 64 {
  2122  					return ErrIntOverflowEnterprise
  2123  				}
  2124  				if iNdEx >= l {
  2125  					return io.ErrUnexpectedEOF
  2126  				}
  2127  				b := dAtA[iNdEx]
  2128  				iNdEx++
  2129  				stringLen |= uint64(b&0x7F) << shift
  2130  				if b < 0x80 {
  2131  					break
  2132  				}
  2133  			}
  2134  			intStringLen := int(stringLen)
  2135  			if intStringLen < 0 {
  2136  				return ErrInvalidLengthEnterprise
  2137  			}
  2138  			postIndex := iNdEx + intStringLen
  2139  			if postIndex < 0 {
  2140  				return ErrInvalidLengthEnterprise
  2141  			}
  2142  			if postIndex > l {
  2143  				return io.ErrUnexpectedEOF
  2144  			}
  2145  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  2146  			iNdEx = postIndex
  2147  		default:
  2148  			iNdEx = preIndex
  2149  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  2150  			if err != nil {
  2151  				return err
  2152  			}
  2153  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2154  				return ErrInvalidLengthEnterprise
  2155  			}
  2156  			if (iNdEx + skippy) > l {
  2157  				return io.ErrUnexpectedEOF
  2158  			}
  2159  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2160  			iNdEx += skippy
  2161  		}
  2162  	}
  2163  
  2164  	if iNdEx > l {
  2165  		return io.ErrUnexpectedEOF
  2166  	}
  2167  	return nil
  2168  }
  2169  func (m *DeactivateRequest) Unmarshal(dAtA []byte) error {
  2170  	l := len(dAtA)
  2171  	iNdEx := 0
  2172  	for iNdEx < l {
  2173  		preIndex := iNdEx
  2174  		var wire uint64
  2175  		for shift := uint(0); ; shift += 7 {
  2176  			if shift >= 64 {
  2177  				return ErrIntOverflowEnterprise
  2178  			}
  2179  			if iNdEx >= l {
  2180  				return io.ErrUnexpectedEOF
  2181  			}
  2182  			b := dAtA[iNdEx]
  2183  			iNdEx++
  2184  			wire |= uint64(b&0x7F) << shift
  2185  			if b < 0x80 {
  2186  				break
  2187  			}
  2188  		}
  2189  		fieldNum := int32(wire >> 3)
  2190  		wireType := int(wire & 0x7)
  2191  		if wireType == 4 {
  2192  			return fmt.Errorf("proto: DeactivateRequest: wiretype end group for non-group")
  2193  		}
  2194  		if fieldNum <= 0 {
  2195  			return fmt.Errorf("proto: DeactivateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2196  		}
  2197  		switch fieldNum {
  2198  		default:
  2199  			iNdEx = preIndex
  2200  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  2201  			if err != nil {
  2202  				return err
  2203  			}
  2204  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2205  				return ErrInvalidLengthEnterprise
  2206  			}
  2207  			if (iNdEx + skippy) > l {
  2208  				return io.ErrUnexpectedEOF
  2209  			}
  2210  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2211  			iNdEx += skippy
  2212  		}
  2213  	}
  2214  
  2215  	if iNdEx > l {
  2216  		return io.ErrUnexpectedEOF
  2217  	}
  2218  	return nil
  2219  }
  2220  func (m *DeactivateResponse) Unmarshal(dAtA []byte) error {
  2221  	l := len(dAtA)
  2222  	iNdEx := 0
  2223  	for iNdEx < l {
  2224  		preIndex := iNdEx
  2225  		var wire uint64
  2226  		for shift := uint(0); ; shift += 7 {
  2227  			if shift >= 64 {
  2228  				return ErrIntOverflowEnterprise
  2229  			}
  2230  			if iNdEx >= l {
  2231  				return io.ErrUnexpectedEOF
  2232  			}
  2233  			b := dAtA[iNdEx]
  2234  			iNdEx++
  2235  			wire |= uint64(b&0x7F) << shift
  2236  			if b < 0x80 {
  2237  				break
  2238  			}
  2239  		}
  2240  		fieldNum := int32(wire >> 3)
  2241  		wireType := int(wire & 0x7)
  2242  		if wireType == 4 {
  2243  			return fmt.Errorf("proto: DeactivateResponse: wiretype end group for non-group")
  2244  		}
  2245  		if fieldNum <= 0 {
  2246  			return fmt.Errorf("proto: DeactivateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2247  		}
  2248  		switch fieldNum {
  2249  		default:
  2250  			iNdEx = preIndex
  2251  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  2252  			if err != nil {
  2253  				return err
  2254  			}
  2255  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2256  				return ErrInvalidLengthEnterprise
  2257  			}
  2258  			if (iNdEx + skippy) > l {
  2259  				return io.ErrUnexpectedEOF
  2260  			}
  2261  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2262  			iNdEx += skippy
  2263  		}
  2264  	}
  2265  
  2266  	if iNdEx > l {
  2267  		return io.ErrUnexpectedEOF
  2268  	}
  2269  	return nil
  2270  }
  2271  func skipEnterprise(dAtA []byte) (n int, err error) {
  2272  	l := len(dAtA)
  2273  	iNdEx := 0
  2274  	depth := 0
  2275  	for iNdEx < l {
  2276  		var wire uint64
  2277  		for shift := uint(0); ; shift += 7 {
  2278  			if shift >= 64 {
  2279  				return 0, ErrIntOverflowEnterprise
  2280  			}
  2281  			if iNdEx >= l {
  2282  				return 0, io.ErrUnexpectedEOF
  2283  			}
  2284  			b := dAtA[iNdEx]
  2285  			iNdEx++
  2286  			wire |= (uint64(b) & 0x7F) << shift
  2287  			if b < 0x80 {
  2288  				break
  2289  			}
  2290  		}
  2291  		wireType := int(wire & 0x7)
  2292  		switch wireType {
  2293  		case 0:
  2294  			for shift := uint(0); ; shift += 7 {
  2295  				if shift >= 64 {
  2296  					return 0, ErrIntOverflowEnterprise
  2297  				}
  2298  				if iNdEx >= l {
  2299  					return 0, io.ErrUnexpectedEOF
  2300  				}
  2301  				iNdEx++
  2302  				if dAtA[iNdEx-1] < 0x80 {
  2303  					break
  2304  				}
  2305  			}
  2306  		case 1:
  2307  			iNdEx += 8
  2308  		case 2:
  2309  			var length int
  2310  			for shift := uint(0); ; shift += 7 {
  2311  				if shift >= 64 {
  2312  					return 0, ErrIntOverflowEnterprise
  2313  				}
  2314  				if iNdEx >= l {
  2315  					return 0, io.ErrUnexpectedEOF
  2316  				}
  2317  				b := dAtA[iNdEx]
  2318  				iNdEx++
  2319  				length |= (int(b) & 0x7F) << shift
  2320  				if b < 0x80 {
  2321  					break
  2322  				}
  2323  			}
  2324  			if length < 0 {
  2325  				return 0, ErrInvalidLengthEnterprise
  2326  			}
  2327  			iNdEx += length
  2328  		case 3:
  2329  			depth++
  2330  		case 4:
  2331  			if depth == 0 {
  2332  				return 0, ErrUnexpectedEndOfGroupEnterprise
  2333  			}
  2334  			depth--
  2335  		case 5:
  2336  			iNdEx += 4
  2337  		default:
  2338  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2339  		}
  2340  		if iNdEx < 0 {
  2341  			return 0, ErrInvalidLengthEnterprise
  2342  		}
  2343  		if depth == 0 {
  2344  			return iNdEx, nil
  2345  		}
  2346  	}
  2347  	return 0, io.ErrUnexpectedEOF
  2348  }
  2349  
  2350  var (
  2351  	ErrInvalidLengthEnterprise        = fmt.Errorf("proto: negative length found during unmarshaling")
  2352  	ErrIntOverflowEnterprise          = fmt.Errorf("proto: integer overflow")
  2353  	ErrUnexpectedEndOfGroupEnterprise = fmt.Errorf("proto: unexpected end of group")
  2354  )