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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: client/admin/v1_8/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_c8e5319e8cbbf91c, []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_c8e5319e8cbbf91c, []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_c8e5319e8cbbf91c, []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_c8e5319e8cbbf91c, []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_c8e5319e8cbbf91c, []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_c8e5319e8cbbf91c, []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_1_8.State" json:"state,omitempty"`
   315  	Info                 *TokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
   316  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   317  	XXX_unrecognized     []byte     `json:"-"`
   318  	XXX_sizecache        int32      `json:"-"`
   319  }
   320  
   321  func (m *GetStateResponse) Reset()         { *m = GetStateResponse{} }
   322  func (m *GetStateResponse) String() string { return proto.CompactTextString(m) }
   323  func (*GetStateResponse) ProtoMessage()    {}
   324  func (*GetStateResponse) Descriptor() ([]byte, []int) {
   325  	return fileDescriptor_c8e5319e8cbbf91c, []int{5}
   326  }
   327  func (m *GetStateResponse) XXX_Unmarshal(b []byte) error {
   328  	return m.Unmarshal(b)
   329  }
   330  func (m *GetStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   331  	if deterministic {
   332  		return xxx_messageInfo_GetStateResponse.Marshal(b, m, deterministic)
   333  	} else {
   334  		b = b[:cap(b)]
   335  		n, err := m.MarshalToSizedBuffer(b)
   336  		if err != nil {
   337  			return nil, err
   338  		}
   339  		return b[:n], nil
   340  	}
   341  }
   342  func (m *GetStateResponse) XXX_Merge(src proto.Message) {
   343  	xxx_messageInfo_GetStateResponse.Merge(m, src)
   344  }
   345  func (m *GetStateResponse) XXX_Size() int {
   346  	return m.Size()
   347  }
   348  func (m *GetStateResponse) XXX_DiscardUnknown() {
   349  	xxx_messageInfo_GetStateResponse.DiscardUnknown(m)
   350  }
   351  
   352  var xxx_messageInfo_GetStateResponse proto.InternalMessageInfo
   353  
   354  func (m *GetStateResponse) GetState() State {
   355  	if m != nil {
   356  		return m.State
   357  	}
   358  	return State_NONE
   359  }
   360  
   361  func (m *GetStateResponse) GetInfo() *TokenInfo {
   362  	if m != nil {
   363  		return m.Info
   364  	}
   365  	return nil
   366  }
   367  
   368  type DeactivateRequest struct {
   369  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   370  	XXX_unrecognized     []byte   `json:"-"`
   371  	XXX_sizecache        int32    `json:"-"`
   372  }
   373  
   374  func (m *DeactivateRequest) Reset()         { *m = DeactivateRequest{} }
   375  func (m *DeactivateRequest) String() string { return proto.CompactTextString(m) }
   376  func (*DeactivateRequest) ProtoMessage()    {}
   377  func (*DeactivateRequest) Descriptor() ([]byte, []int) {
   378  	return fileDescriptor_c8e5319e8cbbf91c, []int{6}
   379  }
   380  func (m *DeactivateRequest) XXX_Unmarshal(b []byte) error {
   381  	return m.Unmarshal(b)
   382  }
   383  func (m *DeactivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   384  	if deterministic {
   385  		return xxx_messageInfo_DeactivateRequest.Marshal(b, m, deterministic)
   386  	} else {
   387  		b = b[:cap(b)]
   388  		n, err := m.MarshalToSizedBuffer(b)
   389  		if err != nil {
   390  			return nil, err
   391  		}
   392  		return b[:n], nil
   393  	}
   394  }
   395  func (m *DeactivateRequest) XXX_Merge(src proto.Message) {
   396  	xxx_messageInfo_DeactivateRequest.Merge(m, src)
   397  }
   398  func (m *DeactivateRequest) XXX_Size() int {
   399  	return m.Size()
   400  }
   401  func (m *DeactivateRequest) XXX_DiscardUnknown() {
   402  	xxx_messageInfo_DeactivateRequest.DiscardUnknown(m)
   403  }
   404  
   405  var xxx_messageInfo_DeactivateRequest proto.InternalMessageInfo
   406  
   407  type DeactivateResponse struct {
   408  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   409  	XXX_unrecognized     []byte   `json:"-"`
   410  	XXX_sizecache        int32    `json:"-"`
   411  }
   412  
   413  func (m *DeactivateResponse) Reset()         { *m = DeactivateResponse{} }
   414  func (m *DeactivateResponse) String() string { return proto.CompactTextString(m) }
   415  func (*DeactivateResponse) ProtoMessage()    {}
   416  func (*DeactivateResponse) Descriptor() ([]byte, []int) {
   417  	return fileDescriptor_c8e5319e8cbbf91c, []int{7}
   418  }
   419  func (m *DeactivateResponse) XXX_Unmarshal(b []byte) error {
   420  	return m.Unmarshal(b)
   421  }
   422  func (m *DeactivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   423  	if deterministic {
   424  		return xxx_messageInfo_DeactivateResponse.Marshal(b, m, deterministic)
   425  	} else {
   426  		b = b[:cap(b)]
   427  		n, err := m.MarshalToSizedBuffer(b)
   428  		if err != nil {
   429  			return nil, err
   430  		}
   431  		return b[:n], nil
   432  	}
   433  }
   434  func (m *DeactivateResponse) XXX_Merge(src proto.Message) {
   435  	xxx_messageInfo_DeactivateResponse.Merge(m, src)
   436  }
   437  func (m *DeactivateResponse) XXX_Size() int {
   438  	return m.Size()
   439  }
   440  func (m *DeactivateResponse) XXX_DiscardUnknown() {
   441  	xxx_messageInfo_DeactivateResponse.DiscardUnknown(m)
   442  }
   443  
   444  var xxx_messageInfo_DeactivateResponse proto.InternalMessageInfo
   445  
   446  func init() {
   447  	proto.RegisterEnum("enterprise_1_8.State", State_name, State_value)
   448  	proto.RegisterType((*EnterpriseRecord)(nil), "enterprise_1_8.EnterpriseRecord")
   449  	proto.RegisterType((*TokenInfo)(nil), "enterprise_1_8.TokenInfo")
   450  	proto.RegisterType((*ActivateRequest)(nil), "enterprise_1_8.ActivateRequest")
   451  	proto.RegisterType((*ActivateResponse)(nil), "enterprise_1_8.ActivateResponse")
   452  	proto.RegisterType((*GetStateRequest)(nil), "enterprise_1_8.GetStateRequest")
   453  	proto.RegisterType((*GetStateResponse)(nil), "enterprise_1_8.GetStateResponse")
   454  	proto.RegisterType((*DeactivateRequest)(nil), "enterprise_1_8.DeactivateRequest")
   455  	proto.RegisterType((*DeactivateResponse)(nil), "enterprise_1_8.DeactivateResponse")
   456  }
   457  
   458  func init() {
   459  	proto.RegisterFile("client/admin/v1_8/enterprise/enterprise.proto", fileDescriptor_c8e5319e8cbbf91c)
   460  }
   461  
   462  var fileDescriptor_c8e5319e8cbbf91c = []byte{
   463  	// 440 bytes of a gzipped FileDescriptorProto
   464  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
   465  	0x14, 0x85, 0x33, 0xa1, 0xbf, 0xb7, 0x52, 0xe2, 0x0e, 0x20, 0x15, 0x2f, 0xd2, 0x30, 0x1b, 0xaa,
   466  	0xa2, 0xda, 0x6a, 0x60, 0xd1, 0x1d, 0x32, 0xad, 0x85, 0xbc, 0xa0, 0xad, 0x4c, 0x40, 0x88, 0x8d,
   467  	0xe5, 0xd8, 0x37, 0xe9, 0x88, 0x7a, 0xc6, 0xf5, 0x4c, 0x2a, 0x78, 0x43, 0x96, 0x3c, 0x02, 0xca,
   468  	0x83, 0x20, 0x54, 0xbb, 0x8e, 0x5d, 0x47, 0x44, 0xd9, 0x74, 0x37, 0xba, 0x3e, 0xf7, 0x9c, 0x6f,
   469  	0x8e, 0x6d, 0x38, 0x8a, 0xae, 0x39, 0x0a, 0x6d, 0x87, 0x71, 0xc2, 0x85, 0x7d, 0x7b, 0x1c, 0x9c,
   470  	0xd8, 0x28, 0x34, 0x66, 0x69, 0xc6, 0x15, 0xd6, 0x8e, 0x56, 0x9a, 0x49, 0x2d, 0x69, 0xa7, 0x9a,
   471  	0x04, 0xc7, 0xc1, 0x89, 0xb9, 0x3f, 0x91, 0x72, 0x72, 0x8d, 0x76, 0xfe, 0x74, 0x34, 0x1d, 0xdb,
   472  	0x9a, 0x27, 0xa8, 0x74, 0x98, 0xa4, 0xc5, 0x02, 0xbb, 0x01, 0xc3, 0x9d, 0xaf, 0xf8, 0x18, 0xc9,
   473  	0x2c, 0xa6, 0xaf, 0xa0, 0x1b, 0x46, 0x9a, 0xdf, 0x86, 0x9a, 0x4b, 0x11, 0x44, 0x32, 0xc6, 0x3d,
   474  	0xd2, 0x27, 0x07, 0xdb, 0x7e, 0xa7, 0x1a, 0x9f, 0xca, 0x18, 0xe9, 0x5b, 0xd8, 0xc4, 0x1f, 0x29,
   475  	0xcf, 0x50, 0xed, 0xb5, 0xfb, 0xe4, 0x60, 0x67, 0x60, 0x5a, 0x45, 0x9e, 0x55, 0xe6, 0x59, 0xc3,
   476  	0x32, 0xcf, 0x2f, 0xa5, 0xcc, 0x81, 0xed, 0xa1, 0xfc, 0x8e, 0xc2, 0x13, 0x63, 0x59, 0xb7, 0x20,
   477  	0xab, 0x5b, 0xa4, 0xd0, 0x75, 0x0a, 0x14, 0xf4, 0xf1, 0x66, 0x8a, 0x4a, 0x3f, 0x3e, 0xb4, 0x51,
   478  	0x25, 0xaa, 0x54, 0x0a, 0x85, 0xf4, 0x08, 0xd6, 0xb8, 0x18, 0xcb, 0x7b, 0xf0, 0x17, 0xd6, 0xc3,
   479  	0xee, 0xad, 0xf9, 0x25, 0xfd, 0x5c, 0xc6, 0x76, 0xa1, 0xfb, 0x01, 0xf5, 0x27, 0x5d, 0x41, 0x33,
   480  	0x01, 0x46, 0x35, 0xba, 0x77, 0x7d, 0x0d, 0xeb, 0xea, 0x6e, 0x90, 0xdb, 0x76, 0x06, 0xcf, 0x9b,
   481  	0xb6, 0x85, 0xba, 0xd0, 0xcc, 0x11, 0xda, 0xab, 0x21, 0x3c, 0x85, 0xdd, 0x33, 0x0c, 0x1f, 0x36,
   482  	0xc7, 0x9e, 0x01, 0xad, 0x0f, 0x0b, 0x8c, 0xc3, 0x43, 0x58, 0xcf, 0x93, 0xe8, 0x16, 0xac, 0x9d,
   483  	0x5f, 0x9c, 0xbb, 0x46, 0x8b, 0x02, 0x6c, 0x38, 0xa7, 0x43, 0xef, 0x8b, 0x6b, 0x10, 0xba, 0x03,
   484  	0x9b, 0xee, 0xd7, 0x4b, 0xcf, 0x77, 0xcf, 0x8c, 0xf6, 0xe0, 0x2f, 0x81, 0x27, 0xce, 0xa5, 0x47,
   485  	0x2f, 0x60, 0xab, 0x2c, 0x89, 0xee, 0x37, 0x59, 0x1a, 0x2f, 0xcc, 0xec, 0xff, 0x5f, 0x50, 0x20,
   486  	0xb0, 0xd6, 0x9d, 0x61, 0xd9, 0xcf, 0xa2, 0x61, 0xa3, 0xcc, 0x45, 0xc3, 0x66, 0xb5, 0xac, 0x45,
   487  	0x3f, 0x03, 0x54, 0x77, 0xa5, 0x2f, 0x9b, 0x1b, 0x0b, 0xe5, 0x98, 0x6c, 0x99, 0xa4, 0xb4, 0x7d,
   488  	0xff, 0xf1, 0xd7, 0xac, 0x47, 0x7e, 0xcf, 0x7a, 0xe4, 0xcf, 0xac, 0x47, 0xbe, 0xbd, 0x9b, 0x70,
   489  	0x7d, 0x35, 0x1d, 0x59, 0x91, 0x4c, 0xec, 0x34, 0x8c, 0xae, 0x7e, 0xc6, 0x98, 0xd5, 0x4f, 0x2a,
   490  	0x8b, 0xec, 0x65, 0xbf, 0xf5, 0x68, 0x23, 0xff, 0x12, 0xdf, 0xfc, 0x0b, 0x00, 0x00, 0xff, 0xff,
   491  	0x13, 0xce, 0x6d, 0x86, 0xfd, 0x03, 0x00, 0x00,
   492  }
   493  
   494  // Reference imports to suppress errors if they are not otherwise used.
   495  var _ context.Context
   496  var _ grpc.ClientConn
   497  
   498  // This is a compile-time assertion to ensure that this generated file
   499  // is compatible with the grpc package it is being compiled against.
   500  const _ = grpc.SupportPackageIsVersion4
   501  
   502  // APIClient is the client API for API service.
   503  //
   504  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   505  type APIClient interface {
   506  	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
   507  	// features, such as the Pachyderm Dashboard and Auth system
   508  	Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error)
   509  	GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error)
   510  	// Deactivate is a testing API. It removes a cluster's enterprise activation
   511  	// token and sets its enterprise state to NONE (normally, once a cluster has
   512  	// been activated, the only reachable state is EXPIRED).
   513  	//
   514  	// NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in
   515  	// its cluster). This is to avoid dealing with invalid, intermediate states
   516  	// (e.g. auth is activated but enterprise state is NONE)
   517  	Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error)
   518  }
   519  
   520  type aPIClient struct {
   521  	cc *grpc.ClientConn
   522  }
   523  
   524  func NewAPIClient(cc *grpc.ClientConn) APIClient {
   525  	return &aPIClient{cc}
   526  }
   527  
   528  func (c *aPIClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) {
   529  	out := new(ActivateResponse)
   530  	err := c.cc.Invoke(ctx, "/enterprise_1_8.API/Activate", in, out, opts...)
   531  	if err != nil {
   532  		return nil, err
   533  	}
   534  	return out, nil
   535  }
   536  
   537  func (c *aPIClient) GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) {
   538  	out := new(GetStateResponse)
   539  	err := c.cc.Invoke(ctx, "/enterprise_1_8.API/GetState", in, out, opts...)
   540  	if err != nil {
   541  		return nil, err
   542  	}
   543  	return out, nil
   544  }
   545  
   546  func (c *aPIClient) Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) {
   547  	out := new(DeactivateResponse)
   548  	err := c.cc.Invoke(ctx, "/enterprise_1_8.API/Deactivate", in, out, opts...)
   549  	if err != nil {
   550  		return nil, err
   551  	}
   552  	return out, nil
   553  }
   554  
   555  // APIServer is the server API for API service.
   556  type APIServer interface {
   557  	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
   558  	// features, such as the Pachyderm Dashboard and Auth system
   559  	Activate(context.Context, *ActivateRequest) (*ActivateResponse, error)
   560  	GetState(context.Context, *GetStateRequest) (*GetStateResponse, error)
   561  	// Deactivate is a testing API. It removes a cluster's enterprise activation
   562  	// token and sets its enterprise state to NONE (normally, once a cluster has
   563  	// been activated, the only reachable state is EXPIRED).
   564  	//
   565  	// NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in
   566  	// its cluster). This is to avoid dealing with invalid, intermediate states
   567  	// (e.g. auth is activated but enterprise state is NONE)
   568  	Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
   569  }
   570  
   571  // UnimplementedAPIServer can be embedded to have forward compatible implementations.
   572  type UnimplementedAPIServer struct {
   573  }
   574  
   575  func (*UnimplementedAPIServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error) {
   576  	return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented")
   577  }
   578  func (*UnimplementedAPIServer) GetState(ctx context.Context, req *GetStateRequest) (*GetStateResponse, error) {
   579  	return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented")
   580  }
   581  func (*UnimplementedAPIServer) Deactivate(ctx context.Context, req *DeactivateRequest) (*DeactivateResponse, error) {
   582  	return nil, status.Errorf(codes.Unimplemented, "method Deactivate not implemented")
   583  }
   584  
   585  func RegisterAPIServer(s *grpc.Server, srv APIServer) {
   586  	s.RegisterService(&_API_serviceDesc, srv)
   587  }
   588  
   589  func _API_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   590  	in := new(ActivateRequest)
   591  	if err := dec(in); err != nil {
   592  		return nil, err
   593  	}
   594  	if interceptor == nil {
   595  		return srv.(APIServer).Activate(ctx, in)
   596  	}
   597  	info := &grpc.UnaryServerInfo{
   598  		Server:     srv,
   599  		FullMethod: "/enterprise_1_8.API/Activate",
   600  	}
   601  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   602  		return srv.(APIServer).Activate(ctx, req.(*ActivateRequest))
   603  	}
   604  	return interceptor(ctx, in, info, handler)
   605  }
   606  
   607  func _API_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   608  	in := new(GetStateRequest)
   609  	if err := dec(in); err != nil {
   610  		return nil, err
   611  	}
   612  	if interceptor == nil {
   613  		return srv.(APIServer).GetState(ctx, in)
   614  	}
   615  	info := &grpc.UnaryServerInfo{
   616  		Server:     srv,
   617  		FullMethod: "/enterprise_1_8.API/GetState",
   618  	}
   619  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   620  		return srv.(APIServer).GetState(ctx, req.(*GetStateRequest))
   621  	}
   622  	return interceptor(ctx, in, info, handler)
   623  }
   624  
   625  func _API_Deactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   626  	in := new(DeactivateRequest)
   627  	if err := dec(in); err != nil {
   628  		return nil, err
   629  	}
   630  	if interceptor == nil {
   631  		return srv.(APIServer).Deactivate(ctx, in)
   632  	}
   633  	info := &grpc.UnaryServerInfo{
   634  		Server:     srv,
   635  		FullMethod: "/enterprise_1_8.API/Deactivate",
   636  	}
   637  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   638  		return srv.(APIServer).Deactivate(ctx, req.(*DeactivateRequest))
   639  	}
   640  	return interceptor(ctx, in, info, handler)
   641  }
   642  
   643  var _API_serviceDesc = grpc.ServiceDesc{
   644  	ServiceName: "enterprise_1_8.API",
   645  	HandlerType: (*APIServer)(nil),
   646  	Methods: []grpc.MethodDesc{
   647  		{
   648  			MethodName: "Activate",
   649  			Handler:    _API_Activate_Handler,
   650  		},
   651  		{
   652  			MethodName: "GetState",
   653  			Handler:    _API_GetState_Handler,
   654  		},
   655  		{
   656  			MethodName: "Deactivate",
   657  			Handler:    _API_Deactivate_Handler,
   658  		},
   659  	},
   660  	Streams:  []grpc.StreamDesc{},
   661  	Metadata: "client/admin/v1_8/enterprise/enterprise.proto",
   662  }
   663  
   664  func (m *EnterpriseRecord) Marshal() (dAtA []byte, err error) {
   665  	size := m.Size()
   666  	dAtA = make([]byte, size)
   667  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   668  	if err != nil {
   669  		return nil, err
   670  	}
   671  	return dAtA[:n], nil
   672  }
   673  
   674  func (m *EnterpriseRecord) MarshalTo(dAtA []byte) (int, error) {
   675  	size := m.Size()
   676  	return m.MarshalToSizedBuffer(dAtA[:size])
   677  }
   678  
   679  func (m *EnterpriseRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   680  	i := len(dAtA)
   681  	_ = i
   682  	var l int
   683  	_ = l
   684  	if m.XXX_unrecognized != nil {
   685  		i -= len(m.XXX_unrecognized)
   686  		copy(dAtA[i:], m.XXX_unrecognized)
   687  	}
   688  	if m.Expires != nil {
   689  		{
   690  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   691  			if err != nil {
   692  				return 0, err
   693  			}
   694  			i -= size
   695  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   696  		}
   697  		i--
   698  		dAtA[i] = 0x12
   699  	}
   700  	if len(m.ActivationCode) > 0 {
   701  		i -= len(m.ActivationCode)
   702  		copy(dAtA[i:], m.ActivationCode)
   703  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
   704  		i--
   705  		dAtA[i] = 0xa
   706  	}
   707  	return len(dAtA) - i, nil
   708  }
   709  
   710  func (m *TokenInfo) Marshal() (dAtA []byte, err error) {
   711  	size := m.Size()
   712  	dAtA = make([]byte, size)
   713  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   714  	if err != nil {
   715  		return nil, err
   716  	}
   717  	return dAtA[:n], nil
   718  }
   719  
   720  func (m *TokenInfo) MarshalTo(dAtA []byte) (int, error) {
   721  	size := m.Size()
   722  	return m.MarshalToSizedBuffer(dAtA[:size])
   723  }
   724  
   725  func (m *TokenInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   726  	i := len(dAtA)
   727  	_ = i
   728  	var l int
   729  	_ = l
   730  	if m.XXX_unrecognized != nil {
   731  		i -= len(m.XXX_unrecognized)
   732  		copy(dAtA[i:], m.XXX_unrecognized)
   733  	}
   734  	if m.Expires != nil {
   735  		{
   736  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   737  			if err != nil {
   738  				return 0, err
   739  			}
   740  			i -= size
   741  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   742  		}
   743  		i--
   744  		dAtA[i] = 0xa
   745  	}
   746  	return len(dAtA) - i, nil
   747  }
   748  
   749  func (m *ActivateRequest) Marshal() (dAtA []byte, err error) {
   750  	size := m.Size()
   751  	dAtA = make([]byte, size)
   752  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   753  	if err != nil {
   754  		return nil, err
   755  	}
   756  	return dAtA[:n], nil
   757  }
   758  
   759  func (m *ActivateRequest) MarshalTo(dAtA []byte) (int, error) {
   760  	size := m.Size()
   761  	return m.MarshalToSizedBuffer(dAtA[:size])
   762  }
   763  
   764  func (m *ActivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   765  	i := len(dAtA)
   766  	_ = i
   767  	var l int
   768  	_ = l
   769  	if m.XXX_unrecognized != nil {
   770  		i -= len(m.XXX_unrecognized)
   771  		copy(dAtA[i:], m.XXX_unrecognized)
   772  	}
   773  	if m.Expires != nil {
   774  		{
   775  			size, err := m.Expires.MarshalToSizedBuffer(dAtA[:i])
   776  			if err != nil {
   777  				return 0, err
   778  			}
   779  			i -= size
   780  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   781  		}
   782  		i--
   783  		dAtA[i] = 0x12
   784  	}
   785  	if len(m.ActivationCode) > 0 {
   786  		i -= len(m.ActivationCode)
   787  		copy(dAtA[i:], m.ActivationCode)
   788  		i = encodeVarintEnterprise(dAtA, i, uint64(len(m.ActivationCode)))
   789  		i--
   790  		dAtA[i] = 0xa
   791  	}
   792  	return len(dAtA) - i, nil
   793  }
   794  
   795  func (m *ActivateResponse) Marshal() (dAtA []byte, err error) {
   796  	size := m.Size()
   797  	dAtA = make([]byte, size)
   798  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   799  	if err != nil {
   800  		return nil, err
   801  	}
   802  	return dAtA[:n], nil
   803  }
   804  
   805  func (m *ActivateResponse) MarshalTo(dAtA []byte) (int, error) {
   806  	size := m.Size()
   807  	return m.MarshalToSizedBuffer(dAtA[:size])
   808  }
   809  
   810  func (m *ActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   811  	i := len(dAtA)
   812  	_ = i
   813  	var l int
   814  	_ = l
   815  	if m.XXX_unrecognized != nil {
   816  		i -= len(m.XXX_unrecognized)
   817  		copy(dAtA[i:], m.XXX_unrecognized)
   818  	}
   819  	if m.Info != nil {
   820  		{
   821  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
   822  			if err != nil {
   823  				return 0, err
   824  			}
   825  			i -= size
   826  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   827  		}
   828  		i--
   829  		dAtA[i] = 0xa
   830  	}
   831  	return len(dAtA) - i, nil
   832  }
   833  
   834  func (m *GetStateRequest) Marshal() (dAtA []byte, err error) {
   835  	size := m.Size()
   836  	dAtA = make([]byte, size)
   837  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   838  	if err != nil {
   839  		return nil, err
   840  	}
   841  	return dAtA[:n], nil
   842  }
   843  
   844  func (m *GetStateRequest) MarshalTo(dAtA []byte) (int, error) {
   845  	size := m.Size()
   846  	return m.MarshalToSizedBuffer(dAtA[:size])
   847  }
   848  
   849  func (m *GetStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   850  	i := len(dAtA)
   851  	_ = i
   852  	var l int
   853  	_ = l
   854  	if m.XXX_unrecognized != nil {
   855  		i -= len(m.XXX_unrecognized)
   856  		copy(dAtA[i:], m.XXX_unrecognized)
   857  	}
   858  	return len(dAtA) - i, nil
   859  }
   860  
   861  func (m *GetStateResponse) Marshal() (dAtA []byte, err error) {
   862  	size := m.Size()
   863  	dAtA = make([]byte, size)
   864  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   865  	if err != nil {
   866  		return nil, err
   867  	}
   868  	return dAtA[:n], nil
   869  }
   870  
   871  func (m *GetStateResponse) MarshalTo(dAtA []byte) (int, error) {
   872  	size := m.Size()
   873  	return m.MarshalToSizedBuffer(dAtA[:size])
   874  }
   875  
   876  func (m *GetStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   877  	i := len(dAtA)
   878  	_ = i
   879  	var l int
   880  	_ = l
   881  	if m.XXX_unrecognized != nil {
   882  		i -= len(m.XXX_unrecognized)
   883  		copy(dAtA[i:], m.XXX_unrecognized)
   884  	}
   885  	if m.Info != nil {
   886  		{
   887  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
   888  			if err != nil {
   889  				return 0, err
   890  			}
   891  			i -= size
   892  			i = encodeVarintEnterprise(dAtA, i, uint64(size))
   893  		}
   894  		i--
   895  		dAtA[i] = 0x12
   896  	}
   897  	if m.State != 0 {
   898  		i = encodeVarintEnterprise(dAtA, i, uint64(m.State))
   899  		i--
   900  		dAtA[i] = 0x8
   901  	}
   902  	return len(dAtA) - i, nil
   903  }
   904  
   905  func (m *DeactivateRequest) Marshal() (dAtA []byte, err error) {
   906  	size := m.Size()
   907  	dAtA = make([]byte, size)
   908  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   909  	if err != nil {
   910  		return nil, err
   911  	}
   912  	return dAtA[:n], nil
   913  }
   914  
   915  func (m *DeactivateRequest) MarshalTo(dAtA []byte) (int, error) {
   916  	size := m.Size()
   917  	return m.MarshalToSizedBuffer(dAtA[:size])
   918  }
   919  
   920  func (m *DeactivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   921  	i := len(dAtA)
   922  	_ = i
   923  	var l int
   924  	_ = l
   925  	if m.XXX_unrecognized != nil {
   926  		i -= len(m.XXX_unrecognized)
   927  		copy(dAtA[i:], m.XXX_unrecognized)
   928  	}
   929  	return len(dAtA) - i, nil
   930  }
   931  
   932  func (m *DeactivateResponse) Marshal() (dAtA []byte, err error) {
   933  	size := m.Size()
   934  	dAtA = make([]byte, size)
   935  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   936  	if err != nil {
   937  		return nil, err
   938  	}
   939  	return dAtA[:n], nil
   940  }
   941  
   942  func (m *DeactivateResponse) MarshalTo(dAtA []byte) (int, error) {
   943  	size := m.Size()
   944  	return m.MarshalToSizedBuffer(dAtA[:size])
   945  }
   946  
   947  func (m *DeactivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   948  	i := len(dAtA)
   949  	_ = i
   950  	var l int
   951  	_ = l
   952  	if m.XXX_unrecognized != nil {
   953  		i -= len(m.XXX_unrecognized)
   954  		copy(dAtA[i:], m.XXX_unrecognized)
   955  	}
   956  	return len(dAtA) - i, nil
   957  }
   958  
   959  func encodeVarintEnterprise(dAtA []byte, offset int, v uint64) int {
   960  	offset -= sovEnterprise(v)
   961  	base := offset
   962  	for v >= 1<<7 {
   963  		dAtA[offset] = uint8(v&0x7f | 0x80)
   964  		v >>= 7
   965  		offset++
   966  	}
   967  	dAtA[offset] = uint8(v)
   968  	return base
   969  }
   970  func (m *EnterpriseRecord) Size() (n int) {
   971  	if m == nil {
   972  		return 0
   973  	}
   974  	var l int
   975  	_ = l
   976  	l = len(m.ActivationCode)
   977  	if l > 0 {
   978  		n += 1 + l + sovEnterprise(uint64(l))
   979  	}
   980  	if m.Expires != nil {
   981  		l = m.Expires.Size()
   982  		n += 1 + l + sovEnterprise(uint64(l))
   983  	}
   984  	if m.XXX_unrecognized != nil {
   985  		n += len(m.XXX_unrecognized)
   986  	}
   987  	return n
   988  }
   989  
   990  func (m *TokenInfo) Size() (n int) {
   991  	if m == nil {
   992  		return 0
   993  	}
   994  	var l int
   995  	_ = l
   996  	if m.Expires != nil {
   997  		l = m.Expires.Size()
   998  		n += 1 + l + sovEnterprise(uint64(l))
   999  	}
  1000  	if m.XXX_unrecognized != nil {
  1001  		n += len(m.XXX_unrecognized)
  1002  	}
  1003  	return n
  1004  }
  1005  
  1006  func (m *ActivateRequest) Size() (n int) {
  1007  	if m == nil {
  1008  		return 0
  1009  	}
  1010  	var l int
  1011  	_ = l
  1012  	l = len(m.ActivationCode)
  1013  	if l > 0 {
  1014  		n += 1 + l + sovEnterprise(uint64(l))
  1015  	}
  1016  	if m.Expires != nil {
  1017  		l = m.Expires.Size()
  1018  		n += 1 + l + sovEnterprise(uint64(l))
  1019  	}
  1020  	if m.XXX_unrecognized != nil {
  1021  		n += len(m.XXX_unrecognized)
  1022  	}
  1023  	return n
  1024  }
  1025  
  1026  func (m *ActivateResponse) Size() (n int) {
  1027  	if m == nil {
  1028  		return 0
  1029  	}
  1030  	var l int
  1031  	_ = l
  1032  	if m.Info != nil {
  1033  		l = m.Info.Size()
  1034  		n += 1 + l + sovEnterprise(uint64(l))
  1035  	}
  1036  	if m.XXX_unrecognized != nil {
  1037  		n += len(m.XXX_unrecognized)
  1038  	}
  1039  	return n
  1040  }
  1041  
  1042  func (m *GetStateRequest) Size() (n int) {
  1043  	if m == nil {
  1044  		return 0
  1045  	}
  1046  	var l int
  1047  	_ = l
  1048  	if m.XXX_unrecognized != nil {
  1049  		n += len(m.XXX_unrecognized)
  1050  	}
  1051  	return n
  1052  }
  1053  
  1054  func (m *GetStateResponse) Size() (n int) {
  1055  	if m == nil {
  1056  		return 0
  1057  	}
  1058  	var l int
  1059  	_ = l
  1060  	if m.State != 0 {
  1061  		n += 1 + sovEnterprise(uint64(m.State))
  1062  	}
  1063  	if m.Info != nil {
  1064  		l = m.Info.Size()
  1065  		n += 1 + l + sovEnterprise(uint64(l))
  1066  	}
  1067  	if m.XXX_unrecognized != nil {
  1068  		n += len(m.XXX_unrecognized)
  1069  	}
  1070  	return n
  1071  }
  1072  
  1073  func (m *DeactivateRequest) Size() (n int) {
  1074  	if m == nil {
  1075  		return 0
  1076  	}
  1077  	var l int
  1078  	_ = l
  1079  	if m.XXX_unrecognized != nil {
  1080  		n += len(m.XXX_unrecognized)
  1081  	}
  1082  	return n
  1083  }
  1084  
  1085  func (m *DeactivateResponse) Size() (n int) {
  1086  	if m == nil {
  1087  		return 0
  1088  	}
  1089  	var l int
  1090  	_ = l
  1091  	if m.XXX_unrecognized != nil {
  1092  		n += len(m.XXX_unrecognized)
  1093  	}
  1094  	return n
  1095  }
  1096  
  1097  func sovEnterprise(x uint64) (n int) {
  1098  	return (math_bits.Len64(x|1) + 6) / 7
  1099  }
  1100  func sozEnterprise(x uint64) (n int) {
  1101  	return sovEnterprise(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1102  }
  1103  func (m *EnterpriseRecord) Unmarshal(dAtA []byte) error {
  1104  	l := len(dAtA)
  1105  	iNdEx := 0
  1106  	for iNdEx < l {
  1107  		preIndex := iNdEx
  1108  		var wire uint64
  1109  		for shift := uint(0); ; shift += 7 {
  1110  			if shift >= 64 {
  1111  				return ErrIntOverflowEnterprise
  1112  			}
  1113  			if iNdEx >= l {
  1114  				return io.ErrUnexpectedEOF
  1115  			}
  1116  			b := dAtA[iNdEx]
  1117  			iNdEx++
  1118  			wire |= uint64(b&0x7F) << shift
  1119  			if b < 0x80 {
  1120  				break
  1121  			}
  1122  		}
  1123  		fieldNum := int32(wire >> 3)
  1124  		wireType := int(wire & 0x7)
  1125  		if wireType == 4 {
  1126  			return fmt.Errorf("proto: EnterpriseRecord: wiretype end group for non-group")
  1127  		}
  1128  		if fieldNum <= 0 {
  1129  			return fmt.Errorf("proto: EnterpriseRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1130  		}
  1131  		switch fieldNum {
  1132  		case 1:
  1133  			if wireType != 2 {
  1134  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  1135  			}
  1136  			var stringLen uint64
  1137  			for shift := uint(0); ; shift += 7 {
  1138  				if shift >= 64 {
  1139  					return ErrIntOverflowEnterprise
  1140  				}
  1141  				if iNdEx >= l {
  1142  					return io.ErrUnexpectedEOF
  1143  				}
  1144  				b := dAtA[iNdEx]
  1145  				iNdEx++
  1146  				stringLen |= uint64(b&0x7F) << shift
  1147  				if b < 0x80 {
  1148  					break
  1149  				}
  1150  			}
  1151  			intStringLen := int(stringLen)
  1152  			if intStringLen < 0 {
  1153  				return ErrInvalidLengthEnterprise
  1154  			}
  1155  			postIndex := iNdEx + intStringLen
  1156  			if postIndex < 0 {
  1157  				return ErrInvalidLengthEnterprise
  1158  			}
  1159  			if postIndex > l {
  1160  				return io.ErrUnexpectedEOF
  1161  			}
  1162  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  1163  			iNdEx = postIndex
  1164  		case 2:
  1165  			if wireType != 2 {
  1166  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1167  			}
  1168  			var msglen int
  1169  			for shift := uint(0); ; shift += 7 {
  1170  				if shift >= 64 {
  1171  					return ErrIntOverflowEnterprise
  1172  				}
  1173  				if iNdEx >= l {
  1174  					return io.ErrUnexpectedEOF
  1175  				}
  1176  				b := dAtA[iNdEx]
  1177  				iNdEx++
  1178  				msglen |= int(b&0x7F) << shift
  1179  				if b < 0x80 {
  1180  					break
  1181  				}
  1182  			}
  1183  			if msglen < 0 {
  1184  				return ErrInvalidLengthEnterprise
  1185  			}
  1186  			postIndex := iNdEx + msglen
  1187  			if postIndex < 0 {
  1188  				return ErrInvalidLengthEnterprise
  1189  			}
  1190  			if postIndex > l {
  1191  				return io.ErrUnexpectedEOF
  1192  			}
  1193  			if m.Expires == nil {
  1194  				m.Expires = &types.Timestamp{}
  1195  			}
  1196  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1197  				return err
  1198  			}
  1199  			iNdEx = postIndex
  1200  		default:
  1201  			iNdEx = preIndex
  1202  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1203  			if err != nil {
  1204  				return err
  1205  			}
  1206  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1207  				return ErrInvalidLengthEnterprise
  1208  			}
  1209  			if (iNdEx + skippy) > l {
  1210  				return io.ErrUnexpectedEOF
  1211  			}
  1212  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1213  			iNdEx += skippy
  1214  		}
  1215  	}
  1216  
  1217  	if iNdEx > l {
  1218  		return io.ErrUnexpectedEOF
  1219  	}
  1220  	return nil
  1221  }
  1222  func (m *TokenInfo) Unmarshal(dAtA []byte) error {
  1223  	l := len(dAtA)
  1224  	iNdEx := 0
  1225  	for iNdEx < l {
  1226  		preIndex := iNdEx
  1227  		var wire uint64
  1228  		for shift := uint(0); ; shift += 7 {
  1229  			if shift >= 64 {
  1230  				return ErrIntOverflowEnterprise
  1231  			}
  1232  			if iNdEx >= l {
  1233  				return io.ErrUnexpectedEOF
  1234  			}
  1235  			b := dAtA[iNdEx]
  1236  			iNdEx++
  1237  			wire |= uint64(b&0x7F) << shift
  1238  			if b < 0x80 {
  1239  				break
  1240  			}
  1241  		}
  1242  		fieldNum := int32(wire >> 3)
  1243  		wireType := int(wire & 0x7)
  1244  		if wireType == 4 {
  1245  			return fmt.Errorf("proto: TokenInfo: wiretype end group for non-group")
  1246  		}
  1247  		if fieldNum <= 0 {
  1248  			return fmt.Errorf("proto: TokenInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1249  		}
  1250  		switch fieldNum {
  1251  		case 1:
  1252  			if wireType != 2 {
  1253  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1254  			}
  1255  			var msglen int
  1256  			for shift := uint(0); ; shift += 7 {
  1257  				if shift >= 64 {
  1258  					return ErrIntOverflowEnterprise
  1259  				}
  1260  				if iNdEx >= l {
  1261  					return io.ErrUnexpectedEOF
  1262  				}
  1263  				b := dAtA[iNdEx]
  1264  				iNdEx++
  1265  				msglen |= int(b&0x7F) << shift
  1266  				if b < 0x80 {
  1267  					break
  1268  				}
  1269  			}
  1270  			if msglen < 0 {
  1271  				return ErrInvalidLengthEnterprise
  1272  			}
  1273  			postIndex := iNdEx + msglen
  1274  			if postIndex < 0 {
  1275  				return ErrInvalidLengthEnterprise
  1276  			}
  1277  			if postIndex > l {
  1278  				return io.ErrUnexpectedEOF
  1279  			}
  1280  			if m.Expires == nil {
  1281  				m.Expires = &types.Timestamp{}
  1282  			}
  1283  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1284  				return err
  1285  			}
  1286  			iNdEx = postIndex
  1287  		default:
  1288  			iNdEx = preIndex
  1289  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1290  			if err != nil {
  1291  				return err
  1292  			}
  1293  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1294  				return ErrInvalidLengthEnterprise
  1295  			}
  1296  			if (iNdEx + skippy) > l {
  1297  				return io.ErrUnexpectedEOF
  1298  			}
  1299  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1300  			iNdEx += skippy
  1301  		}
  1302  	}
  1303  
  1304  	if iNdEx > l {
  1305  		return io.ErrUnexpectedEOF
  1306  	}
  1307  	return nil
  1308  }
  1309  func (m *ActivateRequest) Unmarshal(dAtA []byte) error {
  1310  	l := len(dAtA)
  1311  	iNdEx := 0
  1312  	for iNdEx < l {
  1313  		preIndex := iNdEx
  1314  		var wire uint64
  1315  		for shift := uint(0); ; shift += 7 {
  1316  			if shift >= 64 {
  1317  				return ErrIntOverflowEnterprise
  1318  			}
  1319  			if iNdEx >= l {
  1320  				return io.ErrUnexpectedEOF
  1321  			}
  1322  			b := dAtA[iNdEx]
  1323  			iNdEx++
  1324  			wire |= uint64(b&0x7F) << shift
  1325  			if b < 0x80 {
  1326  				break
  1327  			}
  1328  		}
  1329  		fieldNum := int32(wire >> 3)
  1330  		wireType := int(wire & 0x7)
  1331  		if wireType == 4 {
  1332  			return fmt.Errorf("proto: ActivateRequest: wiretype end group for non-group")
  1333  		}
  1334  		if fieldNum <= 0 {
  1335  			return fmt.Errorf("proto: ActivateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1336  		}
  1337  		switch fieldNum {
  1338  		case 1:
  1339  			if wireType != 2 {
  1340  				return fmt.Errorf("proto: wrong wireType = %d for field ActivationCode", wireType)
  1341  			}
  1342  			var stringLen uint64
  1343  			for shift := uint(0); ; shift += 7 {
  1344  				if shift >= 64 {
  1345  					return ErrIntOverflowEnterprise
  1346  				}
  1347  				if iNdEx >= l {
  1348  					return io.ErrUnexpectedEOF
  1349  				}
  1350  				b := dAtA[iNdEx]
  1351  				iNdEx++
  1352  				stringLen |= uint64(b&0x7F) << shift
  1353  				if b < 0x80 {
  1354  					break
  1355  				}
  1356  			}
  1357  			intStringLen := int(stringLen)
  1358  			if intStringLen < 0 {
  1359  				return ErrInvalidLengthEnterprise
  1360  			}
  1361  			postIndex := iNdEx + intStringLen
  1362  			if postIndex < 0 {
  1363  				return ErrInvalidLengthEnterprise
  1364  			}
  1365  			if postIndex > l {
  1366  				return io.ErrUnexpectedEOF
  1367  			}
  1368  			m.ActivationCode = string(dAtA[iNdEx:postIndex])
  1369  			iNdEx = postIndex
  1370  		case 2:
  1371  			if wireType != 2 {
  1372  				return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1373  			}
  1374  			var msglen int
  1375  			for shift := uint(0); ; shift += 7 {
  1376  				if shift >= 64 {
  1377  					return ErrIntOverflowEnterprise
  1378  				}
  1379  				if iNdEx >= l {
  1380  					return io.ErrUnexpectedEOF
  1381  				}
  1382  				b := dAtA[iNdEx]
  1383  				iNdEx++
  1384  				msglen |= int(b&0x7F) << shift
  1385  				if b < 0x80 {
  1386  					break
  1387  				}
  1388  			}
  1389  			if msglen < 0 {
  1390  				return ErrInvalidLengthEnterprise
  1391  			}
  1392  			postIndex := iNdEx + msglen
  1393  			if postIndex < 0 {
  1394  				return ErrInvalidLengthEnterprise
  1395  			}
  1396  			if postIndex > l {
  1397  				return io.ErrUnexpectedEOF
  1398  			}
  1399  			if m.Expires == nil {
  1400  				m.Expires = &types.Timestamp{}
  1401  			}
  1402  			if err := m.Expires.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1403  				return err
  1404  			}
  1405  			iNdEx = postIndex
  1406  		default:
  1407  			iNdEx = preIndex
  1408  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1409  			if err != nil {
  1410  				return err
  1411  			}
  1412  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1413  				return ErrInvalidLengthEnterprise
  1414  			}
  1415  			if (iNdEx + skippy) > l {
  1416  				return io.ErrUnexpectedEOF
  1417  			}
  1418  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1419  			iNdEx += skippy
  1420  		}
  1421  	}
  1422  
  1423  	if iNdEx > l {
  1424  		return io.ErrUnexpectedEOF
  1425  	}
  1426  	return nil
  1427  }
  1428  func (m *ActivateResponse) Unmarshal(dAtA []byte) error {
  1429  	l := len(dAtA)
  1430  	iNdEx := 0
  1431  	for iNdEx < l {
  1432  		preIndex := iNdEx
  1433  		var wire uint64
  1434  		for shift := uint(0); ; shift += 7 {
  1435  			if shift >= 64 {
  1436  				return ErrIntOverflowEnterprise
  1437  			}
  1438  			if iNdEx >= l {
  1439  				return io.ErrUnexpectedEOF
  1440  			}
  1441  			b := dAtA[iNdEx]
  1442  			iNdEx++
  1443  			wire |= uint64(b&0x7F) << shift
  1444  			if b < 0x80 {
  1445  				break
  1446  			}
  1447  		}
  1448  		fieldNum := int32(wire >> 3)
  1449  		wireType := int(wire & 0x7)
  1450  		if wireType == 4 {
  1451  			return fmt.Errorf("proto: ActivateResponse: wiretype end group for non-group")
  1452  		}
  1453  		if fieldNum <= 0 {
  1454  			return fmt.Errorf("proto: ActivateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1455  		}
  1456  		switch fieldNum {
  1457  		case 1:
  1458  			if wireType != 2 {
  1459  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  1460  			}
  1461  			var msglen int
  1462  			for shift := uint(0); ; shift += 7 {
  1463  				if shift >= 64 {
  1464  					return ErrIntOverflowEnterprise
  1465  				}
  1466  				if iNdEx >= l {
  1467  					return io.ErrUnexpectedEOF
  1468  				}
  1469  				b := dAtA[iNdEx]
  1470  				iNdEx++
  1471  				msglen |= int(b&0x7F) << shift
  1472  				if b < 0x80 {
  1473  					break
  1474  				}
  1475  			}
  1476  			if msglen < 0 {
  1477  				return ErrInvalidLengthEnterprise
  1478  			}
  1479  			postIndex := iNdEx + msglen
  1480  			if postIndex < 0 {
  1481  				return ErrInvalidLengthEnterprise
  1482  			}
  1483  			if postIndex > l {
  1484  				return io.ErrUnexpectedEOF
  1485  			}
  1486  			if m.Info == nil {
  1487  				m.Info = &TokenInfo{}
  1488  			}
  1489  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1490  				return err
  1491  			}
  1492  			iNdEx = postIndex
  1493  		default:
  1494  			iNdEx = preIndex
  1495  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1496  			if err != nil {
  1497  				return err
  1498  			}
  1499  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1500  				return ErrInvalidLengthEnterprise
  1501  			}
  1502  			if (iNdEx + skippy) > l {
  1503  				return io.ErrUnexpectedEOF
  1504  			}
  1505  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1506  			iNdEx += skippy
  1507  		}
  1508  	}
  1509  
  1510  	if iNdEx > l {
  1511  		return io.ErrUnexpectedEOF
  1512  	}
  1513  	return nil
  1514  }
  1515  func (m *GetStateRequest) Unmarshal(dAtA []byte) error {
  1516  	l := len(dAtA)
  1517  	iNdEx := 0
  1518  	for iNdEx < l {
  1519  		preIndex := iNdEx
  1520  		var wire uint64
  1521  		for shift := uint(0); ; shift += 7 {
  1522  			if shift >= 64 {
  1523  				return ErrIntOverflowEnterprise
  1524  			}
  1525  			if iNdEx >= l {
  1526  				return io.ErrUnexpectedEOF
  1527  			}
  1528  			b := dAtA[iNdEx]
  1529  			iNdEx++
  1530  			wire |= uint64(b&0x7F) << shift
  1531  			if b < 0x80 {
  1532  				break
  1533  			}
  1534  		}
  1535  		fieldNum := int32(wire >> 3)
  1536  		wireType := int(wire & 0x7)
  1537  		if wireType == 4 {
  1538  			return fmt.Errorf("proto: GetStateRequest: wiretype end group for non-group")
  1539  		}
  1540  		if fieldNum <= 0 {
  1541  			return fmt.Errorf("proto: GetStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1542  		}
  1543  		switch fieldNum {
  1544  		default:
  1545  			iNdEx = preIndex
  1546  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1547  			if err != nil {
  1548  				return err
  1549  			}
  1550  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1551  				return ErrInvalidLengthEnterprise
  1552  			}
  1553  			if (iNdEx + skippy) > l {
  1554  				return io.ErrUnexpectedEOF
  1555  			}
  1556  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1557  			iNdEx += skippy
  1558  		}
  1559  	}
  1560  
  1561  	if iNdEx > l {
  1562  		return io.ErrUnexpectedEOF
  1563  	}
  1564  	return nil
  1565  }
  1566  func (m *GetStateResponse) Unmarshal(dAtA []byte) error {
  1567  	l := len(dAtA)
  1568  	iNdEx := 0
  1569  	for iNdEx < l {
  1570  		preIndex := iNdEx
  1571  		var wire uint64
  1572  		for shift := uint(0); ; shift += 7 {
  1573  			if shift >= 64 {
  1574  				return ErrIntOverflowEnterprise
  1575  			}
  1576  			if iNdEx >= l {
  1577  				return io.ErrUnexpectedEOF
  1578  			}
  1579  			b := dAtA[iNdEx]
  1580  			iNdEx++
  1581  			wire |= uint64(b&0x7F) << shift
  1582  			if b < 0x80 {
  1583  				break
  1584  			}
  1585  		}
  1586  		fieldNum := int32(wire >> 3)
  1587  		wireType := int(wire & 0x7)
  1588  		if wireType == 4 {
  1589  			return fmt.Errorf("proto: GetStateResponse: wiretype end group for non-group")
  1590  		}
  1591  		if fieldNum <= 0 {
  1592  			return fmt.Errorf("proto: GetStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1593  		}
  1594  		switch fieldNum {
  1595  		case 1:
  1596  			if wireType != 0 {
  1597  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1598  			}
  1599  			m.State = 0
  1600  			for shift := uint(0); ; shift += 7 {
  1601  				if shift >= 64 {
  1602  					return ErrIntOverflowEnterprise
  1603  				}
  1604  				if iNdEx >= l {
  1605  					return io.ErrUnexpectedEOF
  1606  				}
  1607  				b := dAtA[iNdEx]
  1608  				iNdEx++
  1609  				m.State |= State(b&0x7F) << shift
  1610  				if b < 0x80 {
  1611  					break
  1612  				}
  1613  			}
  1614  		case 2:
  1615  			if wireType != 2 {
  1616  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  1617  			}
  1618  			var msglen int
  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  				msglen |= int(b&0x7F) << shift
  1629  				if b < 0x80 {
  1630  					break
  1631  				}
  1632  			}
  1633  			if msglen < 0 {
  1634  				return ErrInvalidLengthEnterprise
  1635  			}
  1636  			postIndex := iNdEx + msglen
  1637  			if postIndex < 0 {
  1638  				return ErrInvalidLengthEnterprise
  1639  			}
  1640  			if postIndex > l {
  1641  				return io.ErrUnexpectedEOF
  1642  			}
  1643  			if m.Info == nil {
  1644  				m.Info = &TokenInfo{}
  1645  			}
  1646  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1647  				return err
  1648  			}
  1649  			iNdEx = postIndex
  1650  		default:
  1651  			iNdEx = preIndex
  1652  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1653  			if err != nil {
  1654  				return err
  1655  			}
  1656  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1657  				return ErrInvalidLengthEnterprise
  1658  			}
  1659  			if (iNdEx + skippy) > l {
  1660  				return io.ErrUnexpectedEOF
  1661  			}
  1662  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1663  			iNdEx += skippy
  1664  		}
  1665  	}
  1666  
  1667  	if iNdEx > l {
  1668  		return io.ErrUnexpectedEOF
  1669  	}
  1670  	return nil
  1671  }
  1672  func (m *DeactivateRequest) Unmarshal(dAtA []byte) error {
  1673  	l := len(dAtA)
  1674  	iNdEx := 0
  1675  	for iNdEx < l {
  1676  		preIndex := iNdEx
  1677  		var wire uint64
  1678  		for shift := uint(0); ; shift += 7 {
  1679  			if shift >= 64 {
  1680  				return ErrIntOverflowEnterprise
  1681  			}
  1682  			if iNdEx >= l {
  1683  				return io.ErrUnexpectedEOF
  1684  			}
  1685  			b := dAtA[iNdEx]
  1686  			iNdEx++
  1687  			wire |= uint64(b&0x7F) << shift
  1688  			if b < 0x80 {
  1689  				break
  1690  			}
  1691  		}
  1692  		fieldNum := int32(wire >> 3)
  1693  		wireType := int(wire & 0x7)
  1694  		if wireType == 4 {
  1695  			return fmt.Errorf("proto: DeactivateRequest: wiretype end group for non-group")
  1696  		}
  1697  		if fieldNum <= 0 {
  1698  			return fmt.Errorf("proto: DeactivateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1699  		}
  1700  		switch fieldNum {
  1701  		default:
  1702  			iNdEx = preIndex
  1703  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1704  			if err != nil {
  1705  				return err
  1706  			}
  1707  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1708  				return ErrInvalidLengthEnterprise
  1709  			}
  1710  			if (iNdEx + skippy) > l {
  1711  				return io.ErrUnexpectedEOF
  1712  			}
  1713  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1714  			iNdEx += skippy
  1715  		}
  1716  	}
  1717  
  1718  	if iNdEx > l {
  1719  		return io.ErrUnexpectedEOF
  1720  	}
  1721  	return nil
  1722  }
  1723  func (m *DeactivateResponse) Unmarshal(dAtA []byte) error {
  1724  	l := len(dAtA)
  1725  	iNdEx := 0
  1726  	for iNdEx < l {
  1727  		preIndex := iNdEx
  1728  		var wire uint64
  1729  		for shift := uint(0); ; shift += 7 {
  1730  			if shift >= 64 {
  1731  				return ErrIntOverflowEnterprise
  1732  			}
  1733  			if iNdEx >= l {
  1734  				return io.ErrUnexpectedEOF
  1735  			}
  1736  			b := dAtA[iNdEx]
  1737  			iNdEx++
  1738  			wire |= uint64(b&0x7F) << shift
  1739  			if b < 0x80 {
  1740  				break
  1741  			}
  1742  		}
  1743  		fieldNum := int32(wire >> 3)
  1744  		wireType := int(wire & 0x7)
  1745  		if wireType == 4 {
  1746  			return fmt.Errorf("proto: DeactivateResponse: wiretype end group for non-group")
  1747  		}
  1748  		if fieldNum <= 0 {
  1749  			return fmt.Errorf("proto: DeactivateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1750  		}
  1751  		switch fieldNum {
  1752  		default:
  1753  			iNdEx = preIndex
  1754  			skippy, err := skipEnterprise(dAtA[iNdEx:])
  1755  			if err != nil {
  1756  				return err
  1757  			}
  1758  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1759  				return ErrInvalidLengthEnterprise
  1760  			}
  1761  			if (iNdEx + skippy) > l {
  1762  				return io.ErrUnexpectedEOF
  1763  			}
  1764  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1765  			iNdEx += skippy
  1766  		}
  1767  	}
  1768  
  1769  	if iNdEx > l {
  1770  		return io.ErrUnexpectedEOF
  1771  	}
  1772  	return nil
  1773  }
  1774  func skipEnterprise(dAtA []byte) (n int, err error) {
  1775  	l := len(dAtA)
  1776  	iNdEx := 0
  1777  	depth := 0
  1778  	for iNdEx < l {
  1779  		var wire uint64
  1780  		for shift := uint(0); ; shift += 7 {
  1781  			if shift >= 64 {
  1782  				return 0, ErrIntOverflowEnterprise
  1783  			}
  1784  			if iNdEx >= l {
  1785  				return 0, io.ErrUnexpectedEOF
  1786  			}
  1787  			b := dAtA[iNdEx]
  1788  			iNdEx++
  1789  			wire |= (uint64(b) & 0x7F) << shift
  1790  			if b < 0x80 {
  1791  				break
  1792  			}
  1793  		}
  1794  		wireType := int(wire & 0x7)
  1795  		switch wireType {
  1796  		case 0:
  1797  			for shift := uint(0); ; shift += 7 {
  1798  				if shift >= 64 {
  1799  					return 0, ErrIntOverflowEnterprise
  1800  				}
  1801  				if iNdEx >= l {
  1802  					return 0, io.ErrUnexpectedEOF
  1803  				}
  1804  				iNdEx++
  1805  				if dAtA[iNdEx-1] < 0x80 {
  1806  					break
  1807  				}
  1808  			}
  1809  		case 1:
  1810  			iNdEx += 8
  1811  		case 2:
  1812  			var length int
  1813  			for shift := uint(0); ; shift += 7 {
  1814  				if shift >= 64 {
  1815  					return 0, ErrIntOverflowEnterprise
  1816  				}
  1817  				if iNdEx >= l {
  1818  					return 0, io.ErrUnexpectedEOF
  1819  				}
  1820  				b := dAtA[iNdEx]
  1821  				iNdEx++
  1822  				length |= (int(b) & 0x7F) << shift
  1823  				if b < 0x80 {
  1824  					break
  1825  				}
  1826  			}
  1827  			if length < 0 {
  1828  				return 0, ErrInvalidLengthEnterprise
  1829  			}
  1830  			iNdEx += length
  1831  		case 3:
  1832  			depth++
  1833  		case 4:
  1834  			if depth == 0 {
  1835  				return 0, ErrUnexpectedEndOfGroupEnterprise
  1836  			}
  1837  			depth--
  1838  		case 5:
  1839  			iNdEx += 4
  1840  		default:
  1841  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1842  		}
  1843  		if iNdEx < 0 {
  1844  			return 0, ErrInvalidLengthEnterprise
  1845  		}
  1846  		if depth == 0 {
  1847  			return iNdEx, nil
  1848  		}
  1849  	}
  1850  	return 0, io.ErrUnexpectedEOF
  1851  }
  1852  
  1853  var (
  1854  	ErrInvalidLengthEnterprise        = fmt.Errorf("proto: negative length found during unmarshaling")
  1855  	ErrIntOverflowEnterprise          = fmt.Errorf("proto: integer overflow")
  1856  	ErrUnexpectedEndOfGroupEnterprise = fmt.Errorf("proto: unexpected end of group")
  1857  )