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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: client/pkg/config/config.proto
     3  
     4  package config
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	io "io"
    11  	math "math"
    12  	math_bits "math/bits"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    25  
    26  type ContextSource int32
    27  
    28  const (
    29  	ContextSource_NONE      ContextSource = 0
    30  	ContextSource_CONFIG_V1 ContextSource = 1
    31  	ContextSource_HUB       ContextSource = 2
    32  	ContextSource_IMPORTED  ContextSource = 3
    33  )
    34  
    35  var ContextSource_name = map[int32]string{
    36  	0: "NONE",
    37  	1: "CONFIG_V1",
    38  	2: "HUB",
    39  	3: "IMPORTED",
    40  }
    41  
    42  var ContextSource_value = map[string]int32{
    43  	"NONE":      0,
    44  	"CONFIG_V1": 1,
    45  	"HUB":       2,
    46  	"IMPORTED":  3,
    47  }
    48  
    49  func (x ContextSource) String() string {
    50  	return proto.EnumName(ContextSource_name, int32(x))
    51  }
    52  
    53  func (ContextSource) EnumDescriptor() ([]byte, []int) {
    54  	return fileDescriptor_60f651abce1dcdf3, []int{0}
    55  }
    56  
    57  // Config specifies the pachyderm config that is read and interpreted by the
    58  // pachctl command-line tool. Right now, this is stored at
    59  // $HOME/.pachyderm/config.
    60  //
    61  // Different versions of the pachyderm config are specified as subfields of this
    62  // message (this allows us to make significant changes to the config structure
    63  // without breaking existing users by defining a new config version).
    64  //
    65  // DO NOT change or remove field numbers from this proto, otherwise ALL
    66  // pachyderm user configs will fail to parse.
    67  type Config struct {
    68  	UserID string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
    69  	// Configuration options. Exactly one of these fields should be set
    70  	// (depending on which version of the config is being used)
    71  	V1                   *ConfigV1 `protobuf:"bytes,2,opt,name=v1,proto3" json:"v1,omitempty"`
    72  	V2                   *ConfigV2 `protobuf:"bytes,3,opt,name=v2,proto3" json:"v2,omitempty"`
    73  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    74  	XXX_unrecognized     []byte    `json:"-"`
    75  	XXX_sizecache        int32     `json:"-"`
    76  }
    77  
    78  func (m *Config) Reset()         { *m = Config{} }
    79  func (m *Config) String() string { return proto.CompactTextString(m) }
    80  func (*Config) ProtoMessage()    {}
    81  func (*Config) Descriptor() ([]byte, []int) {
    82  	return fileDescriptor_60f651abce1dcdf3, []int{0}
    83  }
    84  func (m *Config) XXX_Unmarshal(b []byte) error {
    85  	return m.Unmarshal(b)
    86  }
    87  func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    88  	if deterministic {
    89  		return xxx_messageInfo_Config.Marshal(b, m, deterministic)
    90  	} else {
    91  		b = b[:cap(b)]
    92  		n, err := m.MarshalToSizedBuffer(b)
    93  		if err != nil {
    94  			return nil, err
    95  		}
    96  		return b[:n], nil
    97  	}
    98  }
    99  func (m *Config) XXX_Merge(src proto.Message) {
   100  	xxx_messageInfo_Config.Merge(m, src)
   101  }
   102  func (m *Config) XXX_Size() int {
   103  	return m.Size()
   104  }
   105  func (m *Config) XXX_DiscardUnknown() {
   106  	xxx_messageInfo_Config.DiscardUnknown(m)
   107  }
   108  
   109  var xxx_messageInfo_Config proto.InternalMessageInfo
   110  
   111  func (m *Config) GetUserID() string {
   112  	if m != nil {
   113  		return m.UserID
   114  	}
   115  	return ""
   116  }
   117  
   118  func (m *Config) GetV1() *ConfigV1 {
   119  	if m != nil {
   120  		return m.V1
   121  	}
   122  	return nil
   123  }
   124  
   125  func (m *Config) GetV2() *ConfigV2 {
   126  	if m != nil {
   127  		return m.V2
   128  	}
   129  	return nil
   130  }
   131  
   132  // ConfigV1 specifies v1 of the pachyderm config (June 30 2017 - June 2019)
   133  // DO NOT change or remove field numbers from this proto, as if you do, v1 user
   134  // configs will become unparseable.
   135  type ConfigV1 struct {
   136  	// A host:port pointing pachd at a pachyderm cluster.
   137  	PachdAddress string `protobuf:"bytes,2,opt,name=pachd_address,json=pachdAddress,proto3" json:"pachd_address,omitempty"`
   138  	// Trusted root certificates (overrides installed certificates), formatted
   139  	// as base64-encoded PEM
   140  	ServerCAs string `protobuf:"bytes,3,opt,name=server_cas,json=serverCas,proto3" json:"server_cas,omitempty"`
   141  	// A secret token identifying the current pachctl user within their
   142  	// pachyderm cluster. This is included in all RPCs sent by pachctl, and used
   143  	// to determine if pachctl actions are authorized.
   144  	SessionToken string `protobuf:"bytes,1,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
   145  	// The currently active transaction for batching together pachctl commands.
   146  	// This can be set or cleared via many of the `pachctl * transaction` commands.
   147  	// This is the ID of the transaction object stored in the pachyderm etcd.
   148  	ActiveTransaction    string   `protobuf:"bytes,4,opt,name=active_transaction,json=activeTransaction,proto3" json:"active_transaction,omitempty"`
   149  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   150  	XXX_unrecognized     []byte   `json:"-"`
   151  	XXX_sizecache        int32    `json:"-"`
   152  }
   153  
   154  func (m *ConfigV1) Reset()         { *m = ConfigV1{} }
   155  func (m *ConfigV1) String() string { return proto.CompactTextString(m) }
   156  func (*ConfigV1) ProtoMessage()    {}
   157  func (*ConfigV1) Descriptor() ([]byte, []int) {
   158  	return fileDescriptor_60f651abce1dcdf3, []int{1}
   159  }
   160  func (m *ConfigV1) XXX_Unmarshal(b []byte) error {
   161  	return m.Unmarshal(b)
   162  }
   163  func (m *ConfigV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   164  	if deterministic {
   165  		return xxx_messageInfo_ConfigV1.Marshal(b, m, deterministic)
   166  	} else {
   167  		b = b[:cap(b)]
   168  		n, err := m.MarshalToSizedBuffer(b)
   169  		if err != nil {
   170  			return nil, err
   171  		}
   172  		return b[:n], nil
   173  	}
   174  }
   175  func (m *ConfigV1) XXX_Merge(src proto.Message) {
   176  	xxx_messageInfo_ConfigV1.Merge(m, src)
   177  }
   178  func (m *ConfigV1) XXX_Size() int {
   179  	return m.Size()
   180  }
   181  func (m *ConfigV1) XXX_DiscardUnknown() {
   182  	xxx_messageInfo_ConfigV1.DiscardUnknown(m)
   183  }
   184  
   185  var xxx_messageInfo_ConfigV1 proto.InternalMessageInfo
   186  
   187  func (m *ConfigV1) GetPachdAddress() string {
   188  	if m != nil {
   189  		return m.PachdAddress
   190  	}
   191  	return ""
   192  }
   193  
   194  func (m *ConfigV1) GetServerCAs() string {
   195  	if m != nil {
   196  		return m.ServerCAs
   197  	}
   198  	return ""
   199  }
   200  
   201  func (m *ConfigV1) GetSessionToken() string {
   202  	if m != nil {
   203  		return m.SessionToken
   204  	}
   205  	return ""
   206  }
   207  
   208  func (m *ConfigV1) GetActiveTransaction() string {
   209  	if m != nil {
   210  		return m.ActiveTransaction
   211  	}
   212  	return ""
   213  }
   214  
   215  // ConfigV2 specifies v2 of the pachyderm config (June 2019 - present)
   216  type ConfigV2 struct {
   217  	ActiveContext        string              `protobuf:"bytes,1,opt,name=active_context,json=activeContext,proto3" json:"active_context,omitempty"`
   218  	Contexts             map[string]*Context `protobuf:"bytes,2,rep,name=contexts,proto3" json:"contexts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   219  	Metrics              bool                `protobuf:"varint,3,opt,name=metrics,proto3" json:"metrics,omitempty"`
   220  	MaxShellCompletions  int64               `protobuf:"varint,4,opt,name=max_shell_completions,json=maxShellCompletions,proto3" json:"max_shell_completions,omitempty"`
   221  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   222  	XXX_unrecognized     []byte              `json:"-"`
   223  	XXX_sizecache        int32               `json:"-"`
   224  }
   225  
   226  func (m *ConfigV2) Reset()         { *m = ConfigV2{} }
   227  func (m *ConfigV2) String() string { return proto.CompactTextString(m) }
   228  func (*ConfigV2) ProtoMessage()    {}
   229  func (*ConfigV2) Descriptor() ([]byte, []int) {
   230  	return fileDescriptor_60f651abce1dcdf3, []int{2}
   231  }
   232  func (m *ConfigV2) XXX_Unmarshal(b []byte) error {
   233  	return m.Unmarshal(b)
   234  }
   235  func (m *ConfigV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   236  	if deterministic {
   237  		return xxx_messageInfo_ConfigV2.Marshal(b, m, deterministic)
   238  	} else {
   239  		b = b[:cap(b)]
   240  		n, err := m.MarshalToSizedBuffer(b)
   241  		if err != nil {
   242  			return nil, err
   243  		}
   244  		return b[:n], nil
   245  	}
   246  }
   247  func (m *ConfigV2) XXX_Merge(src proto.Message) {
   248  	xxx_messageInfo_ConfigV2.Merge(m, src)
   249  }
   250  func (m *ConfigV2) XXX_Size() int {
   251  	return m.Size()
   252  }
   253  func (m *ConfigV2) XXX_DiscardUnknown() {
   254  	xxx_messageInfo_ConfigV2.DiscardUnknown(m)
   255  }
   256  
   257  var xxx_messageInfo_ConfigV2 proto.InternalMessageInfo
   258  
   259  func (m *ConfigV2) GetActiveContext() string {
   260  	if m != nil {
   261  		return m.ActiveContext
   262  	}
   263  	return ""
   264  }
   265  
   266  func (m *ConfigV2) GetContexts() map[string]*Context {
   267  	if m != nil {
   268  		return m.Contexts
   269  	}
   270  	return nil
   271  }
   272  
   273  func (m *ConfigV2) GetMetrics() bool {
   274  	if m != nil {
   275  		return m.Metrics
   276  	}
   277  	return false
   278  }
   279  
   280  func (m *ConfigV2) GetMaxShellCompletions() int64 {
   281  	if m != nil {
   282  		return m.MaxShellCompletions
   283  	}
   284  	return 0
   285  }
   286  
   287  type Context struct {
   288  	// Where this context came from
   289  	Source ContextSource `protobuf:"varint,1,opt,name=source,proto3,enum=config.ContextSource" json:"source,omitempty"`
   290  	// The hostname or IP address pointing pachd at a pachyderm cluster.
   291  	PachdAddress string `protobuf:"bytes,2,opt,name=pachd_address,json=pachdAddress,proto3" json:"pachd_address,omitempty"`
   292  	// Trusted root certificates (overrides installed certificates), formatted
   293  	// as base64-encoded PEM.
   294  	ServerCAs string `protobuf:"bytes,3,opt,name=server_cas,json=serverCas,proto3" json:"server_cas,omitempty"`
   295  	// A secret token identifying the current pachctl user within their
   296  	// pachyderm cluster. This is included in all RPCs sent by pachctl, and used
   297  	// to determine if pachctl actions are authorized.
   298  	SessionToken string `protobuf:"bytes,4,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
   299  	// The currently active transaction for batching together pachctl commands.
   300  	// This can be set or cleared via many of the `pachctl * transaction` commands.
   301  	// This is the ID of the transaction object stored in the pachyderm etcd.
   302  	ActiveTransaction string `protobuf:"bytes,5,opt,name=active_transaction,json=activeTransaction,proto3" json:"active_transaction,omitempty"`
   303  	// The k8s cluster name - used to construct a k8s context.
   304  	ClusterName string `protobuf:"bytes,6,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
   305  	// The k8s auth info - used to construct a k8s context.
   306  	AuthInfo string `protobuf:"bytes,7,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
   307  	// The k8s namespace - used to construct a k8s context.
   308  	Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"`
   309  	// A mapping of service -> port number, when port forwarding is
   310  	// running for this context.
   311  	PortForwarders map[string]uint32 `protobuf:"bytes,10,rep,name=port_forwarders,json=portForwarders,proto3" json:"port_forwarders,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
   312  	// A unique ID for the cluster deployment. At client initialization time,
   313  	// we ensure this is the same as what the cluster reports back, to prevent
   314  	// us from connecting to the wrong cluster.
   315  	ClusterDeploymentID  string   `protobuf:"bytes,11,opt,name=cluster_deployment_id,json=clusterDeploymentId,proto3" json:"cluster_deployment_id,omitempty"`
   316  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   317  	XXX_unrecognized     []byte   `json:"-"`
   318  	XXX_sizecache        int32    `json:"-"`
   319  }
   320  
   321  func (m *Context) Reset()         { *m = Context{} }
   322  func (m *Context) String() string { return proto.CompactTextString(m) }
   323  func (*Context) ProtoMessage()    {}
   324  func (*Context) Descriptor() ([]byte, []int) {
   325  	return fileDescriptor_60f651abce1dcdf3, []int{3}
   326  }
   327  func (m *Context) XXX_Unmarshal(b []byte) error {
   328  	return m.Unmarshal(b)
   329  }
   330  func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   331  	if deterministic {
   332  		return xxx_messageInfo_Context.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 *Context) XXX_Merge(src proto.Message) {
   343  	xxx_messageInfo_Context.Merge(m, src)
   344  }
   345  func (m *Context) XXX_Size() int {
   346  	return m.Size()
   347  }
   348  func (m *Context) XXX_DiscardUnknown() {
   349  	xxx_messageInfo_Context.DiscardUnknown(m)
   350  }
   351  
   352  var xxx_messageInfo_Context proto.InternalMessageInfo
   353  
   354  func (m *Context) GetSource() ContextSource {
   355  	if m != nil {
   356  		return m.Source
   357  	}
   358  	return ContextSource_NONE
   359  }
   360  
   361  func (m *Context) GetPachdAddress() string {
   362  	if m != nil {
   363  		return m.PachdAddress
   364  	}
   365  	return ""
   366  }
   367  
   368  func (m *Context) GetServerCAs() string {
   369  	if m != nil {
   370  		return m.ServerCAs
   371  	}
   372  	return ""
   373  }
   374  
   375  func (m *Context) GetSessionToken() string {
   376  	if m != nil {
   377  		return m.SessionToken
   378  	}
   379  	return ""
   380  }
   381  
   382  func (m *Context) GetActiveTransaction() string {
   383  	if m != nil {
   384  		return m.ActiveTransaction
   385  	}
   386  	return ""
   387  }
   388  
   389  func (m *Context) GetClusterName() string {
   390  	if m != nil {
   391  		return m.ClusterName
   392  	}
   393  	return ""
   394  }
   395  
   396  func (m *Context) GetAuthInfo() string {
   397  	if m != nil {
   398  		return m.AuthInfo
   399  	}
   400  	return ""
   401  }
   402  
   403  func (m *Context) GetNamespace() string {
   404  	if m != nil {
   405  		return m.Namespace
   406  	}
   407  	return ""
   408  }
   409  
   410  func (m *Context) GetPortForwarders() map[string]uint32 {
   411  	if m != nil {
   412  		return m.PortForwarders
   413  	}
   414  	return nil
   415  }
   416  
   417  func (m *Context) GetClusterDeploymentID() string {
   418  	if m != nil {
   419  		return m.ClusterDeploymentID
   420  	}
   421  	return ""
   422  }
   423  
   424  func init() {
   425  	proto.RegisterEnum("config.ContextSource", ContextSource_name, ContextSource_value)
   426  	proto.RegisterType((*Config)(nil), "config.Config")
   427  	proto.RegisterType((*ConfigV1)(nil), "config.ConfigV1")
   428  	proto.RegisterType((*ConfigV2)(nil), "config.ConfigV2")
   429  	proto.RegisterMapType((map[string]*Context)(nil), "config.ConfigV2.ContextsEntry")
   430  	proto.RegisterType((*Context)(nil), "config.Context")
   431  	proto.RegisterMapType((map[string]uint32)(nil), "config.Context.PortForwardersEntry")
   432  }
   433  
   434  func init() { proto.RegisterFile("client/pkg/config/config.proto", fileDescriptor_60f651abce1dcdf3) }
   435  
   436  var fileDescriptor_60f651abce1dcdf3 = []byte{
   437  	// 679 bytes of a gzipped FileDescriptorProto
   438  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x6e, 0xda, 0x4a,
   439  	0x18, 0xbd, 0x06, 0x02, 0xf6, 0x07, 0x24, 0xdc, 0x21, 0xd1, 0xb5, 0x72, 0x2b, 0x92, 0x12, 0x45,
   440  	0x8a, 0xaa, 0x06, 0x84, 0xdb, 0x45, 0x95, 0x4d, 0x15, 0x20, 0x69, 0x69, 0x53, 0x12, 0x39, 0x3f,
   441  	0x8b, 0x6e, 0x2c, 0xc7, 0x1e, 0xc0, 0x0a, 0xf6, 0xb8, 0x33, 0x03, 0x0d, 0x8f, 0xd0, 0xc7, 0xe8,
   442  	0x23, 0xf4, 0x2d, 0xba, 0xec, 0x13, 0x44, 0x15, 0x4f, 0x52, 0xcd, 0x8c, 0x21, 0xe4, 0xa7, 0x52,
   443  	0x57, 0x5d, 0x31, 0x3e, 0xe7, 0x7c, 0x7f, 0xf3, 0x1d, 0x06, 0x2a, 0xde, 0x30, 0xc0, 0x11, 0xaf,
   444  	0xc7, 0x57, 0xfd, 0xba, 0x47, 0xa2, 0x5e, 0x30, 0xfb, 0xa9, 0xc5, 0x94, 0x70, 0x82, 0xb2, 0xea,
   445  	0x6b, 0x7d, 0xb5, 0x4f, 0xfa, 0x44, 0x42, 0x75, 0x71, 0x52, 0x6c, 0xf5, 0x13, 0x64, 0x5b, 0x92,
   446  	0x47, 0x5b, 0x90, 0x1b, 0x31, 0x4c, 0x9d, 0xc0, 0x37, 0xb5, 0x4d, 0x6d, 0xc7, 0x68, 0xc2, 0xf4,
   447  	0x66, 0x23, 0x7b, 0xce, 0x30, 0xed, 0xb4, 0xed, 0xac, 0xa0, 0x3a, 0x3e, 0xda, 0x84, 0xd4, 0xb8,
   448  	0x61, 0xa6, 0x36, 0xb5, 0x9d, 0xbc, 0x55, 0xaa, 0x25, 0x75, 0x54, 0x82, 0x8b, 0x86, 0x9d, 0x1a,
   449  	0x37, 0xa4, 0xc2, 0x32, 0xd3, 0x8f, 0x2a, 0x2c, 0x3b, 0x35, 0xb6, 0xaa, 0xdf, 0x34, 0xd0, 0x67,
   450  	0x21, 0x68, 0x0b, 0x8a, 0xb1, 0xeb, 0x0d, 0x7c, 0xc7, 0xf5, 0x7d, 0x8a, 0x19, 0x93, 0xb9, 0x0d,
   451  	0xbb, 0x20, 0xc1, 0x7d, 0x85, 0xa1, 0xe7, 0x00, 0x0c, 0xd3, 0x31, 0xa6, 0x8e, 0xe7, 0x32, 0x99,
   452  	0xdb, 0x68, 0x16, 0xa7, 0x37, 0x1b, 0xc6, 0xa9, 0x44, 0x5b, 0xfb, 0xcc, 0x36, 0x94, 0xa0, 0xe5,
   453  	0x32, 0x91, 0x92, 0x61, 0xc6, 0x02, 0x12, 0x39, 0x9c, 0x5c, 0xe1, 0x48, 0x8d, 0x63, 0x17, 0x12,
   454  	0xf0, 0x4c, 0x60, 0x68, 0x17, 0x90, 0xeb, 0xf1, 0x60, 0x8c, 0x1d, 0x4e, 0xdd, 0x88, 0x89, 0x33,
   455  	0x89, 0xcc, 0x8c, 0x54, 0xfe, 0xab, 0x98, 0xb3, 0x5b, 0xa2, 0xfa, 0x25, 0x35, 0xef, 0xd9, 0x42,
   456  	0xdb, 0xb0, 0x9c, 0xc4, 0x7a, 0x24, 0xe2, 0xf8, 0x9a, 0x27, 0x15, 0x8a, 0x0a, 0x6d, 0x29, 0x10,
   457  	0xed, 0x81, 0x9e, 0xf0, 0x62, 0xaa, 0xf4, 0x4e, 0xde, 0xaa, 0xdc, 0xbf, 0x8f, 0x5a, 0xa2, 0x65,
   458  	0x07, 0x11, 0xa7, 0x13, 0x7b, 0xae, 0x47, 0x26, 0xe4, 0x42, 0xcc, 0x69, 0xe0, 0xa9, 0x71, 0x75,
   459  	0x7b, 0xf6, 0x89, 0x2c, 0x58, 0x0b, 0xdd, 0x6b, 0x87, 0x0d, 0xf0, 0x70, 0xe8, 0x78, 0x24, 0x8c,
   460  	0x87, 0x58, 0x74, 0xc8, 0x64, 0xef, 0x69, 0xbb, 0x1c, 0xba, 0xd7, 0xa7, 0x82, 0x6b, 0xdd, 0x52,
   461  	0xeb, 0x47, 0x50, 0xbc, 0x53, 0x08, 0x95, 0x20, 0x7d, 0x85, 0x27, 0x49, 0xdb, 0xe2, 0x88, 0xb6,
   462  	0x61, 0x69, 0xec, 0x0e, 0x47, 0x38, 0xd9, 0xed, 0xca, 0x42, 0xa7, 0x22, 0xce, 0x56, 0xec, 0x5e,
   463  	0xea, 0x95, 0x56, 0xfd, 0x9a, 0x81, 0xdc, 0x6c, 0xc6, 0x5d, 0xc8, 0x32, 0x32, 0xa2, 0x1e, 0x96,
   464  	0xb9, 0x96, 0xad, 0xb5, 0x7b, 0x71, 0xa7, 0x92, 0xb4, 0x13, 0xd1, 0x5f, 0xd9, 0x76, 0xe6, 0x8f,
   465  	0xb7, 0xbd, 0xf4, 0x9b, 0x6d, 0xa3, 0xa7, 0x50, 0xf0, 0x86, 0x23, 0xc6, 0x31, 0x75, 0x22, 0x37,
   466  	0xc4, 0x66, 0x56, 0x0a, 0xf3, 0x09, 0xd6, 0x75, 0x43, 0x8c, 0xfe, 0x07, 0xc3, 0x1d, 0xf1, 0x81,
   467  	0x13, 0x44, 0x3d, 0x62, 0xe6, 0x24, 0xaf, 0x0b, 0xa0, 0x13, 0xf5, 0x08, 0x7a, 0x02, 0x86, 0x88,
   468  	0x63, 0xb1, 0xeb, 0x61, 0x53, 0x97, 0xe4, 0x2d, 0x80, 0x8e, 0x60, 0x25, 0x26, 0x94, 0x3b, 0x3d,
   469  	0x42, 0x3f, 0xbb, 0xd4, 0xc7, 0x94, 0x99, 0x20, 0xed, 0xb1, 0x75, 0xef, 0xf2, 0x6a, 0x27, 0x84,
   470  	0xf2, 0xc3, 0xb9, 0x4a, 0x79, 0x64, 0x39, 0xbe, 0x03, 0xa2, 0xf7, 0xb0, 0x36, 0xeb, 0xd5, 0xc7,
   471  	0xf1, 0x90, 0x4c, 0x42, 0x1c, 0x71, 0xf1, 0x27, 0xce, 0xcb, 0x8b, 0xfb, 0x6f, 0x7a, 0xb3, 0x51,
   472  	0x6e, 0x29, 0x41, 0x7b, 0xce, 0x77, 0xda, 0x76, 0xd9, 0x7b, 0x00, 0xfa, 0xeb, 0xfb, 0x50, 0x7e,
   473  	0xa4, 0xe6, 0x23, 0x76, 0x59, 0x5d, 0xb4, 0x4b, 0x71, 0xc1, 0x1d, 0xef, 0x32, 0xba, 0x51, 0x82,
   474  	0x67, 0xaf, 0xe7, 0x8e, 0x53, 0x0e, 0x40, 0x3a, 0x64, 0xba, 0xc7, 0xdd, 0x83, 0xd2, 0x3f, 0xa8,
   475  	0x08, 0x46, 0xeb, 0xb8, 0x7b, 0xd8, 0x79, 0xe3, 0x5c, 0x34, 0x4a, 0x1a, 0xca, 0x41, 0xfa, 0xed,
   476  	0x79, 0xb3, 0x94, 0x42, 0x05, 0xd0, 0x3b, 0x1f, 0x4e, 0x8e, 0xed, 0xb3, 0x83, 0x76, 0x29, 0xdd,
   477  	0x6c, 0x7e, 0x9f, 0x56, 0xb4, 0x1f, 0xd3, 0x8a, 0xf6, 0x73, 0x5a, 0xd1, 0x3e, 0xbe, 0xec, 0x07,
   478  	0x7c, 0x30, 0xba, 0xac, 0x79, 0x24, 0xac, 0x0b, 0xaf, 0x4c, 0x7c, 0x4c, 0x17, 0x4f, 0x8c, 0x7a,
   479  	0xf5, 0x07, 0xcf, 0xe0, 0x65, 0x56, 0x3e, 0x71, 0x2f, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x16,
   480  	0x1c, 0xdd, 0x64, 0x22, 0x05, 0x00, 0x00,
   481  }
   482  
   483  func (m *Config) Marshal() (dAtA []byte, err error) {
   484  	size := m.Size()
   485  	dAtA = make([]byte, size)
   486  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   487  	if err != nil {
   488  		return nil, err
   489  	}
   490  	return dAtA[:n], nil
   491  }
   492  
   493  func (m *Config) MarshalTo(dAtA []byte) (int, error) {
   494  	size := m.Size()
   495  	return m.MarshalToSizedBuffer(dAtA[:size])
   496  }
   497  
   498  func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   499  	i := len(dAtA)
   500  	_ = i
   501  	var l int
   502  	_ = l
   503  	if m.XXX_unrecognized != nil {
   504  		i -= len(m.XXX_unrecognized)
   505  		copy(dAtA[i:], m.XXX_unrecognized)
   506  	}
   507  	if m.V2 != nil {
   508  		{
   509  			size, err := m.V2.MarshalToSizedBuffer(dAtA[:i])
   510  			if err != nil {
   511  				return 0, err
   512  			}
   513  			i -= size
   514  			i = encodeVarintConfig(dAtA, i, uint64(size))
   515  		}
   516  		i--
   517  		dAtA[i] = 0x1a
   518  	}
   519  	if m.V1 != nil {
   520  		{
   521  			size, err := m.V1.MarshalToSizedBuffer(dAtA[:i])
   522  			if err != nil {
   523  				return 0, err
   524  			}
   525  			i -= size
   526  			i = encodeVarintConfig(dAtA, i, uint64(size))
   527  		}
   528  		i--
   529  		dAtA[i] = 0x12
   530  	}
   531  	if len(m.UserID) > 0 {
   532  		i -= len(m.UserID)
   533  		copy(dAtA[i:], m.UserID)
   534  		i = encodeVarintConfig(dAtA, i, uint64(len(m.UserID)))
   535  		i--
   536  		dAtA[i] = 0xa
   537  	}
   538  	return len(dAtA) - i, nil
   539  }
   540  
   541  func (m *ConfigV1) Marshal() (dAtA []byte, err error) {
   542  	size := m.Size()
   543  	dAtA = make([]byte, size)
   544  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   545  	if err != nil {
   546  		return nil, err
   547  	}
   548  	return dAtA[:n], nil
   549  }
   550  
   551  func (m *ConfigV1) MarshalTo(dAtA []byte) (int, error) {
   552  	size := m.Size()
   553  	return m.MarshalToSizedBuffer(dAtA[:size])
   554  }
   555  
   556  func (m *ConfigV1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   557  	i := len(dAtA)
   558  	_ = i
   559  	var l int
   560  	_ = l
   561  	if m.XXX_unrecognized != nil {
   562  		i -= len(m.XXX_unrecognized)
   563  		copy(dAtA[i:], m.XXX_unrecognized)
   564  	}
   565  	if len(m.ActiveTransaction) > 0 {
   566  		i -= len(m.ActiveTransaction)
   567  		copy(dAtA[i:], m.ActiveTransaction)
   568  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ActiveTransaction)))
   569  		i--
   570  		dAtA[i] = 0x22
   571  	}
   572  	if len(m.ServerCAs) > 0 {
   573  		i -= len(m.ServerCAs)
   574  		copy(dAtA[i:], m.ServerCAs)
   575  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ServerCAs)))
   576  		i--
   577  		dAtA[i] = 0x1a
   578  	}
   579  	if len(m.PachdAddress) > 0 {
   580  		i -= len(m.PachdAddress)
   581  		copy(dAtA[i:], m.PachdAddress)
   582  		i = encodeVarintConfig(dAtA, i, uint64(len(m.PachdAddress)))
   583  		i--
   584  		dAtA[i] = 0x12
   585  	}
   586  	if len(m.SessionToken) > 0 {
   587  		i -= len(m.SessionToken)
   588  		copy(dAtA[i:], m.SessionToken)
   589  		i = encodeVarintConfig(dAtA, i, uint64(len(m.SessionToken)))
   590  		i--
   591  		dAtA[i] = 0xa
   592  	}
   593  	return len(dAtA) - i, nil
   594  }
   595  
   596  func (m *ConfigV2) Marshal() (dAtA []byte, err error) {
   597  	size := m.Size()
   598  	dAtA = make([]byte, size)
   599  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   600  	if err != nil {
   601  		return nil, err
   602  	}
   603  	return dAtA[:n], nil
   604  }
   605  
   606  func (m *ConfigV2) MarshalTo(dAtA []byte) (int, error) {
   607  	size := m.Size()
   608  	return m.MarshalToSizedBuffer(dAtA[:size])
   609  }
   610  
   611  func (m *ConfigV2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   612  	i := len(dAtA)
   613  	_ = i
   614  	var l int
   615  	_ = l
   616  	if m.XXX_unrecognized != nil {
   617  		i -= len(m.XXX_unrecognized)
   618  		copy(dAtA[i:], m.XXX_unrecognized)
   619  	}
   620  	if m.MaxShellCompletions != 0 {
   621  		i = encodeVarintConfig(dAtA, i, uint64(m.MaxShellCompletions))
   622  		i--
   623  		dAtA[i] = 0x20
   624  	}
   625  	if m.Metrics {
   626  		i--
   627  		if m.Metrics {
   628  			dAtA[i] = 1
   629  		} else {
   630  			dAtA[i] = 0
   631  		}
   632  		i--
   633  		dAtA[i] = 0x18
   634  	}
   635  	if len(m.Contexts) > 0 {
   636  		for k := range m.Contexts {
   637  			v := m.Contexts[k]
   638  			baseI := i
   639  			if v != nil {
   640  				{
   641  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   642  					if err != nil {
   643  						return 0, err
   644  					}
   645  					i -= size
   646  					i = encodeVarintConfig(dAtA, i, uint64(size))
   647  				}
   648  				i--
   649  				dAtA[i] = 0x12
   650  			}
   651  			i -= len(k)
   652  			copy(dAtA[i:], k)
   653  			i = encodeVarintConfig(dAtA, i, uint64(len(k)))
   654  			i--
   655  			dAtA[i] = 0xa
   656  			i = encodeVarintConfig(dAtA, i, uint64(baseI-i))
   657  			i--
   658  			dAtA[i] = 0x12
   659  		}
   660  	}
   661  	if len(m.ActiveContext) > 0 {
   662  		i -= len(m.ActiveContext)
   663  		copy(dAtA[i:], m.ActiveContext)
   664  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ActiveContext)))
   665  		i--
   666  		dAtA[i] = 0xa
   667  	}
   668  	return len(dAtA) - i, nil
   669  }
   670  
   671  func (m *Context) Marshal() (dAtA []byte, err error) {
   672  	size := m.Size()
   673  	dAtA = make([]byte, size)
   674  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   675  	if err != nil {
   676  		return nil, err
   677  	}
   678  	return dAtA[:n], nil
   679  }
   680  
   681  func (m *Context) MarshalTo(dAtA []byte) (int, error) {
   682  	size := m.Size()
   683  	return m.MarshalToSizedBuffer(dAtA[:size])
   684  }
   685  
   686  func (m *Context) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   687  	i := len(dAtA)
   688  	_ = i
   689  	var l int
   690  	_ = l
   691  	if m.XXX_unrecognized != nil {
   692  		i -= len(m.XXX_unrecognized)
   693  		copy(dAtA[i:], m.XXX_unrecognized)
   694  	}
   695  	if len(m.ClusterDeploymentID) > 0 {
   696  		i -= len(m.ClusterDeploymentID)
   697  		copy(dAtA[i:], m.ClusterDeploymentID)
   698  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ClusterDeploymentID)))
   699  		i--
   700  		dAtA[i] = 0x5a
   701  	}
   702  	if len(m.PortForwarders) > 0 {
   703  		for k := range m.PortForwarders {
   704  			v := m.PortForwarders[k]
   705  			baseI := i
   706  			i = encodeVarintConfig(dAtA, i, uint64(v))
   707  			i--
   708  			dAtA[i] = 0x10
   709  			i -= len(k)
   710  			copy(dAtA[i:], k)
   711  			i = encodeVarintConfig(dAtA, i, uint64(len(k)))
   712  			i--
   713  			dAtA[i] = 0xa
   714  			i = encodeVarintConfig(dAtA, i, uint64(baseI-i))
   715  			i--
   716  			dAtA[i] = 0x52
   717  		}
   718  	}
   719  	if len(m.Namespace) > 0 {
   720  		i -= len(m.Namespace)
   721  		copy(dAtA[i:], m.Namespace)
   722  		i = encodeVarintConfig(dAtA, i, uint64(len(m.Namespace)))
   723  		i--
   724  		dAtA[i] = 0x42
   725  	}
   726  	if len(m.AuthInfo) > 0 {
   727  		i -= len(m.AuthInfo)
   728  		copy(dAtA[i:], m.AuthInfo)
   729  		i = encodeVarintConfig(dAtA, i, uint64(len(m.AuthInfo)))
   730  		i--
   731  		dAtA[i] = 0x3a
   732  	}
   733  	if len(m.ClusterName) > 0 {
   734  		i -= len(m.ClusterName)
   735  		copy(dAtA[i:], m.ClusterName)
   736  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ClusterName)))
   737  		i--
   738  		dAtA[i] = 0x32
   739  	}
   740  	if len(m.ActiveTransaction) > 0 {
   741  		i -= len(m.ActiveTransaction)
   742  		copy(dAtA[i:], m.ActiveTransaction)
   743  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ActiveTransaction)))
   744  		i--
   745  		dAtA[i] = 0x2a
   746  	}
   747  	if len(m.SessionToken) > 0 {
   748  		i -= len(m.SessionToken)
   749  		copy(dAtA[i:], m.SessionToken)
   750  		i = encodeVarintConfig(dAtA, i, uint64(len(m.SessionToken)))
   751  		i--
   752  		dAtA[i] = 0x22
   753  	}
   754  	if len(m.ServerCAs) > 0 {
   755  		i -= len(m.ServerCAs)
   756  		copy(dAtA[i:], m.ServerCAs)
   757  		i = encodeVarintConfig(dAtA, i, uint64(len(m.ServerCAs)))
   758  		i--
   759  		dAtA[i] = 0x1a
   760  	}
   761  	if len(m.PachdAddress) > 0 {
   762  		i -= len(m.PachdAddress)
   763  		copy(dAtA[i:], m.PachdAddress)
   764  		i = encodeVarintConfig(dAtA, i, uint64(len(m.PachdAddress)))
   765  		i--
   766  		dAtA[i] = 0x12
   767  	}
   768  	if m.Source != 0 {
   769  		i = encodeVarintConfig(dAtA, i, uint64(m.Source))
   770  		i--
   771  		dAtA[i] = 0x8
   772  	}
   773  	return len(dAtA) - i, nil
   774  }
   775  
   776  func encodeVarintConfig(dAtA []byte, offset int, v uint64) int {
   777  	offset -= sovConfig(v)
   778  	base := offset
   779  	for v >= 1<<7 {
   780  		dAtA[offset] = uint8(v&0x7f | 0x80)
   781  		v >>= 7
   782  		offset++
   783  	}
   784  	dAtA[offset] = uint8(v)
   785  	return base
   786  }
   787  func (m *Config) Size() (n int) {
   788  	if m == nil {
   789  		return 0
   790  	}
   791  	var l int
   792  	_ = l
   793  	l = len(m.UserID)
   794  	if l > 0 {
   795  		n += 1 + l + sovConfig(uint64(l))
   796  	}
   797  	if m.V1 != nil {
   798  		l = m.V1.Size()
   799  		n += 1 + l + sovConfig(uint64(l))
   800  	}
   801  	if m.V2 != nil {
   802  		l = m.V2.Size()
   803  		n += 1 + l + sovConfig(uint64(l))
   804  	}
   805  	if m.XXX_unrecognized != nil {
   806  		n += len(m.XXX_unrecognized)
   807  	}
   808  	return n
   809  }
   810  
   811  func (m *ConfigV1) Size() (n int) {
   812  	if m == nil {
   813  		return 0
   814  	}
   815  	var l int
   816  	_ = l
   817  	l = len(m.SessionToken)
   818  	if l > 0 {
   819  		n += 1 + l + sovConfig(uint64(l))
   820  	}
   821  	l = len(m.PachdAddress)
   822  	if l > 0 {
   823  		n += 1 + l + sovConfig(uint64(l))
   824  	}
   825  	l = len(m.ServerCAs)
   826  	if l > 0 {
   827  		n += 1 + l + sovConfig(uint64(l))
   828  	}
   829  	l = len(m.ActiveTransaction)
   830  	if l > 0 {
   831  		n += 1 + l + sovConfig(uint64(l))
   832  	}
   833  	if m.XXX_unrecognized != nil {
   834  		n += len(m.XXX_unrecognized)
   835  	}
   836  	return n
   837  }
   838  
   839  func (m *ConfigV2) Size() (n int) {
   840  	if m == nil {
   841  		return 0
   842  	}
   843  	var l int
   844  	_ = l
   845  	l = len(m.ActiveContext)
   846  	if l > 0 {
   847  		n += 1 + l + sovConfig(uint64(l))
   848  	}
   849  	if len(m.Contexts) > 0 {
   850  		for k, v := range m.Contexts {
   851  			_ = k
   852  			_ = v
   853  			l = 0
   854  			if v != nil {
   855  				l = v.Size()
   856  				l += 1 + sovConfig(uint64(l))
   857  			}
   858  			mapEntrySize := 1 + len(k) + sovConfig(uint64(len(k))) + l
   859  			n += mapEntrySize + 1 + sovConfig(uint64(mapEntrySize))
   860  		}
   861  	}
   862  	if m.Metrics {
   863  		n += 2
   864  	}
   865  	if m.MaxShellCompletions != 0 {
   866  		n += 1 + sovConfig(uint64(m.MaxShellCompletions))
   867  	}
   868  	if m.XXX_unrecognized != nil {
   869  		n += len(m.XXX_unrecognized)
   870  	}
   871  	return n
   872  }
   873  
   874  func (m *Context) Size() (n int) {
   875  	if m == nil {
   876  		return 0
   877  	}
   878  	var l int
   879  	_ = l
   880  	if m.Source != 0 {
   881  		n += 1 + sovConfig(uint64(m.Source))
   882  	}
   883  	l = len(m.PachdAddress)
   884  	if l > 0 {
   885  		n += 1 + l + sovConfig(uint64(l))
   886  	}
   887  	l = len(m.ServerCAs)
   888  	if l > 0 {
   889  		n += 1 + l + sovConfig(uint64(l))
   890  	}
   891  	l = len(m.SessionToken)
   892  	if l > 0 {
   893  		n += 1 + l + sovConfig(uint64(l))
   894  	}
   895  	l = len(m.ActiveTransaction)
   896  	if l > 0 {
   897  		n += 1 + l + sovConfig(uint64(l))
   898  	}
   899  	l = len(m.ClusterName)
   900  	if l > 0 {
   901  		n += 1 + l + sovConfig(uint64(l))
   902  	}
   903  	l = len(m.AuthInfo)
   904  	if l > 0 {
   905  		n += 1 + l + sovConfig(uint64(l))
   906  	}
   907  	l = len(m.Namespace)
   908  	if l > 0 {
   909  		n += 1 + l + sovConfig(uint64(l))
   910  	}
   911  	if len(m.PortForwarders) > 0 {
   912  		for k, v := range m.PortForwarders {
   913  			_ = k
   914  			_ = v
   915  			mapEntrySize := 1 + len(k) + sovConfig(uint64(len(k))) + 1 + sovConfig(uint64(v))
   916  			n += mapEntrySize + 1 + sovConfig(uint64(mapEntrySize))
   917  		}
   918  	}
   919  	l = len(m.ClusterDeploymentID)
   920  	if l > 0 {
   921  		n += 1 + l + sovConfig(uint64(l))
   922  	}
   923  	if m.XXX_unrecognized != nil {
   924  		n += len(m.XXX_unrecognized)
   925  	}
   926  	return n
   927  }
   928  
   929  func sovConfig(x uint64) (n int) {
   930  	return (math_bits.Len64(x|1) + 6) / 7
   931  }
   932  func sozConfig(x uint64) (n int) {
   933  	return sovConfig(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   934  }
   935  func (m *Config) Unmarshal(dAtA []byte) error {
   936  	l := len(dAtA)
   937  	iNdEx := 0
   938  	for iNdEx < l {
   939  		preIndex := iNdEx
   940  		var wire uint64
   941  		for shift := uint(0); ; shift += 7 {
   942  			if shift >= 64 {
   943  				return ErrIntOverflowConfig
   944  			}
   945  			if iNdEx >= l {
   946  				return io.ErrUnexpectedEOF
   947  			}
   948  			b := dAtA[iNdEx]
   949  			iNdEx++
   950  			wire |= uint64(b&0x7F) << shift
   951  			if b < 0x80 {
   952  				break
   953  			}
   954  		}
   955  		fieldNum := int32(wire >> 3)
   956  		wireType := int(wire & 0x7)
   957  		if wireType == 4 {
   958  			return fmt.Errorf("proto: Config: wiretype end group for non-group")
   959  		}
   960  		if fieldNum <= 0 {
   961  			return fmt.Errorf("proto: Config: illegal tag %d (wire type %d)", fieldNum, wire)
   962  		}
   963  		switch fieldNum {
   964  		case 1:
   965  			if wireType != 2 {
   966  				return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType)
   967  			}
   968  			var stringLen uint64
   969  			for shift := uint(0); ; shift += 7 {
   970  				if shift >= 64 {
   971  					return ErrIntOverflowConfig
   972  				}
   973  				if iNdEx >= l {
   974  					return io.ErrUnexpectedEOF
   975  				}
   976  				b := dAtA[iNdEx]
   977  				iNdEx++
   978  				stringLen |= uint64(b&0x7F) << shift
   979  				if b < 0x80 {
   980  					break
   981  				}
   982  			}
   983  			intStringLen := int(stringLen)
   984  			if intStringLen < 0 {
   985  				return ErrInvalidLengthConfig
   986  			}
   987  			postIndex := iNdEx + intStringLen
   988  			if postIndex < 0 {
   989  				return ErrInvalidLengthConfig
   990  			}
   991  			if postIndex > l {
   992  				return io.ErrUnexpectedEOF
   993  			}
   994  			m.UserID = string(dAtA[iNdEx:postIndex])
   995  			iNdEx = postIndex
   996  		case 2:
   997  			if wireType != 2 {
   998  				return fmt.Errorf("proto: wrong wireType = %d for field V1", wireType)
   999  			}
  1000  			var msglen int
  1001  			for shift := uint(0); ; shift += 7 {
  1002  				if shift >= 64 {
  1003  					return ErrIntOverflowConfig
  1004  				}
  1005  				if iNdEx >= l {
  1006  					return io.ErrUnexpectedEOF
  1007  				}
  1008  				b := dAtA[iNdEx]
  1009  				iNdEx++
  1010  				msglen |= int(b&0x7F) << shift
  1011  				if b < 0x80 {
  1012  					break
  1013  				}
  1014  			}
  1015  			if msglen < 0 {
  1016  				return ErrInvalidLengthConfig
  1017  			}
  1018  			postIndex := iNdEx + msglen
  1019  			if postIndex < 0 {
  1020  				return ErrInvalidLengthConfig
  1021  			}
  1022  			if postIndex > l {
  1023  				return io.ErrUnexpectedEOF
  1024  			}
  1025  			if m.V1 == nil {
  1026  				m.V1 = &ConfigV1{}
  1027  			}
  1028  			if err := m.V1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1029  				return err
  1030  			}
  1031  			iNdEx = postIndex
  1032  		case 3:
  1033  			if wireType != 2 {
  1034  				return fmt.Errorf("proto: wrong wireType = %d for field V2", wireType)
  1035  			}
  1036  			var msglen int
  1037  			for shift := uint(0); ; shift += 7 {
  1038  				if shift >= 64 {
  1039  					return ErrIntOverflowConfig
  1040  				}
  1041  				if iNdEx >= l {
  1042  					return io.ErrUnexpectedEOF
  1043  				}
  1044  				b := dAtA[iNdEx]
  1045  				iNdEx++
  1046  				msglen |= int(b&0x7F) << shift
  1047  				if b < 0x80 {
  1048  					break
  1049  				}
  1050  			}
  1051  			if msglen < 0 {
  1052  				return ErrInvalidLengthConfig
  1053  			}
  1054  			postIndex := iNdEx + msglen
  1055  			if postIndex < 0 {
  1056  				return ErrInvalidLengthConfig
  1057  			}
  1058  			if postIndex > l {
  1059  				return io.ErrUnexpectedEOF
  1060  			}
  1061  			if m.V2 == nil {
  1062  				m.V2 = &ConfigV2{}
  1063  			}
  1064  			if err := m.V2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1065  				return err
  1066  			}
  1067  			iNdEx = postIndex
  1068  		default:
  1069  			iNdEx = preIndex
  1070  			skippy, err := skipConfig(dAtA[iNdEx:])
  1071  			if err != nil {
  1072  				return err
  1073  			}
  1074  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1075  				return ErrInvalidLengthConfig
  1076  			}
  1077  			if (iNdEx + skippy) > l {
  1078  				return io.ErrUnexpectedEOF
  1079  			}
  1080  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1081  			iNdEx += skippy
  1082  		}
  1083  	}
  1084  
  1085  	if iNdEx > l {
  1086  		return io.ErrUnexpectedEOF
  1087  	}
  1088  	return nil
  1089  }
  1090  func (m *ConfigV1) Unmarshal(dAtA []byte) error {
  1091  	l := len(dAtA)
  1092  	iNdEx := 0
  1093  	for iNdEx < l {
  1094  		preIndex := iNdEx
  1095  		var wire uint64
  1096  		for shift := uint(0); ; shift += 7 {
  1097  			if shift >= 64 {
  1098  				return ErrIntOverflowConfig
  1099  			}
  1100  			if iNdEx >= l {
  1101  				return io.ErrUnexpectedEOF
  1102  			}
  1103  			b := dAtA[iNdEx]
  1104  			iNdEx++
  1105  			wire |= uint64(b&0x7F) << shift
  1106  			if b < 0x80 {
  1107  				break
  1108  			}
  1109  		}
  1110  		fieldNum := int32(wire >> 3)
  1111  		wireType := int(wire & 0x7)
  1112  		if wireType == 4 {
  1113  			return fmt.Errorf("proto: ConfigV1: wiretype end group for non-group")
  1114  		}
  1115  		if fieldNum <= 0 {
  1116  			return fmt.Errorf("proto: ConfigV1: illegal tag %d (wire type %d)", fieldNum, wire)
  1117  		}
  1118  		switch fieldNum {
  1119  		case 1:
  1120  			if wireType != 2 {
  1121  				return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType)
  1122  			}
  1123  			var stringLen uint64
  1124  			for shift := uint(0); ; shift += 7 {
  1125  				if shift >= 64 {
  1126  					return ErrIntOverflowConfig
  1127  				}
  1128  				if iNdEx >= l {
  1129  					return io.ErrUnexpectedEOF
  1130  				}
  1131  				b := dAtA[iNdEx]
  1132  				iNdEx++
  1133  				stringLen |= uint64(b&0x7F) << shift
  1134  				if b < 0x80 {
  1135  					break
  1136  				}
  1137  			}
  1138  			intStringLen := int(stringLen)
  1139  			if intStringLen < 0 {
  1140  				return ErrInvalidLengthConfig
  1141  			}
  1142  			postIndex := iNdEx + intStringLen
  1143  			if postIndex < 0 {
  1144  				return ErrInvalidLengthConfig
  1145  			}
  1146  			if postIndex > l {
  1147  				return io.ErrUnexpectedEOF
  1148  			}
  1149  			m.SessionToken = string(dAtA[iNdEx:postIndex])
  1150  			iNdEx = postIndex
  1151  		case 2:
  1152  			if wireType != 2 {
  1153  				return fmt.Errorf("proto: wrong wireType = %d for field PachdAddress", wireType)
  1154  			}
  1155  			var stringLen uint64
  1156  			for shift := uint(0); ; shift += 7 {
  1157  				if shift >= 64 {
  1158  					return ErrIntOverflowConfig
  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 ErrInvalidLengthConfig
  1173  			}
  1174  			postIndex := iNdEx + intStringLen
  1175  			if postIndex < 0 {
  1176  				return ErrInvalidLengthConfig
  1177  			}
  1178  			if postIndex > l {
  1179  				return io.ErrUnexpectedEOF
  1180  			}
  1181  			m.PachdAddress = string(dAtA[iNdEx:postIndex])
  1182  			iNdEx = postIndex
  1183  		case 3:
  1184  			if wireType != 2 {
  1185  				return fmt.Errorf("proto: wrong wireType = %d for field ServerCAs", wireType)
  1186  			}
  1187  			var stringLen uint64
  1188  			for shift := uint(0); ; shift += 7 {
  1189  				if shift >= 64 {
  1190  					return ErrIntOverflowConfig
  1191  				}
  1192  				if iNdEx >= l {
  1193  					return io.ErrUnexpectedEOF
  1194  				}
  1195  				b := dAtA[iNdEx]
  1196  				iNdEx++
  1197  				stringLen |= uint64(b&0x7F) << shift
  1198  				if b < 0x80 {
  1199  					break
  1200  				}
  1201  			}
  1202  			intStringLen := int(stringLen)
  1203  			if intStringLen < 0 {
  1204  				return ErrInvalidLengthConfig
  1205  			}
  1206  			postIndex := iNdEx + intStringLen
  1207  			if postIndex < 0 {
  1208  				return ErrInvalidLengthConfig
  1209  			}
  1210  			if postIndex > l {
  1211  				return io.ErrUnexpectedEOF
  1212  			}
  1213  			m.ServerCAs = string(dAtA[iNdEx:postIndex])
  1214  			iNdEx = postIndex
  1215  		case 4:
  1216  			if wireType != 2 {
  1217  				return fmt.Errorf("proto: wrong wireType = %d for field ActiveTransaction", wireType)
  1218  			}
  1219  			var stringLen uint64
  1220  			for shift := uint(0); ; shift += 7 {
  1221  				if shift >= 64 {
  1222  					return ErrIntOverflowConfig
  1223  				}
  1224  				if iNdEx >= l {
  1225  					return io.ErrUnexpectedEOF
  1226  				}
  1227  				b := dAtA[iNdEx]
  1228  				iNdEx++
  1229  				stringLen |= uint64(b&0x7F) << shift
  1230  				if b < 0x80 {
  1231  					break
  1232  				}
  1233  			}
  1234  			intStringLen := int(stringLen)
  1235  			if intStringLen < 0 {
  1236  				return ErrInvalidLengthConfig
  1237  			}
  1238  			postIndex := iNdEx + intStringLen
  1239  			if postIndex < 0 {
  1240  				return ErrInvalidLengthConfig
  1241  			}
  1242  			if postIndex > l {
  1243  				return io.ErrUnexpectedEOF
  1244  			}
  1245  			m.ActiveTransaction = string(dAtA[iNdEx:postIndex])
  1246  			iNdEx = postIndex
  1247  		default:
  1248  			iNdEx = preIndex
  1249  			skippy, err := skipConfig(dAtA[iNdEx:])
  1250  			if err != nil {
  1251  				return err
  1252  			}
  1253  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1254  				return ErrInvalidLengthConfig
  1255  			}
  1256  			if (iNdEx + skippy) > l {
  1257  				return io.ErrUnexpectedEOF
  1258  			}
  1259  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1260  			iNdEx += skippy
  1261  		}
  1262  	}
  1263  
  1264  	if iNdEx > l {
  1265  		return io.ErrUnexpectedEOF
  1266  	}
  1267  	return nil
  1268  }
  1269  func (m *ConfigV2) Unmarshal(dAtA []byte) error {
  1270  	l := len(dAtA)
  1271  	iNdEx := 0
  1272  	for iNdEx < l {
  1273  		preIndex := iNdEx
  1274  		var wire uint64
  1275  		for shift := uint(0); ; shift += 7 {
  1276  			if shift >= 64 {
  1277  				return ErrIntOverflowConfig
  1278  			}
  1279  			if iNdEx >= l {
  1280  				return io.ErrUnexpectedEOF
  1281  			}
  1282  			b := dAtA[iNdEx]
  1283  			iNdEx++
  1284  			wire |= uint64(b&0x7F) << shift
  1285  			if b < 0x80 {
  1286  				break
  1287  			}
  1288  		}
  1289  		fieldNum := int32(wire >> 3)
  1290  		wireType := int(wire & 0x7)
  1291  		if wireType == 4 {
  1292  			return fmt.Errorf("proto: ConfigV2: wiretype end group for non-group")
  1293  		}
  1294  		if fieldNum <= 0 {
  1295  			return fmt.Errorf("proto: ConfigV2: illegal tag %d (wire type %d)", fieldNum, wire)
  1296  		}
  1297  		switch fieldNum {
  1298  		case 1:
  1299  			if wireType != 2 {
  1300  				return fmt.Errorf("proto: wrong wireType = %d for field ActiveContext", wireType)
  1301  			}
  1302  			var stringLen uint64
  1303  			for shift := uint(0); ; shift += 7 {
  1304  				if shift >= 64 {
  1305  					return ErrIntOverflowConfig
  1306  				}
  1307  				if iNdEx >= l {
  1308  					return io.ErrUnexpectedEOF
  1309  				}
  1310  				b := dAtA[iNdEx]
  1311  				iNdEx++
  1312  				stringLen |= uint64(b&0x7F) << shift
  1313  				if b < 0x80 {
  1314  					break
  1315  				}
  1316  			}
  1317  			intStringLen := int(stringLen)
  1318  			if intStringLen < 0 {
  1319  				return ErrInvalidLengthConfig
  1320  			}
  1321  			postIndex := iNdEx + intStringLen
  1322  			if postIndex < 0 {
  1323  				return ErrInvalidLengthConfig
  1324  			}
  1325  			if postIndex > l {
  1326  				return io.ErrUnexpectedEOF
  1327  			}
  1328  			m.ActiveContext = string(dAtA[iNdEx:postIndex])
  1329  			iNdEx = postIndex
  1330  		case 2:
  1331  			if wireType != 2 {
  1332  				return fmt.Errorf("proto: wrong wireType = %d for field Contexts", wireType)
  1333  			}
  1334  			var msglen int
  1335  			for shift := uint(0); ; shift += 7 {
  1336  				if shift >= 64 {
  1337  					return ErrIntOverflowConfig
  1338  				}
  1339  				if iNdEx >= l {
  1340  					return io.ErrUnexpectedEOF
  1341  				}
  1342  				b := dAtA[iNdEx]
  1343  				iNdEx++
  1344  				msglen |= int(b&0x7F) << shift
  1345  				if b < 0x80 {
  1346  					break
  1347  				}
  1348  			}
  1349  			if msglen < 0 {
  1350  				return ErrInvalidLengthConfig
  1351  			}
  1352  			postIndex := iNdEx + msglen
  1353  			if postIndex < 0 {
  1354  				return ErrInvalidLengthConfig
  1355  			}
  1356  			if postIndex > l {
  1357  				return io.ErrUnexpectedEOF
  1358  			}
  1359  			if m.Contexts == nil {
  1360  				m.Contexts = make(map[string]*Context)
  1361  			}
  1362  			var mapkey string
  1363  			var mapvalue *Context
  1364  			for iNdEx < postIndex {
  1365  				entryPreIndex := iNdEx
  1366  				var wire uint64
  1367  				for shift := uint(0); ; shift += 7 {
  1368  					if shift >= 64 {
  1369  						return ErrIntOverflowConfig
  1370  					}
  1371  					if iNdEx >= l {
  1372  						return io.ErrUnexpectedEOF
  1373  					}
  1374  					b := dAtA[iNdEx]
  1375  					iNdEx++
  1376  					wire |= uint64(b&0x7F) << shift
  1377  					if b < 0x80 {
  1378  						break
  1379  					}
  1380  				}
  1381  				fieldNum := int32(wire >> 3)
  1382  				if fieldNum == 1 {
  1383  					var stringLenmapkey uint64
  1384  					for shift := uint(0); ; shift += 7 {
  1385  						if shift >= 64 {
  1386  							return ErrIntOverflowConfig
  1387  						}
  1388  						if iNdEx >= l {
  1389  							return io.ErrUnexpectedEOF
  1390  						}
  1391  						b := dAtA[iNdEx]
  1392  						iNdEx++
  1393  						stringLenmapkey |= uint64(b&0x7F) << shift
  1394  						if b < 0x80 {
  1395  							break
  1396  						}
  1397  					}
  1398  					intStringLenmapkey := int(stringLenmapkey)
  1399  					if intStringLenmapkey < 0 {
  1400  						return ErrInvalidLengthConfig
  1401  					}
  1402  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1403  					if postStringIndexmapkey < 0 {
  1404  						return ErrInvalidLengthConfig
  1405  					}
  1406  					if postStringIndexmapkey > l {
  1407  						return io.ErrUnexpectedEOF
  1408  					}
  1409  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1410  					iNdEx = postStringIndexmapkey
  1411  				} else if fieldNum == 2 {
  1412  					var mapmsglen int
  1413  					for shift := uint(0); ; shift += 7 {
  1414  						if shift >= 64 {
  1415  							return ErrIntOverflowConfig
  1416  						}
  1417  						if iNdEx >= l {
  1418  							return io.ErrUnexpectedEOF
  1419  						}
  1420  						b := dAtA[iNdEx]
  1421  						iNdEx++
  1422  						mapmsglen |= int(b&0x7F) << shift
  1423  						if b < 0x80 {
  1424  							break
  1425  						}
  1426  					}
  1427  					if mapmsglen < 0 {
  1428  						return ErrInvalidLengthConfig
  1429  					}
  1430  					postmsgIndex := iNdEx + mapmsglen
  1431  					if postmsgIndex < 0 {
  1432  						return ErrInvalidLengthConfig
  1433  					}
  1434  					if postmsgIndex > l {
  1435  						return io.ErrUnexpectedEOF
  1436  					}
  1437  					mapvalue = &Context{}
  1438  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1439  						return err
  1440  					}
  1441  					iNdEx = postmsgIndex
  1442  				} else {
  1443  					iNdEx = entryPreIndex
  1444  					skippy, err := skipConfig(dAtA[iNdEx:])
  1445  					if err != nil {
  1446  						return err
  1447  					}
  1448  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  1449  						return ErrInvalidLengthConfig
  1450  					}
  1451  					if (iNdEx + skippy) > postIndex {
  1452  						return io.ErrUnexpectedEOF
  1453  					}
  1454  					iNdEx += skippy
  1455  				}
  1456  			}
  1457  			m.Contexts[mapkey] = mapvalue
  1458  			iNdEx = postIndex
  1459  		case 3:
  1460  			if wireType != 0 {
  1461  				return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  1462  			}
  1463  			var v int
  1464  			for shift := uint(0); ; shift += 7 {
  1465  				if shift >= 64 {
  1466  					return ErrIntOverflowConfig
  1467  				}
  1468  				if iNdEx >= l {
  1469  					return io.ErrUnexpectedEOF
  1470  				}
  1471  				b := dAtA[iNdEx]
  1472  				iNdEx++
  1473  				v |= int(b&0x7F) << shift
  1474  				if b < 0x80 {
  1475  					break
  1476  				}
  1477  			}
  1478  			m.Metrics = bool(v != 0)
  1479  		case 4:
  1480  			if wireType != 0 {
  1481  				return fmt.Errorf("proto: wrong wireType = %d for field MaxShellCompletions", wireType)
  1482  			}
  1483  			m.MaxShellCompletions = 0
  1484  			for shift := uint(0); ; shift += 7 {
  1485  				if shift >= 64 {
  1486  					return ErrIntOverflowConfig
  1487  				}
  1488  				if iNdEx >= l {
  1489  					return io.ErrUnexpectedEOF
  1490  				}
  1491  				b := dAtA[iNdEx]
  1492  				iNdEx++
  1493  				m.MaxShellCompletions |= int64(b&0x7F) << shift
  1494  				if b < 0x80 {
  1495  					break
  1496  				}
  1497  			}
  1498  		default:
  1499  			iNdEx = preIndex
  1500  			skippy, err := skipConfig(dAtA[iNdEx:])
  1501  			if err != nil {
  1502  				return err
  1503  			}
  1504  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1505  				return ErrInvalidLengthConfig
  1506  			}
  1507  			if (iNdEx + skippy) > l {
  1508  				return io.ErrUnexpectedEOF
  1509  			}
  1510  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1511  			iNdEx += skippy
  1512  		}
  1513  	}
  1514  
  1515  	if iNdEx > l {
  1516  		return io.ErrUnexpectedEOF
  1517  	}
  1518  	return nil
  1519  }
  1520  func (m *Context) Unmarshal(dAtA []byte) error {
  1521  	l := len(dAtA)
  1522  	iNdEx := 0
  1523  	for iNdEx < l {
  1524  		preIndex := iNdEx
  1525  		var wire uint64
  1526  		for shift := uint(0); ; shift += 7 {
  1527  			if shift >= 64 {
  1528  				return ErrIntOverflowConfig
  1529  			}
  1530  			if iNdEx >= l {
  1531  				return io.ErrUnexpectedEOF
  1532  			}
  1533  			b := dAtA[iNdEx]
  1534  			iNdEx++
  1535  			wire |= uint64(b&0x7F) << shift
  1536  			if b < 0x80 {
  1537  				break
  1538  			}
  1539  		}
  1540  		fieldNum := int32(wire >> 3)
  1541  		wireType := int(wire & 0x7)
  1542  		if wireType == 4 {
  1543  			return fmt.Errorf("proto: Context: wiretype end group for non-group")
  1544  		}
  1545  		if fieldNum <= 0 {
  1546  			return fmt.Errorf("proto: Context: illegal tag %d (wire type %d)", fieldNum, wire)
  1547  		}
  1548  		switch fieldNum {
  1549  		case 1:
  1550  			if wireType != 0 {
  1551  				return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
  1552  			}
  1553  			m.Source = 0
  1554  			for shift := uint(0); ; shift += 7 {
  1555  				if shift >= 64 {
  1556  					return ErrIntOverflowConfig
  1557  				}
  1558  				if iNdEx >= l {
  1559  					return io.ErrUnexpectedEOF
  1560  				}
  1561  				b := dAtA[iNdEx]
  1562  				iNdEx++
  1563  				m.Source |= ContextSource(b&0x7F) << shift
  1564  				if b < 0x80 {
  1565  					break
  1566  				}
  1567  			}
  1568  		case 2:
  1569  			if wireType != 2 {
  1570  				return fmt.Errorf("proto: wrong wireType = %d for field PachdAddress", wireType)
  1571  			}
  1572  			var stringLen uint64
  1573  			for shift := uint(0); ; shift += 7 {
  1574  				if shift >= 64 {
  1575  					return ErrIntOverflowConfig
  1576  				}
  1577  				if iNdEx >= l {
  1578  					return io.ErrUnexpectedEOF
  1579  				}
  1580  				b := dAtA[iNdEx]
  1581  				iNdEx++
  1582  				stringLen |= uint64(b&0x7F) << shift
  1583  				if b < 0x80 {
  1584  					break
  1585  				}
  1586  			}
  1587  			intStringLen := int(stringLen)
  1588  			if intStringLen < 0 {
  1589  				return ErrInvalidLengthConfig
  1590  			}
  1591  			postIndex := iNdEx + intStringLen
  1592  			if postIndex < 0 {
  1593  				return ErrInvalidLengthConfig
  1594  			}
  1595  			if postIndex > l {
  1596  				return io.ErrUnexpectedEOF
  1597  			}
  1598  			m.PachdAddress = string(dAtA[iNdEx:postIndex])
  1599  			iNdEx = postIndex
  1600  		case 3:
  1601  			if wireType != 2 {
  1602  				return fmt.Errorf("proto: wrong wireType = %d for field ServerCAs", wireType)
  1603  			}
  1604  			var stringLen uint64
  1605  			for shift := uint(0); ; shift += 7 {
  1606  				if shift >= 64 {
  1607  					return ErrIntOverflowConfig
  1608  				}
  1609  				if iNdEx >= l {
  1610  					return io.ErrUnexpectedEOF
  1611  				}
  1612  				b := dAtA[iNdEx]
  1613  				iNdEx++
  1614  				stringLen |= uint64(b&0x7F) << shift
  1615  				if b < 0x80 {
  1616  					break
  1617  				}
  1618  			}
  1619  			intStringLen := int(stringLen)
  1620  			if intStringLen < 0 {
  1621  				return ErrInvalidLengthConfig
  1622  			}
  1623  			postIndex := iNdEx + intStringLen
  1624  			if postIndex < 0 {
  1625  				return ErrInvalidLengthConfig
  1626  			}
  1627  			if postIndex > l {
  1628  				return io.ErrUnexpectedEOF
  1629  			}
  1630  			m.ServerCAs = string(dAtA[iNdEx:postIndex])
  1631  			iNdEx = postIndex
  1632  		case 4:
  1633  			if wireType != 2 {
  1634  				return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType)
  1635  			}
  1636  			var stringLen uint64
  1637  			for shift := uint(0); ; shift += 7 {
  1638  				if shift >= 64 {
  1639  					return ErrIntOverflowConfig
  1640  				}
  1641  				if iNdEx >= l {
  1642  					return io.ErrUnexpectedEOF
  1643  				}
  1644  				b := dAtA[iNdEx]
  1645  				iNdEx++
  1646  				stringLen |= uint64(b&0x7F) << shift
  1647  				if b < 0x80 {
  1648  					break
  1649  				}
  1650  			}
  1651  			intStringLen := int(stringLen)
  1652  			if intStringLen < 0 {
  1653  				return ErrInvalidLengthConfig
  1654  			}
  1655  			postIndex := iNdEx + intStringLen
  1656  			if postIndex < 0 {
  1657  				return ErrInvalidLengthConfig
  1658  			}
  1659  			if postIndex > l {
  1660  				return io.ErrUnexpectedEOF
  1661  			}
  1662  			m.SessionToken = string(dAtA[iNdEx:postIndex])
  1663  			iNdEx = postIndex
  1664  		case 5:
  1665  			if wireType != 2 {
  1666  				return fmt.Errorf("proto: wrong wireType = %d for field ActiveTransaction", wireType)
  1667  			}
  1668  			var stringLen uint64
  1669  			for shift := uint(0); ; shift += 7 {
  1670  				if shift >= 64 {
  1671  					return ErrIntOverflowConfig
  1672  				}
  1673  				if iNdEx >= l {
  1674  					return io.ErrUnexpectedEOF
  1675  				}
  1676  				b := dAtA[iNdEx]
  1677  				iNdEx++
  1678  				stringLen |= uint64(b&0x7F) << shift
  1679  				if b < 0x80 {
  1680  					break
  1681  				}
  1682  			}
  1683  			intStringLen := int(stringLen)
  1684  			if intStringLen < 0 {
  1685  				return ErrInvalidLengthConfig
  1686  			}
  1687  			postIndex := iNdEx + intStringLen
  1688  			if postIndex < 0 {
  1689  				return ErrInvalidLengthConfig
  1690  			}
  1691  			if postIndex > l {
  1692  				return io.ErrUnexpectedEOF
  1693  			}
  1694  			m.ActiveTransaction = string(dAtA[iNdEx:postIndex])
  1695  			iNdEx = postIndex
  1696  		case 6:
  1697  			if wireType != 2 {
  1698  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType)
  1699  			}
  1700  			var stringLen uint64
  1701  			for shift := uint(0); ; shift += 7 {
  1702  				if shift >= 64 {
  1703  					return ErrIntOverflowConfig
  1704  				}
  1705  				if iNdEx >= l {
  1706  					return io.ErrUnexpectedEOF
  1707  				}
  1708  				b := dAtA[iNdEx]
  1709  				iNdEx++
  1710  				stringLen |= uint64(b&0x7F) << shift
  1711  				if b < 0x80 {
  1712  					break
  1713  				}
  1714  			}
  1715  			intStringLen := int(stringLen)
  1716  			if intStringLen < 0 {
  1717  				return ErrInvalidLengthConfig
  1718  			}
  1719  			postIndex := iNdEx + intStringLen
  1720  			if postIndex < 0 {
  1721  				return ErrInvalidLengthConfig
  1722  			}
  1723  			if postIndex > l {
  1724  				return io.ErrUnexpectedEOF
  1725  			}
  1726  			m.ClusterName = string(dAtA[iNdEx:postIndex])
  1727  			iNdEx = postIndex
  1728  		case 7:
  1729  			if wireType != 2 {
  1730  				return fmt.Errorf("proto: wrong wireType = %d for field AuthInfo", wireType)
  1731  			}
  1732  			var stringLen uint64
  1733  			for shift := uint(0); ; shift += 7 {
  1734  				if shift >= 64 {
  1735  					return ErrIntOverflowConfig
  1736  				}
  1737  				if iNdEx >= l {
  1738  					return io.ErrUnexpectedEOF
  1739  				}
  1740  				b := dAtA[iNdEx]
  1741  				iNdEx++
  1742  				stringLen |= uint64(b&0x7F) << shift
  1743  				if b < 0x80 {
  1744  					break
  1745  				}
  1746  			}
  1747  			intStringLen := int(stringLen)
  1748  			if intStringLen < 0 {
  1749  				return ErrInvalidLengthConfig
  1750  			}
  1751  			postIndex := iNdEx + intStringLen
  1752  			if postIndex < 0 {
  1753  				return ErrInvalidLengthConfig
  1754  			}
  1755  			if postIndex > l {
  1756  				return io.ErrUnexpectedEOF
  1757  			}
  1758  			m.AuthInfo = string(dAtA[iNdEx:postIndex])
  1759  			iNdEx = postIndex
  1760  		case 8:
  1761  			if wireType != 2 {
  1762  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  1763  			}
  1764  			var stringLen uint64
  1765  			for shift := uint(0); ; shift += 7 {
  1766  				if shift >= 64 {
  1767  					return ErrIntOverflowConfig
  1768  				}
  1769  				if iNdEx >= l {
  1770  					return io.ErrUnexpectedEOF
  1771  				}
  1772  				b := dAtA[iNdEx]
  1773  				iNdEx++
  1774  				stringLen |= uint64(b&0x7F) << shift
  1775  				if b < 0x80 {
  1776  					break
  1777  				}
  1778  			}
  1779  			intStringLen := int(stringLen)
  1780  			if intStringLen < 0 {
  1781  				return ErrInvalidLengthConfig
  1782  			}
  1783  			postIndex := iNdEx + intStringLen
  1784  			if postIndex < 0 {
  1785  				return ErrInvalidLengthConfig
  1786  			}
  1787  			if postIndex > l {
  1788  				return io.ErrUnexpectedEOF
  1789  			}
  1790  			m.Namespace = string(dAtA[iNdEx:postIndex])
  1791  			iNdEx = postIndex
  1792  		case 10:
  1793  			if wireType != 2 {
  1794  				return fmt.Errorf("proto: wrong wireType = %d for field PortForwarders", wireType)
  1795  			}
  1796  			var msglen int
  1797  			for shift := uint(0); ; shift += 7 {
  1798  				if shift >= 64 {
  1799  					return ErrIntOverflowConfig
  1800  				}
  1801  				if iNdEx >= l {
  1802  					return io.ErrUnexpectedEOF
  1803  				}
  1804  				b := dAtA[iNdEx]
  1805  				iNdEx++
  1806  				msglen |= int(b&0x7F) << shift
  1807  				if b < 0x80 {
  1808  					break
  1809  				}
  1810  			}
  1811  			if msglen < 0 {
  1812  				return ErrInvalidLengthConfig
  1813  			}
  1814  			postIndex := iNdEx + msglen
  1815  			if postIndex < 0 {
  1816  				return ErrInvalidLengthConfig
  1817  			}
  1818  			if postIndex > l {
  1819  				return io.ErrUnexpectedEOF
  1820  			}
  1821  			if m.PortForwarders == nil {
  1822  				m.PortForwarders = make(map[string]uint32)
  1823  			}
  1824  			var mapkey string
  1825  			var mapvalue uint32
  1826  			for iNdEx < postIndex {
  1827  				entryPreIndex := iNdEx
  1828  				var wire uint64
  1829  				for shift := uint(0); ; shift += 7 {
  1830  					if shift >= 64 {
  1831  						return ErrIntOverflowConfig
  1832  					}
  1833  					if iNdEx >= l {
  1834  						return io.ErrUnexpectedEOF
  1835  					}
  1836  					b := dAtA[iNdEx]
  1837  					iNdEx++
  1838  					wire |= uint64(b&0x7F) << shift
  1839  					if b < 0x80 {
  1840  						break
  1841  					}
  1842  				}
  1843  				fieldNum := int32(wire >> 3)
  1844  				if fieldNum == 1 {
  1845  					var stringLenmapkey uint64
  1846  					for shift := uint(0); ; shift += 7 {
  1847  						if shift >= 64 {
  1848  							return ErrIntOverflowConfig
  1849  						}
  1850  						if iNdEx >= l {
  1851  							return io.ErrUnexpectedEOF
  1852  						}
  1853  						b := dAtA[iNdEx]
  1854  						iNdEx++
  1855  						stringLenmapkey |= uint64(b&0x7F) << shift
  1856  						if b < 0x80 {
  1857  							break
  1858  						}
  1859  					}
  1860  					intStringLenmapkey := int(stringLenmapkey)
  1861  					if intStringLenmapkey < 0 {
  1862  						return ErrInvalidLengthConfig
  1863  					}
  1864  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1865  					if postStringIndexmapkey < 0 {
  1866  						return ErrInvalidLengthConfig
  1867  					}
  1868  					if postStringIndexmapkey > l {
  1869  						return io.ErrUnexpectedEOF
  1870  					}
  1871  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1872  					iNdEx = postStringIndexmapkey
  1873  				} else if fieldNum == 2 {
  1874  					for shift := uint(0); ; shift += 7 {
  1875  						if shift >= 64 {
  1876  							return ErrIntOverflowConfig
  1877  						}
  1878  						if iNdEx >= l {
  1879  							return io.ErrUnexpectedEOF
  1880  						}
  1881  						b := dAtA[iNdEx]
  1882  						iNdEx++
  1883  						mapvalue |= uint32(b&0x7F) << shift
  1884  						if b < 0x80 {
  1885  							break
  1886  						}
  1887  					}
  1888  				} else {
  1889  					iNdEx = entryPreIndex
  1890  					skippy, err := skipConfig(dAtA[iNdEx:])
  1891  					if err != nil {
  1892  						return err
  1893  					}
  1894  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  1895  						return ErrInvalidLengthConfig
  1896  					}
  1897  					if (iNdEx + skippy) > postIndex {
  1898  						return io.ErrUnexpectedEOF
  1899  					}
  1900  					iNdEx += skippy
  1901  				}
  1902  			}
  1903  			m.PortForwarders[mapkey] = mapvalue
  1904  			iNdEx = postIndex
  1905  		case 11:
  1906  			if wireType != 2 {
  1907  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterDeploymentID", wireType)
  1908  			}
  1909  			var stringLen uint64
  1910  			for shift := uint(0); ; shift += 7 {
  1911  				if shift >= 64 {
  1912  					return ErrIntOverflowConfig
  1913  				}
  1914  				if iNdEx >= l {
  1915  					return io.ErrUnexpectedEOF
  1916  				}
  1917  				b := dAtA[iNdEx]
  1918  				iNdEx++
  1919  				stringLen |= uint64(b&0x7F) << shift
  1920  				if b < 0x80 {
  1921  					break
  1922  				}
  1923  			}
  1924  			intStringLen := int(stringLen)
  1925  			if intStringLen < 0 {
  1926  				return ErrInvalidLengthConfig
  1927  			}
  1928  			postIndex := iNdEx + intStringLen
  1929  			if postIndex < 0 {
  1930  				return ErrInvalidLengthConfig
  1931  			}
  1932  			if postIndex > l {
  1933  				return io.ErrUnexpectedEOF
  1934  			}
  1935  			m.ClusterDeploymentID = string(dAtA[iNdEx:postIndex])
  1936  			iNdEx = postIndex
  1937  		default:
  1938  			iNdEx = preIndex
  1939  			skippy, err := skipConfig(dAtA[iNdEx:])
  1940  			if err != nil {
  1941  				return err
  1942  			}
  1943  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1944  				return ErrInvalidLengthConfig
  1945  			}
  1946  			if (iNdEx + skippy) > l {
  1947  				return io.ErrUnexpectedEOF
  1948  			}
  1949  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1950  			iNdEx += skippy
  1951  		}
  1952  	}
  1953  
  1954  	if iNdEx > l {
  1955  		return io.ErrUnexpectedEOF
  1956  	}
  1957  	return nil
  1958  }
  1959  func skipConfig(dAtA []byte) (n int, err error) {
  1960  	l := len(dAtA)
  1961  	iNdEx := 0
  1962  	depth := 0
  1963  	for iNdEx < l {
  1964  		var wire uint64
  1965  		for shift := uint(0); ; shift += 7 {
  1966  			if shift >= 64 {
  1967  				return 0, ErrIntOverflowConfig
  1968  			}
  1969  			if iNdEx >= l {
  1970  				return 0, io.ErrUnexpectedEOF
  1971  			}
  1972  			b := dAtA[iNdEx]
  1973  			iNdEx++
  1974  			wire |= (uint64(b) & 0x7F) << shift
  1975  			if b < 0x80 {
  1976  				break
  1977  			}
  1978  		}
  1979  		wireType := int(wire & 0x7)
  1980  		switch wireType {
  1981  		case 0:
  1982  			for shift := uint(0); ; shift += 7 {
  1983  				if shift >= 64 {
  1984  					return 0, ErrIntOverflowConfig
  1985  				}
  1986  				if iNdEx >= l {
  1987  					return 0, io.ErrUnexpectedEOF
  1988  				}
  1989  				iNdEx++
  1990  				if dAtA[iNdEx-1] < 0x80 {
  1991  					break
  1992  				}
  1993  			}
  1994  		case 1:
  1995  			iNdEx += 8
  1996  		case 2:
  1997  			var length int
  1998  			for shift := uint(0); ; shift += 7 {
  1999  				if shift >= 64 {
  2000  					return 0, ErrIntOverflowConfig
  2001  				}
  2002  				if iNdEx >= l {
  2003  					return 0, io.ErrUnexpectedEOF
  2004  				}
  2005  				b := dAtA[iNdEx]
  2006  				iNdEx++
  2007  				length |= (int(b) & 0x7F) << shift
  2008  				if b < 0x80 {
  2009  					break
  2010  				}
  2011  			}
  2012  			if length < 0 {
  2013  				return 0, ErrInvalidLengthConfig
  2014  			}
  2015  			iNdEx += length
  2016  		case 3:
  2017  			depth++
  2018  		case 4:
  2019  			if depth == 0 {
  2020  				return 0, ErrUnexpectedEndOfGroupConfig
  2021  			}
  2022  			depth--
  2023  		case 5:
  2024  			iNdEx += 4
  2025  		default:
  2026  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2027  		}
  2028  		if iNdEx < 0 {
  2029  			return 0, ErrInvalidLengthConfig
  2030  		}
  2031  		if depth == 0 {
  2032  			return iNdEx, nil
  2033  		}
  2034  	}
  2035  	return 0, io.ErrUnexpectedEOF
  2036  }
  2037  
  2038  var (
  2039  	ErrInvalidLengthConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
  2040  	ErrIntOverflowConfig          = fmt.Errorf("proto: integer overflow")
  2041  	ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group")
  2042  )