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

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