github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/logservice/logservice.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: logservice.proto
     3  
     4  package logservice
     5  
     6  import (
     7  	encoding_binary "encoding/binary"
     8  	fmt "fmt"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  
    13  	_ "github.com/gogo/protobuf/gogoproto"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	metadata "github.com/matrixorigin/matrixone/pkg/pb/metadata"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type UpdateType int32
    30  
    31  const (
    32  	LeaseHolderIDUpdate UpdateType = 0
    33  	TruncateLSNUpdate   UpdateType = 1
    34  	UserEntryUpdate     UpdateType = 2
    35  	TSOUpdate           UpdateType = 3
    36  )
    37  
    38  var UpdateType_name = map[int32]string{
    39  	0: "LeaseHolderIDUpdate",
    40  	1: "TruncateLSNUpdate",
    41  	2: "UserEntryUpdate",
    42  	3: "TSOUpdate",
    43  }
    44  
    45  var UpdateType_value = map[string]int32{
    46  	"LeaseHolderIDUpdate": 0,
    47  	"TruncateLSNUpdate":   1,
    48  	"UserEntryUpdate":     2,
    49  	"TSOUpdate":           3,
    50  }
    51  
    52  func (x UpdateType) String() string {
    53  	return proto.EnumName(UpdateType_name, int32(x))
    54  }
    55  
    56  func (UpdateType) EnumDescriptor() ([]byte, []int) {
    57  	return fileDescriptor_fd1040c5381ab5a7, []int{0}
    58  }
    59  
    60  type NodeState int32
    61  
    62  const (
    63  	NormalState  NodeState = 0
    64  	TimeoutState NodeState = 1
    65  )
    66  
    67  var NodeState_name = map[int32]string{
    68  	0: "NormalState",
    69  	1: "TimeoutState",
    70  }
    71  
    72  var NodeState_value = map[string]int32{
    73  	"NormalState":  0,
    74  	"TimeoutState": 1,
    75  }
    76  
    77  func (x NodeState) String() string {
    78  	return proto.EnumName(NodeState_name, int32(x))
    79  }
    80  
    81  func (NodeState) EnumDescriptor() ([]byte, []int) {
    82  	return fileDescriptor_fd1040c5381ab5a7, []int{1}
    83  }
    84  
    85  type MethodType int32
    86  
    87  const (
    88  	TSO_UPDATE           MethodType = 0
    89  	APPEND               MethodType = 1
    90  	READ                 MethodType = 2
    91  	TRUNCATE             MethodType = 3
    92  	GET_TRUNCATE         MethodType = 4
    93  	CONNECT              MethodType = 5
    94  	CONNECT_RO           MethodType = 6
    95  	LOG_HEARTBEAT        MethodType = 7
    96  	CN_HEARTBEAT         MethodType = 8
    97  	TN_HEARTBEAT         MethodType = 9
    98  	CHECK_HAKEEPER       MethodType = 10
    99  	GET_CLUSTER_DETAILS  MethodType = 11
   100  	GET_SHARD_INFO       MethodType = 12
   101  	CN_ALLOCATE_ID       MethodType = 13
   102  	GET_CLUSTER_STATE    MethodType = 14
   103  	UPDATE_CN_LABEL      MethodType = 15
   104  	UPDATE_CN_WORK_STATE MethodType = 16
   105  	PATCH_CN_STORE       MethodType = 17
   106  	DELETE_CN_STORE      MethodType = 18
   107  	PROXY_HEARTBEAT      MethodType = 19
   108  )
   109  
   110  var MethodType_name = map[int32]string{
   111  	0:  "TSO_UPDATE",
   112  	1:  "APPEND",
   113  	2:  "READ",
   114  	3:  "TRUNCATE",
   115  	4:  "GET_TRUNCATE",
   116  	5:  "CONNECT",
   117  	6:  "CONNECT_RO",
   118  	7:  "LOG_HEARTBEAT",
   119  	8:  "CN_HEARTBEAT",
   120  	9:  "TN_HEARTBEAT",
   121  	10: "CHECK_HAKEEPER",
   122  	11: "GET_CLUSTER_DETAILS",
   123  	12: "GET_SHARD_INFO",
   124  	13: "CN_ALLOCATE_ID",
   125  	14: "GET_CLUSTER_STATE",
   126  	15: "UPDATE_CN_LABEL",
   127  	16: "UPDATE_CN_WORK_STATE",
   128  	17: "PATCH_CN_STORE",
   129  	18: "DELETE_CN_STORE",
   130  	19: "PROXY_HEARTBEAT",
   131  }
   132  
   133  var MethodType_value = map[string]int32{
   134  	"TSO_UPDATE":           0,
   135  	"APPEND":               1,
   136  	"READ":                 2,
   137  	"TRUNCATE":             3,
   138  	"GET_TRUNCATE":         4,
   139  	"CONNECT":              5,
   140  	"CONNECT_RO":           6,
   141  	"LOG_HEARTBEAT":        7,
   142  	"CN_HEARTBEAT":         8,
   143  	"TN_HEARTBEAT":         9,
   144  	"CHECK_HAKEEPER":       10,
   145  	"GET_CLUSTER_DETAILS":  11,
   146  	"GET_SHARD_INFO":       12,
   147  	"CN_ALLOCATE_ID":       13,
   148  	"GET_CLUSTER_STATE":    14,
   149  	"UPDATE_CN_LABEL":      15,
   150  	"UPDATE_CN_WORK_STATE": 16,
   151  	"PATCH_CN_STORE":       17,
   152  	"DELETE_CN_STORE":      18,
   153  	"PROXY_HEARTBEAT":      19,
   154  }
   155  
   156  func (x MethodType) String() string {
   157  	return proto.EnumName(MethodType_name, int32(x))
   158  }
   159  
   160  func (MethodType) EnumDescriptor() ([]byte, []int) {
   161  	return fileDescriptor_fd1040c5381ab5a7, []int{2}
   162  }
   163  
   164  type RecordType int32
   165  
   166  const (
   167  	UserRecord    RecordType = 0
   168  	Internal      RecordType = 1
   169  	LeaseUpdate   RecordType = 2
   170  	LeaseRejected RecordType = 3
   171  )
   172  
   173  var RecordType_name = map[int32]string{
   174  	0: "UserRecord",
   175  	1: "Internal",
   176  	2: "LeaseUpdate",
   177  	3: "LeaseRejected",
   178  }
   179  
   180  var RecordType_value = map[string]int32{
   181  	"UserRecord":    0,
   182  	"Internal":      1,
   183  	"LeaseUpdate":   2,
   184  	"LeaseRejected": 3,
   185  }
   186  
   187  func (x RecordType) String() string {
   188  	return proto.EnumName(RecordType_name, int32(x))
   189  }
   190  
   191  func (RecordType) EnumDescriptor() ([]byte, []int) {
   192  	return fileDescriptor_fd1040c5381ab5a7, []int{3}
   193  }
   194  
   195  type CNLabelOp int32
   196  
   197  const (
   198  	SetLabel    CNLabelOp = 0
   199  	DeleteLabel CNLabelOp = 1
   200  )
   201  
   202  var CNLabelOp_name = map[int32]string{
   203  	0: "SetLabel",
   204  	1: "DeleteLabel",
   205  }
   206  
   207  var CNLabelOp_value = map[string]int32{
   208  	"SetLabel":    0,
   209  	"DeleteLabel": 1,
   210  }
   211  
   212  func (x CNLabelOp) String() string {
   213  	return proto.EnumName(CNLabelOp_name, int32(x))
   214  }
   215  
   216  func (CNLabelOp) EnumDescriptor() ([]byte, []int) {
   217  	return fileDescriptor_fd1040c5381ab5a7, []int{4}
   218  }
   219  
   220  type HAKeeperUpdateType int32
   221  
   222  const (
   223  	TickUpdate                  HAKeeperUpdateType = 0
   224  	CNHeartbeatUpdate           HAKeeperUpdateType = 1
   225  	TNHeartbeatUpdate           HAKeeperUpdateType = 2
   226  	LogHeartbeatUpdate          HAKeeperUpdateType = 3
   227  	GetIDUpdate                 HAKeeperUpdateType = 4
   228  	ScheduleCommandUpdate       HAKeeperUpdateType = 5
   229  	SetStateUpdate              HAKeeperUpdateType = 6
   230  	InitialClusterUpdate        HAKeeperUpdateType = 7
   231  	SetTaskSchedulerStateUpdate HAKeeperUpdateType = 8
   232  	SetTaskTableUserUpdate      HAKeeperUpdateType = 9
   233  	UpdateCNLabel               HAKeeperUpdateType = 10
   234  	UpdateCNWorkState           HAKeeperUpdateType = 11
   235  	PatchCNStore                HAKeeperUpdateType = 12
   236  	RemoveCNStore               HAKeeperUpdateType = 13
   237  	ProxyHeartbeatUpdate        HAKeeperUpdateType = 14
   238  )
   239  
   240  var HAKeeperUpdateType_name = map[int32]string{
   241  	0:  "TickUpdate",
   242  	1:  "CNHeartbeatUpdate",
   243  	2:  "TNHeartbeatUpdate",
   244  	3:  "LogHeartbeatUpdate",
   245  	4:  "GetIDUpdate",
   246  	5:  "ScheduleCommandUpdate",
   247  	6:  "SetStateUpdate",
   248  	7:  "InitialClusterUpdate",
   249  	8:  "SetTaskSchedulerStateUpdate",
   250  	9:  "SetTaskTableUserUpdate",
   251  	10: "UpdateCNLabel",
   252  	11: "UpdateCNWorkState",
   253  	12: "PatchCNStore",
   254  	13: "RemoveCNStore",
   255  	14: "ProxyHeartbeatUpdate",
   256  }
   257  
   258  var HAKeeperUpdateType_value = map[string]int32{
   259  	"TickUpdate":                  0,
   260  	"CNHeartbeatUpdate":           1,
   261  	"TNHeartbeatUpdate":           2,
   262  	"LogHeartbeatUpdate":          3,
   263  	"GetIDUpdate":                 4,
   264  	"ScheduleCommandUpdate":       5,
   265  	"SetStateUpdate":              6,
   266  	"InitialClusterUpdate":        7,
   267  	"SetTaskSchedulerStateUpdate": 8,
   268  	"SetTaskTableUserUpdate":      9,
   269  	"UpdateCNLabel":               10,
   270  	"UpdateCNWorkState":           11,
   271  	"PatchCNStore":                12,
   272  	"RemoveCNStore":               13,
   273  	"ProxyHeartbeatUpdate":        14,
   274  }
   275  
   276  func (x HAKeeperUpdateType) String() string {
   277  	return proto.EnumName(HAKeeperUpdateType_name, int32(x))
   278  }
   279  
   280  func (HAKeeperUpdateType) EnumDescriptor() ([]byte, []int) {
   281  	return fileDescriptor_fd1040c5381ab5a7, []int{5}
   282  }
   283  
   284  // HAKeeperState state transition diagram
   285  //
   286  //	          HAKeeperCreated
   287  //	                │
   288  //	                │ cluster init info set
   289  //	                ▼
   290  //	      HAKeeperBootstrapping
   291  //	                │
   292  //	                │ init schedule commands received
   293  //	                ▼
   294  //	HAKeeperBootstrapCommandsReceived
   295  //	                │
   296  //	                │
   297  //	    ┌───────────┴───────────┐
   298  //	    │ time out              │ bootstrap successfully
   299  //	    ▼                       ▼
   300  //
   301  // HAKeeperBootstrapFailed     HAKeeperRunning
   302  type HAKeeperState int32
   303  
   304  const (
   305  	HAKeeperCreated                   HAKeeperState = 0
   306  	HAKeeperBootstrapping             HAKeeperState = 1
   307  	HAKeeperBootstrapCommandsReceived HAKeeperState = 2
   308  	HAKeeperBootstrapFailed           HAKeeperState = 3
   309  	HAKeeperRunning                   HAKeeperState = 4
   310  )
   311  
   312  var HAKeeperState_name = map[int32]string{
   313  	0: "HAKeeperCreated",
   314  	1: "HAKeeperBootstrapping",
   315  	2: "HAKeeperBootstrapCommandsReceived",
   316  	3: "HAKeeperBootstrapFailed",
   317  	4: "HAKeeperRunning",
   318  }
   319  
   320  var HAKeeperState_value = map[string]int32{
   321  	"HAKeeperCreated":                   0,
   322  	"HAKeeperBootstrapping":             1,
   323  	"HAKeeperBootstrapCommandsReceived": 2,
   324  	"HAKeeperBootstrapFailed":           3,
   325  	"HAKeeperRunning":                   4,
   326  }
   327  
   328  func (x HAKeeperState) String() string {
   329  	return proto.EnumName(HAKeeperState_name, int32(x))
   330  }
   331  
   332  func (HAKeeperState) EnumDescriptor() ([]byte, []int) {
   333  	return fileDescriptor_fd1040c5381ab5a7, []int{6}
   334  }
   335  
   336  // TaskSchedulerState state transition diagram
   337  //
   338  //	TaskSchedulerCreated
   339  //	         │
   340  //	         │  setTaskTableUser()
   341  //	         ▼
   342  //	TaskSchedulerStarted
   343  //	        │ ▲
   344  //	        │ │
   345  //	        ▼ │
   346  //	 TaskSchedulerStopped
   347  type TaskSchedulerState int32
   348  
   349  const (
   350  	TaskSchedulerCreated TaskSchedulerState = 0
   351  	TaskSchedulerRunning TaskSchedulerState = 1
   352  	TaskSchedulerStopped TaskSchedulerState = 2
   353  )
   354  
   355  var TaskSchedulerState_name = map[int32]string{
   356  	0: "TaskSchedulerCreated",
   357  	1: "TaskSchedulerRunning",
   358  	2: "TaskSchedulerStopped",
   359  }
   360  
   361  var TaskSchedulerState_value = map[string]int32{
   362  	"TaskSchedulerCreated": 0,
   363  	"TaskSchedulerRunning": 1,
   364  	"TaskSchedulerStopped": 2,
   365  }
   366  
   367  func (x TaskSchedulerState) String() string {
   368  	return proto.EnumName(TaskSchedulerState_name, int32(x))
   369  }
   370  
   371  func (TaskSchedulerState) EnumDescriptor() ([]byte, []int) {
   372  	return fileDescriptor_fd1040c5381ab5a7, []int{7}
   373  }
   374  
   375  // ConfigChangeType indicates config change command type.
   376  type ConfigChangeType int32
   377  
   378  const (
   379  	AddReplica    ConfigChangeType = 0
   380  	RemoveReplica ConfigChangeType = 1
   381  	StartReplica  ConfigChangeType = 2
   382  	StopReplica   ConfigChangeType = 3
   383  	KillZombie    ConfigChangeType = 4
   384  )
   385  
   386  var ConfigChangeType_name = map[int32]string{
   387  	0: "AddReplica",
   388  	1: "RemoveReplica",
   389  	2: "StartReplica",
   390  	3: "StopReplica",
   391  	4: "KillZombie",
   392  }
   393  
   394  var ConfigChangeType_value = map[string]int32{
   395  	"AddReplica":    0,
   396  	"RemoveReplica": 1,
   397  	"StartReplica":  2,
   398  	"StopReplica":   3,
   399  	"KillZombie":    4,
   400  }
   401  
   402  func (x ConfigChangeType) String() string {
   403  	return proto.EnumName(ConfigChangeType_name, int32(x))
   404  }
   405  
   406  func (ConfigChangeType) EnumDescriptor() ([]byte, []int) {
   407  	return fileDescriptor_fd1040c5381ab5a7, []int{8}
   408  }
   409  
   410  // ServiceType specifies type of service
   411  type ServiceType int32
   412  
   413  const (
   414  	LogService   ServiceType = 0
   415  	TNService    ServiceType = 1
   416  	CNService    ServiceType = 2
   417  	ProxyService ServiceType = 3
   418  )
   419  
   420  var ServiceType_name = map[int32]string{
   421  	0: "LogService",
   422  	1: "TNService",
   423  	2: "CNService",
   424  	3: "ProxyService",
   425  }
   426  
   427  var ServiceType_value = map[string]int32{
   428  	"LogService":   0,
   429  	"TNService":    1,
   430  	"CNService":    2,
   431  	"ProxyService": 3,
   432  }
   433  
   434  func (x ServiceType) String() string {
   435  	return proto.EnumName(ServiceType_name, int32(x))
   436  }
   437  
   438  func (ServiceType) EnumDescriptor() ([]byte, []int) {
   439  	return fileDescriptor_fd1040c5381ab5a7, []int{9}
   440  }
   441  
   442  type CNStore struct {
   443  	UUID                 string                        `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
   444  	ServiceAddress       string                        `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
   445  	SQLAddress           string                        `protobuf:"bytes,3,opt,name=SQLAddress,proto3" json:"SQLAddress,omitempty"`
   446  	LockServiceAddress   string                        `protobuf:"bytes,4,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
   447  	Role                 metadata.CNRole               `protobuf:"varint,6,opt,name=Role,proto3,enum=metadata.CNRole" json:"Role,omitempty"`
   448  	Tick                 uint64                        `protobuf:"varint,7,opt,name=Tick,proto3" json:"Tick,omitempty"`
   449  	State                NodeState                     `protobuf:"varint,8,opt,name=State,proto3,enum=logservice.NodeState" json:"State,omitempty"`
   450  	Labels               map[string]metadata.LabelList `protobuf:"bytes,9,rep,name=Labels,proto3" json:"Labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   451  	WorkState            metadata.WorkState            `protobuf:"varint,10,opt,name=WorkState,proto3,enum=metadata.WorkState" json:"WorkState,omitempty"`
   452  	QueryAddress         string                        `protobuf:"bytes,11,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
   453  	ConfigData           *ConfigData                   `protobuf:"bytes,12,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
   454  	Resource             Resource                      `protobuf:"bytes,13,opt,name=Resource,proto3" json:"Resource"`
   455  	UpTime               int64                         `protobuf:"varint,14,opt,name=UpTime,proto3" json:"UpTime,omitempty"`
   456  	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
   457  	XXX_unrecognized     []byte                        `json:"-"`
   458  	XXX_sizecache        int32                         `json:"-"`
   459  }
   460  
   461  func (m *CNStore) Reset()         { *m = CNStore{} }
   462  func (m *CNStore) String() string { return proto.CompactTextString(m) }
   463  func (*CNStore) ProtoMessage()    {}
   464  func (*CNStore) Descriptor() ([]byte, []int) {
   465  	return fileDescriptor_fd1040c5381ab5a7, []int{0}
   466  }
   467  func (m *CNStore) XXX_Unmarshal(b []byte) error {
   468  	return m.Unmarshal(b)
   469  }
   470  func (m *CNStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   471  	if deterministic {
   472  		return xxx_messageInfo_CNStore.Marshal(b, m, deterministic)
   473  	} else {
   474  		b = b[:cap(b)]
   475  		n, err := m.MarshalToSizedBuffer(b)
   476  		if err != nil {
   477  			return nil, err
   478  		}
   479  		return b[:n], nil
   480  	}
   481  }
   482  func (m *CNStore) XXX_Merge(src proto.Message) {
   483  	xxx_messageInfo_CNStore.Merge(m, src)
   484  }
   485  func (m *CNStore) XXX_Size() int {
   486  	return m.Size()
   487  }
   488  func (m *CNStore) XXX_DiscardUnknown() {
   489  	xxx_messageInfo_CNStore.DiscardUnknown(m)
   490  }
   491  
   492  var xxx_messageInfo_CNStore proto.InternalMessageInfo
   493  
   494  func (m *CNStore) GetUUID() string {
   495  	if m != nil {
   496  		return m.UUID
   497  	}
   498  	return ""
   499  }
   500  
   501  func (m *CNStore) GetServiceAddress() string {
   502  	if m != nil {
   503  		return m.ServiceAddress
   504  	}
   505  	return ""
   506  }
   507  
   508  func (m *CNStore) GetSQLAddress() string {
   509  	if m != nil {
   510  		return m.SQLAddress
   511  	}
   512  	return ""
   513  }
   514  
   515  func (m *CNStore) GetLockServiceAddress() string {
   516  	if m != nil {
   517  		return m.LockServiceAddress
   518  	}
   519  	return ""
   520  }
   521  
   522  func (m *CNStore) GetRole() metadata.CNRole {
   523  	if m != nil {
   524  		return m.Role
   525  	}
   526  	return metadata.CNRole_TP
   527  }
   528  
   529  func (m *CNStore) GetTick() uint64 {
   530  	if m != nil {
   531  		return m.Tick
   532  	}
   533  	return 0
   534  }
   535  
   536  func (m *CNStore) GetState() NodeState {
   537  	if m != nil {
   538  		return m.State
   539  	}
   540  	return NormalState
   541  }
   542  
   543  func (m *CNStore) GetLabels() map[string]metadata.LabelList {
   544  	if m != nil {
   545  		return m.Labels
   546  	}
   547  	return nil
   548  }
   549  
   550  func (m *CNStore) GetWorkState() metadata.WorkState {
   551  	if m != nil {
   552  		return m.WorkState
   553  	}
   554  	return metadata.WorkState_Unknown
   555  }
   556  
   557  func (m *CNStore) GetQueryAddress() string {
   558  	if m != nil {
   559  		return m.QueryAddress
   560  	}
   561  	return ""
   562  }
   563  
   564  func (m *CNStore) GetConfigData() *ConfigData {
   565  	if m != nil {
   566  		return m.ConfigData
   567  	}
   568  	return nil
   569  }
   570  
   571  func (m *CNStore) GetResource() Resource {
   572  	if m != nil {
   573  		return m.Resource
   574  	}
   575  	return Resource{}
   576  }
   577  
   578  func (m *CNStore) GetUpTime() int64 {
   579  	if m != nil {
   580  		return m.UpTime
   581  	}
   582  	return 0
   583  }
   584  
   585  type TNStore struct {
   586  	UUID           string        `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
   587  	ServiceAddress string        `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
   588  	Tick           uint64        `protobuf:"varint,3,opt,name=Tick,proto3" json:"Tick,omitempty"`
   589  	State          NodeState     `protobuf:"varint,4,opt,name=State,proto3,enum=logservice.NodeState" json:"State,omitempty"`
   590  	Shards         []TNShardInfo `protobuf:"bytes,5,rep,name=Shards,proto3" json:"Shards"`
   591  	// Server address for logtail push model
   592  	LogtailServerAddress string `protobuf:"bytes,6,opt,name=LogtailServerAddress,proto3" json:"LogtailServerAddress,omitempty"`
   593  	// LockServiceAddress lock service address for lock table allocator
   594  	LockServiceAddress string      `protobuf:"bytes,7,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
   595  	ConfigData         *ConfigData `protobuf:"bytes,9,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
   596  	// QueryAddress is the address of the queryservice on tn
   597  	QueryAddress         string   `protobuf:"bytes,10,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
   598  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   599  	XXX_unrecognized     []byte   `json:"-"`
   600  	XXX_sizecache        int32    `json:"-"`
   601  }
   602  
   603  func (m *TNStore) Reset()         { *m = TNStore{} }
   604  func (m *TNStore) String() string { return proto.CompactTextString(m) }
   605  func (*TNStore) ProtoMessage()    {}
   606  func (*TNStore) Descriptor() ([]byte, []int) {
   607  	return fileDescriptor_fd1040c5381ab5a7, []int{1}
   608  }
   609  func (m *TNStore) XXX_Unmarshal(b []byte) error {
   610  	return m.Unmarshal(b)
   611  }
   612  func (m *TNStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   613  	if deterministic {
   614  		return xxx_messageInfo_TNStore.Marshal(b, m, deterministic)
   615  	} else {
   616  		b = b[:cap(b)]
   617  		n, err := m.MarshalToSizedBuffer(b)
   618  		if err != nil {
   619  			return nil, err
   620  		}
   621  		return b[:n], nil
   622  	}
   623  }
   624  func (m *TNStore) XXX_Merge(src proto.Message) {
   625  	xxx_messageInfo_TNStore.Merge(m, src)
   626  }
   627  func (m *TNStore) XXX_Size() int {
   628  	return m.Size()
   629  }
   630  func (m *TNStore) XXX_DiscardUnknown() {
   631  	xxx_messageInfo_TNStore.DiscardUnknown(m)
   632  }
   633  
   634  var xxx_messageInfo_TNStore proto.InternalMessageInfo
   635  
   636  func (m *TNStore) GetUUID() string {
   637  	if m != nil {
   638  		return m.UUID
   639  	}
   640  	return ""
   641  }
   642  
   643  func (m *TNStore) GetServiceAddress() string {
   644  	if m != nil {
   645  		return m.ServiceAddress
   646  	}
   647  	return ""
   648  }
   649  
   650  func (m *TNStore) GetTick() uint64 {
   651  	if m != nil {
   652  		return m.Tick
   653  	}
   654  	return 0
   655  }
   656  
   657  func (m *TNStore) GetState() NodeState {
   658  	if m != nil {
   659  		return m.State
   660  	}
   661  	return NormalState
   662  }
   663  
   664  func (m *TNStore) GetShards() []TNShardInfo {
   665  	if m != nil {
   666  		return m.Shards
   667  	}
   668  	return nil
   669  }
   670  
   671  func (m *TNStore) GetLogtailServerAddress() string {
   672  	if m != nil {
   673  		return m.LogtailServerAddress
   674  	}
   675  	return ""
   676  }
   677  
   678  func (m *TNStore) GetLockServiceAddress() string {
   679  	if m != nil {
   680  		return m.LockServiceAddress
   681  	}
   682  	return ""
   683  }
   684  
   685  func (m *TNStore) GetConfigData() *ConfigData {
   686  	if m != nil {
   687  		return m.ConfigData
   688  	}
   689  	return nil
   690  }
   691  
   692  func (m *TNStore) GetQueryAddress() string {
   693  	if m != nil {
   694  		return m.QueryAddress
   695  	}
   696  	return ""
   697  }
   698  
   699  type LogStore struct {
   700  	UUID                 string           `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
   701  	ServiceAddress       string           `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
   702  	Tick                 uint64           `protobuf:"varint,3,opt,name=Tick,proto3" json:"Tick,omitempty"`
   703  	State                NodeState        `protobuf:"varint,4,opt,name=State,proto3,enum=logservice.NodeState" json:"State,omitempty"`
   704  	Replicas             []LogReplicaInfo `protobuf:"bytes,5,rep,name=Replicas,proto3" json:"Replicas"`
   705  	ConfigData           *ConfigData      `protobuf:"bytes,6,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
   706  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   707  	XXX_unrecognized     []byte           `json:"-"`
   708  	XXX_sizecache        int32            `json:"-"`
   709  }
   710  
   711  func (m *LogStore) Reset()         { *m = LogStore{} }
   712  func (m *LogStore) String() string { return proto.CompactTextString(m) }
   713  func (*LogStore) ProtoMessage()    {}
   714  func (*LogStore) Descriptor() ([]byte, []int) {
   715  	return fileDescriptor_fd1040c5381ab5a7, []int{2}
   716  }
   717  func (m *LogStore) XXX_Unmarshal(b []byte) error {
   718  	return m.Unmarshal(b)
   719  }
   720  func (m *LogStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   721  	if deterministic {
   722  		return xxx_messageInfo_LogStore.Marshal(b, m, deterministic)
   723  	} else {
   724  		b = b[:cap(b)]
   725  		n, err := m.MarshalToSizedBuffer(b)
   726  		if err != nil {
   727  			return nil, err
   728  		}
   729  		return b[:n], nil
   730  	}
   731  }
   732  func (m *LogStore) XXX_Merge(src proto.Message) {
   733  	xxx_messageInfo_LogStore.Merge(m, src)
   734  }
   735  func (m *LogStore) XXX_Size() int {
   736  	return m.Size()
   737  }
   738  func (m *LogStore) XXX_DiscardUnknown() {
   739  	xxx_messageInfo_LogStore.DiscardUnknown(m)
   740  }
   741  
   742  var xxx_messageInfo_LogStore proto.InternalMessageInfo
   743  
   744  func (m *LogStore) GetUUID() string {
   745  	if m != nil {
   746  		return m.UUID
   747  	}
   748  	return ""
   749  }
   750  
   751  func (m *LogStore) GetServiceAddress() string {
   752  	if m != nil {
   753  		return m.ServiceAddress
   754  	}
   755  	return ""
   756  }
   757  
   758  func (m *LogStore) GetTick() uint64 {
   759  	if m != nil {
   760  		return m.Tick
   761  	}
   762  	return 0
   763  }
   764  
   765  func (m *LogStore) GetState() NodeState {
   766  	if m != nil {
   767  		return m.State
   768  	}
   769  	return NormalState
   770  }
   771  
   772  func (m *LogStore) GetReplicas() []LogReplicaInfo {
   773  	if m != nil {
   774  		return m.Replicas
   775  	}
   776  	return nil
   777  }
   778  
   779  func (m *LogStore) GetConfigData() *ConfigData {
   780  	if m != nil {
   781  		return m.ConfigData
   782  	}
   783  	return nil
   784  }
   785  
   786  // LogShardInfo contains information a log shard.
   787  type LogShardInfo struct {
   788  	// ShardID is the ID of a Log shard.
   789  	ShardID uint64 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
   790  	// Replicas is a map of ReplicaID to LogStore UUID, it describe the member
   791  	// replicas of the shard at the given Epoch.
   792  	Replicas map[uint64]string `protobuf:"bytes,2,rep,name=Replicas,proto3" json:"Replicas,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   793  	// Epoch is the epoch value of the Shard, member replicas of the Shard can
   794  	// change across epochs.
   795  	Epoch uint64 `protobuf:"varint,3,opt,name=Epoch,proto3" json:"Epoch,omitempty"`
   796  	// LeaderID is the ReplicaID of the leader replica at the given term. When
   797  	// LeaderID is 0, it means there is no leader or the leader is unknown.
   798  	LeaderID uint64 `protobuf:"varint,4,opt,name=LeaderID,proto3" json:"LeaderID,omitempty"`
   799  	// Term is the Raft term value.
   800  	Term                 uint64   `protobuf:"varint,5,opt,name=Term,proto3" json:"Term,omitempty"`
   801  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   802  	XXX_unrecognized     []byte   `json:"-"`
   803  	XXX_sizecache        int32    `json:"-"`
   804  }
   805  
   806  func (m *LogShardInfo) Reset()         { *m = LogShardInfo{} }
   807  func (m *LogShardInfo) String() string { return proto.CompactTextString(m) }
   808  func (*LogShardInfo) ProtoMessage()    {}
   809  func (*LogShardInfo) Descriptor() ([]byte, []int) {
   810  	return fileDescriptor_fd1040c5381ab5a7, []int{3}
   811  }
   812  func (m *LogShardInfo) XXX_Unmarshal(b []byte) error {
   813  	return m.Unmarshal(b)
   814  }
   815  func (m *LogShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   816  	if deterministic {
   817  		return xxx_messageInfo_LogShardInfo.Marshal(b, m, deterministic)
   818  	} else {
   819  		b = b[:cap(b)]
   820  		n, err := m.MarshalToSizedBuffer(b)
   821  		if err != nil {
   822  			return nil, err
   823  		}
   824  		return b[:n], nil
   825  	}
   826  }
   827  func (m *LogShardInfo) XXX_Merge(src proto.Message) {
   828  	xxx_messageInfo_LogShardInfo.Merge(m, src)
   829  }
   830  func (m *LogShardInfo) XXX_Size() int {
   831  	return m.Size()
   832  }
   833  func (m *LogShardInfo) XXX_DiscardUnknown() {
   834  	xxx_messageInfo_LogShardInfo.DiscardUnknown(m)
   835  }
   836  
   837  var xxx_messageInfo_LogShardInfo proto.InternalMessageInfo
   838  
   839  func (m *LogShardInfo) GetShardID() uint64 {
   840  	if m != nil {
   841  		return m.ShardID
   842  	}
   843  	return 0
   844  }
   845  
   846  func (m *LogShardInfo) GetReplicas() map[uint64]string {
   847  	if m != nil {
   848  		return m.Replicas
   849  	}
   850  	return nil
   851  }
   852  
   853  func (m *LogShardInfo) GetEpoch() uint64 {
   854  	if m != nil {
   855  		return m.Epoch
   856  	}
   857  	return 0
   858  }
   859  
   860  func (m *LogShardInfo) GetLeaderID() uint64 {
   861  	if m != nil {
   862  		return m.LeaderID
   863  	}
   864  	return 0
   865  }
   866  
   867  func (m *LogShardInfo) GetTerm() uint64 {
   868  	if m != nil {
   869  		return m.Term
   870  	}
   871  	return 0
   872  }
   873  
   874  // LogReplicaInfo contains information of a log replica.
   875  type LogReplicaInfo struct {
   876  	LogShardInfo `protobuf:"bytes,1,opt,name=LogShardInfo,proto3,embedded=LogShardInfo" json:"LogShardInfo"`
   877  	// ReplicaID is the ID of a replica within the Log shard.
   878  	ReplicaID            uint64   `protobuf:"varint,2,opt,name=ReplicaID,proto3" json:"ReplicaID,omitempty"`
   879  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   880  	XXX_unrecognized     []byte   `json:"-"`
   881  	XXX_sizecache        int32    `json:"-"`
   882  }
   883  
   884  func (m *LogReplicaInfo) Reset()         { *m = LogReplicaInfo{} }
   885  func (m *LogReplicaInfo) String() string { return proto.CompactTextString(m) }
   886  func (*LogReplicaInfo) ProtoMessage()    {}
   887  func (*LogReplicaInfo) Descriptor() ([]byte, []int) {
   888  	return fileDescriptor_fd1040c5381ab5a7, []int{4}
   889  }
   890  func (m *LogReplicaInfo) XXX_Unmarshal(b []byte) error {
   891  	return m.Unmarshal(b)
   892  }
   893  func (m *LogReplicaInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   894  	if deterministic {
   895  		return xxx_messageInfo_LogReplicaInfo.Marshal(b, m, deterministic)
   896  	} else {
   897  		b = b[:cap(b)]
   898  		n, err := m.MarshalToSizedBuffer(b)
   899  		if err != nil {
   900  			return nil, err
   901  		}
   902  		return b[:n], nil
   903  	}
   904  }
   905  func (m *LogReplicaInfo) XXX_Merge(src proto.Message) {
   906  	xxx_messageInfo_LogReplicaInfo.Merge(m, src)
   907  }
   908  func (m *LogReplicaInfo) XXX_Size() int {
   909  	return m.Size()
   910  }
   911  func (m *LogReplicaInfo) XXX_DiscardUnknown() {
   912  	xxx_messageInfo_LogReplicaInfo.DiscardUnknown(m)
   913  }
   914  
   915  var xxx_messageInfo_LogReplicaInfo proto.InternalMessageInfo
   916  
   917  func (m *LogReplicaInfo) GetReplicaID() uint64 {
   918  	if m != nil {
   919  		return m.ReplicaID
   920  	}
   921  	return 0
   922  }
   923  
   924  type Resource struct {
   925  	CPUTotal             uint64   `protobuf:"varint,1,opt,name=CPUTotal,proto3" json:"CPUTotal,omitempty"`
   926  	CPUAvailable         float64  `protobuf:"fixed64,2,opt,name=CPUAvailable,proto3" json:"CPUAvailable,omitempty"`
   927  	MemTotal             uint64   `protobuf:"varint,3,opt,name=MemTotal,proto3" json:"MemTotal,omitempty"`
   928  	MemAvailable         uint64   `protobuf:"varint,4,opt,name=MemAvailable,proto3" json:"MemAvailable,omitempty"`
   929  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   930  	XXX_unrecognized     []byte   `json:"-"`
   931  	XXX_sizecache        int32    `json:"-"`
   932  }
   933  
   934  func (m *Resource) Reset()         { *m = Resource{} }
   935  func (m *Resource) String() string { return proto.CompactTextString(m) }
   936  func (*Resource) ProtoMessage()    {}
   937  func (*Resource) Descriptor() ([]byte, []int) {
   938  	return fileDescriptor_fd1040c5381ab5a7, []int{5}
   939  }
   940  func (m *Resource) XXX_Unmarshal(b []byte) error {
   941  	return m.Unmarshal(b)
   942  }
   943  func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   944  	if deterministic {
   945  		return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
   946  	} else {
   947  		b = b[:cap(b)]
   948  		n, err := m.MarshalToSizedBuffer(b)
   949  		if err != nil {
   950  			return nil, err
   951  		}
   952  		return b[:n], nil
   953  	}
   954  }
   955  func (m *Resource) XXX_Merge(src proto.Message) {
   956  	xxx_messageInfo_Resource.Merge(m, src)
   957  }
   958  func (m *Resource) XXX_Size() int {
   959  	return m.Size()
   960  }
   961  func (m *Resource) XXX_DiscardUnknown() {
   962  	xxx_messageInfo_Resource.DiscardUnknown(m)
   963  }
   964  
   965  var xxx_messageInfo_Resource proto.InternalMessageInfo
   966  
   967  func (m *Resource) GetCPUTotal() uint64 {
   968  	if m != nil {
   969  		return m.CPUTotal
   970  	}
   971  	return 0
   972  }
   973  
   974  func (m *Resource) GetCPUAvailable() float64 {
   975  	if m != nil {
   976  		return m.CPUAvailable
   977  	}
   978  	return 0
   979  }
   980  
   981  func (m *Resource) GetMemTotal() uint64 {
   982  	if m != nil {
   983  		return m.MemTotal
   984  	}
   985  	return 0
   986  }
   987  
   988  func (m *Resource) GetMemAvailable() uint64 {
   989  	if m != nil {
   990  		return m.MemAvailable
   991  	}
   992  	return 0
   993  }
   994  
   995  // CNStoreHeartbeat is the periodic message sent tp the HAKeeper by CN stores.
   996  type CNStoreHeartbeat struct {
   997  	UUID                 string          `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
   998  	ServiceAddress       string          `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
   999  	SQLAddress           string          `protobuf:"bytes,3,opt,name=SQLAddress,proto3" json:"SQLAddress,omitempty"`
  1000  	LockServiceAddress   string          `protobuf:"bytes,4,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
  1001  	Role                 metadata.CNRole `protobuf:"varint,6,opt,name=Role,proto3,enum=metadata.CNRole" json:"Role,omitempty"`
  1002  	TaskServiceCreated   bool            `protobuf:"varint,7,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  1003  	QueryAddress         string          `protobuf:"bytes,8,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
  1004  	InitWorkState        string          `protobuf:"bytes,9,opt,name=InitWorkState,proto3" json:"InitWorkState,omitempty"`
  1005  	GossipAddress        string          `protobuf:"bytes,10,opt,name=GossipAddress,proto3" json:"GossipAddress,omitempty"`
  1006  	GossipJoined         bool            `protobuf:"varint,11,opt,name=GossipJoined,proto3" json:"GossipJoined,omitempty"`
  1007  	ConfigData           *ConfigData     `protobuf:"bytes,12,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  1008  	Resource             Resource        `protobuf:"bytes,13,opt,name=Resource,proto3" json:"Resource"`
  1009  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
  1010  	XXX_unrecognized     []byte          `json:"-"`
  1011  	XXX_sizecache        int32           `json:"-"`
  1012  }
  1013  
  1014  func (m *CNStoreHeartbeat) Reset()         { *m = CNStoreHeartbeat{} }
  1015  func (m *CNStoreHeartbeat) String() string { return proto.CompactTextString(m) }
  1016  func (*CNStoreHeartbeat) ProtoMessage()    {}
  1017  func (*CNStoreHeartbeat) Descriptor() ([]byte, []int) {
  1018  	return fileDescriptor_fd1040c5381ab5a7, []int{6}
  1019  }
  1020  func (m *CNStoreHeartbeat) XXX_Unmarshal(b []byte) error {
  1021  	return m.Unmarshal(b)
  1022  }
  1023  func (m *CNStoreHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1024  	if deterministic {
  1025  		return xxx_messageInfo_CNStoreHeartbeat.Marshal(b, m, deterministic)
  1026  	} else {
  1027  		b = b[:cap(b)]
  1028  		n, err := m.MarshalToSizedBuffer(b)
  1029  		if err != nil {
  1030  			return nil, err
  1031  		}
  1032  		return b[:n], nil
  1033  	}
  1034  }
  1035  func (m *CNStoreHeartbeat) XXX_Merge(src proto.Message) {
  1036  	xxx_messageInfo_CNStoreHeartbeat.Merge(m, src)
  1037  }
  1038  func (m *CNStoreHeartbeat) XXX_Size() int {
  1039  	return m.Size()
  1040  }
  1041  func (m *CNStoreHeartbeat) XXX_DiscardUnknown() {
  1042  	xxx_messageInfo_CNStoreHeartbeat.DiscardUnknown(m)
  1043  }
  1044  
  1045  var xxx_messageInfo_CNStoreHeartbeat proto.InternalMessageInfo
  1046  
  1047  func (m *CNStoreHeartbeat) GetUUID() string {
  1048  	if m != nil {
  1049  		return m.UUID
  1050  	}
  1051  	return ""
  1052  }
  1053  
  1054  func (m *CNStoreHeartbeat) GetServiceAddress() string {
  1055  	if m != nil {
  1056  		return m.ServiceAddress
  1057  	}
  1058  	return ""
  1059  }
  1060  
  1061  func (m *CNStoreHeartbeat) GetSQLAddress() string {
  1062  	if m != nil {
  1063  		return m.SQLAddress
  1064  	}
  1065  	return ""
  1066  }
  1067  
  1068  func (m *CNStoreHeartbeat) GetLockServiceAddress() string {
  1069  	if m != nil {
  1070  		return m.LockServiceAddress
  1071  	}
  1072  	return ""
  1073  }
  1074  
  1075  func (m *CNStoreHeartbeat) GetRole() metadata.CNRole {
  1076  	if m != nil {
  1077  		return m.Role
  1078  	}
  1079  	return metadata.CNRole_TP
  1080  }
  1081  
  1082  func (m *CNStoreHeartbeat) GetTaskServiceCreated() bool {
  1083  	if m != nil {
  1084  		return m.TaskServiceCreated
  1085  	}
  1086  	return false
  1087  }
  1088  
  1089  func (m *CNStoreHeartbeat) GetQueryAddress() string {
  1090  	if m != nil {
  1091  		return m.QueryAddress
  1092  	}
  1093  	return ""
  1094  }
  1095  
  1096  func (m *CNStoreHeartbeat) GetInitWorkState() string {
  1097  	if m != nil {
  1098  		return m.InitWorkState
  1099  	}
  1100  	return ""
  1101  }
  1102  
  1103  func (m *CNStoreHeartbeat) GetGossipAddress() string {
  1104  	if m != nil {
  1105  		return m.GossipAddress
  1106  	}
  1107  	return ""
  1108  }
  1109  
  1110  func (m *CNStoreHeartbeat) GetGossipJoined() bool {
  1111  	if m != nil {
  1112  		return m.GossipJoined
  1113  	}
  1114  	return false
  1115  }
  1116  
  1117  func (m *CNStoreHeartbeat) GetConfigData() *ConfigData {
  1118  	if m != nil {
  1119  		return m.ConfigData
  1120  	}
  1121  	return nil
  1122  }
  1123  
  1124  func (m *CNStoreHeartbeat) GetResource() Resource {
  1125  	if m != nil {
  1126  		return m.Resource
  1127  	}
  1128  	return Resource{}
  1129  }
  1130  
  1131  // CNAllocateID is the periodic message sent tp the HAKeeper by CN stores.
  1132  type CNAllocateID struct {
  1133  	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  1134  	Batch                uint64   `protobuf:"varint,2,opt,name=Batch,proto3" json:"Batch,omitempty"`
  1135  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1136  	XXX_unrecognized     []byte   `json:"-"`
  1137  	XXX_sizecache        int32    `json:"-"`
  1138  }
  1139  
  1140  func (m *CNAllocateID) Reset()         { *m = CNAllocateID{} }
  1141  func (m *CNAllocateID) String() string { return proto.CompactTextString(m) }
  1142  func (*CNAllocateID) ProtoMessage()    {}
  1143  func (*CNAllocateID) Descriptor() ([]byte, []int) {
  1144  	return fileDescriptor_fd1040c5381ab5a7, []int{7}
  1145  }
  1146  func (m *CNAllocateID) XXX_Unmarshal(b []byte) error {
  1147  	return m.Unmarshal(b)
  1148  }
  1149  func (m *CNAllocateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1150  	if deterministic {
  1151  		return xxx_messageInfo_CNAllocateID.Marshal(b, m, deterministic)
  1152  	} else {
  1153  		b = b[:cap(b)]
  1154  		n, err := m.MarshalToSizedBuffer(b)
  1155  		if err != nil {
  1156  			return nil, err
  1157  		}
  1158  		return b[:n], nil
  1159  	}
  1160  }
  1161  func (m *CNAllocateID) XXX_Merge(src proto.Message) {
  1162  	xxx_messageInfo_CNAllocateID.Merge(m, src)
  1163  }
  1164  func (m *CNAllocateID) XXX_Size() int {
  1165  	return m.Size()
  1166  }
  1167  func (m *CNAllocateID) XXX_DiscardUnknown() {
  1168  	xxx_messageInfo_CNAllocateID.DiscardUnknown(m)
  1169  }
  1170  
  1171  var xxx_messageInfo_CNAllocateID proto.InternalMessageInfo
  1172  
  1173  func (m *CNAllocateID) GetKey() string {
  1174  	if m != nil {
  1175  		return m.Key
  1176  	}
  1177  	return ""
  1178  }
  1179  
  1180  func (m *CNAllocateID) GetBatch() uint64 {
  1181  	if m != nil {
  1182  		return m.Batch
  1183  	}
  1184  	return 0
  1185  }
  1186  
  1187  // LogStoreHeartbeat is the periodic message sent to the HAKeeper by Log Stores.
  1188  type LogStoreHeartbeat struct {
  1189  	// UUID is the uuid of the Log Store.
  1190  	UUID           string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  1191  	RaftAddress    string `protobuf:"bytes,2,opt,name=RaftAddress,proto3" json:"RaftAddress,omitempty"`
  1192  	ServiceAddress string `protobuf:"bytes,3,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  1193  	GossipAddress  string `protobuf:"bytes,4,opt,name=GossipAddress,proto3" json:"GossipAddress,omitempty"`
  1194  	// Replicas is a list of LogReplicaInfo instances collected on the specified
  1195  	// LogStore. Details in Shards are based on the local knowledge of each
  1196  	// replica running on the current LogStore, it may not be accurate or
  1197  	// update to date due to various reasons.
  1198  	Replicas []LogReplicaInfo `protobuf:"bytes,5,rep,name=Replicas,proto3" json:"Replicas"`
  1199  	// TaskServiceCreated task service is created at the current log node
  1200  	TaskServiceCreated   bool        `protobuf:"varint,6,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  1201  	ConfigData           *ConfigData `protobuf:"bytes,7,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  1202  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  1203  	XXX_unrecognized     []byte      `json:"-"`
  1204  	XXX_sizecache        int32       `json:"-"`
  1205  }
  1206  
  1207  func (m *LogStoreHeartbeat) Reset()         { *m = LogStoreHeartbeat{} }
  1208  func (m *LogStoreHeartbeat) String() string { return proto.CompactTextString(m) }
  1209  func (*LogStoreHeartbeat) ProtoMessage()    {}
  1210  func (*LogStoreHeartbeat) Descriptor() ([]byte, []int) {
  1211  	return fileDescriptor_fd1040c5381ab5a7, []int{8}
  1212  }
  1213  func (m *LogStoreHeartbeat) XXX_Unmarshal(b []byte) error {
  1214  	return m.Unmarshal(b)
  1215  }
  1216  func (m *LogStoreHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1217  	if deterministic {
  1218  		return xxx_messageInfo_LogStoreHeartbeat.Marshal(b, m, deterministic)
  1219  	} else {
  1220  		b = b[:cap(b)]
  1221  		n, err := m.MarshalToSizedBuffer(b)
  1222  		if err != nil {
  1223  			return nil, err
  1224  		}
  1225  		return b[:n], nil
  1226  	}
  1227  }
  1228  func (m *LogStoreHeartbeat) XXX_Merge(src proto.Message) {
  1229  	xxx_messageInfo_LogStoreHeartbeat.Merge(m, src)
  1230  }
  1231  func (m *LogStoreHeartbeat) XXX_Size() int {
  1232  	return m.Size()
  1233  }
  1234  func (m *LogStoreHeartbeat) XXX_DiscardUnknown() {
  1235  	xxx_messageInfo_LogStoreHeartbeat.DiscardUnknown(m)
  1236  }
  1237  
  1238  var xxx_messageInfo_LogStoreHeartbeat proto.InternalMessageInfo
  1239  
  1240  func (m *LogStoreHeartbeat) GetUUID() string {
  1241  	if m != nil {
  1242  		return m.UUID
  1243  	}
  1244  	return ""
  1245  }
  1246  
  1247  func (m *LogStoreHeartbeat) GetRaftAddress() string {
  1248  	if m != nil {
  1249  		return m.RaftAddress
  1250  	}
  1251  	return ""
  1252  }
  1253  
  1254  func (m *LogStoreHeartbeat) GetServiceAddress() string {
  1255  	if m != nil {
  1256  		return m.ServiceAddress
  1257  	}
  1258  	return ""
  1259  }
  1260  
  1261  func (m *LogStoreHeartbeat) GetGossipAddress() string {
  1262  	if m != nil {
  1263  		return m.GossipAddress
  1264  	}
  1265  	return ""
  1266  }
  1267  
  1268  func (m *LogStoreHeartbeat) GetReplicas() []LogReplicaInfo {
  1269  	if m != nil {
  1270  		return m.Replicas
  1271  	}
  1272  	return nil
  1273  }
  1274  
  1275  func (m *LogStoreHeartbeat) GetTaskServiceCreated() bool {
  1276  	if m != nil {
  1277  		return m.TaskServiceCreated
  1278  	}
  1279  	return false
  1280  }
  1281  
  1282  func (m *LogStoreHeartbeat) GetConfigData() *ConfigData {
  1283  	if m != nil {
  1284  		return m.ConfigData
  1285  	}
  1286  	return nil
  1287  }
  1288  
  1289  // TNShardInfo contains information of a launched TN shard.
  1290  type TNShardInfo struct {
  1291  	// ShardID uniquely identifies a TN shard. Each TN shard manages a Primary
  1292  	// Key range or hashed Primary Key value range.
  1293  	ShardID uint64 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
  1294  	// ReplicaID uniquely identifies a TN shard instance. After repairing a
  1295  	// failed TN shard, a new TN shard instance is created with a new ReplicaID
  1296  	// value.
  1297  	ReplicaID            uint64   `protobuf:"varint,2,opt,name=ReplicaID,proto3" json:"ReplicaID,omitempty"`
  1298  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1299  	XXX_unrecognized     []byte   `json:"-"`
  1300  	XXX_sizecache        int32    `json:"-"`
  1301  }
  1302  
  1303  func (m *TNShardInfo) Reset()         { *m = TNShardInfo{} }
  1304  func (m *TNShardInfo) String() string { return proto.CompactTextString(m) }
  1305  func (*TNShardInfo) ProtoMessage()    {}
  1306  func (*TNShardInfo) Descriptor() ([]byte, []int) {
  1307  	return fileDescriptor_fd1040c5381ab5a7, []int{9}
  1308  }
  1309  func (m *TNShardInfo) XXX_Unmarshal(b []byte) error {
  1310  	return m.Unmarshal(b)
  1311  }
  1312  func (m *TNShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1313  	if deterministic {
  1314  		return xxx_messageInfo_TNShardInfo.Marshal(b, m, deterministic)
  1315  	} else {
  1316  		b = b[:cap(b)]
  1317  		n, err := m.MarshalToSizedBuffer(b)
  1318  		if err != nil {
  1319  			return nil, err
  1320  		}
  1321  		return b[:n], nil
  1322  	}
  1323  }
  1324  func (m *TNShardInfo) XXX_Merge(src proto.Message) {
  1325  	xxx_messageInfo_TNShardInfo.Merge(m, src)
  1326  }
  1327  func (m *TNShardInfo) XXX_Size() int {
  1328  	return m.Size()
  1329  }
  1330  func (m *TNShardInfo) XXX_DiscardUnknown() {
  1331  	xxx_messageInfo_TNShardInfo.DiscardUnknown(m)
  1332  }
  1333  
  1334  var xxx_messageInfo_TNShardInfo proto.InternalMessageInfo
  1335  
  1336  func (m *TNShardInfo) GetShardID() uint64 {
  1337  	if m != nil {
  1338  		return m.ShardID
  1339  	}
  1340  	return 0
  1341  }
  1342  
  1343  func (m *TNShardInfo) GetReplicaID() uint64 {
  1344  	if m != nil {
  1345  		return m.ReplicaID
  1346  	}
  1347  	return 0
  1348  }
  1349  
  1350  // TNStoreHeartbeat is the periodic message sent to the HAKeeper by TN stores.
  1351  type TNStoreHeartbeat struct {
  1352  	// UUID is the uuid of the TN Store.
  1353  	UUID           string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  1354  	ServiceAddress string `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  1355  	// Shards is a list of TNShardInfo instances collected on the specified
  1356  	// TN store.
  1357  	Shards             []TNShardInfo `protobuf:"bytes,3,rep,name=Shards,proto3" json:"Shards"`
  1358  	TaskServiceCreated bool          `protobuf:"varint,4,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  1359  	// Server address for logtail push model
  1360  	LogtailServerAddress string `protobuf:"bytes,5,opt,name=LogtailServerAddress,proto3" json:"LogtailServerAddress,omitempty"`
  1361  	// LockServiceAddress lock service address for lock table allocator
  1362  	LockServiceAddress string      `protobuf:"bytes,6,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
  1363  	ConfigData         *ConfigData `protobuf:"bytes,8,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  1364  	// QueryAddress is the address of queryservice on tn
  1365  	QueryAddress         string   `protobuf:"bytes,9,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
  1366  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1367  	XXX_unrecognized     []byte   `json:"-"`
  1368  	XXX_sizecache        int32    `json:"-"`
  1369  }
  1370  
  1371  func (m *TNStoreHeartbeat) Reset()         { *m = TNStoreHeartbeat{} }
  1372  func (m *TNStoreHeartbeat) String() string { return proto.CompactTextString(m) }
  1373  func (*TNStoreHeartbeat) ProtoMessage()    {}
  1374  func (*TNStoreHeartbeat) Descriptor() ([]byte, []int) {
  1375  	return fileDescriptor_fd1040c5381ab5a7, []int{10}
  1376  }
  1377  func (m *TNStoreHeartbeat) XXX_Unmarshal(b []byte) error {
  1378  	return m.Unmarshal(b)
  1379  }
  1380  func (m *TNStoreHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1381  	if deterministic {
  1382  		return xxx_messageInfo_TNStoreHeartbeat.Marshal(b, m, deterministic)
  1383  	} else {
  1384  		b = b[:cap(b)]
  1385  		n, err := m.MarshalToSizedBuffer(b)
  1386  		if err != nil {
  1387  			return nil, err
  1388  		}
  1389  		return b[:n], nil
  1390  	}
  1391  }
  1392  func (m *TNStoreHeartbeat) XXX_Merge(src proto.Message) {
  1393  	xxx_messageInfo_TNStoreHeartbeat.Merge(m, src)
  1394  }
  1395  func (m *TNStoreHeartbeat) XXX_Size() int {
  1396  	return m.Size()
  1397  }
  1398  func (m *TNStoreHeartbeat) XXX_DiscardUnknown() {
  1399  	xxx_messageInfo_TNStoreHeartbeat.DiscardUnknown(m)
  1400  }
  1401  
  1402  var xxx_messageInfo_TNStoreHeartbeat proto.InternalMessageInfo
  1403  
  1404  func (m *TNStoreHeartbeat) GetUUID() string {
  1405  	if m != nil {
  1406  		return m.UUID
  1407  	}
  1408  	return ""
  1409  }
  1410  
  1411  func (m *TNStoreHeartbeat) GetServiceAddress() string {
  1412  	if m != nil {
  1413  		return m.ServiceAddress
  1414  	}
  1415  	return ""
  1416  }
  1417  
  1418  func (m *TNStoreHeartbeat) GetShards() []TNShardInfo {
  1419  	if m != nil {
  1420  		return m.Shards
  1421  	}
  1422  	return nil
  1423  }
  1424  
  1425  func (m *TNStoreHeartbeat) GetTaskServiceCreated() bool {
  1426  	if m != nil {
  1427  		return m.TaskServiceCreated
  1428  	}
  1429  	return false
  1430  }
  1431  
  1432  func (m *TNStoreHeartbeat) GetLogtailServerAddress() string {
  1433  	if m != nil {
  1434  		return m.LogtailServerAddress
  1435  	}
  1436  	return ""
  1437  }
  1438  
  1439  func (m *TNStoreHeartbeat) GetLockServiceAddress() string {
  1440  	if m != nil {
  1441  		return m.LockServiceAddress
  1442  	}
  1443  	return ""
  1444  }
  1445  
  1446  func (m *TNStoreHeartbeat) GetConfigData() *ConfigData {
  1447  	if m != nil {
  1448  		return m.ConfigData
  1449  	}
  1450  	return nil
  1451  }
  1452  
  1453  func (m *TNStoreHeartbeat) GetQueryAddress() string {
  1454  	if m != nil {
  1455  		return m.QueryAddress
  1456  	}
  1457  	return ""
  1458  }
  1459  
  1460  type RSMState struct {
  1461  	Tso                  uint64            `protobuf:"varint,1,opt,name=Tso,proto3" json:"Tso,omitempty"`
  1462  	Index                uint64            `protobuf:"varint,2,opt,name=Index,proto3" json:"Index,omitempty"`
  1463  	LeaseHolderID        uint64            `protobuf:"varint,3,opt,name=LeaseHolderID,proto3" json:"LeaseHolderID,omitempty"`
  1464  	TruncatedLsn         uint64            `protobuf:"varint,4,opt,name=TruncatedLsn,proto3" json:"TruncatedLsn,omitempty"`
  1465  	LeaseHistory         map[uint64]uint64 `protobuf:"bytes,5,rep,name=LeaseHistory,proto3" json:"LeaseHistory,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  1466  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  1467  	XXX_unrecognized     []byte            `json:"-"`
  1468  	XXX_sizecache        int32             `json:"-"`
  1469  }
  1470  
  1471  func (m *RSMState) Reset()         { *m = RSMState{} }
  1472  func (m *RSMState) String() string { return proto.CompactTextString(m) }
  1473  func (*RSMState) ProtoMessage()    {}
  1474  func (*RSMState) Descriptor() ([]byte, []int) {
  1475  	return fileDescriptor_fd1040c5381ab5a7, []int{11}
  1476  }
  1477  func (m *RSMState) XXX_Unmarshal(b []byte) error {
  1478  	return m.Unmarshal(b)
  1479  }
  1480  func (m *RSMState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1481  	if deterministic {
  1482  		return xxx_messageInfo_RSMState.Marshal(b, m, deterministic)
  1483  	} else {
  1484  		b = b[:cap(b)]
  1485  		n, err := m.MarshalToSizedBuffer(b)
  1486  		if err != nil {
  1487  			return nil, err
  1488  		}
  1489  		return b[:n], nil
  1490  	}
  1491  }
  1492  func (m *RSMState) XXX_Merge(src proto.Message) {
  1493  	xxx_messageInfo_RSMState.Merge(m, src)
  1494  }
  1495  func (m *RSMState) XXX_Size() int {
  1496  	return m.Size()
  1497  }
  1498  func (m *RSMState) XXX_DiscardUnknown() {
  1499  	xxx_messageInfo_RSMState.DiscardUnknown(m)
  1500  }
  1501  
  1502  var xxx_messageInfo_RSMState proto.InternalMessageInfo
  1503  
  1504  func (m *RSMState) GetTso() uint64 {
  1505  	if m != nil {
  1506  		return m.Tso
  1507  	}
  1508  	return 0
  1509  }
  1510  
  1511  func (m *RSMState) GetIndex() uint64 {
  1512  	if m != nil {
  1513  		return m.Index
  1514  	}
  1515  	return 0
  1516  }
  1517  
  1518  func (m *RSMState) GetLeaseHolderID() uint64 {
  1519  	if m != nil {
  1520  		return m.LeaseHolderID
  1521  	}
  1522  	return 0
  1523  }
  1524  
  1525  func (m *RSMState) GetTruncatedLsn() uint64 {
  1526  	if m != nil {
  1527  		return m.TruncatedLsn
  1528  	}
  1529  	return 0
  1530  }
  1531  
  1532  func (m *RSMState) GetLeaseHistory() map[uint64]uint64 {
  1533  	if m != nil {
  1534  		return m.LeaseHistory
  1535  	}
  1536  	return nil
  1537  }
  1538  
  1539  // LogRecord is what we store into the LogService.
  1540  type LogRecord struct {
  1541  	Lsn                  uint64     `protobuf:"varint,1,opt,name=Lsn,proto3" json:"Lsn,omitempty"`
  1542  	Type                 RecordType `protobuf:"varint,2,opt,name=Type,proto3,enum=logservice.RecordType" json:"Type,omitempty"`
  1543  	Data                 []byte     `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
  1544  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
  1545  	XXX_unrecognized     []byte     `json:"-"`
  1546  	XXX_sizecache        int32      `json:"-"`
  1547  }
  1548  
  1549  func (m *LogRecord) Reset()         { *m = LogRecord{} }
  1550  func (m *LogRecord) String() string { return proto.CompactTextString(m) }
  1551  func (*LogRecord) ProtoMessage()    {}
  1552  func (*LogRecord) Descriptor() ([]byte, []int) {
  1553  	return fileDescriptor_fd1040c5381ab5a7, []int{12}
  1554  }
  1555  func (m *LogRecord) XXX_Unmarshal(b []byte) error {
  1556  	return m.Unmarshal(b)
  1557  }
  1558  func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1559  	if deterministic {
  1560  		return xxx_messageInfo_LogRecord.Marshal(b, m, deterministic)
  1561  	} else {
  1562  		b = b[:cap(b)]
  1563  		n, err := m.MarshalToSizedBuffer(b)
  1564  		if err != nil {
  1565  			return nil, err
  1566  		}
  1567  		return b[:n], nil
  1568  	}
  1569  }
  1570  func (m *LogRecord) XXX_Merge(src proto.Message) {
  1571  	xxx_messageInfo_LogRecord.Merge(m, src)
  1572  }
  1573  func (m *LogRecord) XXX_Size() int {
  1574  	return m.Size()
  1575  }
  1576  func (m *LogRecord) XXX_DiscardUnknown() {
  1577  	xxx_messageInfo_LogRecord.DiscardUnknown(m)
  1578  }
  1579  
  1580  var xxx_messageInfo_LogRecord proto.InternalMessageInfo
  1581  
  1582  func (m *LogRecord) GetLsn() uint64 {
  1583  	if m != nil {
  1584  		return m.Lsn
  1585  	}
  1586  	return 0
  1587  }
  1588  
  1589  func (m *LogRecord) GetType() RecordType {
  1590  	if m != nil {
  1591  		return m.Type
  1592  	}
  1593  	return UserRecord
  1594  }
  1595  
  1596  func (m *LogRecord) GetData() []byte {
  1597  	if m != nil {
  1598  		return m.Data
  1599  	}
  1600  	return nil
  1601  }
  1602  
  1603  type LogRequest struct {
  1604  	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
  1605  	ShardID              uint64   `protobuf:"varint,2,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
  1606  	Lsn                  uint64   `protobuf:"varint,3,opt,name=Lsn,proto3" json:"Lsn,omitempty"`
  1607  	MaxSize              uint64   `protobuf:"varint,4,opt,name=MaxSize,proto3" json:"MaxSize,omitempty"`
  1608  	TNShardID            uint64   `protobuf:"varint,5,opt,name=TNShardID,proto3" json:"TNShardID,omitempty"`
  1609  	TNID                 uint64   `protobuf:"varint,6,opt,name=TNID,proto3" json:"TNID,omitempty"`
  1610  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1611  	XXX_unrecognized     []byte   `json:"-"`
  1612  	XXX_sizecache        int32    `json:"-"`
  1613  }
  1614  
  1615  func (m *LogRequest) Reset()         { *m = LogRequest{} }
  1616  func (m *LogRequest) String() string { return proto.CompactTextString(m) }
  1617  func (*LogRequest) ProtoMessage()    {}
  1618  func (*LogRequest) Descriptor() ([]byte, []int) {
  1619  	return fileDescriptor_fd1040c5381ab5a7, []int{13}
  1620  }
  1621  func (m *LogRequest) XXX_Unmarshal(b []byte) error {
  1622  	return m.Unmarshal(b)
  1623  }
  1624  func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1625  	if deterministic {
  1626  		return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic)
  1627  	} else {
  1628  		b = b[:cap(b)]
  1629  		n, err := m.MarshalToSizedBuffer(b)
  1630  		if err != nil {
  1631  			return nil, err
  1632  		}
  1633  		return b[:n], nil
  1634  	}
  1635  }
  1636  func (m *LogRequest) XXX_Merge(src proto.Message) {
  1637  	xxx_messageInfo_LogRequest.Merge(m, src)
  1638  }
  1639  func (m *LogRequest) XXX_Size() int {
  1640  	return m.Size()
  1641  }
  1642  func (m *LogRequest) XXX_DiscardUnknown() {
  1643  	xxx_messageInfo_LogRequest.DiscardUnknown(m)
  1644  }
  1645  
  1646  var xxx_messageInfo_LogRequest proto.InternalMessageInfo
  1647  
  1648  func (m *LogRequest) GetName() string {
  1649  	if m != nil {
  1650  		return m.Name
  1651  	}
  1652  	return ""
  1653  }
  1654  
  1655  func (m *LogRequest) GetShardID() uint64 {
  1656  	if m != nil {
  1657  		return m.ShardID
  1658  	}
  1659  	return 0
  1660  }
  1661  
  1662  func (m *LogRequest) GetLsn() uint64 {
  1663  	if m != nil {
  1664  		return m.Lsn
  1665  	}
  1666  	return 0
  1667  }
  1668  
  1669  func (m *LogRequest) GetMaxSize() uint64 {
  1670  	if m != nil {
  1671  		return m.MaxSize
  1672  	}
  1673  	return 0
  1674  }
  1675  
  1676  func (m *LogRequest) GetTNShardID() uint64 {
  1677  	if m != nil {
  1678  		return m.TNShardID
  1679  	}
  1680  	return 0
  1681  }
  1682  
  1683  func (m *LogRequest) GetTNID() uint64 {
  1684  	if m != nil {
  1685  		return m.TNID
  1686  	}
  1687  	return 0
  1688  }
  1689  
  1690  type TsoRequest struct {
  1691  	Count                uint64   `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"`
  1692  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1693  	XXX_unrecognized     []byte   `json:"-"`
  1694  	XXX_sizecache        int32    `json:"-"`
  1695  }
  1696  
  1697  func (m *TsoRequest) Reset()         { *m = TsoRequest{} }
  1698  func (m *TsoRequest) String() string { return proto.CompactTextString(m) }
  1699  func (*TsoRequest) ProtoMessage()    {}
  1700  func (*TsoRequest) Descriptor() ([]byte, []int) {
  1701  	return fileDescriptor_fd1040c5381ab5a7, []int{14}
  1702  }
  1703  func (m *TsoRequest) XXX_Unmarshal(b []byte) error {
  1704  	return m.Unmarshal(b)
  1705  }
  1706  func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1707  	if deterministic {
  1708  		return xxx_messageInfo_TsoRequest.Marshal(b, m, deterministic)
  1709  	} else {
  1710  		b = b[:cap(b)]
  1711  		n, err := m.MarshalToSizedBuffer(b)
  1712  		if err != nil {
  1713  			return nil, err
  1714  		}
  1715  		return b[:n], nil
  1716  	}
  1717  }
  1718  func (m *TsoRequest) XXX_Merge(src proto.Message) {
  1719  	xxx_messageInfo_TsoRequest.Merge(m, src)
  1720  }
  1721  func (m *TsoRequest) XXX_Size() int {
  1722  	return m.Size()
  1723  }
  1724  func (m *TsoRequest) XXX_DiscardUnknown() {
  1725  	xxx_messageInfo_TsoRequest.DiscardUnknown(m)
  1726  }
  1727  
  1728  var xxx_messageInfo_TsoRequest proto.InternalMessageInfo
  1729  
  1730  func (m *TsoRequest) GetCount() uint64 {
  1731  	if m != nil {
  1732  		return m.Count
  1733  	}
  1734  	return 0
  1735  }
  1736  
  1737  type CNStoreLabel struct {
  1738  	// UUID is the uuid of the CN store.
  1739  	UUID string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  1740  	// Operation is the CN label operation.
  1741  	// TODO(volgariver6): Unused field.
  1742  	Operation CNLabelOp `protobuf:"varint,2,opt,name=Operation,proto3,enum=logservice.CNLabelOp" json:"Operation,omitempty"`
  1743  	// Labels is the labels of the CN store.
  1744  	Labels               map[string]metadata.LabelList `protobuf:"bytes,3,rep,name=Labels,proto3" json:"Labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1745  	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
  1746  	XXX_unrecognized     []byte                        `json:"-"`
  1747  	XXX_sizecache        int32                         `json:"-"`
  1748  }
  1749  
  1750  func (m *CNStoreLabel) Reset()         { *m = CNStoreLabel{} }
  1751  func (m *CNStoreLabel) String() string { return proto.CompactTextString(m) }
  1752  func (*CNStoreLabel) ProtoMessage()    {}
  1753  func (*CNStoreLabel) Descriptor() ([]byte, []int) {
  1754  	return fileDescriptor_fd1040c5381ab5a7, []int{15}
  1755  }
  1756  func (m *CNStoreLabel) XXX_Unmarshal(b []byte) error {
  1757  	return m.Unmarshal(b)
  1758  }
  1759  func (m *CNStoreLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1760  	if deterministic {
  1761  		return xxx_messageInfo_CNStoreLabel.Marshal(b, m, deterministic)
  1762  	} else {
  1763  		b = b[:cap(b)]
  1764  		n, err := m.MarshalToSizedBuffer(b)
  1765  		if err != nil {
  1766  			return nil, err
  1767  		}
  1768  		return b[:n], nil
  1769  	}
  1770  }
  1771  func (m *CNStoreLabel) XXX_Merge(src proto.Message) {
  1772  	xxx_messageInfo_CNStoreLabel.Merge(m, src)
  1773  }
  1774  func (m *CNStoreLabel) XXX_Size() int {
  1775  	return m.Size()
  1776  }
  1777  func (m *CNStoreLabel) XXX_DiscardUnknown() {
  1778  	xxx_messageInfo_CNStoreLabel.DiscardUnknown(m)
  1779  }
  1780  
  1781  var xxx_messageInfo_CNStoreLabel proto.InternalMessageInfo
  1782  
  1783  func (m *CNStoreLabel) GetUUID() string {
  1784  	if m != nil {
  1785  		return m.UUID
  1786  	}
  1787  	return ""
  1788  }
  1789  
  1790  func (m *CNStoreLabel) GetOperation() CNLabelOp {
  1791  	if m != nil {
  1792  		return m.Operation
  1793  	}
  1794  	return SetLabel
  1795  }
  1796  
  1797  func (m *CNStoreLabel) GetLabels() map[string]metadata.LabelList {
  1798  	if m != nil {
  1799  		return m.Labels
  1800  	}
  1801  	return nil
  1802  }
  1803  
  1804  type CNWorkState struct {
  1805  	// UUID is the uuid of the CN store.
  1806  	UUID string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  1807  	// State is the CN work state.
  1808  	State                metadata.WorkState `protobuf:"varint,2,opt,name=State,proto3,enum=metadata.WorkState" json:"State,omitempty"`
  1809  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  1810  	XXX_unrecognized     []byte             `json:"-"`
  1811  	XXX_sizecache        int32              `json:"-"`
  1812  }
  1813  
  1814  func (m *CNWorkState) Reset()         { *m = CNWorkState{} }
  1815  func (m *CNWorkState) String() string { return proto.CompactTextString(m) }
  1816  func (*CNWorkState) ProtoMessage()    {}
  1817  func (*CNWorkState) Descriptor() ([]byte, []int) {
  1818  	return fileDescriptor_fd1040c5381ab5a7, []int{16}
  1819  }
  1820  func (m *CNWorkState) XXX_Unmarshal(b []byte) error {
  1821  	return m.Unmarshal(b)
  1822  }
  1823  func (m *CNWorkState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1824  	if deterministic {
  1825  		return xxx_messageInfo_CNWorkState.Marshal(b, m, deterministic)
  1826  	} else {
  1827  		b = b[:cap(b)]
  1828  		n, err := m.MarshalToSizedBuffer(b)
  1829  		if err != nil {
  1830  			return nil, err
  1831  		}
  1832  		return b[:n], nil
  1833  	}
  1834  }
  1835  func (m *CNWorkState) XXX_Merge(src proto.Message) {
  1836  	xxx_messageInfo_CNWorkState.Merge(m, src)
  1837  }
  1838  func (m *CNWorkState) XXX_Size() int {
  1839  	return m.Size()
  1840  }
  1841  func (m *CNWorkState) XXX_DiscardUnknown() {
  1842  	xxx_messageInfo_CNWorkState.DiscardUnknown(m)
  1843  }
  1844  
  1845  var xxx_messageInfo_CNWorkState proto.InternalMessageInfo
  1846  
  1847  func (m *CNWorkState) GetUUID() string {
  1848  	if m != nil {
  1849  		return m.UUID
  1850  	}
  1851  	return ""
  1852  }
  1853  
  1854  func (m *CNWorkState) GetState() metadata.WorkState {
  1855  	if m != nil {
  1856  		return m.State
  1857  	}
  1858  	return metadata.WorkState_Unknown
  1859  }
  1860  
  1861  type CNStateLabel struct {
  1862  	// UUID is the uuid of the CN store.
  1863  	UUID string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  1864  	// State is the CN work state.
  1865  	State metadata.WorkState `protobuf:"varint,2,opt,name=State,proto3,enum=metadata.WorkState" json:"State,omitempty"`
  1866  	// Labels is the labels of the CN store.
  1867  	Labels               map[string]metadata.LabelList `protobuf:"bytes,3,rep,name=Labels,proto3" json:"Labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1868  	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
  1869  	XXX_unrecognized     []byte                        `json:"-"`
  1870  	XXX_sizecache        int32                         `json:"-"`
  1871  }
  1872  
  1873  func (m *CNStateLabel) Reset()         { *m = CNStateLabel{} }
  1874  func (m *CNStateLabel) String() string { return proto.CompactTextString(m) }
  1875  func (*CNStateLabel) ProtoMessage()    {}
  1876  func (*CNStateLabel) Descriptor() ([]byte, []int) {
  1877  	return fileDescriptor_fd1040c5381ab5a7, []int{17}
  1878  }
  1879  func (m *CNStateLabel) XXX_Unmarshal(b []byte) error {
  1880  	return m.Unmarshal(b)
  1881  }
  1882  func (m *CNStateLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1883  	if deterministic {
  1884  		return xxx_messageInfo_CNStateLabel.Marshal(b, m, deterministic)
  1885  	} else {
  1886  		b = b[:cap(b)]
  1887  		n, err := m.MarshalToSizedBuffer(b)
  1888  		if err != nil {
  1889  			return nil, err
  1890  		}
  1891  		return b[:n], nil
  1892  	}
  1893  }
  1894  func (m *CNStateLabel) XXX_Merge(src proto.Message) {
  1895  	xxx_messageInfo_CNStateLabel.Merge(m, src)
  1896  }
  1897  func (m *CNStateLabel) XXX_Size() int {
  1898  	return m.Size()
  1899  }
  1900  func (m *CNStateLabel) XXX_DiscardUnknown() {
  1901  	xxx_messageInfo_CNStateLabel.DiscardUnknown(m)
  1902  }
  1903  
  1904  var xxx_messageInfo_CNStateLabel proto.InternalMessageInfo
  1905  
  1906  func (m *CNStateLabel) GetUUID() string {
  1907  	if m != nil {
  1908  		return m.UUID
  1909  	}
  1910  	return ""
  1911  }
  1912  
  1913  func (m *CNStateLabel) GetState() metadata.WorkState {
  1914  	if m != nil {
  1915  		return m.State
  1916  	}
  1917  	return metadata.WorkState_Unknown
  1918  }
  1919  
  1920  func (m *CNStateLabel) GetLabels() map[string]metadata.LabelList {
  1921  	if m != nil {
  1922  		return m.Labels
  1923  	}
  1924  	return nil
  1925  }
  1926  
  1927  type Request struct {
  1928  	RequestID            uint64             `protobuf:"varint,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"`
  1929  	Method               MethodType         `protobuf:"varint,2,opt,name=Method,proto3,enum=logservice.MethodType" json:"Method,omitempty"`
  1930  	LogRequest           LogRequest         `protobuf:"bytes,3,opt,name=LogRequest,proto3" json:"LogRequest"`
  1931  	LogHeartbeat         *LogStoreHeartbeat `protobuf:"bytes,4,opt,name=LogHeartbeat,proto3" json:"LogHeartbeat,omitempty"`
  1932  	CNHeartbeat          *CNStoreHeartbeat  `protobuf:"bytes,5,opt,name=CNHeartbeat,proto3" json:"CNHeartbeat,omitempty"`
  1933  	TNHeartbeat          *TNStoreHeartbeat  `protobuf:"bytes,6,opt,name=TNHeartbeat,proto3" json:"TNHeartbeat,omitempty"`
  1934  	TsoRequest           *TsoRequest        `protobuf:"bytes,7,opt,name=TsoRequest,proto3" json:"TsoRequest,omitempty"`
  1935  	CNAllocateID         *CNAllocateID      `protobuf:"bytes,8,opt,name=CNAllocateID,proto3" json:"CNAllocateID,omitempty"`
  1936  	CNStoreLabel         *CNStoreLabel      `protobuf:"bytes,9,opt,name=CNStoreLabel,proto3" json:"CNStoreLabel,omitempty"`
  1937  	CNWorkState          *CNWorkState       `protobuf:"bytes,10,opt,name=CNWorkState,proto3" json:"CNWorkState,omitempty"`
  1938  	CNStateLabel         *CNStateLabel      `protobuf:"bytes,11,opt,name=CNStateLabel,proto3" json:"CNStateLabel,omitempty"`
  1939  	DeleteCNStore        *DeleteCNStore     `protobuf:"bytes,12,opt,name=DeleteCNStore,proto3" json:"DeleteCNStore,omitempty"`
  1940  	ProxyHeartbeat       *ProxyHeartbeat    `protobuf:"bytes,13,opt,name=ProxyHeartbeat,proto3" json:"ProxyHeartbeat,omitempty"`
  1941  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  1942  	XXX_unrecognized     []byte             `json:"-"`
  1943  	XXX_sizecache        int32              `json:"-"`
  1944  }
  1945  
  1946  func (m *Request) Reset()         { *m = Request{} }
  1947  func (m *Request) String() string { return proto.CompactTextString(m) }
  1948  func (*Request) ProtoMessage()    {}
  1949  func (*Request) Descriptor() ([]byte, []int) {
  1950  	return fileDescriptor_fd1040c5381ab5a7, []int{18}
  1951  }
  1952  func (m *Request) XXX_Unmarshal(b []byte) error {
  1953  	return m.Unmarshal(b)
  1954  }
  1955  func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1956  	if deterministic {
  1957  		return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  1958  	} else {
  1959  		b = b[:cap(b)]
  1960  		n, err := m.MarshalToSizedBuffer(b)
  1961  		if err != nil {
  1962  			return nil, err
  1963  		}
  1964  		return b[:n], nil
  1965  	}
  1966  }
  1967  func (m *Request) XXX_Merge(src proto.Message) {
  1968  	xxx_messageInfo_Request.Merge(m, src)
  1969  }
  1970  func (m *Request) XXX_Size() int {
  1971  	return m.Size()
  1972  }
  1973  func (m *Request) XXX_DiscardUnknown() {
  1974  	xxx_messageInfo_Request.DiscardUnknown(m)
  1975  }
  1976  
  1977  var xxx_messageInfo_Request proto.InternalMessageInfo
  1978  
  1979  func (m *Request) GetRequestID() uint64 {
  1980  	if m != nil {
  1981  		return m.RequestID
  1982  	}
  1983  	return 0
  1984  }
  1985  
  1986  func (m *Request) GetMethod() MethodType {
  1987  	if m != nil {
  1988  		return m.Method
  1989  	}
  1990  	return TSO_UPDATE
  1991  }
  1992  
  1993  func (m *Request) GetLogRequest() LogRequest {
  1994  	if m != nil {
  1995  		return m.LogRequest
  1996  	}
  1997  	return LogRequest{}
  1998  }
  1999  
  2000  func (m *Request) GetLogHeartbeat() *LogStoreHeartbeat {
  2001  	if m != nil {
  2002  		return m.LogHeartbeat
  2003  	}
  2004  	return nil
  2005  }
  2006  
  2007  func (m *Request) GetCNHeartbeat() *CNStoreHeartbeat {
  2008  	if m != nil {
  2009  		return m.CNHeartbeat
  2010  	}
  2011  	return nil
  2012  }
  2013  
  2014  func (m *Request) GetTNHeartbeat() *TNStoreHeartbeat {
  2015  	if m != nil {
  2016  		return m.TNHeartbeat
  2017  	}
  2018  	return nil
  2019  }
  2020  
  2021  func (m *Request) GetTsoRequest() *TsoRequest {
  2022  	if m != nil {
  2023  		return m.TsoRequest
  2024  	}
  2025  	return nil
  2026  }
  2027  
  2028  func (m *Request) GetCNAllocateID() *CNAllocateID {
  2029  	if m != nil {
  2030  		return m.CNAllocateID
  2031  	}
  2032  	return nil
  2033  }
  2034  
  2035  func (m *Request) GetCNStoreLabel() *CNStoreLabel {
  2036  	if m != nil {
  2037  		return m.CNStoreLabel
  2038  	}
  2039  	return nil
  2040  }
  2041  
  2042  func (m *Request) GetCNWorkState() *CNWorkState {
  2043  	if m != nil {
  2044  		return m.CNWorkState
  2045  	}
  2046  	return nil
  2047  }
  2048  
  2049  func (m *Request) GetCNStateLabel() *CNStateLabel {
  2050  	if m != nil {
  2051  		return m.CNStateLabel
  2052  	}
  2053  	return nil
  2054  }
  2055  
  2056  func (m *Request) GetDeleteCNStore() *DeleteCNStore {
  2057  	if m != nil {
  2058  		return m.DeleteCNStore
  2059  	}
  2060  	return nil
  2061  }
  2062  
  2063  func (m *Request) GetProxyHeartbeat() *ProxyHeartbeat {
  2064  	if m != nil {
  2065  		return m.ProxyHeartbeat
  2066  	}
  2067  	return nil
  2068  }
  2069  
  2070  type LogResponse struct {
  2071  	ShardID              uint64   `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
  2072  	Lsn                  uint64   `protobuf:"varint,2,opt,name=Lsn,proto3" json:"Lsn,omitempty"`
  2073  	LastLsn              uint64   `protobuf:"varint,3,opt,name=LastLsn,proto3" json:"LastLsn,omitempty"`
  2074  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2075  	XXX_unrecognized     []byte   `json:"-"`
  2076  	XXX_sizecache        int32    `json:"-"`
  2077  }
  2078  
  2079  func (m *LogResponse) Reset()         { *m = LogResponse{} }
  2080  func (m *LogResponse) String() string { return proto.CompactTextString(m) }
  2081  func (*LogResponse) ProtoMessage()    {}
  2082  func (*LogResponse) Descriptor() ([]byte, []int) {
  2083  	return fileDescriptor_fd1040c5381ab5a7, []int{19}
  2084  }
  2085  func (m *LogResponse) XXX_Unmarshal(b []byte) error {
  2086  	return m.Unmarshal(b)
  2087  }
  2088  func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2089  	if deterministic {
  2090  		return xxx_messageInfo_LogResponse.Marshal(b, m, deterministic)
  2091  	} else {
  2092  		b = b[:cap(b)]
  2093  		n, err := m.MarshalToSizedBuffer(b)
  2094  		if err != nil {
  2095  			return nil, err
  2096  		}
  2097  		return b[:n], nil
  2098  	}
  2099  }
  2100  func (m *LogResponse) XXX_Merge(src proto.Message) {
  2101  	xxx_messageInfo_LogResponse.Merge(m, src)
  2102  }
  2103  func (m *LogResponse) XXX_Size() int {
  2104  	return m.Size()
  2105  }
  2106  func (m *LogResponse) XXX_DiscardUnknown() {
  2107  	xxx_messageInfo_LogResponse.DiscardUnknown(m)
  2108  }
  2109  
  2110  var xxx_messageInfo_LogResponse proto.InternalMessageInfo
  2111  
  2112  func (m *LogResponse) GetShardID() uint64 {
  2113  	if m != nil {
  2114  		return m.ShardID
  2115  	}
  2116  	return 0
  2117  }
  2118  
  2119  func (m *LogResponse) GetLsn() uint64 {
  2120  	if m != nil {
  2121  		return m.Lsn
  2122  	}
  2123  	return 0
  2124  }
  2125  
  2126  func (m *LogResponse) GetLastLsn() uint64 {
  2127  	if m != nil {
  2128  		return m.LastLsn
  2129  	}
  2130  	return 0
  2131  }
  2132  
  2133  type AllocateIDResponse struct {
  2134  	FirstID              uint64   `protobuf:"varint,1,opt,name=FirstID,proto3" json:"FirstID,omitempty"`
  2135  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2136  	XXX_unrecognized     []byte   `json:"-"`
  2137  	XXX_sizecache        int32    `json:"-"`
  2138  }
  2139  
  2140  func (m *AllocateIDResponse) Reset()         { *m = AllocateIDResponse{} }
  2141  func (m *AllocateIDResponse) String() string { return proto.CompactTextString(m) }
  2142  func (*AllocateIDResponse) ProtoMessage()    {}
  2143  func (*AllocateIDResponse) Descriptor() ([]byte, []int) {
  2144  	return fileDescriptor_fd1040c5381ab5a7, []int{20}
  2145  }
  2146  func (m *AllocateIDResponse) XXX_Unmarshal(b []byte) error {
  2147  	return m.Unmarshal(b)
  2148  }
  2149  func (m *AllocateIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2150  	if deterministic {
  2151  		return xxx_messageInfo_AllocateIDResponse.Marshal(b, m, deterministic)
  2152  	} else {
  2153  		b = b[:cap(b)]
  2154  		n, err := m.MarshalToSizedBuffer(b)
  2155  		if err != nil {
  2156  			return nil, err
  2157  		}
  2158  		return b[:n], nil
  2159  	}
  2160  }
  2161  func (m *AllocateIDResponse) XXX_Merge(src proto.Message) {
  2162  	xxx_messageInfo_AllocateIDResponse.Merge(m, src)
  2163  }
  2164  func (m *AllocateIDResponse) XXX_Size() int {
  2165  	return m.Size()
  2166  }
  2167  func (m *AllocateIDResponse) XXX_DiscardUnknown() {
  2168  	xxx_messageInfo_AllocateIDResponse.DiscardUnknown(m)
  2169  }
  2170  
  2171  var xxx_messageInfo_AllocateIDResponse proto.InternalMessageInfo
  2172  
  2173  func (m *AllocateIDResponse) GetFirstID() uint64 {
  2174  	if m != nil {
  2175  		return m.FirstID
  2176  	}
  2177  	return 0
  2178  }
  2179  
  2180  type Response struct {
  2181  	RequestID            uint64                `protobuf:"varint,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"`
  2182  	Method               MethodType            `protobuf:"varint,2,opt,name=Method,proto3,enum=logservice.MethodType" json:"Method,omitempty"`
  2183  	ErrorCode            uint32                `protobuf:"varint,3,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"`
  2184  	ErrorMessage         string                `protobuf:"bytes,4,opt,name=ErrorMessage,proto3" json:"ErrorMessage,omitempty"`
  2185  	IsHAKeeper           bool                  `protobuf:"varint,5,opt,name=IsHAKeeper,proto3" json:"IsHAKeeper,omitempty"`
  2186  	LogResponse          LogResponse           `protobuf:"bytes,6,opt,name=LogResponse,proto3" json:"LogResponse"`
  2187  	CommandBatch         *CommandBatch         `protobuf:"bytes,7,opt,name=CommandBatch,proto3" json:"CommandBatch,omitempty"`
  2188  	TsoResponse          *TsoResponse          `protobuf:"bytes,8,opt,name=TsoResponse,proto3" json:"TsoResponse,omitempty"`
  2189  	ClusterDetails       *ClusterDetails       `protobuf:"bytes,9,opt,name=ClusterDetails,proto3" json:"ClusterDetails,omitempty"`
  2190  	ShardInfo            *ShardInfoQueryResult `protobuf:"bytes,10,opt,name=ShardInfo,proto3" json:"ShardInfo,omitempty"`
  2191  	AllocateID           *AllocateIDResponse   `protobuf:"bytes,11,opt,name=AllocateID,proto3" json:"AllocateID,omitempty"`
  2192  	CheckerState         *CheckerState         `protobuf:"bytes,12,opt,name=CheckerState,proto3" json:"CheckerState,omitempty"`
  2193  	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
  2194  	XXX_unrecognized     []byte                `json:"-"`
  2195  	XXX_sizecache        int32                 `json:"-"`
  2196  }
  2197  
  2198  func (m *Response) Reset()         { *m = Response{} }
  2199  func (m *Response) String() string { return proto.CompactTextString(m) }
  2200  func (*Response) ProtoMessage()    {}
  2201  func (*Response) Descriptor() ([]byte, []int) {
  2202  	return fileDescriptor_fd1040c5381ab5a7, []int{21}
  2203  }
  2204  func (m *Response) XXX_Unmarshal(b []byte) error {
  2205  	return m.Unmarshal(b)
  2206  }
  2207  func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2208  	if deterministic {
  2209  		return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  2210  	} else {
  2211  		b = b[:cap(b)]
  2212  		n, err := m.MarshalToSizedBuffer(b)
  2213  		if err != nil {
  2214  			return nil, err
  2215  		}
  2216  		return b[:n], nil
  2217  	}
  2218  }
  2219  func (m *Response) XXX_Merge(src proto.Message) {
  2220  	xxx_messageInfo_Response.Merge(m, src)
  2221  }
  2222  func (m *Response) XXX_Size() int {
  2223  	return m.Size()
  2224  }
  2225  func (m *Response) XXX_DiscardUnknown() {
  2226  	xxx_messageInfo_Response.DiscardUnknown(m)
  2227  }
  2228  
  2229  var xxx_messageInfo_Response proto.InternalMessageInfo
  2230  
  2231  func (m *Response) GetRequestID() uint64 {
  2232  	if m != nil {
  2233  		return m.RequestID
  2234  	}
  2235  	return 0
  2236  }
  2237  
  2238  func (m *Response) GetMethod() MethodType {
  2239  	if m != nil {
  2240  		return m.Method
  2241  	}
  2242  	return TSO_UPDATE
  2243  }
  2244  
  2245  func (m *Response) GetErrorCode() uint32 {
  2246  	if m != nil {
  2247  		return m.ErrorCode
  2248  	}
  2249  	return 0
  2250  }
  2251  
  2252  func (m *Response) GetErrorMessage() string {
  2253  	if m != nil {
  2254  		return m.ErrorMessage
  2255  	}
  2256  	return ""
  2257  }
  2258  
  2259  func (m *Response) GetIsHAKeeper() bool {
  2260  	if m != nil {
  2261  		return m.IsHAKeeper
  2262  	}
  2263  	return false
  2264  }
  2265  
  2266  func (m *Response) GetLogResponse() LogResponse {
  2267  	if m != nil {
  2268  		return m.LogResponse
  2269  	}
  2270  	return LogResponse{}
  2271  }
  2272  
  2273  func (m *Response) GetCommandBatch() *CommandBatch {
  2274  	if m != nil {
  2275  		return m.CommandBatch
  2276  	}
  2277  	return nil
  2278  }
  2279  
  2280  func (m *Response) GetTsoResponse() *TsoResponse {
  2281  	if m != nil {
  2282  		return m.TsoResponse
  2283  	}
  2284  	return nil
  2285  }
  2286  
  2287  func (m *Response) GetClusterDetails() *ClusterDetails {
  2288  	if m != nil {
  2289  		return m.ClusterDetails
  2290  	}
  2291  	return nil
  2292  }
  2293  
  2294  func (m *Response) GetShardInfo() *ShardInfoQueryResult {
  2295  	if m != nil {
  2296  		return m.ShardInfo
  2297  	}
  2298  	return nil
  2299  }
  2300  
  2301  func (m *Response) GetAllocateID() *AllocateIDResponse {
  2302  	if m != nil {
  2303  		return m.AllocateID
  2304  	}
  2305  	return nil
  2306  }
  2307  
  2308  func (m *Response) GetCheckerState() *CheckerState {
  2309  	if m != nil {
  2310  		return m.CheckerState
  2311  	}
  2312  	return nil
  2313  }
  2314  
  2315  type LogRecordResponse struct {
  2316  	Records              []LogRecord `protobuf:"bytes,1,rep,name=Records,proto3" json:"Records"`
  2317  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  2318  	XXX_unrecognized     []byte      `json:"-"`
  2319  	XXX_sizecache        int32       `json:"-"`
  2320  }
  2321  
  2322  func (m *LogRecordResponse) Reset()         { *m = LogRecordResponse{} }
  2323  func (m *LogRecordResponse) String() string { return proto.CompactTextString(m) }
  2324  func (*LogRecordResponse) ProtoMessage()    {}
  2325  func (*LogRecordResponse) Descriptor() ([]byte, []int) {
  2326  	return fileDescriptor_fd1040c5381ab5a7, []int{22}
  2327  }
  2328  func (m *LogRecordResponse) XXX_Unmarshal(b []byte) error {
  2329  	return m.Unmarshal(b)
  2330  }
  2331  func (m *LogRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2332  	if deterministic {
  2333  		return xxx_messageInfo_LogRecordResponse.Marshal(b, m, deterministic)
  2334  	} else {
  2335  		b = b[:cap(b)]
  2336  		n, err := m.MarshalToSizedBuffer(b)
  2337  		if err != nil {
  2338  			return nil, err
  2339  		}
  2340  		return b[:n], nil
  2341  	}
  2342  }
  2343  func (m *LogRecordResponse) XXX_Merge(src proto.Message) {
  2344  	xxx_messageInfo_LogRecordResponse.Merge(m, src)
  2345  }
  2346  func (m *LogRecordResponse) XXX_Size() int {
  2347  	return m.Size()
  2348  }
  2349  func (m *LogRecordResponse) XXX_DiscardUnknown() {
  2350  	xxx_messageInfo_LogRecordResponse.DiscardUnknown(m)
  2351  }
  2352  
  2353  var xxx_messageInfo_LogRecordResponse proto.InternalMessageInfo
  2354  
  2355  func (m *LogRecordResponse) GetRecords() []LogRecord {
  2356  	if m != nil {
  2357  		return m.Records
  2358  	}
  2359  	return nil
  2360  }
  2361  
  2362  type TsoResponse struct {
  2363  	Value                uint64   `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
  2364  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2365  	XXX_unrecognized     []byte   `json:"-"`
  2366  	XXX_sizecache        int32    `json:"-"`
  2367  }
  2368  
  2369  func (m *TsoResponse) Reset()         { *m = TsoResponse{} }
  2370  func (m *TsoResponse) String() string { return proto.CompactTextString(m) }
  2371  func (*TsoResponse) ProtoMessage()    {}
  2372  func (*TsoResponse) Descriptor() ([]byte, []int) {
  2373  	return fileDescriptor_fd1040c5381ab5a7, []int{23}
  2374  }
  2375  func (m *TsoResponse) XXX_Unmarshal(b []byte) error {
  2376  	return m.Unmarshal(b)
  2377  }
  2378  func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2379  	if deterministic {
  2380  		return xxx_messageInfo_TsoResponse.Marshal(b, m, deterministic)
  2381  	} else {
  2382  		b = b[:cap(b)]
  2383  		n, err := m.MarshalToSizedBuffer(b)
  2384  		if err != nil {
  2385  			return nil, err
  2386  		}
  2387  		return b[:n], nil
  2388  	}
  2389  }
  2390  func (m *TsoResponse) XXX_Merge(src proto.Message) {
  2391  	xxx_messageInfo_TsoResponse.Merge(m, src)
  2392  }
  2393  func (m *TsoResponse) XXX_Size() int {
  2394  	return m.Size()
  2395  }
  2396  func (m *TsoResponse) XXX_DiscardUnknown() {
  2397  	xxx_messageInfo_TsoResponse.DiscardUnknown(m)
  2398  }
  2399  
  2400  var xxx_messageInfo_TsoResponse proto.InternalMessageInfo
  2401  
  2402  func (m *TsoResponse) GetValue() uint64 {
  2403  	if m != nil {
  2404  		return m.Value
  2405  	}
  2406  	return 0
  2407  }
  2408  
  2409  type TaskTableUser struct {
  2410  	// Username for task table user
  2411  	Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
  2412  	// Password for task table user
  2413  	Password             string   `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
  2414  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2415  	XXX_unrecognized     []byte   `json:"-"`
  2416  	XXX_sizecache        int32    `json:"-"`
  2417  }
  2418  
  2419  func (m *TaskTableUser) Reset()         { *m = TaskTableUser{} }
  2420  func (m *TaskTableUser) String() string { return proto.CompactTextString(m) }
  2421  func (*TaskTableUser) ProtoMessage()    {}
  2422  func (*TaskTableUser) Descriptor() ([]byte, []int) {
  2423  	return fileDescriptor_fd1040c5381ab5a7, []int{24}
  2424  }
  2425  func (m *TaskTableUser) XXX_Unmarshal(b []byte) error {
  2426  	return m.Unmarshal(b)
  2427  }
  2428  func (m *TaskTableUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2429  	if deterministic {
  2430  		return xxx_messageInfo_TaskTableUser.Marshal(b, m, deterministic)
  2431  	} else {
  2432  		b = b[:cap(b)]
  2433  		n, err := m.MarshalToSizedBuffer(b)
  2434  		if err != nil {
  2435  			return nil, err
  2436  		}
  2437  		return b[:n], nil
  2438  	}
  2439  }
  2440  func (m *TaskTableUser) XXX_Merge(src proto.Message) {
  2441  	xxx_messageInfo_TaskTableUser.Merge(m, src)
  2442  }
  2443  func (m *TaskTableUser) XXX_Size() int {
  2444  	return m.Size()
  2445  }
  2446  func (m *TaskTableUser) XXX_DiscardUnknown() {
  2447  	xxx_messageInfo_TaskTableUser.DiscardUnknown(m)
  2448  }
  2449  
  2450  var xxx_messageInfo_TaskTableUser proto.InternalMessageInfo
  2451  
  2452  func (m *TaskTableUser) GetUsername() string {
  2453  	if m != nil {
  2454  		return m.Username
  2455  	}
  2456  	return ""
  2457  }
  2458  
  2459  func (m *TaskTableUser) GetPassword() string {
  2460  	if m != nil {
  2461  		return m.Password
  2462  	}
  2463  	return ""
  2464  }
  2465  
  2466  // Replica of the shard
  2467  type Replica struct {
  2468  	// UUID which store the Replica is located in
  2469  	UUID      string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  2470  	ShardID   uint64 `protobuf:"varint,2,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
  2471  	ReplicaID uint64 `protobuf:"varint,3,opt,name=ReplicaID,proto3" json:"ReplicaID,omitempty"`
  2472  	Epoch     uint64 `protobuf:"varint,4,opt,name=Epoch,proto3" json:"Epoch,omitempty"`
  2473  	// LogShardID only used for TNShard.
  2474  	LogShardID           uint64   `protobuf:"varint,5,opt,name=LogShardID,proto3" json:"LogShardID,omitempty"`
  2475  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2476  	XXX_unrecognized     []byte   `json:"-"`
  2477  	XXX_sizecache        int32    `json:"-"`
  2478  }
  2479  
  2480  func (m *Replica) Reset()         { *m = Replica{} }
  2481  func (m *Replica) String() string { return proto.CompactTextString(m) }
  2482  func (*Replica) ProtoMessage()    {}
  2483  func (*Replica) Descriptor() ([]byte, []int) {
  2484  	return fileDescriptor_fd1040c5381ab5a7, []int{25}
  2485  }
  2486  func (m *Replica) XXX_Unmarshal(b []byte) error {
  2487  	return m.Unmarshal(b)
  2488  }
  2489  func (m *Replica) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2490  	if deterministic {
  2491  		return xxx_messageInfo_Replica.Marshal(b, m, deterministic)
  2492  	} else {
  2493  		b = b[:cap(b)]
  2494  		n, err := m.MarshalToSizedBuffer(b)
  2495  		if err != nil {
  2496  			return nil, err
  2497  		}
  2498  		return b[:n], nil
  2499  	}
  2500  }
  2501  func (m *Replica) XXX_Merge(src proto.Message) {
  2502  	xxx_messageInfo_Replica.Merge(m, src)
  2503  }
  2504  func (m *Replica) XXX_Size() int {
  2505  	return m.Size()
  2506  }
  2507  func (m *Replica) XXX_DiscardUnknown() {
  2508  	xxx_messageInfo_Replica.DiscardUnknown(m)
  2509  }
  2510  
  2511  var xxx_messageInfo_Replica proto.InternalMessageInfo
  2512  
  2513  func (m *Replica) GetUUID() string {
  2514  	if m != nil {
  2515  		return m.UUID
  2516  	}
  2517  	return ""
  2518  }
  2519  
  2520  func (m *Replica) GetShardID() uint64 {
  2521  	if m != nil {
  2522  		return m.ShardID
  2523  	}
  2524  	return 0
  2525  }
  2526  
  2527  func (m *Replica) GetReplicaID() uint64 {
  2528  	if m != nil {
  2529  		return m.ReplicaID
  2530  	}
  2531  	return 0
  2532  }
  2533  
  2534  func (m *Replica) GetEpoch() uint64 {
  2535  	if m != nil {
  2536  		return m.Epoch
  2537  	}
  2538  	return 0
  2539  }
  2540  
  2541  func (m *Replica) GetLogShardID() uint64 {
  2542  	if m != nil {
  2543  		return m.LogShardID
  2544  	}
  2545  	return 0
  2546  }
  2547  
  2548  // ConfigChange is the detail of a config change.
  2549  type ConfigChange struct {
  2550  	Replica    Replica          `protobuf:"bytes,1,opt,name=Replica,proto3" json:"Replica"`
  2551  	ChangeType ConfigChangeType `protobuf:"varint,2,opt,name=ChangeType,proto3,enum=logservice.ConfigChangeType" json:"ChangeType,omitempty"`
  2552  	// only used for bootstrap
  2553  	InitialMembers       map[uint64]string `protobuf:"bytes,3,rep,name=InitialMembers,proto3" json:"InitialMembers,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  2554  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  2555  	XXX_unrecognized     []byte            `json:"-"`
  2556  	XXX_sizecache        int32             `json:"-"`
  2557  }
  2558  
  2559  func (m *ConfigChange) Reset()         { *m = ConfigChange{} }
  2560  func (m *ConfigChange) String() string { return proto.CompactTextString(m) }
  2561  func (*ConfigChange) ProtoMessage()    {}
  2562  func (*ConfigChange) Descriptor() ([]byte, []int) {
  2563  	return fileDescriptor_fd1040c5381ab5a7, []int{26}
  2564  }
  2565  func (m *ConfigChange) XXX_Unmarshal(b []byte) error {
  2566  	return m.Unmarshal(b)
  2567  }
  2568  func (m *ConfigChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2569  	if deterministic {
  2570  		return xxx_messageInfo_ConfigChange.Marshal(b, m, deterministic)
  2571  	} else {
  2572  		b = b[:cap(b)]
  2573  		n, err := m.MarshalToSizedBuffer(b)
  2574  		if err != nil {
  2575  			return nil, err
  2576  		}
  2577  		return b[:n], nil
  2578  	}
  2579  }
  2580  func (m *ConfigChange) XXX_Merge(src proto.Message) {
  2581  	xxx_messageInfo_ConfigChange.Merge(m, src)
  2582  }
  2583  func (m *ConfigChange) XXX_Size() int {
  2584  	return m.Size()
  2585  }
  2586  func (m *ConfigChange) XXX_DiscardUnknown() {
  2587  	xxx_messageInfo_ConfigChange.DiscardUnknown(m)
  2588  }
  2589  
  2590  var xxx_messageInfo_ConfigChange proto.InternalMessageInfo
  2591  
  2592  func (m *ConfigChange) GetReplica() Replica {
  2593  	if m != nil {
  2594  		return m.Replica
  2595  	}
  2596  	return Replica{}
  2597  }
  2598  
  2599  func (m *ConfigChange) GetChangeType() ConfigChangeType {
  2600  	if m != nil {
  2601  		return m.ChangeType
  2602  	}
  2603  	return AddReplica
  2604  }
  2605  
  2606  func (m *ConfigChange) GetInitialMembers() map[uint64]string {
  2607  	if m != nil {
  2608  		return m.InitialMembers
  2609  	}
  2610  	return nil
  2611  }
  2612  
  2613  // ShutdownStore would stop store.
  2614  type ShutdownStore struct {
  2615  	StoreID              string   `protobuf:"bytes,1,opt,name=StoreID,proto3" json:"StoreID,omitempty"`
  2616  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2617  	XXX_unrecognized     []byte   `json:"-"`
  2618  	XXX_sizecache        int32    `json:"-"`
  2619  }
  2620  
  2621  func (m *ShutdownStore) Reset()         { *m = ShutdownStore{} }
  2622  func (m *ShutdownStore) String() string { return proto.CompactTextString(m) }
  2623  func (*ShutdownStore) ProtoMessage()    {}
  2624  func (*ShutdownStore) Descriptor() ([]byte, []int) {
  2625  	return fileDescriptor_fd1040c5381ab5a7, []int{27}
  2626  }
  2627  func (m *ShutdownStore) XXX_Unmarshal(b []byte) error {
  2628  	return m.Unmarshal(b)
  2629  }
  2630  func (m *ShutdownStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2631  	if deterministic {
  2632  		return xxx_messageInfo_ShutdownStore.Marshal(b, m, deterministic)
  2633  	} else {
  2634  		b = b[:cap(b)]
  2635  		n, err := m.MarshalToSizedBuffer(b)
  2636  		if err != nil {
  2637  			return nil, err
  2638  		}
  2639  		return b[:n], nil
  2640  	}
  2641  }
  2642  func (m *ShutdownStore) XXX_Merge(src proto.Message) {
  2643  	xxx_messageInfo_ShutdownStore.Merge(m, src)
  2644  }
  2645  func (m *ShutdownStore) XXX_Size() int {
  2646  	return m.Size()
  2647  }
  2648  func (m *ShutdownStore) XXX_DiscardUnknown() {
  2649  	xxx_messageInfo_ShutdownStore.DiscardUnknown(m)
  2650  }
  2651  
  2652  var xxx_messageInfo_ShutdownStore proto.InternalMessageInfo
  2653  
  2654  func (m *ShutdownStore) GetStoreID() string {
  2655  	if m != nil {
  2656  		return m.StoreID
  2657  	}
  2658  	return ""
  2659  }
  2660  
  2661  // ScheduleCommand contains a shard schedule command.
  2662  type ScheduleCommand struct {
  2663  	// UUID which store the ScheduleCommand is sent to
  2664  	UUID                 string             `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  2665  	Bootstrapping        bool               `protobuf:"varint,2,opt,name=Bootstrapping,proto3" json:"Bootstrapping,omitempty"`
  2666  	ServiceType          ServiceType        `protobuf:"varint,3,opt,name=ServiceType,proto3,enum=logservice.ServiceType" json:"ServiceType,omitempty"`
  2667  	ConfigChange         *ConfigChange      `protobuf:"bytes,4,opt,name=ConfigChange,proto3" json:"ConfigChange,omitempty"`
  2668  	ShutdownStore        *ShutdownStore     `protobuf:"bytes,5,opt,name=ShutdownStore,proto3" json:"ShutdownStore,omitempty"`
  2669  	CreateTaskService    *CreateTaskService `protobuf:"bytes,6,opt,name=CreateTaskService,proto3" json:"CreateTaskService,omitempty"`
  2670  	DeleteCNStore        *DeleteCNStore     `protobuf:"bytes,7,opt,name=DeleteCNStore,proto3" json:"DeleteCNStore,omitempty"`
  2671  	JoinGossipCluster    *JoinGossipCluster `protobuf:"bytes,8,opt,name=JoinGossipCluster,proto3" json:"JoinGossipCluster,omitempty"`
  2672  	DeleteProxyStore     *DeleteProxyStore  `protobuf:"bytes,9,opt,name=DeleteProxyStore,proto3" json:"DeleteProxyStore,omitempty"`
  2673  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  2674  	XXX_unrecognized     []byte             `json:"-"`
  2675  	XXX_sizecache        int32              `json:"-"`
  2676  }
  2677  
  2678  func (m *ScheduleCommand) Reset()         { *m = ScheduleCommand{} }
  2679  func (m *ScheduleCommand) String() string { return proto.CompactTextString(m) }
  2680  func (*ScheduleCommand) ProtoMessage()    {}
  2681  func (*ScheduleCommand) Descriptor() ([]byte, []int) {
  2682  	return fileDescriptor_fd1040c5381ab5a7, []int{28}
  2683  }
  2684  func (m *ScheduleCommand) XXX_Unmarshal(b []byte) error {
  2685  	return m.Unmarshal(b)
  2686  }
  2687  func (m *ScheduleCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2688  	if deterministic {
  2689  		return xxx_messageInfo_ScheduleCommand.Marshal(b, m, deterministic)
  2690  	} else {
  2691  		b = b[:cap(b)]
  2692  		n, err := m.MarshalToSizedBuffer(b)
  2693  		if err != nil {
  2694  			return nil, err
  2695  		}
  2696  		return b[:n], nil
  2697  	}
  2698  }
  2699  func (m *ScheduleCommand) XXX_Merge(src proto.Message) {
  2700  	xxx_messageInfo_ScheduleCommand.Merge(m, src)
  2701  }
  2702  func (m *ScheduleCommand) XXX_Size() int {
  2703  	return m.Size()
  2704  }
  2705  func (m *ScheduleCommand) XXX_DiscardUnknown() {
  2706  	xxx_messageInfo_ScheduleCommand.DiscardUnknown(m)
  2707  }
  2708  
  2709  var xxx_messageInfo_ScheduleCommand proto.InternalMessageInfo
  2710  
  2711  func (m *ScheduleCommand) GetUUID() string {
  2712  	if m != nil {
  2713  		return m.UUID
  2714  	}
  2715  	return ""
  2716  }
  2717  
  2718  func (m *ScheduleCommand) GetBootstrapping() bool {
  2719  	if m != nil {
  2720  		return m.Bootstrapping
  2721  	}
  2722  	return false
  2723  }
  2724  
  2725  func (m *ScheduleCommand) GetServiceType() ServiceType {
  2726  	if m != nil {
  2727  		return m.ServiceType
  2728  	}
  2729  	return LogService
  2730  }
  2731  
  2732  func (m *ScheduleCommand) GetConfigChange() *ConfigChange {
  2733  	if m != nil {
  2734  		return m.ConfigChange
  2735  	}
  2736  	return nil
  2737  }
  2738  
  2739  func (m *ScheduleCommand) GetShutdownStore() *ShutdownStore {
  2740  	if m != nil {
  2741  		return m.ShutdownStore
  2742  	}
  2743  	return nil
  2744  }
  2745  
  2746  func (m *ScheduleCommand) GetCreateTaskService() *CreateTaskService {
  2747  	if m != nil {
  2748  		return m.CreateTaskService
  2749  	}
  2750  	return nil
  2751  }
  2752  
  2753  func (m *ScheduleCommand) GetDeleteCNStore() *DeleteCNStore {
  2754  	if m != nil {
  2755  		return m.DeleteCNStore
  2756  	}
  2757  	return nil
  2758  }
  2759  
  2760  func (m *ScheduleCommand) GetJoinGossipCluster() *JoinGossipCluster {
  2761  	if m != nil {
  2762  		return m.JoinGossipCluster
  2763  	}
  2764  	return nil
  2765  }
  2766  
  2767  func (m *ScheduleCommand) GetDeleteProxyStore() *DeleteProxyStore {
  2768  	if m != nil {
  2769  		return m.DeleteProxyStore
  2770  	}
  2771  	return nil
  2772  }
  2773  
  2774  type JoinGossipCluster struct {
  2775  	Existing             []string `protobuf:"bytes,1,rep,name=Existing,proto3" json:"Existing,omitempty"`
  2776  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2777  	XXX_unrecognized     []byte   `json:"-"`
  2778  	XXX_sizecache        int32    `json:"-"`
  2779  }
  2780  
  2781  func (m *JoinGossipCluster) Reset()         { *m = JoinGossipCluster{} }
  2782  func (m *JoinGossipCluster) String() string { return proto.CompactTextString(m) }
  2783  func (*JoinGossipCluster) ProtoMessage()    {}
  2784  func (*JoinGossipCluster) Descriptor() ([]byte, []int) {
  2785  	return fileDescriptor_fd1040c5381ab5a7, []int{29}
  2786  }
  2787  func (m *JoinGossipCluster) XXX_Unmarshal(b []byte) error {
  2788  	return m.Unmarshal(b)
  2789  }
  2790  func (m *JoinGossipCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2791  	if deterministic {
  2792  		return xxx_messageInfo_JoinGossipCluster.Marshal(b, m, deterministic)
  2793  	} else {
  2794  		b = b[:cap(b)]
  2795  		n, err := m.MarshalToSizedBuffer(b)
  2796  		if err != nil {
  2797  			return nil, err
  2798  		}
  2799  		return b[:n], nil
  2800  	}
  2801  }
  2802  func (m *JoinGossipCluster) XXX_Merge(src proto.Message) {
  2803  	xxx_messageInfo_JoinGossipCluster.Merge(m, src)
  2804  }
  2805  func (m *JoinGossipCluster) XXX_Size() int {
  2806  	return m.Size()
  2807  }
  2808  func (m *JoinGossipCluster) XXX_DiscardUnknown() {
  2809  	xxx_messageInfo_JoinGossipCluster.DiscardUnknown(m)
  2810  }
  2811  
  2812  var xxx_messageInfo_JoinGossipCluster proto.InternalMessageInfo
  2813  
  2814  func (m *JoinGossipCluster) GetExisting() []string {
  2815  	if m != nil {
  2816  		return m.Existing
  2817  	}
  2818  	return nil
  2819  }
  2820  
  2821  // CreateTaskService start task service at current node
  2822  type CreateTaskService struct {
  2823  	// User used to connect to the task database.
  2824  	User TaskTableUser `protobuf:"bytes,1,opt,name=User,proto3" json:"User"`
  2825  	// TaskDatabase task framework database.
  2826  	TaskDatabase         string   `protobuf:"bytes,2,opt,name=TaskDatabase,proto3" json:"TaskDatabase,omitempty"`
  2827  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2828  	XXX_unrecognized     []byte   `json:"-"`
  2829  	XXX_sizecache        int32    `json:"-"`
  2830  }
  2831  
  2832  func (m *CreateTaskService) Reset()         { *m = CreateTaskService{} }
  2833  func (m *CreateTaskService) String() string { return proto.CompactTextString(m) }
  2834  func (*CreateTaskService) ProtoMessage()    {}
  2835  func (*CreateTaskService) Descriptor() ([]byte, []int) {
  2836  	return fileDescriptor_fd1040c5381ab5a7, []int{30}
  2837  }
  2838  func (m *CreateTaskService) XXX_Unmarshal(b []byte) error {
  2839  	return m.Unmarshal(b)
  2840  }
  2841  func (m *CreateTaskService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2842  	if deterministic {
  2843  		return xxx_messageInfo_CreateTaskService.Marshal(b, m, deterministic)
  2844  	} else {
  2845  		b = b[:cap(b)]
  2846  		n, err := m.MarshalToSizedBuffer(b)
  2847  		if err != nil {
  2848  			return nil, err
  2849  		}
  2850  		return b[:n], nil
  2851  	}
  2852  }
  2853  func (m *CreateTaskService) XXX_Merge(src proto.Message) {
  2854  	xxx_messageInfo_CreateTaskService.Merge(m, src)
  2855  }
  2856  func (m *CreateTaskService) XXX_Size() int {
  2857  	return m.Size()
  2858  }
  2859  func (m *CreateTaskService) XXX_DiscardUnknown() {
  2860  	xxx_messageInfo_CreateTaskService.DiscardUnknown(m)
  2861  }
  2862  
  2863  var xxx_messageInfo_CreateTaskService proto.InternalMessageInfo
  2864  
  2865  func (m *CreateTaskService) GetUser() TaskTableUser {
  2866  	if m != nil {
  2867  		return m.User
  2868  	}
  2869  	return TaskTableUser{}
  2870  }
  2871  
  2872  func (m *CreateTaskService) GetTaskDatabase() string {
  2873  	if m != nil {
  2874  		return m.TaskDatabase
  2875  	}
  2876  	return ""
  2877  }
  2878  
  2879  // DeleteCNStore deletes CN store from CNState to save hakeeper's memory.
  2880  type DeleteCNStore struct {
  2881  	StoreID              string   `protobuf:"bytes,1,opt,name=StoreID,proto3" json:"StoreID,omitempty"`
  2882  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2883  	XXX_unrecognized     []byte   `json:"-"`
  2884  	XXX_sizecache        int32    `json:"-"`
  2885  }
  2886  
  2887  func (m *DeleteCNStore) Reset()         { *m = DeleteCNStore{} }
  2888  func (m *DeleteCNStore) String() string { return proto.CompactTextString(m) }
  2889  func (*DeleteCNStore) ProtoMessage()    {}
  2890  func (*DeleteCNStore) Descriptor() ([]byte, []int) {
  2891  	return fileDescriptor_fd1040c5381ab5a7, []int{31}
  2892  }
  2893  func (m *DeleteCNStore) XXX_Unmarshal(b []byte) error {
  2894  	return m.Unmarshal(b)
  2895  }
  2896  func (m *DeleteCNStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2897  	if deterministic {
  2898  		return xxx_messageInfo_DeleteCNStore.Marshal(b, m, deterministic)
  2899  	} else {
  2900  		b = b[:cap(b)]
  2901  		n, err := m.MarshalToSizedBuffer(b)
  2902  		if err != nil {
  2903  			return nil, err
  2904  		}
  2905  		return b[:n], nil
  2906  	}
  2907  }
  2908  func (m *DeleteCNStore) XXX_Merge(src proto.Message) {
  2909  	xxx_messageInfo_DeleteCNStore.Merge(m, src)
  2910  }
  2911  func (m *DeleteCNStore) XXX_Size() int {
  2912  	return m.Size()
  2913  }
  2914  func (m *DeleteCNStore) XXX_DiscardUnknown() {
  2915  	xxx_messageInfo_DeleteCNStore.DiscardUnknown(m)
  2916  }
  2917  
  2918  var xxx_messageInfo_DeleteCNStore proto.InternalMessageInfo
  2919  
  2920  func (m *DeleteCNStore) GetStoreID() string {
  2921  	if m != nil {
  2922  		return m.StoreID
  2923  	}
  2924  	return ""
  2925  }
  2926  
  2927  // DeleteProxyStore deletes Proxy store from ProxyState to save hakeeper's memory.
  2928  type DeleteProxyStore struct {
  2929  	StoreID              string   `protobuf:"bytes,1,opt,name=StoreID,proto3" json:"StoreID,omitempty"`
  2930  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2931  	XXX_unrecognized     []byte   `json:"-"`
  2932  	XXX_sizecache        int32    `json:"-"`
  2933  }
  2934  
  2935  func (m *DeleteProxyStore) Reset()         { *m = DeleteProxyStore{} }
  2936  func (m *DeleteProxyStore) String() string { return proto.CompactTextString(m) }
  2937  func (*DeleteProxyStore) ProtoMessage()    {}
  2938  func (*DeleteProxyStore) Descriptor() ([]byte, []int) {
  2939  	return fileDescriptor_fd1040c5381ab5a7, []int{32}
  2940  }
  2941  func (m *DeleteProxyStore) XXX_Unmarshal(b []byte) error {
  2942  	return m.Unmarshal(b)
  2943  }
  2944  func (m *DeleteProxyStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2945  	if deterministic {
  2946  		return xxx_messageInfo_DeleteProxyStore.Marshal(b, m, deterministic)
  2947  	} else {
  2948  		b = b[:cap(b)]
  2949  		n, err := m.MarshalToSizedBuffer(b)
  2950  		if err != nil {
  2951  			return nil, err
  2952  		}
  2953  		return b[:n], nil
  2954  	}
  2955  }
  2956  func (m *DeleteProxyStore) XXX_Merge(src proto.Message) {
  2957  	xxx_messageInfo_DeleteProxyStore.Merge(m, src)
  2958  }
  2959  func (m *DeleteProxyStore) XXX_Size() int {
  2960  	return m.Size()
  2961  }
  2962  func (m *DeleteProxyStore) XXX_DiscardUnknown() {
  2963  	xxx_messageInfo_DeleteProxyStore.DiscardUnknown(m)
  2964  }
  2965  
  2966  var xxx_messageInfo_DeleteProxyStore proto.InternalMessageInfo
  2967  
  2968  func (m *DeleteProxyStore) GetStoreID() string {
  2969  	if m != nil {
  2970  		return m.StoreID
  2971  	}
  2972  	return ""
  2973  }
  2974  
  2975  type CommandBatch struct {
  2976  	Term                 uint64            `protobuf:"varint,1,opt,name=Term,proto3" json:"Term,omitempty"`
  2977  	Commands             []ScheduleCommand `protobuf:"bytes,2,rep,name=Commands,proto3" json:"Commands"`
  2978  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  2979  	XXX_unrecognized     []byte            `json:"-"`
  2980  	XXX_sizecache        int32             `json:"-"`
  2981  }
  2982  
  2983  func (m *CommandBatch) Reset()         { *m = CommandBatch{} }
  2984  func (m *CommandBatch) String() string { return proto.CompactTextString(m) }
  2985  func (*CommandBatch) ProtoMessage()    {}
  2986  func (*CommandBatch) Descriptor() ([]byte, []int) {
  2987  	return fileDescriptor_fd1040c5381ab5a7, []int{33}
  2988  }
  2989  func (m *CommandBatch) XXX_Unmarshal(b []byte) error {
  2990  	return m.Unmarshal(b)
  2991  }
  2992  func (m *CommandBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2993  	if deterministic {
  2994  		return xxx_messageInfo_CommandBatch.Marshal(b, m, deterministic)
  2995  	} else {
  2996  		b = b[:cap(b)]
  2997  		n, err := m.MarshalToSizedBuffer(b)
  2998  		if err != nil {
  2999  			return nil, err
  3000  		}
  3001  		return b[:n], nil
  3002  	}
  3003  }
  3004  func (m *CommandBatch) XXX_Merge(src proto.Message) {
  3005  	xxx_messageInfo_CommandBatch.Merge(m, src)
  3006  }
  3007  func (m *CommandBatch) XXX_Size() int {
  3008  	return m.Size()
  3009  }
  3010  func (m *CommandBatch) XXX_DiscardUnknown() {
  3011  	xxx_messageInfo_CommandBatch.DiscardUnknown(m)
  3012  }
  3013  
  3014  var xxx_messageInfo_CommandBatch proto.InternalMessageInfo
  3015  
  3016  func (m *CommandBatch) GetTerm() uint64 {
  3017  	if m != nil {
  3018  		return m.Term
  3019  	}
  3020  	return 0
  3021  }
  3022  
  3023  func (m *CommandBatch) GetCommands() []ScheduleCommand {
  3024  	if m != nil {
  3025  		return m.Commands
  3026  	}
  3027  	return nil
  3028  }
  3029  
  3030  // CNStoreInfo contains information on a CN store.
  3031  type CNStoreInfo struct {
  3032  	Tick                 uint64                        `protobuf:"varint,1,opt,name=Tick,proto3" json:"Tick,omitempty"`
  3033  	ServiceAddress       string                        `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  3034  	SQLAddress           string                        `protobuf:"bytes,3,opt,name=SQLAddress,proto3" json:"SQLAddress,omitempty"`
  3035  	LockServiceAddress   string                        `protobuf:"bytes,4,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
  3036  	Role                 metadata.CNRole               `protobuf:"varint,6,opt,name=Role,proto3,enum=metadata.CNRole" json:"Role,omitempty"`
  3037  	TaskServiceCreated   bool                          `protobuf:"varint,7,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  3038  	Labels               map[string]metadata.LabelList `protobuf:"bytes,8,rep,name=Labels,proto3" json:"Labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3039  	WorkState            metadata.WorkState            `protobuf:"varint,9,opt,name=WorkState,proto3,enum=metadata.WorkState" json:"WorkState,omitempty"`
  3040  	QueryAddress         string                        `protobuf:"bytes,10,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
  3041  	GossipAddress        string                        `protobuf:"bytes,11,opt,name=GossipAddress,proto3" json:"GossipAddress,omitempty"`
  3042  	GossipJoined         bool                          `protobuf:"varint,12,opt,name=GossipJoined,proto3" json:"GossipJoined,omitempty"`
  3043  	ConfigData           *ConfigData                   `protobuf:"bytes,13,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  3044  	Resource             Resource                      `protobuf:"bytes,14,opt,name=Resource,proto3" json:"Resource"`
  3045  	UpTime               int64                         `protobuf:"varint,15,opt,name=UpTime,proto3" json:"UpTime,omitempty"`
  3046  	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
  3047  	XXX_unrecognized     []byte                        `json:"-"`
  3048  	XXX_sizecache        int32                         `json:"-"`
  3049  }
  3050  
  3051  func (m *CNStoreInfo) Reset()         { *m = CNStoreInfo{} }
  3052  func (m *CNStoreInfo) String() string { return proto.CompactTextString(m) }
  3053  func (*CNStoreInfo) ProtoMessage()    {}
  3054  func (*CNStoreInfo) Descriptor() ([]byte, []int) {
  3055  	return fileDescriptor_fd1040c5381ab5a7, []int{34}
  3056  }
  3057  func (m *CNStoreInfo) XXX_Unmarshal(b []byte) error {
  3058  	return m.Unmarshal(b)
  3059  }
  3060  func (m *CNStoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3061  	if deterministic {
  3062  		return xxx_messageInfo_CNStoreInfo.Marshal(b, m, deterministic)
  3063  	} else {
  3064  		b = b[:cap(b)]
  3065  		n, err := m.MarshalToSizedBuffer(b)
  3066  		if err != nil {
  3067  			return nil, err
  3068  		}
  3069  		return b[:n], nil
  3070  	}
  3071  }
  3072  func (m *CNStoreInfo) XXX_Merge(src proto.Message) {
  3073  	xxx_messageInfo_CNStoreInfo.Merge(m, src)
  3074  }
  3075  func (m *CNStoreInfo) XXX_Size() int {
  3076  	return m.Size()
  3077  }
  3078  func (m *CNStoreInfo) XXX_DiscardUnknown() {
  3079  	xxx_messageInfo_CNStoreInfo.DiscardUnknown(m)
  3080  }
  3081  
  3082  var xxx_messageInfo_CNStoreInfo proto.InternalMessageInfo
  3083  
  3084  func (m *CNStoreInfo) GetTick() uint64 {
  3085  	if m != nil {
  3086  		return m.Tick
  3087  	}
  3088  	return 0
  3089  }
  3090  
  3091  func (m *CNStoreInfo) GetServiceAddress() string {
  3092  	if m != nil {
  3093  		return m.ServiceAddress
  3094  	}
  3095  	return ""
  3096  }
  3097  
  3098  func (m *CNStoreInfo) GetSQLAddress() string {
  3099  	if m != nil {
  3100  		return m.SQLAddress
  3101  	}
  3102  	return ""
  3103  }
  3104  
  3105  func (m *CNStoreInfo) GetLockServiceAddress() string {
  3106  	if m != nil {
  3107  		return m.LockServiceAddress
  3108  	}
  3109  	return ""
  3110  }
  3111  
  3112  func (m *CNStoreInfo) GetRole() metadata.CNRole {
  3113  	if m != nil {
  3114  		return m.Role
  3115  	}
  3116  	return metadata.CNRole_TP
  3117  }
  3118  
  3119  func (m *CNStoreInfo) GetTaskServiceCreated() bool {
  3120  	if m != nil {
  3121  		return m.TaskServiceCreated
  3122  	}
  3123  	return false
  3124  }
  3125  
  3126  func (m *CNStoreInfo) GetLabels() map[string]metadata.LabelList {
  3127  	if m != nil {
  3128  		return m.Labels
  3129  	}
  3130  	return nil
  3131  }
  3132  
  3133  func (m *CNStoreInfo) GetWorkState() metadata.WorkState {
  3134  	if m != nil {
  3135  		return m.WorkState
  3136  	}
  3137  	return metadata.WorkState_Unknown
  3138  }
  3139  
  3140  func (m *CNStoreInfo) GetQueryAddress() string {
  3141  	if m != nil {
  3142  		return m.QueryAddress
  3143  	}
  3144  	return ""
  3145  }
  3146  
  3147  func (m *CNStoreInfo) GetGossipAddress() string {
  3148  	if m != nil {
  3149  		return m.GossipAddress
  3150  	}
  3151  	return ""
  3152  }
  3153  
  3154  func (m *CNStoreInfo) GetGossipJoined() bool {
  3155  	if m != nil {
  3156  		return m.GossipJoined
  3157  	}
  3158  	return false
  3159  }
  3160  
  3161  func (m *CNStoreInfo) GetConfigData() *ConfigData {
  3162  	if m != nil {
  3163  		return m.ConfigData
  3164  	}
  3165  	return nil
  3166  }
  3167  
  3168  func (m *CNStoreInfo) GetResource() Resource {
  3169  	if m != nil {
  3170  		return m.Resource
  3171  	}
  3172  	return Resource{}
  3173  }
  3174  
  3175  func (m *CNStoreInfo) GetUpTime() int64 {
  3176  	if m != nil {
  3177  		return m.UpTime
  3178  	}
  3179  	return 0
  3180  }
  3181  
  3182  // CNState contains all CN details known to the HAKeeper.
  3183  type CNState struct {
  3184  	// Stores is keyed by CN store UUID.
  3185  	Stores               map[string]CNStoreInfo `protobuf:"bytes,1,rep,name=Stores,proto3" json:"Stores" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3186  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
  3187  	XXX_unrecognized     []byte                 `json:"-"`
  3188  	XXX_sizecache        int32                  `json:"-"`
  3189  }
  3190  
  3191  func (m *CNState) Reset()         { *m = CNState{} }
  3192  func (m *CNState) String() string { return proto.CompactTextString(m) }
  3193  func (*CNState) ProtoMessage()    {}
  3194  func (*CNState) Descriptor() ([]byte, []int) {
  3195  	return fileDescriptor_fd1040c5381ab5a7, []int{35}
  3196  }
  3197  func (m *CNState) XXX_Unmarshal(b []byte) error {
  3198  	return m.Unmarshal(b)
  3199  }
  3200  func (m *CNState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3201  	if deterministic {
  3202  		return xxx_messageInfo_CNState.Marshal(b, m, deterministic)
  3203  	} else {
  3204  		b = b[:cap(b)]
  3205  		n, err := m.MarshalToSizedBuffer(b)
  3206  		if err != nil {
  3207  			return nil, err
  3208  		}
  3209  		return b[:n], nil
  3210  	}
  3211  }
  3212  func (m *CNState) XXX_Merge(src proto.Message) {
  3213  	xxx_messageInfo_CNState.Merge(m, src)
  3214  }
  3215  func (m *CNState) XXX_Size() int {
  3216  	return m.Size()
  3217  }
  3218  func (m *CNState) XXX_DiscardUnknown() {
  3219  	xxx_messageInfo_CNState.DiscardUnknown(m)
  3220  }
  3221  
  3222  var xxx_messageInfo_CNState proto.InternalMessageInfo
  3223  
  3224  func (m *CNState) GetStores() map[string]CNStoreInfo {
  3225  	if m != nil {
  3226  		return m.Stores
  3227  	}
  3228  	return nil
  3229  }
  3230  
  3231  // TNStoreInfo contains information on a TN store.
  3232  type TNStoreInfo struct {
  3233  	Tick               uint64        `protobuf:"varint,1,opt,name=Tick,proto3" json:"Tick,omitempty"`
  3234  	ServiceAddress     string        `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  3235  	Shards             []TNShardInfo `protobuf:"bytes,3,rep,name=Shards,proto3" json:"Shards"`
  3236  	TaskServiceCreated bool          `protobuf:"varint,4,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  3237  	// Server address for logtail push model
  3238  	LogtailServerAddress string `protobuf:"bytes,5,opt,name=LogtailServerAddress,proto3" json:"LogtailServerAddress,omitempty"`
  3239  	// LockServiceAddress lock service address for lock table allocator
  3240  	LockServiceAddress string      `protobuf:"bytes,6,opt,name=LockServiceAddress,proto3" json:"LockServiceAddress,omitempty"`
  3241  	ConfigData         *ConfigData `protobuf:"bytes,8,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  3242  	// QueryAddress is the address of queryservice on tn
  3243  	QueryAddress         string   `protobuf:"bytes,9,opt,name=QueryAddress,proto3" json:"QueryAddress,omitempty"`
  3244  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3245  	XXX_unrecognized     []byte   `json:"-"`
  3246  	XXX_sizecache        int32    `json:"-"`
  3247  }
  3248  
  3249  func (m *TNStoreInfo) Reset()         { *m = TNStoreInfo{} }
  3250  func (m *TNStoreInfo) String() string { return proto.CompactTextString(m) }
  3251  func (*TNStoreInfo) ProtoMessage()    {}
  3252  func (*TNStoreInfo) Descriptor() ([]byte, []int) {
  3253  	return fileDescriptor_fd1040c5381ab5a7, []int{36}
  3254  }
  3255  func (m *TNStoreInfo) XXX_Unmarshal(b []byte) error {
  3256  	return m.Unmarshal(b)
  3257  }
  3258  func (m *TNStoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3259  	if deterministic {
  3260  		return xxx_messageInfo_TNStoreInfo.Marshal(b, m, deterministic)
  3261  	} else {
  3262  		b = b[:cap(b)]
  3263  		n, err := m.MarshalToSizedBuffer(b)
  3264  		if err != nil {
  3265  			return nil, err
  3266  		}
  3267  		return b[:n], nil
  3268  	}
  3269  }
  3270  func (m *TNStoreInfo) XXX_Merge(src proto.Message) {
  3271  	xxx_messageInfo_TNStoreInfo.Merge(m, src)
  3272  }
  3273  func (m *TNStoreInfo) XXX_Size() int {
  3274  	return m.Size()
  3275  }
  3276  func (m *TNStoreInfo) XXX_DiscardUnknown() {
  3277  	xxx_messageInfo_TNStoreInfo.DiscardUnknown(m)
  3278  }
  3279  
  3280  var xxx_messageInfo_TNStoreInfo proto.InternalMessageInfo
  3281  
  3282  func (m *TNStoreInfo) GetTick() uint64 {
  3283  	if m != nil {
  3284  		return m.Tick
  3285  	}
  3286  	return 0
  3287  }
  3288  
  3289  func (m *TNStoreInfo) GetServiceAddress() string {
  3290  	if m != nil {
  3291  		return m.ServiceAddress
  3292  	}
  3293  	return ""
  3294  }
  3295  
  3296  func (m *TNStoreInfo) GetShards() []TNShardInfo {
  3297  	if m != nil {
  3298  		return m.Shards
  3299  	}
  3300  	return nil
  3301  }
  3302  
  3303  func (m *TNStoreInfo) GetTaskServiceCreated() bool {
  3304  	if m != nil {
  3305  		return m.TaskServiceCreated
  3306  	}
  3307  	return false
  3308  }
  3309  
  3310  func (m *TNStoreInfo) GetLogtailServerAddress() string {
  3311  	if m != nil {
  3312  		return m.LogtailServerAddress
  3313  	}
  3314  	return ""
  3315  }
  3316  
  3317  func (m *TNStoreInfo) GetLockServiceAddress() string {
  3318  	if m != nil {
  3319  		return m.LockServiceAddress
  3320  	}
  3321  	return ""
  3322  }
  3323  
  3324  func (m *TNStoreInfo) GetConfigData() *ConfigData {
  3325  	if m != nil {
  3326  		return m.ConfigData
  3327  	}
  3328  	return nil
  3329  }
  3330  
  3331  func (m *TNStoreInfo) GetQueryAddress() string {
  3332  	if m != nil {
  3333  		return m.QueryAddress
  3334  	}
  3335  	return ""
  3336  }
  3337  
  3338  // TNState contains all TN details known to the HAKeeper.
  3339  type TNState struct {
  3340  	// Stores is keyed by TN store UUID.
  3341  	Stores               map[string]TNStoreInfo `protobuf:"bytes,1,rep,name=Stores,proto3" json:"Stores" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3342  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
  3343  	XXX_unrecognized     []byte                 `json:"-"`
  3344  	XXX_sizecache        int32                  `json:"-"`
  3345  }
  3346  
  3347  func (m *TNState) Reset()         { *m = TNState{} }
  3348  func (m *TNState) String() string { return proto.CompactTextString(m) }
  3349  func (*TNState) ProtoMessage()    {}
  3350  func (*TNState) Descriptor() ([]byte, []int) {
  3351  	return fileDescriptor_fd1040c5381ab5a7, []int{37}
  3352  }
  3353  func (m *TNState) XXX_Unmarshal(b []byte) error {
  3354  	return m.Unmarshal(b)
  3355  }
  3356  func (m *TNState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3357  	if deterministic {
  3358  		return xxx_messageInfo_TNState.Marshal(b, m, deterministic)
  3359  	} else {
  3360  		b = b[:cap(b)]
  3361  		n, err := m.MarshalToSizedBuffer(b)
  3362  		if err != nil {
  3363  			return nil, err
  3364  		}
  3365  		return b[:n], nil
  3366  	}
  3367  }
  3368  func (m *TNState) XXX_Merge(src proto.Message) {
  3369  	xxx_messageInfo_TNState.Merge(m, src)
  3370  }
  3371  func (m *TNState) XXX_Size() int {
  3372  	return m.Size()
  3373  }
  3374  func (m *TNState) XXX_DiscardUnknown() {
  3375  	xxx_messageInfo_TNState.DiscardUnknown(m)
  3376  }
  3377  
  3378  var xxx_messageInfo_TNState proto.InternalMessageInfo
  3379  
  3380  func (m *TNState) GetStores() map[string]TNStoreInfo {
  3381  	if m != nil {
  3382  		return m.Stores
  3383  	}
  3384  	return nil
  3385  }
  3386  
  3387  type ProxyStore struct {
  3388  	UUID                 string      `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  3389  	Tick                 uint64      `protobuf:"varint,2,opt,name=Tick,proto3" json:"Tick,omitempty"`
  3390  	ListenAddress        string      `protobuf:"bytes,3,opt,name=ListenAddress,proto3" json:"ListenAddress,omitempty"`
  3391  	ConfigData           *ConfigData `protobuf:"bytes,4,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  3392  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  3393  	XXX_unrecognized     []byte      `json:"-"`
  3394  	XXX_sizecache        int32       `json:"-"`
  3395  }
  3396  
  3397  func (m *ProxyStore) Reset()         { *m = ProxyStore{} }
  3398  func (m *ProxyStore) String() string { return proto.CompactTextString(m) }
  3399  func (*ProxyStore) ProtoMessage()    {}
  3400  func (*ProxyStore) Descriptor() ([]byte, []int) {
  3401  	return fileDescriptor_fd1040c5381ab5a7, []int{38}
  3402  }
  3403  func (m *ProxyStore) XXX_Unmarshal(b []byte) error {
  3404  	return m.Unmarshal(b)
  3405  }
  3406  func (m *ProxyStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3407  	if deterministic {
  3408  		return xxx_messageInfo_ProxyStore.Marshal(b, m, deterministic)
  3409  	} else {
  3410  		b = b[:cap(b)]
  3411  		n, err := m.MarshalToSizedBuffer(b)
  3412  		if err != nil {
  3413  			return nil, err
  3414  		}
  3415  		return b[:n], nil
  3416  	}
  3417  }
  3418  func (m *ProxyStore) XXX_Merge(src proto.Message) {
  3419  	xxx_messageInfo_ProxyStore.Merge(m, src)
  3420  }
  3421  func (m *ProxyStore) XXX_Size() int {
  3422  	return m.Size()
  3423  }
  3424  func (m *ProxyStore) XXX_DiscardUnknown() {
  3425  	xxx_messageInfo_ProxyStore.DiscardUnknown(m)
  3426  }
  3427  
  3428  var xxx_messageInfo_ProxyStore proto.InternalMessageInfo
  3429  
  3430  func (m *ProxyStore) GetUUID() string {
  3431  	if m != nil {
  3432  		return m.UUID
  3433  	}
  3434  	return ""
  3435  }
  3436  
  3437  func (m *ProxyStore) GetTick() uint64 {
  3438  	if m != nil {
  3439  		return m.Tick
  3440  	}
  3441  	return 0
  3442  }
  3443  
  3444  func (m *ProxyStore) GetListenAddress() string {
  3445  	if m != nil {
  3446  		return m.ListenAddress
  3447  	}
  3448  	return ""
  3449  }
  3450  
  3451  func (m *ProxyStore) GetConfigData() *ConfigData {
  3452  	if m != nil {
  3453  		return m.ConfigData
  3454  	}
  3455  	return nil
  3456  }
  3457  
  3458  type ProxyState struct {
  3459  	Stores               map[string]ProxyStore `protobuf:"bytes,1,rep,name=Stores,proto3" json:"Stores" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3460  	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
  3461  	XXX_unrecognized     []byte                `json:"-"`
  3462  	XXX_sizecache        int32                 `json:"-"`
  3463  }
  3464  
  3465  func (m *ProxyState) Reset()         { *m = ProxyState{} }
  3466  func (m *ProxyState) String() string { return proto.CompactTextString(m) }
  3467  func (*ProxyState) ProtoMessage()    {}
  3468  func (*ProxyState) Descriptor() ([]byte, []int) {
  3469  	return fileDescriptor_fd1040c5381ab5a7, []int{39}
  3470  }
  3471  func (m *ProxyState) XXX_Unmarshal(b []byte) error {
  3472  	return m.Unmarshal(b)
  3473  }
  3474  func (m *ProxyState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3475  	if deterministic {
  3476  		return xxx_messageInfo_ProxyState.Marshal(b, m, deterministic)
  3477  	} else {
  3478  		b = b[:cap(b)]
  3479  		n, err := m.MarshalToSizedBuffer(b)
  3480  		if err != nil {
  3481  			return nil, err
  3482  		}
  3483  		return b[:n], nil
  3484  	}
  3485  }
  3486  func (m *ProxyState) XXX_Merge(src proto.Message) {
  3487  	xxx_messageInfo_ProxyState.Merge(m, src)
  3488  }
  3489  func (m *ProxyState) XXX_Size() int {
  3490  	return m.Size()
  3491  }
  3492  func (m *ProxyState) XXX_DiscardUnknown() {
  3493  	xxx_messageInfo_ProxyState.DiscardUnknown(m)
  3494  }
  3495  
  3496  var xxx_messageInfo_ProxyState proto.InternalMessageInfo
  3497  
  3498  func (m *ProxyState) GetStores() map[string]ProxyStore {
  3499  	if m != nil {
  3500  		return m.Stores
  3501  	}
  3502  	return nil
  3503  }
  3504  
  3505  type ProxyHeartbeat struct {
  3506  	UUID                 string      `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  3507  	ListenAddress        string      `protobuf:"bytes,2,opt,name=ListenAddress,proto3" json:"ListenAddress,omitempty"`
  3508  	ConfigData           *ConfigData `protobuf:"bytes,3,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  3509  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  3510  	XXX_unrecognized     []byte      `json:"-"`
  3511  	XXX_sizecache        int32       `json:"-"`
  3512  }
  3513  
  3514  func (m *ProxyHeartbeat) Reset()         { *m = ProxyHeartbeat{} }
  3515  func (m *ProxyHeartbeat) String() string { return proto.CompactTextString(m) }
  3516  func (*ProxyHeartbeat) ProtoMessage()    {}
  3517  func (*ProxyHeartbeat) Descriptor() ([]byte, []int) {
  3518  	return fileDescriptor_fd1040c5381ab5a7, []int{40}
  3519  }
  3520  func (m *ProxyHeartbeat) XXX_Unmarshal(b []byte) error {
  3521  	return m.Unmarshal(b)
  3522  }
  3523  func (m *ProxyHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3524  	if deterministic {
  3525  		return xxx_messageInfo_ProxyHeartbeat.Marshal(b, m, deterministic)
  3526  	} else {
  3527  		b = b[:cap(b)]
  3528  		n, err := m.MarshalToSizedBuffer(b)
  3529  		if err != nil {
  3530  			return nil, err
  3531  		}
  3532  		return b[:n], nil
  3533  	}
  3534  }
  3535  func (m *ProxyHeartbeat) XXX_Merge(src proto.Message) {
  3536  	xxx_messageInfo_ProxyHeartbeat.Merge(m, src)
  3537  }
  3538  func (m *ProxyHeartbeat) XXX_Size() int {
  3539  	return m.Size()
  3540  }
  3541  func (m *ProxyHeartbeat) XXX_DiscardUnknown() {
  3542  	xxx_messageInfo_ProxyHeartbeat.DiscardUnknown(m)
  3543  }
  3544  
  3545  var xxx_messageInfo_ProxyHeartbeat proto.InternalMessageInfo
  3546  
  3547  func (m *ProxyHeartbeat) GetUUID() string {
  3548  	if m != nil {
  3549  		return m.UUID
  3550  	}
  3551  	return ""
  3552  }
  3553  
  3554  func (m *ProxyHeartbeat) GetListenAddress() string {
  3555  	if m != nil {
  3556  		return m.ListenAddress
  3557  	}
  3558  	return ""
  3559  }
  3560  
  3561  func (m *ProxyHeartbeat) GetConfigData() *ConfigData {
  3562  	if m != nil {
  3563  		return m.ConfigData
  3564  	}
  3565  	return nil
  3566  }
  3567  
  3568  type ClusterDetails struct {
  3569  	TNStores             []TNStore      `protobuf:"bytes,1,rep,name=TNStores,proto3" json:"TNStores"`
  3570  	CNStores             []CNStore      `protobuf:"bytes,2,rep,name=CNStores,proto3" json:"CNStores"`
  3571  	LogStores            []LogStore     `protobuf:"bytes,3,rep,name=LogStores,proto3" json:"LogStores"`
  3572  	ProxyStores          []ProxyStore   `protobuf:"bytes,4,rep,name=ProxyStores,proto3" json:"ProxyStores"`
  3573  	DeletedStores        []DeletedStore `protobuf:"bytes,5,rep,name=DeletedStores,proto3" json:"DeletedStores"`
  3574  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
  3575  	XXX_unrecognized     []byte         `json:"-"`
  3576  	XXX_sizecache        int32          `json:"-"`
  3577  }
  3578  
  3579  func (m *ClusterDetails) Reset()         { *m = ClusterDetails{} }
  3580  func (m *ClusterDetails) String() string { return proto.CompactTextString(m) }
  3581  func (*ClusterDetails) ProtoMessage()    {}
  3582  func (*ClusterDetails) Descriptor() ([]byte, []int) {
  3583  	return fileDescriptor_fd1040c5381ab5a7, []int{41}
  3584  }
  3585  func (m *ClusterDetails) XXX_Unmarshal(b []byte) error {
  3586  	return m.Unmarshal(b)
  3587  }
  3588  func (m *ClusterDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3589  	if deterministic {
  3590  		return xxx_messageInfo_ClusterDetails.Marshal(b, m, deterministic)
  3591  	} else {
  3592  		b = b[:cap(b)]
  3593  		n, err := m.MarshalToSizedBuffer(b)
  3594  		if err != nil {
  3595  			return nil, err
  3596  		}
  3597  		return b[:n], nil
  3598  	}
  3599  }
  3600  func (m *ClusterDetails) XXX_Merge(src proto.Message) {
  3601  	xxx_messageInfo_ClusterDetails.Merge(m, src)
  3602  }
  3603  func (m *ClusterDetails) XXX_Size() int {
  3604  	return m.Size()
  3605  }
  3606  func (m *ClusterDetails) XXX_DiscardUnknown() {
  3607  	xxx_messageInfo_ClusterDetails.DiscardUnknown(m)
  3608  }
  3609  
  3610  var xxx_messageInfo_ClusterDetails proto.InternalMessageInfo
  3611  
  3612  func (m *ClusterDetails) GetTNStores() []TNStore {
  3613  	if m != nil {
  3614  		return m.TNStores
  3615  	}
  3616  	return nil
  3617  }
  3618  
  3619  func (m *ClusterDetails) GetCNStores() []CNStore {
  3620  	if m != nil {
  3621  		return m.CNStores
  3622  	}
  3623  	return nil
  3624  }
  3625  
  3626  func (m *ClusterDetails) GetLogStores() []LogStore {
  3627  	if m != nil {
  3628  		return m.LogStores
  3629  	}
  3630  	return nil
  3631  }
  3632  
  3633  func (m *ClusterDetails) GetProxyStores() []ProxyStore {
  3634  	if m != nil {
  3635  		return m.ProxyStores
  3636  	}
  3637  	return nil
  3638  }
  3639  
  3640  func (m *ClusterDetails) GetDeletedStores() []DeletedStore {
  3641  	if m != nil {
  3642  		return m.DeletedStores
  3643  	}
  3644  	return nil
  3645  }
  3646  
  3647  // ClusterInfo provides a global view of all shards in the cluster. It
  3648  // describes the logical sharding of the system, rather than physical
  3649  // distribution of all replicas that belong to those shards.
  3650  type ClusterInfo struct {
  3651  	TNShards             []metadata.TNShardRecord  `protobuf:"bytes,1,rep,name=TNShards,proto3" json:"TNShards"`
  3652  	LogShards            []metadata.LogShardRecord `protobuf:"bytes,2,rep,name=LogShards,proto3" json:"LogShards"`
  3653  	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
  3654  	XXX_unrecognized     []byte                    `json:"-"`
  3655  	XXX_sizecache        int32                     `json:"-"`
  3656  }
  3657  
  3658  func (m *ClusterInfo) Reset()         { *m = ClusterInfo{} }
  3659  func (m *ClusterInfo) String() string { return proto.CompactTextString(m) }
  3660  func (*ClusterInfo) ProtoMessage()    {}
  3661  func (*ClusterInfo) Descriptor() ([]byte, []int) {
  3662  	return fileDescriptor_fd1040c5381ab5a7, []int{42}
  3663  }
  3664  func (m *ClusterInfo) XXX_Unmarshal(b []byte) error {
  3665  	return m.Unmarshal(b)
  3666  }
  3667  func (m *ClusterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3668  	if deterministic {
  3669  		return xxx_messageInfo_ClusterInfo.Marshal(b, m, deterministic)
  3670  	} else {
  3671  		b = b[:cap(b)]
  3672  		n, err := m.MarshalToSizedBuffer(b)
  3673  		if err != nil {
  3674  			return nil, err
  3675  		}
  3676  		return b[:n], nil
  3677  	}
  3678  }
  3679  func (m *ClusterInfo) XXX_Merge(src proto.Message) {
  3680  	xxx_messageInfo_ClusterInfo.Merge(m, src)
  3681  }
  3682  func (m *ClusterInfo) XXX_Size() int {
  3683  	return m.Size()
  3684  }
  3685  func (m *ClusterInfo) XXX_DiscardUnknown() {
  3686  	xxx_messageInfo_ClusterInfo.DiscardUnknown(m)
  3687  }
  3688  
  3689  var xxx_messageInfo_ClusterInfo proto.InternalMessageInfo
  3690  
  3691  func (m *ClusterInfo) GetTNShards() []metadata.TNShardRecord {
  3692  	if m != nil {
  3693  		return m.TNShards
  3694  	}
  3695  	return nil
  3696  }
  3697  
  3698  func (m *ClusterInfo) GetLogShards() []metadata.LogShardRecord {
  3699  	if m != nil {
  3700  		return m.LogShards
  3701  	}
  3702  	return nil
  3703  }
  3704  
  3705  type InitialClusterRequest struct {
  3706  	NumOfLogShards       uint64            `protobuf:"varint,1,opt,name=NumOfLogShards,proto3" json:"NumOfLogShards,omitempty"`
  3707  	NumOfTNShards        uint64            `protobuf:"varint,2,opt,name=NumOfTNShards,proto3" json:"NumOfTNShards,omitempty"`
  3708  	NumOfLogReplicas     uint64            `protobuf:"varint,3,opt,name=NumOfLogReplicas,proto3" json:"NumOfLogReplicas,omitempty"`
  3709  	NextID               uint64            `protobuf:"varint,4,opt,name=NextID,proto3" json:"NextID,omitempty"`
  3710  	NextIDByKey          map[string]uint64 `protobuf:"bytes,5,rep,name=NextIDByKey,proto3" json:"NextIDByKey,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  3711  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  3712  	XXX_unrecognized     []byte            `json:"-"`
  3713  	XXX_sizecache        int32             `json:"-"`
  3714  }
  3715  
  3716  func (m *InitialClusterRequest) Reset()         { *m = InitialClusterRequest{} }
  3717  func (m *InitialClusterRequest) String() string { return proto.CompactTextString(m) }
  3718  func (*InitialClusterRequest) ProtoMessage()    {}
  3719  func (*InitialClusterRequest) Descriptor() ([]byte, []int) {
  3720  	return fileDescriptor_fd1040c5381ab5a7, []int{43}
  3721  }
  3722  func (m *InitialClusterRequest) XXX_Unmarshal(b []byte) error {
  3723  	return m.Unmarshal(b)
  3724  }
  3725  func (m *InitialClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3726  	if deterministic {
  3727  		return xxx_messageInfo_InitialClusterRequest.Marshal(b, m, deterministic)
  3728  	} else {
  3729  		b = b[:cap(b)]
  3730  		n, err := m.MarshalToSizedBuffer(b)
  3731  		if err != nil {
  3732  			return nil, err
  3733  		}
  3734  		return b[:n], nil
  3735  	}
  3736  }
  3737  func (m *InitialClusterRequest) XXX_Merge(src proto.Message) {
  3738  	xxx_messageInfo_InitialClusterRequest.Merge(m, src)
  3739  }
  3740  func (m *InitialClusterRequest) XXX_Size() int {
  3741  	return m.Size()
  3742  }
  3743  func (m *InitialClusterRequest) XXX_DiscardUnknown() {
  3744  	xxx_messageInfo_InitialClusterRequest.DiscardUnknown(m)
  3745  }
  3746  
  3747  var xxx_messageInfo_InitialClusterRequest proto.InternalMessageInfo
  3748  
  3749  func (m *InitialClusterRequest) GetNumOfLogShards() uint64 {
  3750  	if m != nil {
  3751  		return m.NumOfLogShards
  3752  	}
  3753  	return 0
  3754  }
  3755  
  3756  func (m *InitialClusterRequest) GetNumOfTNShards() uint64 {
  3757  	if m != nil {
  3758  		return m.NumOfTNShards
  3759  	}
  3760  	return 0
  3761  }
  3762  
  3763  func (m *InitialClusterRequest) GetNumOfLogReplicas() uint64 {
  3764  	if m != nil {
  3765  		return m.NumOfLogReplicas
  3766  	}
  3767  	return 0
  3768  }
  3769  
  3770  func (m *InitialClusterRequest) GetNextID() uint64 {
  3771  	if m != nil {
  3772  		return m.NextID
  3773  	}
  3774  	return 0
  3775  }
  3776  
  3777  func (m *InitialClusterRequest) GetNextIDByKey() map[string]uint64 {
  3778  	if m != nil {
  3779  		return m.NextIDByKey
  3780  	}
  3781  	return nil
  3782  }
  3783  
  3784  // LogStoreInfo contains information of all replicas found on a Log store.
  3785  type LogStoreInfo struct {
  3786  	Tick                 uint64           `protobuf:"varint,1,opt,name=Tick,proto3" json:"Tick,omitempty"`
  3787  	RaftAddress          string           `protobuf:"bytes,2,opt,name=RaftAddress,proto3" json:"RaftAddress,omitempty"`
  3788  	ServiceAddress       string           `protobuf:"bytes,3,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  3789  	GossipAddress        string           `protobuf:"bytes,4,opt,name=GossipAddress,proto3" json:"GossipAddress,omitempty"`
  3790  	Replicas             []LogReplicaInfo `protobuf:"bytes,5,rep,name=Replicas,proto3" json:"Replicas"`
  3791  	TaskServiceCreated   bool             `protobuf:"varint,6,opt,name=TaskServiceCreated,proto3" json:"TaskServiceCreated,omitempty"`
  3792  	ConfigData           *ConfigData      `protobuf:"bytes,7,opt,name=ConfigData,proto3" json:"ConfigData,omitempty"`
  3793  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
  3794  	XXX_unrecognized     []byte           `json:"-"`
  3795  	XXX_sizecache        int32            `json:"-"`
  3796  }
  3797  
  3798  func (m *LogStoreInfo) Reset()         { *m = LogStoreInfo{} }
  3799  func (m *LogStoreInfo) String() string { return proto.CompactTextString(m) }
  3800  func (*LogStoreInfo) ProtoMessage()    {}
  3801  func (*LogStoreInfo) Descriptor() ([]byte, []int) {
  3802  	return fileDescriptor_fd1040c5381ab5a7, []int{44}
  3803  }
  3804  func (m *LogStoreInfo) XXX_Unmarshal(b []byte) error {
  3805  	return m.Unmarshal(b)
  3806  }
  3807  func (m *LogStoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3808  	if deterministic {
  3809  		return xxx_messageInfo_LogStoreInfo.Marshal(b, m, deterministic)
  3810  	} else {
  3811  		b = b[:cap(b)]
  3812  		n, err := m.MarshalToSizedBuffer(b)
  3813  		if err != nil {
  3814  			return nil, err
  3815  		}
  3816  		return b[:n], nil
  3817  	}
  3818  }
  3819  func (m *LogStoreInfo) XXX_Merge(src proto.Message) {
  3820  	xxx_messageInfo_LogStoreInfo.Merge(m, src)
  3821  }
  3822  func (m *LogStoreInfo) XXX_Size() int {
  3823  	return m.Size()
  3824  }
  3825  func (m *LogStoreInfo) XXX_DiscardUnknown() {
  3826  	xxx_messageInfo_LogStoreInfo.DiscardUnknown(m)
  3827  }
  3828  
  3829  var xxx_messageInfo_LogStoreInfo proto.InternalMessageInfo
  3830  
  3831  func (m *LogStoreInfo) GetTick() uint64 {
  3832  	if m != nil {
  3833  		return m.Tick
  3834  	}
  3835  	return 0
  3836  }
  3837  
  3838  func (m *LogStoreInfo) GetRaftAddress() string {
  3839  	if m != nil {
  3840  		return m.RaftAddress
  3841  	}
  3842  	return ""
  3843  }
  3844  
  3845  func (m *LogStoreInfo) GetServiceAddress() string {
  3846  	if m != nil {
  3847  		return m.ServiceAddress
  3848  	}
  3849  	return ""
  3850  }
  3851  
  3852  func (m *LogStoreInfo) GetGossipAddress() string {
  3853  	if m != nil {
  3854  		return m.GossipAddress
  3855  	}
  3856  	return ""
  3857  }
  3858  
  3859  func (m *LogStoreInfo) GetReplicas() []LogReplicaInfo {
  3860  	if m != nil {
  3861  		return m.Replicas
  3862  	}
  3863  	return nil
  3864  }
  3865  
  3866  func (m *LogStoreInfo) GetTaskServiceCreated() bool {
  3867  	if m != nil {
  3868  		return m.TaskServiceCreated
  3869  	}
  3870  	return false
  3871  }
  3872  
  3873  func (m *LogStoreInfo) GetConfigData() *ConfigData {
  3874  	if m != nil {
  3875  		return m.ConfigData
  3876  	}
  3877  	return nil
  3878  }
  3879  
  3880  type LogState struct {
  3881  	// Shards is keyed by ShardID, it contains details aggregated from all Log
  3882  	// stores. Each pb.LogShardInfo here contains data aggregated from
  3883  	// different replicas and thus reflect a more accurate description on each
  3884  	// shard.
  3885  	Shards map[uint64]LogShardInfo `protobuf:"bytes,1,rep,name=Shards,proto3" json:"Shards" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3886  	// Stores is keyed by log store UUID, it contains details found on each
  3887  	// store. Each LogStoreInfo here reflects what was last reported by each Log
  3888  	// store.
  3889  	Stores               map[string]LogStoreInfo `protobuf:"bytes,2,rep,name=Stores,proto3" json:"Stores" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  3890  	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
  3891  	XXX_unrecognized     []byte                  `json:"-"`
  3892  	XXX_sizecache        int32                   `json:"-"`
  3893  }
  3894  
  3895  func (m *LogState) Reset()         { *m = LogState{} }
  3896  func (m *LogState) String() string { return proto.CompactTextString(m) }
  3897  func (*LogState) ProtoMessage()    {}
  3898  func (*LogState) Descriptor() ([]byte, []int) {
  3899  	return fileDescriptor_fd1040c5381ab5a7, []int{45}
  3900  }
  3901  func (m *LogState) XXX_Unmarshal(b []byte) error {
  3902  	return m.Unmarshal(b)
  3903  }
  3904  func (m *LogState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3905  	if deterministic {
  3906  		return xxx_messageInfo_LogState.Marshal(b, m, deterministic)
  3907  	} else {
  3908  		b = b[:cap(b)]
  3909  		n, err := m.MarshalToSizedBuffer(b)
  3910  		if err != nil {
  3911  			return nil, err
  3912  		}
  3913  		return b[:n], nil
  3914  	}
  3915  }
  3916  func (m *LogState) XXX_Merge(src proto.Message) {
  3917  	xxx_messageInfo_LogState.Merge(m, src)
  3918  }
  3919  func (m *LogState) XXX_Size() int {
  3920  	return m.Size()
  3921  }
  3922  func (m *LogState) XXX_DiscardUnknown() {
  3923  	xxx_messageInfo_LogState.DiscardUnknown(m)
  3924  }
  3925  
  3926  var xxx_messageInfo_LogState proto.InternalMessageInfo
  3927  
  3928  func (m *LogState) GetShards() map[uint64]LogShardInfo {
  3929  	if m != nil {
  3930  		return m.Shards
  3931  	}
  3932  	return nil
  3933  }
  3934  
  3935  func (m *LogState) GetStores() map[string]LogStoreInfo {
  3936  	if m != nil {
  3937  		return m.Stores
  3938  	}
  3939  	return nil
  3940  }
  3941  
  3942  // CheckerState contains all HAKeeper state required for making schedule
  3943  // commands.
  3944  type CheckerState struct {
  3945  	Tick                 uint64             `protobuf:"varint,1,opt,name=Tick,proto3" json:"Tick,omitempty"`
  3946  	ClusterInfo          ClusterInfo        `protobuf:"bytes,2,opt,name=ClusterInfo,proto3" json:"ClusterInfo"`
  3947  	TNState              TNState            `protobuf:"bytes,3,opt,name=TNState,proto3" json:"TNState"`
  3948  	LogState             LogState           `protobuf:"bytes,4,opt,name=LogState,proto3" json:"LogState"`
  3949  	CNState              CNState            `protobuf:"bytes,5,opt,name=CNState,proto3" json:"CNState"`
  3950  	State                HAKeeperState      `protobuf:"varint,6,opt,name=State,proto3,enum=logservice.HAKeeperState" json:"State,omitempty"`
  3951  	TaskSchedulerState   TaskSchedulerState `protobuf:"varint,7,opt,name=TaskSchedulerState,proto3,enum=logservice.TaskSchedulerState" json:"TaskSchedulerState,omitempty"`
  3952  	TaskTableUser        TaskTableUser      `protobuf:"bytes,8,opt,name=TaskTableUser,proto3" json:"TaskTableUser"`
  3953  	NextId               uint64             `protobuf:"varint,9,opt,name=NextId,proto3" json:"NextId,omitempty"`
  3954  	NextIDByKey          map[string]uint64  `protobuf:"bytes,10,rep,name=NextIDByKey,proto3" json:"NextIDByKey,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  3955  	ProxyState           ProxyState         `protobuf:"bytes,11,opt,name=ProxyState,proto3" json:"ProxyState"`
  3956  	Resource             Resource           `protobuf:"bytes,12,opt,name=Resource,proto3" json:"Resource"`
  3957  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  3958  	XXX_unrecognized     []byte             `json:"-"`
  3959  	XXX_sizecache        int32              `json:"-"`
  3960  }
  3961  
  3962  func (m *CheckerState) Reset()         { *m = CheckerState{} }
  3963  func (m *CheckerState) String() string { return proto.CompactTextString(m) }
  3964  func (*CheckerState) ProtoMessage()    {}
  3965  func (*CheckerState) Descriptor() ([]byte, []int) {
  3966  	return fileDescriptor_fd1040c5381ab5a7, []int{46}
  3967  }
  3968  func (m *CheckerState) XXX_Unmarshal(b []byte) error {
  3969  	return m.Unmarshal(b)
  3970  }
  3971  func (m *CheckerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3972  	if deterministic {
  3973  		return xxx_messageInfo_CheckerState.Marshal(b, m, deterministic)
  3974  	} else {
  3975  		b = b[:cap(b)]
  3976  		n, err := m.MarshalToSizedBuffer(b)
  3977  		if err != nil {
  3978  			return nil, err
  3979  		}
  3980  		return b[:n], nil
  3981  	}
  3982  }
  3983  func (m *CheckerState) XXX_Merge(src proto.Message) {
  3984  	xxx_messageInfo_CheckerState.Merge(m, src)
  3985  }
  3986  func (m *CheckerState) XXX_Size() int {
  3987  	return m.Size()
  3988  }
  3989  func (m *CheckerState) XXX_DiscardUnknown() {
  3990  	xxx_messageInfo_CheckerState.DiscardUnknown(m)
  3991  }
  3992  
  3993  var xxx_messageInfo_CheckerState proto.InternalMessageInfo
  3994  
  3995  func (m *CheckerState) GetTick() uint64 {
  3996  	if m != nil {
  3997  		return m.Tick
  3998  	}
  3999  	return 0
  4000  }
  4001  
  4002  func (m *CheckerState) GetClusterInfo() ClusterInfo {
  4003  	if m != nil {
  4004  		return m.ClusterInfo
  4005  	}
  4006  	return ClusterInfo{}
  4007  }
  4008  
  4009  func (m *CheckerState) GetTNState() TNState {
  4010  	if m != nil {
  4011  		return m.TNState
  4012  	}
  4013  	return TNState{}
  4014  }
  4015  
  4016  func (m *CheckerState) GetLogState() LogState {
  4017  	if m != nil {
  4018  		return m.LogState
  4019  	}
  4020  	return LogState{}
  4021  }
  4022  
  4023  func (m *CheckerState) GetCNState() CNState {
  4024  	if m != nil {
  4025  		return m.CNState
  4026  	}
  4027  	return CNState{}
  4028  }
  4029  
  4030  func (m *CheckerState) GetState() HAKeeperState {
  4031  	if m != nil {
  4032  		return m.State
  4033  	}
  4034  	return HAKeeperCreated
  4035  }
  4036  
  4037  func (m *CheckerState) GetTaskSchedulerState() TaskSchedulerState {
  4038  	if m != nil {
  4039  		return m.TaskSchedulerState
  4040  	}
  4041  	return TaskSchedulerCreated
  4042  }
  4043  
  4044  func (m *CheckerState) GetTaskTableUser() TaskTableUser {
  4045  	if m != nil {
  4046  		return m.TaskTableUser
  4047  	}
  4048  	return TaskTableUser{}
  4049  }
  4050  
  4051  func (m *CheckerState) GetNextId() uint64 {
  4052  	if m != nil {
  4053  		return m.NextId
  4054  	}
  4055  	return 0
  4056  }
  4057  
  4058  func (m *CheckerState) GetNextIDByKey() map[string]uint64 {
  4059  	if m != nil {
  4060  		return m.NextIDByKey
  4061  	}
  4062  	return nil
  4063  }
  4064  
  4065  func (m *CheckerState) GetProxyState() ProxyState {
  4066  	if m != nil {
  4067  		return m.ProxyState
  4068  	}
  4069  	return ProxyState{}
  4070  }
  4071  
  4072  func (m *CheckerState) GetResource() Resource {
  4073  	if m != nil {
  4074  		return m.Resource
  4075  	}
  4076  	return Resource{}
  4077  }
  4078  
  4079  type DeletedStore struct {
  4080  	UUID string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  4081  	// StoreType indicates the type of the store: CN, TN or proxy.
  4082  	StoreType            string   `protobuf:"bytes,2,opt,name=StoreType,proto3" json:"StoreType,omitempty"`
  4083  	Address              string   `protobuf:"bytes,3,opt,name=Address,proto3" json:"Address,omitempty"`
  4084  	UpTime               int64    `protobuf:"varint,4,opt,name=UpTime,proto3" json:"UpTime,omitempty"`
  4085  	DownTime             int64    `protobuf:"varint,5,opt,name=DownTime,proto3" json:"DownTime,omitempty"`
  4086  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4087  	XXX_unrecognized     []byte   `json:"-"`
  4088  	XXX_sizecache        int32    `json:"-"`
  4089  }
  4090  
  4091  func (m *DeletedStore) Reset()         { *m = DeletedStore{} }
  4092  func (m *DeletedStore) String() string { return proto.CompactTextString(m) }
  4093  func (*DeletedStore) ProtoMessage()    {}
  4094  func (*DeletedStore) Descriptor() ([]byte, []int) {
  4095  	return fileDescriptor_fd1040c5381ab5a7, []int{47}
  4096  }
  4097  func (m *DeletedStore) XXX_Unmarshal(b []byte) error {
  4098  	return m.Unmarshal(b)
  4099  }
  4100  func (m *DeletedStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4101  	if deterministic {
  4102  		return xxx_messageInfo_DeletedStore.Marshal(b, m, deterministic)
  4103  	} else {
  4104  		b = b[:cap(b)]
  4105  		n, err := m.MarshalToSizedBuffer(b)
  4106  		if err != nil {
  4107  			return nil, err
  4108  		}
  4109  		return b[:n], nil
  4110  	}
  4111  }
  4112  func (m *DeletedStore) XXX_Merge(src proto.Message) {
  4113  	xxx_messageInfo_DeletedStore.Merge(m, src)
  4114  }
  4115  func (m *DeletedStore) XXX_Size() int {
  4116  	return m.Size()
  4117  }
  4118  func (m *DeletedStore) XXX_DiscardUnknown() {
  4119  	xxx_messageInfo_DeletedStore.DiscardUnknown(m)
  4120  }
  4121  
  4122  var xxx_messageInfo_DeletedStore proto.InternalMessageInfo
  4123  
  4124  func (m *DeletedStore) GetUUID() string {
  4125  	if m != nil {
  4126  		return m.UUID
  4127  	}
  4128  	return ""
  4129  }
  4130  
  4131  func (m *DeletedStore) GetStoreType() string {
  4132  	if m != nil {
  4133  		return m.StoreType
  4134  	}
  4135  	return ""
  4136  }
  4137  
  4138  func (m *DeletedStore) GetAddress() string {
  4139  	if m != nil {
  4140  		return m.Address
  4141  	}
  4142  	return ""
  4143  }
  4144  
  4145  func (m *DeletedStore) GetUpTime() int64 {
  4146  	if m != nil {
  4147  		return m.UpTime
  4148  	}
  4149  	return 0
  4150  }
  4151  
  4152  func (m *DeletedStore) GetDownTime() int64 {
  4153  	if m != nil {
  4154  		return m.DownTime
  4155  	}
  4156  	return 0
  4157  }
  4158  
  4159  // HAKeeperRSMState contains state maintained by HAKeeper's RSM.
  4160  type HAKeeperRSMState struct {
  4161  	Index uint64 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
  4162  	Tick  uint64 `protobuf:"varint,2,opt,name=Tick,proto3" json:"Tick,omitempty"`
  4163  	// NextID is a shared, global ID.
  4164  	NextID uint64 `protobuf:"varint,3,opt,name=NextID,proto3" json:"NextID,omitempty"`
  4165  	// NextIDByKey is IDs isolated by keys.
  4166  	NextIDByKey          map[string]uint64       `protobuf:"bytes,4,rep,name=NextIDByKey,proto3" json:"NextIDByKey,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  4167  	Term                 uint64                  `protobuf:"varint,5,opt,name=Term,proto3" json:"Term,omitempty"`
  4168  	State                HAKeeperState           `protobuf:"varint,6,opt,name=State,proto3,enum=logservice.HAKeeperState" json:"State,omitempty"`
  4169  	TaskSchedulerState   TaskSchedulerState      `protobuf:"varint,7,opt,name=TaskSchedulerState,proto3,enum=logservice.TaskSchedulerState" json:"TaskSchedulerState,omitempty"`
  4170  	ScheduleCommands     map[string]CommandBatch `protobuf:"bytes,8,rep,name=ScheduleCommands,proto3" json:"ScheduleCommands" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4171  	LogShards            map[string]uint64       `protobuf:"bytes,9,rep,name=LogShards,proto3" json:"LogShards,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  4172  	CNState              CNState                 `protobuf:"bytes,10,opt,name=CNState,proto3" json:"CNState"`
  4173  	TNState              TNState                 `protobuf:"bytes,11,opt,name=TNState,proto3" json:"TNState"`
  4174  	LogState             LogState                `protobuf:"bytes,12,opt,name=LogState,proto3" json:"LogState"`
  4175  	ClusterInfo          ClusterInfo             `protobuf:"bytes,13,opt,name=ClusterInfo,proto3" json:"ClusterInfo"`
  4176  	TaskTableUser        TaskTableUser           `protobuf:"bytes,14,opt,name=TaskTableUser,proto3" json:"TaskTableUser"`
  4177  	ProxyState           ProxyState              `protobuf:"bytes,15,opt,name=ProxyState,proto3" json:"ProxyState"`
  4178  	DeletedStores        []DeletedStore          `protobuf:"bytes,16,rep,name=DeletedStores,proto3" json:"DeletedStores"`
  4179  	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
  4180  	XXX_unrecognized     []byte                  `json:"-"`
  4181  	XXX_sizecache        int32                   `json:"-"`
  4182  }
  4183  
  4184  func (m *HAKeeperRSMState) Reset()         { *m = HAKeeperRSMState{} }
  4185  func (m *HAKeeperRSMState) String() string { return proto.CompactTextString(m) }
  4186  func (*HAKeeperRSMState) ProtoMessage()    {}
  4187  func (*HAKeeperRSMState) Descriptor() ([]byte, []int) {
  4188  	return fileDescriptor_fd1040c5381ab5a7, []int{48}
  4189  }
  4190  func (m *HAKeeperRSMState) XXX_Unmarshal(b []byte) error {
  4191  	return m.Unmarshal(b)
  4192  }
  4193  func (m *HAKeeperRSMState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4194  	if deterministic {
  4195  		return xxx_messageInfo_HAKeeperRSMState.Marshal(b, m, deterministic)
  4196  	} else {
  4197  		b = b[:cap(b)]
  4198  		n, err := m.MarshalToSizedBuffer(b)
  4199  		if err != nil {
  4200  			return nil, err
  4201  		}
  4202  		return b[:n], nil
  4203  	}
  4204  }
  4205  func (m *HAKeeperRSMState) XXX_Merge(src proto.Message) {
  4206  	xxx_messageInfo_HAKeeperRSMState.Merge(m, src)
  4207  }
  4208  func (m *HAKeeperRSMState) XXX_Size() int {
  4209  	return m.Size()
  4210  }
  4211  func (m *HAKeeperRSMState) XXX_DiscardUnknown() {
  4212  	xxx_messageInfo_HAKeeperRSMState.DiscardUnknown(m)
  4213  }
  4214  
  4215  var xxx_messageInfo_HAKeeperRSMState proto.InternalMessageInfo
  4216  
  4217  func (m *HAKeeperRSMState) GetIndex() uint64 {
  4218  	if m != nil {
  4219  		return m.Index
  4220  	}
  4221  	return 0
  4222  }
  4223  
  4224  func (m *HAKeeperRSMState) GetTick() uint64 {
  4225  	if m != nil {
  4226  		return m.Tick
  4227  	}
  4228  	return 0
  4229  }
  4230  
  4231  func (m *HAKeeperRSMState) GetNextID() uint64 {
  4232  	if m != nil {
  4233  		return m.NextID
  4234  	}
  4235  	return 0
  4236  }
  4237  
  4238  func (m *HAKeeperRSMState) GetNextIDByKey() map[string]uint64 {
  4239  	if m != nil {
  4240  		return m.NextIDByKey
  4241  	}
  4242  	return nil
  4243  }
  4244  
  4245  func (m *HAKeeperRSMState) GetTerm() uint64 {
  4246  	if m != nil {
  4247  		return m.Term
  4248  	}
  4249  	return 0
  4250  }
  4251  
  4252  func (m *HAKeeperRSMState) GetState() HAKeeperState {
  4253  	if m != nil {
  4254  		return m.State
  4255  	}
  4256  	return HAKeeperCreated
  4257  }
  4258  
  4259  func (m *HAKeeperRSMState) GetTaskSchedulerState() TaskSchedulerState {
  4260  	if m != nil {
  4261  		return m.TaskSchedulerState
  4262  	}
  4263  	return TaskSchedulerCreated
  4264  }
  4265  
  4266  func (m *HAKeeperRSMState) GetScheduleCommands() map[string]CommandBatch {
  4267  	if m != nil {
  4268  		return m.ScheduleCommands
  4269  	}
  4270  	return nil
  4271  }
  4272  
  4273  func (m *HAKeeperRSMState) GetLogShards() map[string]uint64 {
  4274  	if m != nil {
  4275  		return m.LogShards
  4276  	}
  4277  	return nil
  4278  }
  4279  
  4280  func (m *HAKeeperRSMState) GetCNState() CNState {
  4281  	if m != nil {
  4282  		return m.CNState
  4283  	}
  4284  	return CNState{}
  4285  }
  4286  
  4287  func (m *HAKeeperRSMState) GetTNState() TNState {
  4288  	if m != nil {
  4289  		return m.TNState
  4290  	}
  4291  	return TNState{}
  4292  }
  4293  
  4294  func (m *HAKeeperRSMState) GetLogState() LogState {
  4295  	if m != nil {
  4296  		return m.LogState
  4297  	}
  4298  	return LogState{}
  4299  }
  4300  
  4301  func (m *HAKeeperRSMState) GetClusterInfo() ClusterInfo {
  4302  	if m != nil {
  4303  		return m.ClusterInfo
  4304  	}
  4305  	return ClusterInfo{}
  4306  }
  4307  
  4308  func (m *HAKeeperRSMState) GetTaskTableUser() TaskTableUser {
  4309  	if m != nil {
  4310  		return m.TaskTableUser
  4311  	}
  4312  	return TaskTableUser{}
  4313  }
  4314  
  4315  func (m *HAKeeperRSMState) GetProxyState() ProxyState {
  4316  	if m != nil {
  4317  		return m.ProxyState
  4318  	}
  4319  	return ProxyState{}
  4320  }
  4321  
  4322  func (m *HAKeeperRSMState) GetDeletedStores() []DeletedStore {
  4323  	if m != nil {
  4324  		return m.DeletedStores
  4325  	}
  4326  	return nil
  4327  }
  4328  
  4329  // ReplicaInfo contains details of a replica
  4330  type ReplicaInfo struct {
  4331  	UUID                 string   `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
  4332  	ServiceAddress       string   `protobuf:"bytes,2,opt,name=ServiceAddress,proto3" json:"ServiceAddress,omitempty"`
  4333  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4334  	XXX_unrecognized     []byte   `json:"-"`
  4335  	XXX_sizecache        int32    `json:"-"`
  4336  }
  4337  
  4338  func (m *ReplicaInfo) Reset()         { *m = ReplicaInfo{} }
  4339  func (m *ReplicaInfo) String() string { return proto.CompactTextString(m) }
  4340  func (*ReplicaInfo) ProtoMessage()    {}
  4341  func (*ReplicaInfo) Descriptor() ([]byte, []int) {
  4342  	return fileDescriptor_fd1040c5381ab5a7, []int{49}
  4343  }
  4344  func (m *ReplicaInfo) XXX_Unmarshal(b []byte) error {
  4345  	return m.Unmarshal(b)
  4346  }
  4347  func (m *ReplicaInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4348  	if deterministic {
  4349  		return xxx_messageInfo_ReplicaInfo.Marshal(b, m, deterministic)
  4350  	} else {
  4351  		b = b[:cap(b)]
  4352  		n, err := m.MarshalToSizedBuffer(b)
  4353  		if err != nil {
  4354  			return nil, err
  4355  		}
  4356  		return b[:n], nil
  4357  	}
  4358  }
  4359  func (m *ReplicaInfo) XXX_Merge(src proto.Message) {
  4360  	xxx_messageInfo_ReplicaInfo.Merge(m, src)
  4361  }
  4362  func (m *ReplicaInfo) XXX_Size() int {
  4363  	return m.Size()
  4364  }
  4365  func (m *ReplicaInfo) XXX_DiscardUnknown() {
  4366  	xxx_messageInfo_ReplicaInfo.DiscardUnknown(m)
  4367  }
  4368  
  4369  var xxx_messageInfo_ReplicaInfo proto.InternalMessageInfo
  4370  
  4371  func (m *ReplicaInfo) GetUUID() string {
  4372  	if m != nil {
  4373  		return m.UUID
  4374  	}
  4375  	return ""
  4376  }
  4377  
  4378  func (m *ReplicaInfo) GetServiceAddress() string {
  4379  	if m != nil {
  4380  		return m.ServiceAddress
  4381  	}
  4382  	return ""
  4383  }
  4384  
  4385  // ShardInfoQueryResult contains the result of the shard info query.
  4386  type ShardInfoQueryResult struct {
  4387  	ShardID              uint64                 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"`
  4388  	Replicas             map[uint64]ReplicaInfo `protobuf:"bytes,2,rep,name=Replicas,proto3" json:"Replicas" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4389  	Epoch                uint64                 `protobuf:"varint,3,opt,name=Epoch,proto3" json:"Epoch,omitempty"`
  4390  	LeaderID             uint64                 `protobuf:"varint,4,opt,name=LeaderID,proto3" json:"LeaderID,omitempty"`
  4391  	Term                 uint64                 `protobuf:"varint,5,opt,name=Term,proto3" json:"Term,omitempty"`
  4392  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
  4393  	XXX_unrecognized     []byte                 `json:"-"`
  4394  	XXX_sizecache        int32                  `json:"-"`
  4395  }
  4396  
  4397  func (m *ShardInfoQueryResult) Reset()         { *m = ShardInfoQueryResult{} }
  4398  func (m *ShardInfoQueryResult) String() string { return proto.CompactTextString(m) }
  4399  func (*ShardInfoQueryResult) ProtoMessage()    {}
  4400  func (*ShardInfoQueryResult) Descriptor() ([]byte, []int) {
  4401  	return fileDescriptor_fd1040c5381ab5a7, []int{50}
  4402  }
  4403  func (m *ShardInfoQueryResult) XXX_Unmarshal(b []byte) error {
  4404  	return m.Unmarshal(b)
  4405  }
  4406  func (m *ShardInfoQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4407  	if deterministic {
  4408  		return xxx_messageInfo_ShardInfoQueryResult.Marshal(b, m, deterministic)
  4409  	} else {
  4410  		b = b[:cap(b)]
  4411  		n, err := m.MarshalToSizedBuffer(b)
  4412  		if err != nil {
  4413  			return nil, err
  4414  		}
  4415  		return b[:n], nil
  4416  	}
  4417  }
  4418  func (m *ShardInfoQueryResult) XXX_Merge(src proto.Message) {
  4419  	xxx_messageInfo_ShardInfoQueryResult.Merge(m, src)
  4420  }
  4421  func (m *ShardInfoQueryResult) XXX_Size() int {
  4422  	return m.Size()
  4423  }
  4424  func (m *ShardInfoQueryResult) XXX_DiscardUnknown() {
  4425  	xxx_messageInfo_ShardInfoQueryResult.DiscardUnknown(m)
  4426  }
  4427  
  4428  var xxx_messageInfo_ShardInfoQueryResult proto.InternalMessageInfo
  4429  
  4430  func (m *ShardInfoQueryResult) GetShardID() uint64 {
  4431  	if m != nil {
  4432  		return m.ShardID
  4433  	}
  4434  	return 0
  4435  }
  4436  
  4437  func (m *ShardInfoQueryResult) GetReplicas() map[uint64]ReplicaInfo {
  4438  	if m != nil {
  4439  		return m.Replicas
  4440  	}
  4441  	return nil
  4442  }
  4443  
  4444  func (m *ShardInfoQueryResult) GetEpoch() uint64 {
  4445  	if m != nil {
  4446  		return m.Epoch
  4447  	}
  4448  	return 0
  4449  }
  4450  
  4451  func (m *ShardInfoQueryResult) GetLeaderID() uint64 {
  4452  	if m != nil {
  4453  		return m.LeaderID
  4454  	}
  4455  	return 0
  4456  }
  4457  
  4458  func (m *ShardInfoQueryResult) GetTerm() uint64 {
  4459  	if m != nil {
  4460  		return m.Term
  4461  	}
  4462  	return 0
  4463  }
  4464  
  4465  // BackupData is the information that needs to backup, including NextID and
  4466  // NextIDByKey in HAKeeperRSMState.
  4467  type BackupData struct {
  4468  	// NextID is a shared, global ID.
  4469  	NextID uint64 `protobuf:"varint,1,opt,name=NextID,proto3" json:"NextID,omitempty"`
  4470  	// NextIDByKey is IDs isolated by keys.
  4471  	NextIDByKey          map[string]uint64 `protobuf:"bytes,2,rep,name=NextIDByKey,proto3" json:"NextIDByKey,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  4472  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  4473  	XXX_unrecognized     []byte            `json:"-"`
  4474  	XXX_sizecache        int32             `json:"-"`
  4475  }
  4476  
  4477  func (m *BackupData) Reset()         { *m = BackupData{} }
  4478  func (m *BackupData) String() string { return proto.CompactTextString(m) }
  4479  func (*BackupData) ProtoMessage()    {}
  4480  func (*BackupData) Descriptor() ([]byte, []int) {
  4481  	return fileDescriptor_fd1040c5381ab5a7, []int{51}
  4482  }
  4483  func (m *BackupData) XXX_Unmarshal(b []byte) error {
  4484  	return m.Unmarshal(b)
  4485  }
  4486  func (m *BackupData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4487  	if deterministic {
  4488  		return xxx_messageInfo_BackupData.Marshal(b, m, deterministic)
  4489  	} else {
  4490  		b = b[:cap(b)]
  4491  		n, err := m.MarshalToSizedBuffer(b)
  4492  		if err != nil {
  4493  			return nil, err
  4494  		}
  4495  		return b[:n], nil
  4496  	}
  4497  }
  4498  func (m *BackupData) XXX_Merge(src proto.Message) {
  4499  	xxx_messageInfo_BackupData.Merge(m, src)
  4500  }
  4501  func (m *BackupData) XXX_Size() int {
  4502  	return m.Size()
  4503  }
  4504  func (m *BackupData) XXX_DiscardUnknown() {
  4505  	xxx_messageInfo_BackupData.DiscardUnknown(m)
  4506  }
  4507  
  4508  var xxx_messageInfo_BackupData proto.InternalMessageInfo
  4509  
  4510  func (m *BackupData) GetNextID() uint64 {
  4511  	if m != nil {
  4512  		return m.NextID
  4513  	}
  4514  	return 0
  4515  }
  4516  
  4517  func (m *BackupData) GetNextIDByKey() map[string]uint64 {
  4518  	if m != nil {
  4519  		return m.NextIDByKey
  4520  	}
  4521  	return nil
  4522  }
  4523  
  4524  type ConfigItem struct {
  4525  	// Name is the name of config item
  4526  	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
  4527  	// CurrentValue is the current value of config item
  4528  	CurrentValue string `protobuf:"bytes,2,opt,name=CurrentValue,proto3" json:"CurrentValue,omitempty"`
  4529  	// DefaultValue is the default value of config item
  4530  	DefaultValue string `protobuf:"bytes,3,opt,name=DefaultValue,proto3" json:"DefaultValue,omitempty"`
  4531  	// Internal denotes the config item is internal or not
  4532  	Internal             string   `protobuf:"bytes,4,opt,name=Internal,proto3" json:"Internal,omitempty"`
  4533  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4534  	XXX_unrecognized     []byte   `json:"-"`
  4535  	XXX_sizecache        int32    `json:"-"`
  4536  }
  4537  
  4538  func (m *ConfigItem) Reset()         { *m = ConfigItem{} }
  4539  func (m *ConfigItem) String() string { return proto.CompactTextString(m) }
  4540  func (*ConfigItem) ProtoMessage()    {}
  4541  func (*ConfigItem) Descriptor() ([]byte, []int) {
  4542  	return fileDescriptor_fd1040c5381ab5a7, []int{52}
  4543  }
  4544  func (m *ConfigItem) XXX_Unmarshal(b []byte) error {
  4545  	return m.Unmarshal(b)
  4546  }
  4547  func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4548  	if deterministic {
  4549  		return xxx_messageInfo_ConfigItem.Marshal(b, m, deterministic)
  4550  	} else {
  4551  		b = b[:cap(b)]
  4552  		n, err := m.MarshalToSizedBuffer(b)
  4553  		if err != nil {
  4554  			return nil, err
  4555  		}
  4556  		return b[:n], nil
  4557  	}
  4558  }
  4559  func (m *ConfigItem) XXX_Merge(src proto.Message) {
  4560  	xxx_messageInfo_ConfigItem.Merge(m, src)
  4561  }
  4562  func (m *ConfigItem) XXX_Size() int {
  4563  	return m.Size()
  4564  }
  4565  func (m *ConfigItem) XXX_DiscardUnknown() {
  4566  	xxx_messageInfo_ConfigItem.DiscardUnknown(m)
  4567  }
  4568  
  4569  var xxx_messageInfo_ConfigItem proto.InternalMessageInfo
  4570  
  4571  func (m *ConfigItem) GetName() string {
  4572  	if m != nil {
  4573  		return m.Name
  4574  	}
  4575  	return ""
  4576  }
  4577  
  4578  func (m *ConfigItem) GetCurrentValue() string {
  4579  	if m != nil {
  4580  		return m.CurrentValue
  4581  	}
  4582  	return ""
  4583  }
  4584  
  4585  func (m *ConfigItem) GetDefaultValue() string {
  4586  	if m != nil {
  4587  		return m.DefaultValue
  4588  	}
  4589  	return ""
  4590  }
  4591  
  4592  func (m *ConfigItem) GetInternal() string {
  4593  	if m != nil {
  4594  		return m.Internal
  4595  	}
  4596  	return ""
  4597  }
  4598  
  4599  // ConfigData is the content of config on cn,tn,log and proxy
  4600  type ConfigData struct {
  4601  	// Content is the key value of the config
  4602  	Content              map[string]*ConfigItem `protobuf:"bytes,1,rep,name=Content,proto3" json:"Content,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  4603  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
  4604  	XXX_unrecognized     []byte                 `json:"-"`
  4605  	XXX_sizecache        int32                  `json:"-"`
  4606  }
  4607  
  4608  func (m *ConfigData) Reset()         { *m = ConfigData{} }
  4609  func (m *ConfigData) String() string { return proto.CompactTextString(m) }
  4610  func (*ConfigData) ProtoMessage()    {}
  4611  func (*ConfigData) Descriptor() ([]byte, []int) {
  4612  	return fileDescriptor_fd1040c5381ab5a7, []int{53}
  4613  }
  4614  func (m *ConfigData) XXX_Unmarshal(b []byte) error {
  4615  	return m.Unmarshal(b)
  4616  }
  4617  func (m *ConfigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4618  	if deterministic {
  4619  		return xxx_messageInfo_ConfigData.Marshal(b, m, deterministic)
  4620  	} else {
  4621  		b = b[:cap(b)]
  4622  		n, err := m.MarshalToSizedBuffer(b)
  4623  		if err != nil {
  4624  			return nil, err
  4625  		}
  4626  		return b[:n], nil
  4627  	}
  4628  }
  4629  func (m *ConfigData) XXX_Merge(src proto.Message) {
  4630  	xxx_messageInfo_ConfigData.Merge(m, src)
  4631  }
  4632  func (m *ConfigData) XXX_Size() int {
  4633  	return m.Size()
  4634  }
  4635  func (m *ConfigData) XXX_DiscardUnknown() {
  4636  	xxx_messageInfo_ConfigData.DiscardUnknown(m)
  4637  }
  4638  
  4639  var xxx_messageInfo_ConfigData proto.InternalMessageInfo
  4640  
  4641  func (m *ConfigData) GetContent() map[string]*ConfigItem {
  4642  	if m != nil {
  4643  		return m.Content
  4644  	}
  4645  	return nil
  4646  }
  4647  
  4648  func init() {
  4649  	proto.RegisterEnum("logservice.UpdateType", UpdateType_name, UpdateType_value)
  4650  	proto.RegisterEnum("logservice.NodeState", NodeState_name, NodeState_value)
  4651  	proto.RegisterEnum("logservice.MethodType", MethodType_name, MethodType_value)
  4652  	proto.RegisterEnum("logservice.RecordType", RecordType_name, RecordType_value)
  4653  	proto.RegisterEnum("logservice.CNLabelOp", CNLabelOp_name, CNLabelOp_value)
  4654  	proto.RegisterEnum("logservice.HAKeeperUpdateType", HAKeeperUpdateType_name, HAKeeperUpdateType_value)
  4655  	proto.RegisterEnum("logservice.HAKeeperState", HAKeeperState_name, HAKeeperState_value)
  4656  	proto.RegisterEnum("logservice.TaskSchedulerState", TaskSchedulerState_name, TaskSchedulerState_value)
  4657  	proto.RegisterEnum("logservice.ConfigChangeType", ConfigChangeType_name, ConfigChangeType_value)
  4658  	proto.RegisterEnum("logservice.ServiceType", ServiceType_name, ServiceType_value)
  4659  	proto.RegisterType((*CNStore)(nil), "logservice.CNStore")
  4660  	proto.RegisterMapType((map[string]metadata.LabelList)(nil), "logservice.CNStore.LabelsEntry")
  4661  	proto.RegisterType((*TNStore)(nil), "logservice.TNStore")
  4662  	proto.RegisterType((*LogStore)(nil), "logservice.LogStore")
  4663  	proto.RegisterType((*LogShardInfo)(nil), "logservice.LogShardInfo")
  4664  	proto.RegisterMapType((map[uint64]string)(nil), "logservice.LogShardInfo.ReplicasEntry")
  4665  	proto.RegisterType((*LogReplicaInfo)(nil), "logservice.LogReplicaInfo")
  4666  	proto.RegisterType((*Resource)(nil), "logservice.Resource")
  4667  	proto.RegisterType((*CNStoreHeartbeat)(nil), "logservice.CNStoreHeartbeat")
  4668  	proto.RegisterType((*CNAllocateID)(nil), "logservice.CNAllocateID")
  4669  	proto.RegisterType((*LogStoreHeartbeat)(nil), "logservice.LogStoreHeartbeat")
  4670  	proto.RegisterType((*TNShardInfo)(nil), "logservice.TNShardInfo")
  4671  	proto.RegisterType((*TNStoreHeartbeat)(nil), "logservice.TNStoreHeartbeat")
  4672  	proto.RegisterType((*RSMState)(nil), "logservice.RSMState")
  4673  	proto.RegisterMapType((map[uint64]uint64)(nil), "logservice.RSMState.LeaseHistoryEntry")
  4674  	proto.RegisterType((*LogRecord)(nil), "logservice.LogRecord")
  4675  	proto.RegisterType((*LogRequest)(nil), "logservice.LogRequest")
  4676  	proto.RegisterType((*TsoRequest)(nil), "logservice.TsoRequest")
  4677  	proto.RegisterType((*CNStoreLabel)(nil), "logservice.CNStoreLabel")
  4678  	proto.RegisterMapType((map[string]metadata.LabelList)(nil), "logservice.CNStoreLabel.LabelsEntry")
  4679  	proto.RegisterType((*CNWorkState)(nil), "logservice.CNWorkState")
  4680  	proto.RegisterType((*CNStateLabel)(nil), "logservice.CNStateLabel")
  4681  	proto.RegisterMapType((map[string]metadata.LabelList)(nil), "logservice.CNStateLabel.LabelsEntry")
  4682  	proto.RegisterType((*Request)(nil), "logservice.Request")
  4683  	proto.RegisterType((*LogResponse)(nil), "logservice.LogResponse")
  4684  	proto.RegisterType((*AllocateIDResponse)(nil), "logservice.AllocateIDResponse")
  4685  	proto.RegisterType((*Response)(nil), "logservice.Response")
  4686  	proto.RegisterType((*LogRecordResponse)(nil), "logservice.LogRecordResponse")
  4687  	proto.RegisterType((*TsoResponse)(nil), "logservice.TsoResponse")
  4688  	proto.RegisterType((*TaskTableUser)(nil), "logservice.TaskTableUser")
  4689  	proto.RegisterType((*Replica)(nil), "logservice.Replica")
  4690  	proto.RegisterType((*ConfigChange)(nil), "logservice.ConfigChange")
  4691  	proto.RegisterMapType((map[uint64]string)(nil), "logservice.ConfigChange.InitialMembersEntry")
  4692  	proto.RegisterType((*ShutdownStore)(nil), "logservice.ShutdownStore")
  4693  	proto.RegisterType((*ScheduleCommand)(nil), "logservice.ScheduleCommand")
  4694  	proto.RegisterType((*JoinGossipCluster)(nil), "logservice.JoinGossipCluster")
  4695  	proto.RegisterType((*CreateTaskService)(nil), "logservice.CreateTaskService")
  4696  	proto.RegisterType((*DeleteCNStore)(nil), "logservice.DeleteCNStore")
  4697  	proto.RegisterType((*DeleteProxyStore)(nil), "logservice.DeleteProxyStore")
  4698  	proto.RegisterType((*CommandBatch)(nil), "logservice.CommandBatch")
  4699  	proto.RegisterType((*CNStoreInfo)(nil), "logservice.CNStoreInfo")
  4700  	proto.RegisterMapType((map[string]metadata.LabelList)(nil), "logservice.CNStoreInfo.LabelsEntry")
  4701  	proto.RegisterType((*CNState)(nil), "logservice.CNState")
  4702  	proto.RegisterMapType((map[string]CNStoreInfo)(nil), "logservice.CNState.StoresEntry")
  4703  	proto.RegisterType((*TNStoreInfo)(nil), "logservice.TNStoreInfo")
  4704  	proto.RegisterType((*TNState)(nil), "logservice.TNState")
  4705  	proto.RegisterMapType((map[string]TNStoreInfo)(nil), "logservice.TNState.StoresEntry")
  4706  	proto.RegisterType((*ProxyStore)(nil), "logservice.ProxyStore")
  4707  	proto.RegisterType((*ProxyState)(nil), "logservice.ProxyState")
  4708  	proto.RegisterMapType((map[string]ProxyStore)(nil), "logservice.ProxyState.StoresEntry")
  4709  	proto.RegisterType((*ProxyHeartbeat)(nil), "logservice.ProxyHeartbeat")
  4710  	proto.RegisterType((*ClusterDetails)(nil), "logservice.ClusterDetails")
  4711  	proto.RegisterType((*ClusterInfo)(nil), "logservice.ClusterInfo")
  4712  	proto.RegisterType((*InitialClusterRequest)(nil), "logservice.InitialClusterRequest")
  4713  	proto.RegisterMapType((map[string]uint64)(nil), "logservice.InitialClusterRequest.NextIDByKeyEntry")
  4714  	proto.RegisterType((*LogStoreInfo)(nil), "logservice.LogStoreInfo")
  4715  	proto.RegisterType((*LogState)(nil), "logservice.LogState")
  4716  	proto.RegisterMapType((map[uint64]LogShardInfo)(nil), "logservice.LogState.ShardsEntry")
  4717  	proto.RegisterMapType((map[string]LogStoreInfo)(nil), "logservice.LogState.StoresEntry")
  4718  	proto.RegisterType((*CheckerState)(nil), "logservice.CheckerState")
  4719  	proto.RegisterMapType((map[string]uint64)(nil), "logservice.CheckerState.NextIDByKeyEntry")
  4720  	proto.RegisterType((*DeletedStore)(nil), "logservice.DeletedStore")
  4721  	proto.RegisterType((*HAKeeperRSMState)(nil), "logservice.HAKeeperRSMState")
  4722  	proto.RegisterMapType((map[string]uint64)(nil), "logservice.HAKeeperRSMState.LogShardsEntry")
  4723  	proto.RegisterMapType((map[string]uint64)(nil), "logservice.HAKeeperRSMState.NextIDByKeyEntry")
  4724  	proto.RegisterMapType((map[string]CommandBatch)(nil), "logservice.HAKeeperRSMState.ScheduleCommandsEntry")
  4725  	proto.RegisterType((*ReplicaInfo)(nil), "logservice.ReplicaInfo")
  4726  	proto.RegisterType((*ShardInfoQueryResult)(nil), "logservice.ShardInfoQueryResult")
  4727  	proto.RegisterMapType((map[uint64]ReplicaInfo)(nil), "logservice.ShardInfoQueryResult.ReplicasEntry")
  4728  	proto.RegisterType((*BackupData)(nil), "logservice.BackupData")
  4729  	proto.RegisterMapType((map[string]uint64)(nil), "logservice.BackupData.NextIDByKeyEntry")
  4730  	proto.RegisterType((*ConfigItem)(nil), "logservice.ConfigItem")
  4731  	proto.RegisterType((*ConfigData)(nil), "logservice.ConfigData")
  4732  	proto.RegisterMapType((map[string]*ConfigItem)(nil), "logservice.ConfigData.ContentEntry")
  4733  }
  4734  
  4735  func init() { proto.RegisterFile("logservice.proto", fileDescriptor_fd1040c5381ab5a7) }
  4736  
  4737  var fileDescriptor_fd1040c5381ab5a7 = []byte{
  4738  	// 3843 bytes of a gzipped FileDescriptorProto
  4739  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3b, 0x4b, 0x6f, 0x1b, 0x49,
  4740  	0x7a, 0x6a, 0x92, 0xe2, 0xe3, 0x23, 0x29, 0xb7, 0x4a, 0xb2, 0xcd, 0xd1, 0x38, 0xb2, 0xd2, 0xeb,
  4741  	0x4c, 0x3c, 0xda, 0x19, 0x1a, 0x91, 0x31, 0xc6, 0x6e, 0xa2, 0xb1, 0x43, 0x91, 0xb4, 0x45, 0x8b,
  4742  	0xa2, 0x34, 0xc5, 0xd6, 0x6e, 0xb2, 0xc0, 0x42, 0x69, 0x91, 0x65, 0x89, 0x11, 0xc9, 0x66, 0xba,
  4743  	0x9b, 0x1e, 0x3b, 0xc7, 0x24, 0x08, 0x90, 0x0d, 0x90, 0x43, 0x4e, 0x8b, 0x20, 0x48, 0x90, 0x6b,
  4744  	0x2e, 0x41, 0x80, 0x1c, 0x72, 0x49, 0x72, 0xdd, 0xe3, 0xfc, 0x82, 0x45, 0x76, 0x4e, 0x41, 0x72,
  4745  	0x48, 0x4e, 0x73, 0x09, 0xf2, 0x40, 0xbd, 0xba, 0xab, 0xd8, 0x4d, 0x3d, 0x6c, 0xef, 0xe4, 0x81,
  4746  	0x3d, 0x89, 0xf5, 0x3d, 0xaa, 0xaa, 0xbf, 0xfa, 0xde, 0x55, 0x02, 0x73, 0xe8, 0x9e, 0xfa, 0xc4,
  4747  	0x7b, 0x39, 0xe8, 0x91, 0xea, 0xc4, 0x73, 0x03, 0x17, 0x41, 0x04, 0x59, 0xfb, 0xf8, 0x74, 0x10,
  4748  	0x9c, 0x4d, 0x4f, 0xaa, 0x3d, 0x77, 0xf4, 0xe0, 0xd4, 0x3d, 0x75, 0x1f, 0x30, 0x92, 0x93, 0xe9,
  4749  	0x0b, 0x36, 0x62, 0x03, 0xf6, 0x8b, 0xb3, 0xae, 0x2d, 0x8d, 0x48, 0xe0, 0xf4, 0x9d, 0xc0, 0xe1,
  4750  	0x63, 0xeb, 0xdf, 0x32, 0x90, 0xab, 0x77, 0xba, 0x81, 0xeb, 0x11, 0x84, 0x20, 0x73, 0x74, 0xd4,
  4751  	0x6a, 0x54, 0x8c, 0x0d, 0xe3, 0x7e, 0x01, 0xb3, 0xdf, 0xe8, 0x03, 0x58, 0xea, 0xf2, 0x95, 0x6a,
  4752  	0xfd, 0xbe, 0x47, 0x7c, 0xbf, 0x92, 0x62, 0xd8, 0x19, 0x28, 0x5a, 0x07, 0xe8, 0x7e, 0xd6, 0x96,
  4753  	0x34, 0x69, 0x46, 0xa3, 0x40, 0x50, 0x15, 0x50, 0xdb, 0xed, 0x9d, 0xcf, 0xcc, 0x95, 0x61, 0x74,
  4754  	0x09, 0x18, 0x74, 0x0f, 0x32, 0xd8, 0x1d, 0x92, 0x4a, 0x76, 0xc3, 0xb8, 0xbf, 0xb4, 0x65, 0x56,
  4755  	0xc3, 0x6d, 0xd7, 0x3b, 0x14, 0x8e, 0x19, 0x96, 0xee, 0xd8, 0x1e, 0xf4, 0xce, 0x2b, 0xb9, 0x0d,
  4756  	0xe3, 0x7e, 0x06, 0xb3, 0xdf, 0xe8, 0x9b, 0xb0, 0xd8, 0x0d, 0x9c, 0x80, 0x54, 0xf2, 0x8c, 0xf5,
  4757  	0x66, 0x55, 0x11, 0x5f, 0xc7, 0xed, 0x13, 0x86, 0xc4, 0x9c, 0x06, 0x7d, 0x0a, 0xd9, 0xb6, 0x73,
  4758  	0x42, 0x86, 0x7e, 0xa5, 0xb0, 0x91, 0xbe, 0x5f, 0xdc, 0xba, 0xab, 0x52, 0x0b, 0xb9, 0x54, 0x39,
  4759  	0x45, 0x73, 0x1c, 0x78, 0xaf, 0x77, 0x32, 0x3f, 0xfa, 0xf1, 0xdd, 0x05, 0x2c, 0x98, 0xd0, 0x2f,
  4760  	0x41, 0xe1, 0xbb, 0xae, 0x77, 0xce, 0xd7, 0x03, 0xb6, 0xde, 0x4a, 0xb4, 0xd5, 0x10, 0x85, 0x23,
  4761  	0x2a, 0x64, 0x41, 0xe9, 0xb3, 0x29, 0xf1, 0x5e, 0x4b, 0x11, 0x14, 0x99, 0x08, 0x34, 0x18, 0x7a,
  4762  	0x04, 0x50, 0x77, 0xc7, 0x2f, 0x06, 0xa7, 0x0d, 0x27, 0x70, 0x2a, 0xa5, 0x0d, 0xe3, 0x7e, 0x71,
  4763  	0xeb, 0x96, 0xb6, 0xb3, 0x10, 0x8b, 0x15, 0x4a, 0xf4, 0x08, 0xf2, 0x98, 0xf8, 0xee, 0xd4, 0xeb,
  4764  	0x91, 0x4a, 0x99, 0x71, 0xad, 0xaa, 0x5c, 0x12, 0x27, 0x3e, 0x22, 0xa4, 0x45, 0xb7, 0x20, 0x7b,
  4765  	0x34, 0xb1, 0x07, 0x23, 0x52, 0x59, 0xda, 0x30, 0xee, 0xa7, 0xb1, 0x18, 0xad, 0x75, 0xa0, 0xa8,
  4766  	0x7c, 0x3b, 0x32, 0x21, 0x7d, 0x4e, 0x5e, 0x0b, 0xf5, 0xa0, 0x3f, 0xd1, 0x87, 0xb0, 0xf8, 0xd2,
  4767  	0x19, 0x4e, 0x09, 0x53, 0x8a, 0xa2, 0xfa, 0xed, 0x8c, 0xaf, 0x3d, 0xf0, 0x03, 0xcc, 0x29, 0x7e,
  4768  	0x39, 0xf5, 0x2d, 0xe3, 0x79, 0x26, 0xbf, 0x68, 0x66, 0xad, 0xdf, 0x4d, 0x43, 0xce, 0x7e, 0x07,
  4769  	0x2a, 0x27, 0x0f, 0x3f, 0x9d, 0x74, 0xf8, 0x99, 0x2b, 0x1c, 0xfe, 0x27, 0x90, 0xed, 0x9e, 0x39,
  4770  	0x5e, 0xdf, 0xaf, 0x2c, 0xb2, 0xc3, 0xbf, 0xad, 0x52, 0xdb, 0x1d, 0x86, 0x6b, 0x8d, 0x5f, 0xb8,
  4771  	0xf2, 0xd0, 0x39, 0x31, 0xda, 0x82, 0xd5, 0xb6, 0x7b, 0x1a, 0x38, 0x83, 0x21, 0xdd, 0x10, 0xf1,
  4772  	0xe4, 0x2e, 0xb3, 0x6c, 0x97, 0x89, 0xb8, 0x39, 0xea, 0x9f, 0x9b, 0xab, 0xfe, 0xba, 0x06, 0x14,
  4773  	0xae, 0xac, 0x01, 0xb3, 0xda, 0x05, 0x71, 0xed, 0x7a, 0x9e, 0xc9, 0xe7, 0xcd, 0x82, 0xf5, 0x1f,
  4774  	0x06, 0xe4, 0xdb, 0xee, 0xe9, 0xff, 0x82, 0x63, 0xd8, 0xa6, 0x5a, 0x3b, 0x19, 0x0e, 0x7a, 0x8e,
  4775  	0x3c, 0x88, 0x35, 0x95, 0xbe, 0xed, 0x9e, 0x0a, 0xb4, 0x72, 0x16, 0x21, 0xc7, 0x8c, 0xa4, 0xb2,
  4776  	0x57, 0x95, 0x94, 0xf5, 0xaf, 0x06, 0x94, 0xe8, 0xf7, 0xcb, 0x43, 0x46, 0x15, 0xc8, 0xf1, 0x01,
  4777  	0x17, 0x43, 0x06, 0xcb, 0x21, 0xda, 0x51, 0x36, 0x98, 0x62, 0x1b, 0xfc, 0x60, 0x66, 0x83, 0xe1,
  4778  	0x2c, 0x55, 0x49, 0xc8, 0x2c, 0x46, 0xd9, 0xe6, 0x2a, 0x2c, 0x36, 0x27, 0x6e, 0xef, 0x4c, 0x88,
  4779  	0x89, 0x0f, 0xd0, 0x1a, 0xe4, 0xdb, 0xc4, 0xe9, 0x13, 0xaf, 0xd5, 0x60, 0xa2, 0xca, 0xe0, 0x70,
  4780  	0xcc, 0xe4, 0x4a, 0xbc, 0x51, 0x65, 0x51, 0xc8, 0x95, 0x78, 0xa3, 0xb5, 0x5f, 0x81, 0xb2, 0xb6,
  4781  	0x80, 0x6a, 0x92, 0x19, 0x6e, 0x92, 0xab, 0xaa, 0x49, 0x16, 0x14, 0xeb, 0xb3, 0x5e, 0xc2, 0x92,
  4782  	0x2e, 0x4b, 0xf4, 0x54, 0x17, 0x01, 0x9b, 0xa6, 0xb8, 0x55, 0x99, 0xf7, 0x71, 0x3b, 0x79, 0x2a,
  4783  	0xfb, 0x2f, 0x7e, 0x7c, 0xd7, 0xc0, 0xba, 0xe8, 0xee, 0x40, 0x41, 0x4e, 0xdb, 0x60, 0xeb, 0x66,
  4784  	0x70, 0x04, 0xb0, 0x7e, 0x60, 0x44, 0x6e, 0x89, 0x7e, 0x71, 0xfd, 0xf0, 0xc8, 0x76, 0x03, 0x67,
  4785  	0x28, 0x76, 0x1d, 0x8e, 0xa9, 0xf2, 0xd6, 0x0f, 0x8f, 0x6a, 0x2f, 0x9d, 0xc1, 0xd0, 0x39, 0x19,
  4786  	0xf2, 0x2f, 0x30, 0xb0, 0x06, 0xa3, 0xfc, 0xfb, 0x64, 0xc4, 0xf9, 0xb9, 0x28, 0xc3, 0x31, 0xe5,
  4787  	0xdf, 0x27, 0xa3, 0x88, 0x9f, 0x4b, 0x54, 0x83, 0x59, 0xff, 0x99, 0x06, 0x53, 0xf8, 0xf5, 0x5d,
  4788  	0xe2, 0x78, 0xc1, 0x09, 0x71, 0x82, 0xff, 0x83, 0x81, 0xaf, 0x0a, 0xc8, 0x76, 0x7c, 0xc9, 0x5b,
  4789  	0xf7, 0x88, 0x13, 0x90, 0x3e, 0xf3, 0x27, 0x79, 0x9c, 0x80, 0x89, 0xf9, 0x85, 0x7c, 0x42, 0xd4,
  4790  	0xb9, 0x07, 0xe5, 0xd6, 0x78, 0x10, 0x44, 0x01, 0xad, 0xc0, 0x88, 0x74, 0x20, 0xa5, 0x7a, 0xe6,
  4791  	0xfa, 0xfe, 0x60, 0xa2, 0xbb, 0x18, 0x1d, 0x48, 0xd7, 0xe3, 0x80, 0xe7, 0xee, 0x60, 0x4c, 0xfa,
  4792  	0x2c, 0xca, 0xe5, 0xb1, 0x06, 0xfb, 0xba, 0xa3, 0x9c, 0x88, 0x3e, 0x8f, 0xa0, 0x54, 0xef, 0xd4,
  4793  	0x86, 0x43, 0xb7, 0xe7, 0x04, 0xa4, 0xd5, 0x48, 0x08, 0x6a, 0xab, 0xb0, 0xb8, 0xe3, 0x04, 0xbd,
  4794  	0x33, 0xa1, 0xc9, 0x7c, 0x60, 0xfd, 0x5d, 0x0a, 0x96, 0xa5, 0xbf, 0xbc, 0x58, 0x73, 0x36, 0xa0,
  4795  	0x88, 0x9d, 0x17, 0x81, 0xae, 0x36, 0x2a, 0x28, 0x41, 0xb7, 0xd2, 0x89, 0xba, 0x15, 0x93, 0x75,
  4796  	0x26, 0x49, 0xd6, 0x6f, 0xe7, 0x3f, 0x93, 0x35, 0x29, 0x3b, 0x57, 0x93, 0xf4, 0x53, 0xcb, 0x5d,
  4797  	0xd9, 0xdf, 0x36, 0xa1, 0xa8, 0x84, 0xd4, 0x0b, 0xbc, 0xed, 0xc5, 0xce, 0xe4, 0xdf, 0x53, 0x60,
  4798  	0xda, 0xef, 0xd2, 0x7e, 0xa3, 0x24, 0x20, 0x7d, 0x9d, 0x24, 0x20, 0x59, 0x6c, 0x99, 0xb9, 0x62,
  4799  	0x9b, 0x97, 0x34, 0x2c, 0x5e, 0x3b, 0x69, 0xc8, 0x5e, 0x31, 0x69, 0xc8, 0xbf, 0x71, 0xd2, 0x50,
  4800  	0x48, 0x4c, 0x1a, 0x72, 0x66, 0xde, 0xfa, 0x83, 0x14, 0xe4, 0x71, 0x77, 0x9f, 0x7b, 0x02, 0x13,
  4801  	0xd2, 0xb6, 0xef, 0xca, 0xd8, 0x63, 0xfb, 0x2e, 0xb5, 0x9c, 0xd6, 0xb8, 0x4f, 0x5e, 0x49, 0xcb,
  4802  	0x61, 0x03, 0xaa, 0xc5, 0x6d, 0xe2, 0xf8, 0x64, 0xd7, 0x1d, 0xf2, 0x48, 0xc7, 0xfd, 0xb6, 0x0e,
  4803  	0xa4, 0x9b, 0xb0, 0xbd, 0xe9, 0x98, 0x5a, 0x65, 0xbf, 0xed, 0x8f, 0xa5, 0xf3, 0x56, 0x61, 0xe8,
  4804  	0x39, 0x94, 0x38, 0xd3, 0xc0, 0x0f, 0x5c, 0xef, 0xb5, 0xd0, 0x76, 0x2d, 0x18, 0xcb, 0xdd, 0x55,
  4805  	0x55, 0x42, 0x1e, 0x8c, 0x35, 0xde, 0xb5, 0x27, 0xb0, 0x1c, 0x23, 0xb9, 0x2c, 0x9c, 0x66, 0xd4,
  4806  	0x70, 0xfa, 0x7d, 0x28, 0x30, 0xd3, 0xea, 0xb9, 0x5e, 0x9f, 0x32, 0xd2, 0x4d, 0x0b, 0x46, 0xba,
  4807  	0xd7, 0x4d, 0xc8, 0xd8, 0xaf, 0x27, 0x9c, 0x6f, 0x49, 0x3f, 0x06, 0xce, 0x43, 0xb1, 0x98, 0xd1,
  4808  	0x50, 0xfd, 0x65, 0x47, 0x46, 0x05, 0x53, 0xc2, 0xec, 0xb7, 0xf5, 0x43, 0x03, 0x80, 0xcd, 0xff,
  4809  	0x5b, 0x53, 0xe2, 0x33, 0x15, 0xef, 0x38, 0x23, 0x22, 0x55, 0x9c, 0xfe, 0x56, 0x6d, 0x28, 0xa5,
  4810  	0xdb, 0x90, 0xd8, 0x4e, 0x3a, 0xda, 0x4e, 0x05, 0x72, 0xfb, 0xce, 0xab, 0xee, 0xe0, 0xb7, 0x65,
  4811  	0x58, 0x94, 0x43, 0x6a, 0x6f, 0x52, 0xcd, 0x1b, 0x22, 0xd9, 0x88, 0x00, 0x2c, 0x0b, 0xe9, 0xb4,
  4812  	0x1a, 0x4c, 0xeb, 0x68, 0x16, 0xd2, 0x69, 0x35, 0x2c, 0x0b, 0xc0, 0xf6, 0x5d, 0xb9, 0xb3, 0x55,
  4813  	0x58, 0xac, 0xbb, 0xd3, 0x71, 0x20, 0x3e, 0x9e, 0x0f, 0xac, 0x7f, 0x31, 0xa8, 0x9f, 0x65, 0x76,
  4814  	0xca, 0x4a, 0x81, 0x44, 0x1b, 0x7d, 0x08, 0x85, 0x83, 0x09, 0xf1, 0x9c, 0x60, 0xe0, 0x8e, 0x85,
  4815  	0xa0, 0x6e, 0xea, 0x05, 0x18, 0xe3, 0x3d, 0x98, 0xe0, 0x88, 0x0e, 0xed, 0x84, 0x25, 0x1b, 0x37,
  4816  	0xd8, 0x7b, 0x09, 0x25, 0x1b, 0x23, 0x98, 0x5f, 0xb7, 0xbd, 0xeb, 0xc2, 0xc6, 0x6a, 0x43, 0xb1,
  4817  	0xde, 0x89, 0x62, 0x64, 0xd2, 0xb7, 0x7e, 0x28, 0x53, 0xe2, 0xd4, 0xfc, 0x32, 0x91, 0x53, 0x58,
  4818  	0x3f, 0x11, 0xb2, 0x73, 0x82, 0x0b, 0x64, 0x77, 0xf5, 0xf9, 0x2e, 0x97, 0x98, 0x5c, 0xe8, 0x6b,
  4819  	0x94, 0xd8, 0x0f, 0xb2, 0x90, 0x93, 0x1a, 0xc4, 0x3c, 0x3e, 0xfb, 0x19, 0x46, 0x83, 0x08, 0x80,
  4820  	0xaa, 0x90, 0xdd, 0x27, 0xc1, 0x99, 0xdb, 0x4f, 0x32, 0x25, 0x8e, 0x61, 0xa6, 0x24, 0xa8, 0xd0,
  4821  	0xb6, 0x6a, 0x37, 0xcc, 0x04, 0x66, 0xbc, 0x60, 0x84, 0x15, 0xdf, 0xa8, 0xda, 0x59, 0x8d, 0xa5,
  4822  	0xc4, 0x61, 0x68, 0x61, 0xc6, 0x52, 0xdc, 0xfa, 0xb9, 0xd9, 0x94, 0x58, 0x8b, 0x3f, 0x58, 0x63,
  4823  	0x41, 0x8f, 0xa9, 0x32, 0x44, 0x33, 0x2c, 0xb2, 0x19, 0xee, 0x24, 0x68, 0x69, 0x34, 0x81, 0xca,
  4824  	0x40, 0xf9, 0x6d, 0x85, 0x3f, 0x1b, 0xe7, 0xb7, 0x63, 0xfc, 0x0a, 0x03, 0x0d, 0x03, 0x91, 0x79,
  4825  	0x26, 0x45, 0xe8, 0x08, 0x8b, 0x55, 0x43, 0xde, 0xd6, 0x33, 0x23, 0x11, 0x40, 0x2a, 0xfa, 0xc6,
  4826  	0x23, 0x3c, 0xd6, 0xf3, 0xa8, 0x6d, 0xdd, 0xde, 0x45, 0xcd, 0x5a, 0x99, 0x67, 0x9c, 0x58, 0xf7,
  4827  	0x0e, 0xdf, 0xd6, 0x0c, 0x88, 0xe5, 0x94, 0x33, 0xa1, 0x58, 0x41, 0x63, 0xcd, 0xd8, 0xb6, 0x75,
  4828  	0x63, 0x61, 0xa9, 0x66, 0xc2, 0xc2, 0x12, 0x8f, 0x75, 0xd3, 0x7a, 0x02, 0xe5, 0x06, 0x19, 0x92,
  4829  	0x80, 0x88, 0xed, 0x88, 0x3c, 0xf4, 0x3d, 0x95, 0x5d, 0x23, 0xc0, 0x3a, 0x3d, 0xda, 0x81, 0xa5,
  4830  	0x43, 0xcf, 0x7d, 0xf5, 0x3a, 0x3a, 0x30, 0x9e, 0x93, 0x6a, 0x39, 0x98, 0x4e, 0x81, 0x67, 0x38,
  4831  	0xac, 0x2e, 0x14, 0x99, 0x0a, 0xfa, 0x13, 0x77, 0xec, 0x93, 0x0b, 0x72, 0x23, 0xe1, 0xd7, 0x53,
  4832  	0x9a, 0x5f, 0x6f, 0x3b, 0x7e, 0x10, 0x79, 0x7b, 0x39, 0xb4, 0xaa, 0x80, 0x94, 0xc3, 0x52, 0xe6,
  4833  	0x7e, 0x3a, 0xf0, 0x14, 0x4b, 0x93, 0x43, 0xeb, 0xab, 0x0c, 0xcb, 0xab, 0x39, 0xd9, 0xbb, 0x35,
  4834  	0xc9, 0x3b, 0x50, 0x68, 0x7a, 0x9e, 0xeb, 0xd5, 0xdd, 0x3e, 0x61, 0xdb, 0x2c, 0xe3, 0x08, 0x40,
  4835  	0x23, 0x3f, 0x1b, 0xec, 0x13, 0xdf, 0x77, 0x4e, 0x89, 0x48, 0x72, 0x35, 0x18, 0xad, 0xb2, 0x5a,
  4836  	0xfe, 0x6e, 0x6d, 0x8f, 0x90, 0x09, 0xf1, 0x98, 0x49, 0xe5, 0xb1, 0x02, 0x41, 0x4f, 0x34, 0x09,
  4837  	0x0a, 0x9b, 0xb9, 0x1d, 0xb3, 0x7a, 0x8e, 0x16, 0x66, 0xaf, 0xc9, 0x9c, 0x6a, 0x91, 0x3b, 0x1a,
  4838  	0x39, 0xe3, 0x3e, 0xcf, 0xfd, 0x73, 0x09, 0x5a, 0xa4, 0xe0, 0xb1, 0x46, 0x4d, 0xd5, 0x97, 0x19,
  4839  	0x92, 0x58, 0x3e, 0x1f, 0x5f, 0x5e, 0x41, 0x63, 0x95, 0x96, 0xea, 0x4f, 0x7d, 0x38, 0xf5, 0x03,
  4840  	0xe2, 0x35, 0x08, 0x4d, 0x01, 0x7d, 0x61, 0x39, 0x9a, 0xfe, 0xe8, 0x14, 0x78, 0x86, 0x03, 0x3d,
  4841  	0x86, 0x42, 0x54, 0xc4, 0x73, 0xdb, 0xd9, 0x50, 0xd9, 0x43, 0x24, 0x4b, 0xe9, 0x30, 0xf1, 0xa7,
  4842  	0xc3, 0x00, 0x47, 0x2c, 0xe8, 0x31, 0x80, 0x62, 0xf7, 0xdc, 0x80, 0xd6, 0xd5, 0x09, 0xe2, 0x8a,
  4843  	0x84, 0x61, 0xc6, 0xf6, 0xcf, 0x48, 0xef, 0x9c, 0x78, 0xdc, 0x7c, 0x4b, 0x09, 0xc2, 0x53, 0xf0,
  4844  	0x58, 0xa3, 0xb6, 0x9e, 0xb3, 0xc2, 0x8a, 0x27, 0x45, 0xa1, 0x58, 0x3e, 0xa1, 0xe1, 0x81, 0x42,
  4845  	0xfc, 0x8a, 0xc1, 0x82, 0xd6, 0xcd, 0xd8, 0x61, 0x52, 0xac, 0x38, 0x4a, 0x49, 0x6b, 0x7d, 0x43,
  4846  	0x3b, 0x08, 0x9a, 0x9b, 0x7c, 0x87, 0x05, 0x25, 0x91, 0x9b, 0xb0, 0x81, 0xf5, 0x0c, 0xca, 0x34,
  4847  	0x43, 0xb7, 0x9d, 0x93, 0x21, 0x39, 0xf2, 0x89, 0x87, 0xd6, 0x20, 0x4f, 0xff, 0x8e, 0xa3, 0x04,
  4848  	0x2b, 0x1c, 0x53, 0xdc, 0xa1, 0xe3, 0xfb, 0x9f, 0xbb, 0x5e, 0x5f, 0x54, 0x10, 0xe1, 0xd8, 0xfa,
  4849  	0x43, 0x83, 0xee, 0x92, 0x95, 0x26, 0x89, 0x31, 0x7a, 0x7e, 0x82, 0xa6, 0x15, 0x39, 0xe9, 0x99,
  4850  	0x22, 0x27, 0x6a, 0x16, 0x65, 0xd4, 0x66, 0xd1, 0x3a, 0x0b, 0x6c, 0x7a, 0xa6, 0xa6, 0x40, 0xac,
  4851  	0x3f, 0x49, 0x51, 0x1d, 0xa6, 0x59, 0x7d, 0xfd, 0xcc, 0x19, 0x9f, 0x12, 0xf4, 0x30, 0xdc, 0x9d,
  4852  	0xe8, 0xec, 0xac, 0xe8, 0x59, 0x28, 0x43, 0x45, 0x12, 0xe4, 0xdf, 0xb1, 0x0d, 0xc0, 0xd9, 0x95,
  4853  	0xec, 0xf5, 0x4e, 0xbc, 0x88, 0x88, 0x68, 0xb0, 0x42, 0x8f, 0x6c, 0x58, 0x6a, 0x8d, 0x07, 0xc1,
  4854  	0xc0, 0x19, 0xee, 0x93, 0xd1, 0x09, 0xf1, 0x64, 0xca, 0xf1, 0xd1, 0xbc, 0x19, 0xaa, 0x3a, 0x39,
  4855  	0xcf, 0xd4, 0x67, 0xe6, 0x58, 0xab, 0xc1, 0x4a, 0x02, 0xd9, 0xb5, 0x9a, 0x5f, 0x1f, 0x42, 0xb9,
  4856  	0x7b, 0x36, 0x0d, 0xfa, 0xee, 0xe7, 0x63, 0xee, 0xb7, 0xe9, 0xd9, 0xd0, 0x1f, 0xe1, 0x91, 0xc9,
  4857  	0xa1, 0xf5, 0x97, 0x19, 0xb8, 0xd1, 0xed, 0x9d, 0x91, 0xfe, 0x74, 0x48, 0x84, 0x95, 0x27, 0x9e,
  4858  	0xee, 0x3d, 0x28, 0xef, 0xb8, 0x6e, 0xe0, 0x07, 0x9e, 0x33, 0x99, 0x0c, 0xc6, 0xa7, 0x6c, 0xd1,
  4859  	0x3c, 0xd6, 0x81, 0xd4, 0x35, 0x88, 0x32, 0x8d, 0x09, 0x34, 0xcd, 0x04, 0xaa, 0xb9, 0x06, 0x05,
  4860  	0x8d, 0x55, 0x5a, 0xee, 0x93, 0x22, 0x51, 0x89, 0x5c, 0xa4, 0x32, 0x4f, 0x94, 0x58, 0x3f, 0xfd,
  4861  	0x27, 0x33, 0x5f, 0x2c, 0x12, 0x91, 0xf7, 0x74, 0xc7, 0xa0, 0x10, 0xe0, 0x19, 0x09, 0xed, 0xc1,
  4862  	0x32, 0xaf, 0x5e, 0x95, 0x72, 0x56, 0x78, 0x56, 0x2d, 0x1f, 0x8a, 0x11, 0xe1, 0x38, 0x5f, 0x3c,
  4863  	0xce, 0xe6, 0xae, 0x19, 0x67, 0xf7, 0x60, 0xf9, 0xb9, 0x3b, 0x18, 0xf3, 0xd6, 0x87, 0xf0, 0x7f,
  4864  	0xc2, 0xd1, 0x6a, 0xbb, 0x89, 0x11, 0xe1, 0x38, 0x1f, 0xda, 0x05, 0x93, 0xcf, 0xce, 0x02, 0x31,
  4865  	0xdf, 0x50, 0x21, 0x9e, 0x67, 0xcd, 0xd2, 0xe0, 0x18, 0x97, 0xf5, 0x20, 0x61, 0x5b, 0xd4, 0x67,
  4866  	0x34, 0x5f, 0x0d, 0xfc, 0x80, 0x2a, 0x05, 0xf5, 0x5e, 0x05, 0x1c, 0x8e, 0xad, 0x61, 0x82, 0x54,
  4867  	0xd1, 0x43, 0xc8, 0x50, 0x87, 0x23, 0xcc, 0x54, 0x13, 0x8a, 0xe6, 0xa9, 0x84, 0xb1, 0x32, 0x62,
  4868  	0x56, 0x31, 0x3b, 0xfe, 0x39, 0xad, 0x16, 0x4f, 0x1c, 0x5f, 0xea, 0xbc, 0x06, 0xa3, 0x6a, 0xaf,
  4869  	0x8b, 0x71, 0xbe, 0xda, 0x7f, 0x14, 0x97, 0xc9, 0x05, 0xd4, 0x8e, 0x1e, 0x2f, 0xc3, 0x6e, 0xb5,
  4870  	0x11, 0x75, 0xab, 0xd1, 0xa7, 0x90, 0x17, 0x34, 0xb2, 0x6f, 0xfe, 0xbe, 0xa6, 0x7c, 0xba, 0x8d,
  4871  	0xc9, 0xce, 0x94, 0x64, 0xb1, 0xfe, 0x7a, 0x91, 0x26, 0x85, 0x7c, 0x41, 0x1a, 0xa5, 0xe4, 0x45,
  4872  	0x83, 0xa1, 0x5c, 0x34, 0xfc, 0xff, 0xea, 0xd2, 0xd6, 0xc2, 0x42, 0x2d, 0xcf, 0xc4, 0xf5, 0x8d,
  4873  	0x84, 0xec, 0x99, 0xdd, 0x32, 0x5c, 0xf1, 0x46, 0xb2, 0xf0, 0x46, 0x37, 0x92, 0x90, 0xdc, 0x1b,
  4874  	0xd6, 0x3b, 0x91, 0xc5, 0xab, 0x74, 0x7d, 0x4b, 0x97, 0x76, 0x7d, 0xcb, 0x6f, 0xd4, 0xf5, 0x5d,
  4875  	0x7a, 0xa3, 0xbb, 0xcd, 0x1b, 0x5f, 0xc3, 0xdd, 0xe6, 0x9f, 0x1a, 0xfc, 0x3a, 0x5d, 0xdc, 0x2d,
  4876  	0xb3, 0x13, 0x93, 0x19, 0xcc, 0xdd, 0x84, 0x92, 0xa4, 0xca, 0x29, 0xb4, 0x93, 0xe4, 0xa0, 0x35,
  4877  	0x0c, 0x45, 0x05, 0x99, 0xb0, 0xc1, 0x8f, 0xf5, 0x0d, 0xde, 0x9e, 0xa3, 0x2c, 0x6a, 0x14, 0xfc,
  4878  	0x2a, 0xc5, 0xba, 0xb0, 0xef, 0xc4, 0xa4, 0x7e, 0xd6, 0x38, 0xbd, 0x46, 0xe3, 0x94, 0xea, 0x85,
  4879  	0x7d, 0x15, 0xbd, 0xb0, 0x7f, 0xba, 0x7a, 0x61, 0x27, 0xeb, 0xc5, 0x1f, 0x1b, 0x00, 0x8a, 0xdb,
  4880  	0x4f, 0xca, 0x76, 0xa4, 0xaa, 0xa4, 0x14, 0x55, 0xb9, 0x07, 0x65, 0x6a, 0x06, 0x64, 0xac, 0x3b,
  4881  	0x56, 0x1d, 0x38, 0x23, 0xdd, 0xcc, 0x95, 0x6f, 0x0c, 0xfe, 0x22, 0xda, 0x14, 0x15, 0xdb, 0xaf,
  4882  	0xce, 0x88, 0xcd, 0x8a, 0x15, 0xd8, 0x97, 0x49, 0xee, 0xb3, 0xcb, 0x24, 0xf7, 0x91, 0x2e, 0xb9,
  4883  	0x5b, 0x09, 0x2b, 0xd0, 0x2c, 0x40, 0x11, 0xdc, 0xef, 0x18, 0xb3, 0xe5, 0xff, 0xbc, 0x54, 0x51,
  4884  	0x17, 0x54, 0xea, 0x72, 0x41, 0xa5, 0xaf, 0x2c, 0xa8, 0xbf, 0x4f, 0xcd, 0xd6, 0x90, 0xe8, 0x13,
  4885  	0xc8, 0x8b, 0xa3, 0x96, 0xe2, 0x5a, 0x49, 0x50, 0x03, 0xe9, 0x2c, 0x25, 0x29, 0x65, 0xab, 0x4b,
  4886  	0xb6, 0x54, 0x9c, 0xad, 0xae, 0xb3, 0x49, 0x52, 0xf4, 0x2d, 0xd6, 0x0a, 0x17, 0x7c, 0xdc, 0x1b,
  4887  	0xac, 0x26, 0x75, 0xcc, 0x04, 0x63, 0x44, 0x8c, 0x1e, 0x43, 0x31, 0x12, 0x2c, 0x0d, 0xb8, 0xe9,
  4888  	0xf9, 0x72, 0x97, 0x65, 0xbb, 0xc2, 0x80, 0x1a, 0x32, 0xbf, 0xe9, 0x8b, 0x19, 0xf8, 0x95, 0x40,
  4889  	0x25, 0x9e, 0xc5, 0xf5, 0xd5, 0x39, 0x74, 0x26, 0xeb, 0xf7, 0x0d, 0x28, 0x0a, 0x01, 0x32, 0xb7,
  4890  	0xf8, 0x6d, 0x26, 0x3d, 0xee, 0xdc, 0x0c, 0xe1, 0xdc, 0x42, 0xef, 0x2f, 0x30, 0x5a, 0xfd, 0x19,
  4891  	0x92, 0xa3, 0x6d, 0x2e, 0x0a, 0xce, 0x9b, 0x12, 0x9b, 0x89, 0x22, 0x87, 0x40, 0x69, 0xcc, 0x11,
  4892  	0x83, 0xf5, 0x0f, 0x29, 0xb8, 0x29, 0x2a, 0x1d, 0x99, 0xbd, 0x8a, 0xe6, 0xdc, 0x07, 0xb0, 0xd4,
  4893  	0x99, 0x8e, 0x0e, 0x5e, 0x44, 0x93, 0x73, 0x9f, 0x3d, 0x03, 0xa5, 0x9a, 0xc6, 0x20, 0xe1, 0xfe,
  4894  	0xb9, 0xbd, 0xea, 0x40, 0xb4, 0x09, 0xa6, 0xe4, 0x0b, 0xaf, 0x0e, 0x79, 0x15, 0x1a, 0x83, 0xd3,
  4895  	0x00, 0xda, 0x21, 0xaf, 0x82, 0xf0, 0x85, 0x82, 0x18, 0x21, 0x1b, 0x8a, 0xfc, 0xd7, 0xce, 0xeb,
  4896  	0x3d, 0x22, 0xef, 0x62, 0xb6, 0x54, 0xc1, 0x27, 0x7e, 0x49, 0x55, 0x61, 0xe2, 0xd5, 0x9e, 0x3a,
  4897  	0xcd, 0xda, 0x63, 0x30, 0x67, 0x09, 0x92, 0xaf, 0x68, 0xe7, 0xdc, 0xca, 0xfc, 0x6d, 0x8a, 0xbf,
  4898  	0x69, 0xb8, 0x30, 0xc4, 0xfd, 0xec, 0x86, 0x36, 0xc9, 0x8d, 0xfc, 0x4d, 0x4a, 0xbc, 0x08, 0xa2,
  4899  	0xde, 0xf6, 0x71, 0x18, 0xdd, 0xb9, 0x01, 0x6c, 0xc4, 0xec, 0x99, 0xf9, 0x5a, 0x46, 0xa2, 0xfb,
  4900  	0x5a, 0xae, 0x61, 0x8f, 0x43, 0x6f, 0x9d, 0xba, 0x88, 0x7f, 0xae, 0xaf, 0xee, 0x42, 0x51, 0x99,
  4901  	0x3c, 0xa1, 0xd4, 0xaf, 0xea, 0xbe, 0x7a, 0xee, 0xa3, 0x15, 0x45, 0x39, 0xd8, 0xa4, 0x17, 0x06,
  4902  	0x80, 0xcb, 0x26, 0x4d, 0x8a, 0x9d, 0xff, 0xb4, 0xa8, 0x77, 0xbf, 0x12, 0x35, 0xee, 0x89, 0xe6,
  4903  	0x60, 0x12, 0x33, 0xb6, 0x08, 0x2d, 0x1d, 0x9d, 0xea, 0x92, 0x1e, 0x86, 0xf9, 0x83, 0x08, 0x0c,
  4904  	0x2b, 0x09, 0x59, 0x83, 0xec, 0xe5, 0xc8, 0x4c, 0xe3, 0x51, 0x74, 0xa0, 0x22, 0xee, 0xae, 0x26,
  4905  	0x1d, 0x83, 0xd4, 0xb8, 0xf0, 0xf0, 0x1f, 0x86, 0x49, 0xac, 0x68, 0x1a, 0xac, 0x24, 0xa4, 0xae,
  4906  	0x72, 0x31, 0x99, 0xee, 0x3e, 0x90, 0x17, 0x52, 0xbc, 0x26, 0xd2, 0x8a, 0x58, 0xd9, 0xa7, 0xd5,
  4907  	0xae, 0xa5, 0x3a, 0x42, 0xaf, 0x45, 0x19, 0x28, 0x7a, 0x87, 0x39, 0xc6, 0xbd, 0x3e, 0x5b, 0x02,
  4908  	0xeb, 0x54, 0x38, 0x81, 0x13, 0x35, 0x67, 0xda, 0x7a, 0x22, 0x91, 0xbb, 0xb4, 0x9a, 0x9e, 0x69,
  4909  	0x06, 0x4a, 0x7f, 0xd7, 0x67, 0xe9, 0x9c, 0xf4, 0x77, 0x7d, 0xb4, 0xa7, 0xfb, 0x3b, 0x60, 0x6a,
  4910  	0xfd, 0xe1, 0xbc, 0x1e, 0xe7, 0xc5, 0x6e, 0x0e, 0x6d, 0xab, 0xa9, 0x8d, 0xe8, 0xb8, 0xde, 0x4a,
  4911  	0x4e, 0x68, 0xe4, 0x25, 0x95, 0x92, 0x0a, 0xa9, 0xb5, 0x50, 0xe9, 0xea, 0xb5, 0xd0, 0x5b, 0x3b,
  4912  	0xd7, 0x3f, 0x32, 0xa0, 0xa4, 0x46, 0xce, 0xc4, 0x5c, 0xe7, 0x0e, 0x14, 0x18, 0x32, 0xec, 0x1f,
  4913  	0x16, 0x70, 0x04, 0x40, 0x15, 0xc8, 0xe9, 0x1e, 0x55, 0x0e, 0x95, 0x42, 0x2d, 0xa3, 0x16, 0x6a,
  4914  	0x68, 0x0d, 0xf2, 0x0d, 0xf7, 0xf3, 0x31, 0xc3, 0x2c, 0x32, 0x4c, 0x38, 0xb6, 0xbe, 0xca, 0x83,
  4915  	0x29, 0x75, 0x2b, 0x7c, 0x97, 0x10, 0xbe, 0x42, 0x30, 0xd4, 0x57, 0x08, 0x49, 0xf9, 0x6b, 0x14,
  4916  	0xda, 0xd2, 0x5a, 0x68, 0x3b, 0xd0, 0x8f, 0x9a, 0x67, 0x25, 0x1f, 0x27, 0x29, 0x74, 0xf8, 0xdc,
  4917  	0xe0, 0xe2, 0xe3, 0x4e, 0x78, 0xcb, 0xf7, 0x3f, 0x6f, 0x2f, 0x7d, 0x30, 0x67, 0x5a, 0x30, 0xb2,
  4918  	0xef, 0xb0, 0x75, 0xe1, 0xa7, 0xce, 0x32, 0xa9, 0xee, 0x3b, 0x36, 0x23, 0x6a, 0xa9, 0x09, 0x11,
  4919  	0x7f, 0x64, 0xfd, 0xcd, 0x0b, 0xa7, 0x0f, 0xa9, 0xb9, 0x1c, 0x23, 0x6e, 0xd5, 0x2d, 0xc1, 0x95,
  4920  	0xdd, 0x92, 0xe2, 0x38, 0x8b, 0x6f, 0xe4, 0x38, 0x4b, 0xd7, 0x70, 0x9c, 0x33, 0x6e, 0xbe, 0x7c,
  4921  	0x6d, 0x37, 0x1f, 0xf3, 0x61, 0x4b, 0x6f, 0xe4, 0xc3, 0x74, 0xf7, 0x72, 0xe3, 0x9a, 0xee, 0x25,
  4922  	0x96, 0x54, 0x9b, 0x6f, 0x90, 0x54, 0xbf, 0xad, 0xb3, 0x59, 0xfb, 0x3e, 0xdc, 0x4c, 0xd4, 0xb4,
  4923  	0x6b, 0x86, 0x6d, 0xed, 0xd6, 0x4e, 0x99, 0x7e, 0x9b, 0xbd, 0x86, 0x9d, 0x93, 0x63, 0x5c, 0xea,
  4924  	0x09, 0x5b, 0x50, 0x54, 0x1f, 0xd2, 0xbe, 0xc5, 0x03, 0x34, 0xeb, 0xcf, 0x52, 0xb0, 0x9a, 0x74,
  4925  	0x41, 0x77, 0xc1, 0x35, 0xf0, 0x61, 0xec, 0x41, 0x72, 0xf5, 0xb2, 0xeb, 0x3e, 0xfd, 0x61, 0x72,
  4926  	0x2c, 0xc7, 0x7c, 0x37, 0xcf, 0x93, 0xed, 0xcb, 0x9f, 0x27, 0x5f, 0xd4, 0x9c, 0x50, 0x24, 0xaa,
  4927  	0xca, 0xfa, 0xaf, 0x0c, 0x80, 0x1d, 0xa7, 0x77, 0x3e, 0x9d, 0xb0, 0xa6, 0x4b, 0xe4, 0xb4, 0x0d,
  4928  	0xcd, 0x69, 0xb7, 0x74, 0xa7, 0xcd, 0xe5, 0xf2, 0x8b, 0xea, 0xfc, 0xd1, 0x24, 0x3f, 0xe5, 0x22,
  4929  	0xe4, 0xf7, 0x0c, 0x99, 0x82, 0xb7, 0x02, 0x32, 0x4a, 0x7c, 0xbb, 0x65, 0x41, 0xa9, 0x3e, 0xf5,
  4930  	0x3c, 0x32, 0x0e, 0xbe, 0xa3, 0x5c, 0x58, 0x69, 0x30, 0x4a, 0xd3, 0x20, 0x2f, 0x9c, 0xe9, 0x50,
  4931  	0xd0, 0xf0, 0x80, 0xa9, 0xc1, 0xe8, 0x11, 0xb5, 0xc6, 0x01, 0xf1, 0xc6, 0xce, 0x50, 0xd4, 0x1e,
  4932  	0xe1, 0xd8, 0xfa, 0x73, 0x43, 0xad, 0x04, 0xd0, 0xa7, 0x90, 0xab, 0xbb, 0xe3, 0x80, 0xb0, 0xa7,
  4933  	0x5a, 0xf1, 0xf6, 0x72, 0x48, 0x58, 0x15, 0x54, 0x5c, 0x30, 0x92, 0x67, 0x0d, 0xb3, 0xdb, 0xa8,
  4934  	0x10, 0x71, 0xcd, 0xf6, 0x49, 0x24, 0x0e, 0x45, 0x50, 0x9b, 0xbf, 0x01, 0x70, 0x34, 0xe9, 0x3b,
  4935  	0x01, 0xcf, 0x0d, 0x6e, 0xc3, 0x8a, 0xf6, 0x26, 0x90, 0xa3, 0xcc, 0x05, 0x74, 0x13, 0x96, 0xe5,
  4936  	0x3b, 0xc0, 0x76, 0xb7, 0x23, 0xc0, 0x06, 0x5a, 0x81, 0x1b, 0xd4, 0xdb, 0xb1, 0xed, 0x08, 0x60,
  4937  	0x0a, 0x95, 0xa1, 0x60, 0x77, 0x0f, 0xc4, 0x30, 0xbd, 0x59, 0x85, 0x42, 0xf8, 0x0f, 0x07, 0xe8,
  4938  	0x06, 0x14, 0x3b, 0xae, 0x37, 0x72, 0x86, 0x6c, 0x68, 0x2e, 0x20, 0x13, 0x4a, 0x34, 0x8f, 0x70,
  4939  	0xa7, 0x01, 0x87, 0x18, 0x9b, 0xff, 0x95, 0x02, 0x88, 0x5e, 0x30, 0xa0, 0x25, 0x00, 0xbb, 0x7b,
  4940  	0x70, 0x7c, 0x74, 0xd8, 0xa8, 0xd9, 0x4d, 0x73, 0x01, 0x01, 0x64, 0x6b, 0x87, 0x87, 0xcd, 0x4e,
  4941  	0xc3, 0x34, 0x50, 0x1e, 0x32, 0xb8, 0x59, 0x6b, 0x98, 0x29, 0x54, 0x82, 0xbc, 0x8d, 0x8f, 0x3a,
  4942  	0x75, 0x4a, 0x93, 0xa6, 0x93, 0x3e, 0x6b, 0xda, 0xc7, 0x21, 0x24, 0x83, 0x8a, 0x90, 0xab, 0x1f,
  4943  	0x74, 0x3a, 0xcd, 0xba, 0x6d, 0x2e, 0xd2, 0x29, 0xc5, 0xe0, 0x18, 0x1f, 0x98, 0x59, 0xb4, 0x0c,
  4944  	0xe5, 0xf6, 0xc1, 0xb3, 0xe3, 0xdd, 0x66, 0x0d, 0xdb, 0x3b, 0xcd, 0x9a, 0x6d, 0xe6, 0xe8, 0x0c,
  4945  	0xf5, 0x8e, 0x02, 0xc9, 0xb3, 0x8d, 0xaa, 0x90, 0x02, 0x42, 0xb0, 0x54, 0xdf, 0x6d, 0xd6, 0xf7,
  4946  	0x8e, 0x77, 0x6b, 0x7b, 0xcd, 0xe6, 0x61, 0x13, 0x9b, 0x40, 0x05, 0x48, 0x57, 0xae, 0xb7, 0x8f,
  4947  	0xba, 0x76, 0x13, 0x1f, 0x37, 0x9a, 0x76, 0xad, 0xd5, 0xee, 0x9a, 0x45, 0x4a, 0x4c, 0x11, 0xdd,
  4948  	0xdd, 0x1a, 0x6e, 0x1c, 0xb7, 0x3a, 0x4f, 0x0f, 0xcc, 0x12, 0x9b, 0xa0, 0x73, 0x5c, 0x6b, 0xb7,
  4949  	0x0f, 0xe8, 0x2e, 0x8f, 0x5b, 0x0d, 0xb3, 0x4c, 0x05, 0xad, 0x4e, 0xd0, 0xb5, 0xe9, 0xfe, 0x97,
  4950  	0x98, 0xa0, 0x99, 0x04, 0x8e, 0xeb, 0x9d, 0xe3, 0x76, 0x6d, 0xa7, 0xd9, 0x36, 0x6f, 0xa0, 0x0a,
  4951  	0xac, 0x46, 0xc0, 0xef, 0x1e, 0xe0, 0x3d, 0x41, 0x6e, 0xd2, 0x99, 0x0f, 0x6b, 0x76, 0x7d, 0x97,
  4952  	0x22, 0xba, 0xf6, 0x01, 0x6e, 0x9a, 0xcb, 0x74, 0x8a, 0x46, 0xb3, 0xdd, 0xe4, 0xd4, 0x1c, 0x88,
  4953  	0x28, 0xf0, 0x10, 0x1f, 0xfc, 0xda, 0xaf, 0x2b, 0x1f, 0xb6, 0xb2, 0xd9, 0x01, 0x88, 0x1e, 0x48,
  4954  	0x52, 0x69, 0xd1, 0x33, 0xe6, 0x10, 0x73, 0x81, 0x8a, 0x5a, 0xea, 0xb7, 0x69, 0xd0, 0x03, 0x65,
  4955  	0x1a, 0x13, 0x9e, 0xfe, 0xb2, 0x78, 0x6b, 0x8a, 0xc9, 0x6f, 0x92, 0x5e, 0x40, 0xfa, 0x66, 0x7a,
  4956  	0x73, 0x13, 0x0a, 0xe1, 0x3b, 0x42, 0xca, 0xde, 0x25, 0x01, 0x1b, 0x99, 0x0b, 0x94, 0x9d, 0xc7,
  4957  	0x2c, 0x0e, 0x30, 0x36, 0xff, 0x39, 0x05, 0x48, 0x26, 0x24, 0x8a, 0x62, 0x52, 0x2d, 0x18, 0xf4,
  4958  	0xce, 0x55, 0x7d, 0x54, 0x1e, 0x6c, 0x85, 0xfa, 0x48, 0xd5, 0x34, 0x06, 0x4e, 0xa1, 0x5b, 0x80,
  4959  	0xd4, 0xf7, 0x61, 0x52, 0x35, 0xe9, 0xea, 0xcf, 0x48, 0x10, 0xaa, 0x79, 0x06, 0xbd, 0x17, 0x8b,
  4960  	0x78, 0x02, 0xb5, 0x48, 0x45, 0xda, 0x25, 0x5c, 0x49, 0x05, 0x2c, 0x4b, 0x0f, 0x40, 0xef, 0xb0,
  4961  	0x08, 0x4c, 0x0e, 0xdd, 0x85, 0xf7, 0xbb, 0x24, 0x88, 0xa7, 0x7c, 0x82, 0x20, 0x8f, 0xd6, 0xe0,
  4962  	0x96, 0x20, 0x08, 0x73, 0x06, 0x81, 0x2b, 0x50, 0x11, 0xf2, 0xdf, 0x42, 0x6a, 0x26, 0xd0, 0x0f,
  4963  	0x93, 0xa0, 0xf0, 0xda, 0xc8, 0x2c, 0x52, 0xa5, 0x3c, 0xa4, 0x61, 0x55, 0xf4, 0x01, 0xcd, 0x12,
  4964  	0xe5, 0xc5, 0x64, 0xe4, 0xbe, 0x94, 0xd7, 0x8d, 0x66, 0x99, 0xee, 0x52, 0x6f, 0x90, 0x8a, 0x85,
  4965  	0x96, 0x36, 0x7f, 0x68, 0x40, 0x59, 0x4b, 0x74, 0xa9, 0x3e, 0x48, 0x80, 0x68, 0x66, 0x98, 0x0b,
  4966  	0x54, 0x2a, 0x12, 0xa8, 0xdd, 0xac, 0x9b, 0x06, 0xfa, 0x05, 0xf8, 0xf9, 0x18, 0x4a, 0xe6, 0x0a,
  4967  	0x98, 0xf4, 0xc8, 0xe0, 0x25, 0xe9, 0x9b, 0x29, 0xf4, 0x3e, 0xdc, 0x8e, 0x91, 0x3d, 0x75, 0x06,
  4968  	0x43, 0xaa, 0x1e, 0xea, 0x9a, 0x78, 0x3a, 0x1e, 0xd3, 0x89, 0x33, 0x9b, 0x27, 0x49, 0xa9, 0x36,
  4969  	0xfd, 0x14, 0x0d, 0x1a, 0xed, 0x71, 0x16, 0x23, 0x67, 0x32, 0x62, 0x98, 0x6e, 0xe0, 0x4e, 0x26,
  4970  	0x74, 0x57, 0x9b, 0x67, 0x60, 0xce, 0x3e, 0xa5, 0xa0, 0x8a, 0x56, 0xeb, 0xf7, 0x45, 0x1c, 0x34,
  4971  	0x17, 0x22, 0x79, 0x4a, 0x90, 0x41, 0x85, 0xde, 0x0d, 0x1c, 0x2f, 0x90, 0x90, 0x14, 0xd5, 0x23,
  4972  	0x3a, 0xab, 0x04, 0xa4, 0xe9, 0x2c, 0x7b, 0x83, 0xe1, 0xf0, 0x7b, 0xee, 0xe8, 0x64, 0x40, 0xcc,
  4973  	0xcc, 0xe6, 0xbe, 0xf6, 0x04, 0x81, 0xa2, 0x69, 0xe6, 0xc3, 0x21, 0xe6, 0x02, 0xf3, 0x98, 0x1d,
  4974  	0x39, 0x34, 0xe8, 0xb0, 0x1e, 0x0e, 0x53, 0xec, 0x90, 0x59, 0x6a, 0x28, 0x20, 0xe9, 0x9d, 0xe6,
  4975  	0x17, 0x3f, 0x59, 0x5f, 0xf8, 0xd1, 0x97, 0xeb, 0xc6, 0x17, 0x5f, 0xae, 0x1b, 0xff, 0xf8, 0xe5,
  4976  	0xba, 0xf1, 0xbd, 0x87, 0xca, 0xff, 0xa0, 0x8e, 0x9c, 0xc0, 0x1b, 0xbc, 0x72, 0xbd, 0xc1, 0xe9,
  4977  	0x60, 0x2c, 0x07, 0x63, 0xf2, 0x60, 0x72, 0x7e, 0xfa, 0x60, 0x72, 0xf2, 0x20, 0x8a, 0x08, 0x27,
  4978  	0x59, 0xf6, 0x0f, 0xa8, 0x0f, 0xff, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xa2, 0x64, 0xf7, 0xdf,
  4979  	0x3a, 0x00, 0x00,
  4980  }
  4981  
  4982  func (m *CNStore) Marshal() (dAtA []byte, err error) {
  4983  	size := m.Size()
  4984  	dAtA = make([]byte, size)
  4985  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4986  	if err != nil {
  4987  		return nil, err
  4988  	}
  4989  	return dAtA[:n], nil
  4990  }
  4991  
  4992  func (m *CNStore) MarshalTo(dAtA []byte) (int, error) {
  4993  	size := m.Size()
  4994  	return m.MarshalToSizedBuffer(dAtA[:size])
  4995  }
  4996  
  4997  func (m *CNStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4998  	i := len(dAtA)
  4999  	_ = i
  5000  	var l int
  5001  	_ = l
  5002  	if m.XXX_unrecognized != nil {
  5003  		i -= len(m.XXX_unrecognized)
  5004  		copy(dAtA[i:], m.XXX_unrecognized)
  5005  	}
  5006  	if m.UpTime != 0 {
  5007  		i = encodeVarintLogservice(dAtA, i, uint64(m.UpTime))
  5008  		i--
  5009  		dAtA[i] = 0x70
  5010  	}
  5011  	{
  5012  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  5013  		if err != nil {
  5014  			return 0, err
  5015  		}
  5016  		i -= size
  5017  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  5018  	}
  5019  	i--
  5020  	dAtA[i] = 0x6a
  5021  	if m.ConfigData != nil {
  5022  		{
  5023  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5024  			if err != nil {
  5025  				return 0, err
  5026  			}
  5027  			i -= size
  5028  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5029  		}
  5030  		i--
  5031  		dAtA[i] = 0x62
  5032  	}
  5033  	if len(m.QueryAddress) > 0 {
  5034  		i -= len(m.QueryAddress)
  5035  		copy(dAtA[i:], m.QueryAddress)
  5036  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  5037  		i--
  5038  		dAtA[i] = 0x5a
  5039  	}
  5040  	if m.WorkState != 0 {
  5041  		i = encodeVarintLogservice(dAtA, i, uint64(m.WorkState))
  5042  		i--
  5043  		dAtA[i] = 0x50
  5044  	}
  5045  	if len(m.Labels) > 0 {
  5046  		for k := range m.Labels {
  5047  			v := m.Labels[k]
  5048  			baseI := i
  5049  			{
  5050  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  5051  				if err != nil {
  5052  					return 0, err
  5053  				}
  5054  				i -= size
  5055  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  5056  			}
  5057  			i--
  5058  			dAtA[i] = 0x12
  5059  			i -= len(k)
  5060  			copy(dAtA[i:], k)
  5061  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  5062  			i--
  5063  			dAtA[i] = 0xa
  5064  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  5065  			i--
  5066  			dAtA[i] = 0x4a
  5067  		}
  5068  	}
  5069  	if m.State != 0 {
  5070  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  5071  		i--
  5072  		dAtA[i] = 0x40
  5073  	}
  5074  	if m.Tick != 0 {
  5075  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  5076  		i--
  5077  		dAtA[i] = 0x38
  5078  	}
  5079  	if m.Role != 0 {
  5080  		i = encodeVarintLogservice(dAtA, i, uint64(m.Role))
  5081  		i--
  5082  		dAtA[i] = 0x30
  5083  	}
  5084  	if len(m.LockServiceAddress) > 0 {
  5085  		i -= len(m.LockServiceAddress)
  5086  		copy(dAtA[i:], m.LockServiceAddress)
  5087  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  5088  		i--
  5089  		dAtA[i] = 0x22
  5090  	}
  5091  	if len(m.SQLAddress) > 0 {
  5092  		i -= len(m.SQLAddress)
  5093  		copy(dAtA[i:], m.SQLAddress)
  5094  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.SQLAddress)))
  5095  		i--
  5096  		dAtA[i] = 0x1a
  5097  	}
  5098  	if len(m.ServiceAddress) > 0 {
  5099  		i -= len(m.ServiceAddress)
  5100  		copy(dAtA[i:], m.ServiceAddress)
  5101  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5102  		i--
  5103  		dAtA[i] = 0x12
  5104  	}
  5105  	if len(m.UUID) > 0 {
  5106  		i -= len(m.UUID)
  5107  		copy(dAtA[i:], m.UUID)
  5108  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5109  		i--
  5110  		dAtA[i] = 0xa
  5111  	}
  5112  	return len(dAtA) - i, nil
  5113  }
  5114  
  5115  func (m *TNStore) Marshal() (dAtA []byte, err error) {
  5116  	size := m.Size()
  5117  	dAtA = make([]byte, size)
  5118  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5119  	if err != nil {
  5120  		return nil, err
  5121  	}
  5122  	return dAtA[:n], nil
  5123  }
  5124  
  5125  func (m *TNStore) MarshalTo(dAtA []byte) (int, error) {
  5126  	size := m.Size()
  5127  	return m.MarshalToSizedBuffer(dAtA[:size])
  5128  }
  5129  
  5130  func (m *TNStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5131  	i := len(dAtA)
  5132  	_ = i
  5133  	var l int
  5134  	_ = l
  5135  	if m.XXX_unrecognized != nil {
  5136  		i -= len(m.XXX_unrecognized)
  5137  		copy(dAtA[i:], m.XXX_unrecognized)
  5138  	}
  5139  	if len(m.QueryAddress) > 0 {
  5140  		i -= len(m.QueryAddress)
  5141  		copy(dAtA[i:], m.QueryAddress)
  5142  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  5143  		i--
  5144  		dAtA[i] = 0x52
  5145  	}
  5146  	if m.ConfigData != nil {
  5147  		{
  5148  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5149  			if err != nil {
  5150  				return 0, err
  5151  			}
  5152  			i -= size
  5153  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5154  		}
  5155  		i--
  5156  		dAtA[i] = 0x4a
  5157  	}
  5158  	if len(m.LockServiceAddress) > 0 {
  5159  		i -= len(m.LockServiceAddress)
  5160  		copy(dAtA[i:], m.LockServiceAddress)
  5161  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  5162  		i--
  5163  		dAtA[i] = 0x3a
  5164  	}
  5165  	if len(m.LogtailServerAddress) > 0 {
  5166  		i -= len(m.LogtailServerAddress)
  5167  		copy(dAtA[i:], m.LogtailServerAddress)
  5168  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LogtailServerAddress)))
  5169  		i--
  5170  		dAtA[i] = 0x32
  5171  	}
  5172  	if len(m.Shards) > 0 {
  5173  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  5174  			{
  5175  				size, err := m.Shards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5176  				if err != nil {
  5177  					return 0, err
  5178  				}
  5179  				i -= size
  5180  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  5181  			}
  5182  			i--
  5183  			dAtA[i] = 0x2a
  5184  		}
  5185  	}
  5186  	if m.State != 0 {
  5187  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  5188  		i--
  5189  		dAtA[i] = 0x20
  5190  	}
  5191  	if m.Tick != 0 {
  5192  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  5193  		i--
  5194  		dAtA[i] = 0x18
  5195  	}
  5196  	if len(m.ServiceAddress) > 0 {
  5197  		i -= len(m.ServiceAddress)
  5198  		copy(dAtA[i:], m.ServiceAddress)
  5199  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5200  		i--
  5201  		dAtA[i] = 0x12
  5202  	}
  5203  	if len(m.UUID) > 0 {
  5204  		i -= len(m.UUID)
  5205  		copy(dAtA[i:], m.UUID)
  5206  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5207  		i--
  5208  		dAtA[i] = 0xa
  5209  	}
  5210  	return len(dAtA) - i, nil
  5211  }
  5212  
  5213  func (m *LogStore) Marshal() (dAtA []byte, err error) {
  5214  	size := m.Size()
  5215  	dAtA = make([]byte, size)
  5216  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5217  	if err != nil {
  5218  		return nil, err
  5219  	}
  5220  	return dAtA[:n], nil
  5221  }
  5222  
  5223  func (m *LogStore) MarshalTo(dAtA []byte) (int, error) {
  5224  	size := m.Size()
  5225  	return m.MarshalToSizedBuffer(dAtA[:size])
  5226  }
  5227  
  5228  func (m *LogStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5229  	i := len(dAtA)
  5230  	_ = i
  5231  	var l int
  5232  	_ = l
  5233  	if m.XXX_unrecognized != nil {
  5234  		i -= len(m.XXX_unrecognized)
  5235  		copy(dAtA[i:], m.XXX_unrecognized)
  5236  	}
  5237  	if m.ConfigData != nil {
  5238  		{
  5239  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5240  			if err != nil {
  5241  				return 0, err
  5242  			}
  5243  			i -= size
  5244  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5245  		}
  5246  		i--
  5247  		dAtA[i] = 0x32
  5248  	}
  5249  	if len(m.Replicas) > 0 {
  5250  		for iNdEx := len(m.Replicas) - 1; iNdEx >= 0; iNdEx-- {
  5251  			{
  5252  				size, err := m.Replicas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5253  				if err != nil {
  5254  					return 0, err
  5255  				}
  5256  				i -= size
  5257  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  5258  			}
  5259  			i--
  5260  			dAtA[i] = 0x2a
  5261  		}
  5262  	}
  5263  	if m.State != 0 {
  5264  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  5265  		i--
  5266  		dAtA[i] = 0x20
  5267  	}
  5268  	if m.Tick != 0 {
  5269  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  5270  		i--
  5271  		dAtA[i] = 0x18
  5272  	}
  5273  	if len(m.ServiceAddress) > 0 {
  5274  		i -= len(m.ServiceAddress)
  5275  		copy(dAtA[i:], m.ServiceAddress)
  5276  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5277  		i--
  5278  		dAtA[i] = 0x12
  5279  	}
  5280  	if len(m.UUID) > 0 {
  5281  		i -= len(m.UUID)
  5282  		copy(dAtA[i:], m.UUID)
  5283  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5284  		i--
  5285  		dAtA[i] = 0xa
  5286  	}
  5287  	return len(dAtA) - i, nil
  5288  }
  5289  
  5290  func (m *LogShardInfo) Marshal() (dAtA []byte, err error) {
  5291  	size := m.Size()
  5292  	dAtA = make([]byte, size)
  5293  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5294  	if err != nil {
  5295  		return nil, err
  5296  	}
  5297  	return dAtA[:n], nil
  5298  }
  5299  
  5300  func (m *LogShardInfo) MarshalTo(dAtA []byte) (int, error) {
  5301  	size := m.Size()
  5302  	return m.MarshalToSizedBuffer(dAtA[:size])
  5303  }
  5304  
  5305  func (m *LogShardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5306  	i := len(dAtA)
  5307  	_ = i
  5308  	var l int
  5309  	_ = l
  5310  	if m.XXX_unrecognized != nil {
  5311  		i -= len(m.XXX_unrecognized)
  5312  		copy(dAtA[i:], m.XXX_unrecognized)
  5313  	}
  5314  	if m.Term != 0 {
  5315  		i = encodeVarintLogservice(dAtA, i, uint64(m.Term))
  5316  		i--
  5317  		dAtA[i] = 0x28
  5318  	}
  5319  	if m.LeaderID != 0 {
  5320  		i = encodeVarintLogservice(dAtA, i, uint64(m.LeaderID))
  5321  		i--
  5322  		dAtA[i] = 0x20
  5323  	}
  5324  	if m.Epoch != 0 {
  5325  		i = encodeVarintLogservice(dAtA, i, uint64(m.Epoch))
  5326  		i--
  5327  		dAtA[i] = 0x18
  5328  	}
  5329  	if len(m.Replicas) > 0 {
  5330  		for k := range m.Replicas {
  5331  			v := m.Replicas[k]
  5332  			baseI := i
  5333  			i -= len(v)
  5334  			copy(dAtA[i:], v)
  5335  			i = encodeVarintLogservice(dAtA, i, uint64(len(v)))
  5336  			i--
  5337  			dAtA[i] = 0x12
  5338  			i = encodeVarintLogservice(dAtA, i, uint64(k))
  5339  			i--
  5340  			dAtA[i] = 0x8
  5341  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  5342  			i--
  5343  			dAtA[i] = 0x12
  5344  		}
  5345  	}
  5346  	if m.ShardID != 0 {
  5347  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  5348  		i--
  5349  		dAtA[i] = 0x8
  5350  	}
  5351  	return len(dAtA) - i, nil
  5352  }
  5353  
  5354  func (m *LogReplicaInfo) Marshal() (dAtA []byte, err error) {
  5355  	size := m.Size()
  5356  	dAtA = make([]byte, size)
  5357  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5358  	if err != nil {
  5359  		return nil, err
  5360  	}
  5361  	return dAtA[:n], nil
  5362  }
  5363  
  5364  func (m *LogReplicaInfo) MarshalTo(dAtA []byte) (int, error) {
  5365  	size := m.Size()
  5366  	return m.MarshalToSizedBuffer(dAtA[:size])
  5367  }
  5368  
  5369  func (m *LogReplicaInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5370  	i := len(dAtA)
  5371  	_ = i
  5372  	var l int
  5373  	_ = l
  5374  	if m.XXX_unrecognized != nil {
  5375  		i -= len(m.XXX_unrecognized)
  5376  		copy(dAtA[i:], m.XXX_unrecognized)
  5377  	}
  5378  	if m.ReplicaID != 0 {
  5379  		i = encodeVarintLogservice(dAtA, i, uint64(m.ReplicaID))
  5380  		i--
  5381  		dAtA[i] = 0x10
  5382  	}
  5383  	{
  5384  		size, err := m.LogShardInfo.MarshalToSizedBuffer(dAtA[:i])
  5385  		if err != nil {
  5386  			return 0, err
  5387  		}
  5388  		i -= size
  5389  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  5390  	}
  5391  	i--
  5392  	dAtA[i] = 0xa
  5393  	return len(dAtA) - i, nil
  5394  }
  5395  
  5396  func (m *Resource) Marshal() (dAtA []byte, err error) {
  5397  	size := m.Size()
  5398  	dAtA = make([]byte, size)
  5399  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5400  	if err != nil {
  5401  		return nil, err
  5402  	}
  5403  	return dAtA[:n], nil
  5404  }
  5405  
  5406  func (m *Resource) MarshalTo(dAtA []byte) (int, error) {
  5407  	size := m.Size()
  5408  	return m.MarshalToSizedBuffer(dAtA[:size])
  5409  }
  5410  
  5411  func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5412  	i := len(dAtA)
  5413  	_ = i
  5414  	var l int
  5415  	_ = l
  5416  	if m.XXX_unrecognized != nil {
  5417  		i -= len(m.XXX_unrecognized)
  5418  		copy(dAtA[i:], m.XXX_unrecognized)
  5419  	}
  5420  	if m.MemAvailable != 0 {
  5421  		i = encodeVarintLogservice(dAtA, i, uint64(m.MemAvailable))
  5422  		i--
  5423  		dAtA[i] = 0x20
  5424  	}
  5425  	if m.MemTotal != 0 {
  5426  		i = encodeVarintLogservice(dAtA, i, uint64(m.MemTotal))
  5427  		i--
  5428  		dAtA[i] = 0x18
  5429  	}
  5430  	if m.CPUAvailable != 0 {
  5431  		i -= 8
  5432  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CPUAvailable))))
  5433  		i--
  5434  		dAtA[i] = 0x11
  5435  	}
  5436  	if m.CPUTotal != 0 {
  5437  		i = encodeVarintLogservice(dAtA, i, uint64(m.CPUTotal))
  5438  		i--
  5439  		dAtA[i] = 0x8
  5440  	}
  5441  	return len(dAtA) - i, nil
  5442  }
  5443  
  5444  func (m *CNStoreHeartbeat) Marshal() (dAtA []byte, err error) {
  5445  	size := m.Size()
  5446  	dAtA = make([]byte, size)
  5447  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5448  	if err != nil {
  5449  		return nil, err
  5450  	}
  5451  	return dAtA[:n], nil
  5452  }
  5453  
  5454  func (m *CNStoreHeartbeat) MarshalTo(dAtA []byte) (int, error) {
  5455  	size := m.Size()
  5456  	return m.MarshalToSizedBuffer(dAtA[:size])
  5457  }
  5458  
  5459  func (m *CNStoreHeartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5460  	i := len(dAtA)
  5461  	_ = i
  5462  	var l int
  5463  	_ = l
  5464  	if m.XXX_unrecognized != nil {
  5465  		i -= len(m.XXX_unrecognized)
  5466  		copy(dAtA[i:], m.XXX_unrecognized)
  5467  	}
  5468  	{
  5469  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  5470  		if err != nil {
  5471  			return 0, err
  5472  		}
  5473  		i -= size
  5474  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  5475  	}
  5476  	i--
  5477  	dAtA[i] = 0x6a
  5478  	if m.ConfigData != nil {
  5479  		{
  5480  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5481  			if err != nil {
  5482  				return 0, err
  5483  			}
  5484  			i -= size
  5485  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5486  		}
  5487  		i--
  5488  		dAtA[i] = 0x62
  5489  	}
  5490  	if m.GossipJoined {
  5491  		i--
  5492  		if m.GossipJoined {
  5493  			dAtA[i] = 1
  5494  		} else {
  5495  			dAtA[i] = 0
  5496  		}
  5497  		i--
  5498  		dAtA[i] = 0x58
  5499  	}
  5500  	if len(m.GossipAddress) > 0 {
  5501  		i -= len(m.GossipAddress)
  5502  		copy(dAtA[i:], m.GossipAddress)
  5503  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.GossipAddress)))
  5504  		i--
  5505  		dAtA[i] = 0x52
  5506  	}
  5507  	if len(m.InitWorkState) > 0 {
  5508  		i -= len(m.InitWorkState)
  5509  		copy(dAtA[i:], m.InitWorkState)
  5510  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.InitWorkState)))
  5511  		i--
  5512  		dAtA[i] = 0x4a
  5513  	}
  5514  	if len(m.QueryAddress) > 0 {
  5515  		i -= len(m.QueryAddress)
  5516  		copy(dAtA[i:], m.QueryAddress)
  5517  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  5518  		i--
  5519  		dAtA[i] = 0x42
  5520  	}
  5521  	if m.TaskServiceCreated {
  5522  		i--
  5523  		if m.TaskServiceCreated {
  5524  			dAtA[i] = 1
  5525  		} else {
  5526  			dAtA[i] = 0
  5527  		}
  5528  		i--
  5529  		dAtA[i] = 0x38
  5530  	}
  5531  	if m.Role != 0 {
  5532  		i = encodeVarintLogservice(dAtA, i, uint64(m.Role))
  5533  		i--
  5534  		dAtA[i] = 0x30
  5535  	}
  5536  	if len(m.LockServiceAddress) > 0 {
  5537  		i -= len(m.LockServiceAddress)
  5538  		copy(dAtA[i:], m.LockServiceAddress)
  5539  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  5540  		i--
  5541  		dAtA[i] = 0x22
  5542  	}
  5543  	if len(m.SQLAddress) > 0 {
  5544  		i -= len(m.SQLAddress)
  5545  		copy(dAtA[i:], m.SQLAddress)
  5546  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.SQLAddress)))
  5547  		i--
  5548  		dAtA[i] = 0x1a
  5549  	}
  5550  	if len(m.ServiceAddress) > 0 {
  5551  		i -= len(m.ServiceAddress)
  5552  		copy(dAtA[i:], m.ServiceAddress)
  5553  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5554  		i--
  5555  		dAtA[i] = 0x12
  5556  	}
  5557  	if len(m.UUID) > 0 {
  5558  		i -= len(m.UUID)
  5559  		copy(dAtA[i:], m.UUID)
  5560  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5561  		i--
  5562  		dAtA[i] = 0xa
  5563  	}
  5564  	return len(dAtA) - i, nil
  5565  }
  5566  
  5567  func (m *CNAllocateID) Marshal() (dAtA []byte, err error) {
  5568  	size := m.Size()
  5569  	dAtA = make([]byte, size)
  5570  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5571  	if err != nil {
  5572  		return nil, err
  5573  	}
  5574  	return dAtA[:n], nil
  5575  }
  5576  
  5577  func (m *CNAllocateID) MarshalTo(dAtA []byte) (int, error) {
  5578  	size := m.Size()
  5579  	return m.MarshalToSizedBuffer(dAtA[:size])
  5580  }
  5581  
  5582  func (m *CNAllocateID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5583  	i := len(dAtA)
  5584  	_ = i
  5585  	var l int
  5586  	_ = l
  5587  	if m.XXX_unrecognized != nil {
  5588  		i -= len(m.XXX_unrecognized)
  5589  		copy(dAtA[i:], m.XXX_unrecognized)
  5590  	}
  5591  	if m.Batch != 0 {
  5592  		i = encodeVarintLogservice(dAtA, i, uint64(m.Batch))
  5593  		i--
  5594  		dAtA[i] = 0x10
  5595  	}
  5596  	if len(m.Key) > 0 {
  5597  		i -= len(m.Key)
  5598  		copy(dAtA[i:], m.Key)
  5599  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Key)))
  5600  		i--
  5601  		dAtA[i] = 0xa
  5602  	}
  5603  	return len(dAtA) - i, nil
  5604  }
  5605  
  5606  func (m *LogStoreHeartbeat) Marshal() (dAtA []byte, err error) {
  5607  	size := m.Size()
  5608  	dAtA = make([]byte, size)
  5609  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5610  	if err != nil {
  5611  		return nil, err
  5612  	}
  5613  	return dAtA[:n], nil
  5614  }
  5615  
  5616  func (m *LogStoreHeartbeat) MarshalTo(dAtA []byte) (int, error) {
  5617  	size := m.Size()
  5618  	return m.MarshalToSizedBuffer(dAtA[:size])
  5619  }
  5620  
  5621  func (m *LogStoreHeartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5622  	i := len(dAtA)
  5623  	_ = i
  5624  	var l int
  5625  	_ = l
  5626  	if m.XXX_unrecognized != nil {
  5627  		i -= len(m.XXX_unrecognized)
  5628  		copy(dAtA[i:], m.XXX_unrecognized)
  5629  	}
  5630  	if m.ConfigData != nil {
  5631  		{
  5632  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5633  			if err != nil {
  5634  				return 0, err
  5635  			}
  5636  			i -= size
  5637  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5638  		}
  5639  		i--
  5640  		dAtA[i] = 0x3a
  5641  	}
  5642  	if m.TaskServiceCreated {
  5643  		i--
  5644  		if m.TaskServiceCreated {
  5645  			dAtA[i] = 1
  5646  		} else {
  5647  			dAtA[i] = 0
  5648  		}
  5649  		i--
  5650  		dAtA[i] = 0x30
  5651  	}
  5652  	if len(m.Replicas) > 0 {
  5653  		for iNdEx := len(m.Replicas) - 1; iNdEx >= 0; iNdEx-- {
  5654  			{
  5655  				size, err := m.Replicas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5656  				if err != nil {
  5657  					return 0, err
  5658  				}
  5659  				i -= size
  5660  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  5661  			}
  5662  			i--
  5663  			dAtA[i] = 0x2a
  5664  		}
  5665  	}
  5666  	if len(m.GossipAddress) > 0 {
  5667  		i -= len(m.GossipAddress)
  5668  		copy(dAtA[i:], m.GossipAddress)
  5669  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.GossipAddress)))
  5670  		i--
  5671  		dAtA[i] = 0x22
  5672  	}
  5673  	if len(m.ServiceAddress) > 0 {
  5674  		i -= len(m.ServiceAddress)
  5675  		copy(dAtA[i:], m.ServiceAddress)
  5676  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5677  		i--
  5678  		dAtA[i] = 0x1a
  5679  	}
  5680  	if len(m.RaftAddress) > 0 {
  5681  		i -= len(m.RaftAddress)
  5682  		copy(dAtA[i:], m.RaftAddress)
  5683  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.RaftAddress)))
  5684  		i--
  5685  		dAtA[i] = 0x12
  5686  	}
  5687  	if len(m.UUID) > 0 {
  5688  		i -= len(m.UUID)
  5689  		copy(dAtA[i:], m.UUID)
  5690  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5691  		i--
  5692  		dAtA[i] = 0xa
  5693  	}
  5694  	return len(dAtA) - i, nil
  5695  }
  5696  
  5697  func (m *TNShardInfo) Marshal() (dAtA []byte, err error) {
  5698  	size := m.Size()
  5699  	dAtA = make([]byte, size)
  5700  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5701  	if err != nil {
  5702  		return nil, err
  5703  	}
  5704  	return dAtA[:n], nil
  5705  }
  5706  
  5707  func (m *TNShardInfo) MarshalTo(dAtA []byte) (int, error) {
  5708  	size := m.Size()
  5709  	return m.MarshalToSizedBuffer(dAtA[:size])
  5710  }
  5711  
  5712  func (m *TNShardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5713  	i := len(dAtA)
  5714  	_ = i
  5715  	var l int
  5716  	_ = l
  5717  	if m.XXX_unrecognized != nil {
  5718  		i -= len(m.XXX_unrecognized)
  5719  		copy(dAtA[i:], m.XXX_unrecognized)
  5720  	}
  5721  	if m.ReplicaID != 0 {
  5722  		i = encodeVarintLogservice(dAtA, i, uint64(m.ReplicaID))
  5723  		i--
  5724  		dAtA[i] = 0x10
  5725  	}
  5726  	if m.ShardID != 0 {
  5727  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  5728  		i--
  5729  		dAtA[i] = 0x8
  5730  	}
  5731  	return len(dAtA) - i, nil
  5732  }
  5733  
  5734  func (m *TNStoreHeartbeat) Marshal() (dAtA []byte, err error) {
  5735  	size := m.Size()
  5736  	dAtA = make([]byte, size)
  5737  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5738  	if err != nil {
  5739  		return nil, err
  5740  	}
  5741  	return dAtA[:n], nil
  5742  }
  5743  
  5744  func (m *TNStoreHeartbeat) MarshalTo(dAtA []byte) (int, error) {
  5745  	size := m.Size()
  5746  	return m.MarshalToSizedBuffer(dAtA[:size])
  5747  }
  5748  
  5749  func (m *TNStoreHeartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5750  	i := len(dAtA)
  5751  	_ = i
  5752  	var l int
  5753  	_ = l
  5754  	if m.XXX_unrecognized != nil {
  5755  		i -= len(m.XXX_unrecognized)
  5756  		copy(dAtA[i:], m.XXX_unrecognized)
  5757  	}
  5758  	if len(m.QueryAddress) > 0 {
  5759  		i -= len(m.QueryAddress)
  5760  		copy(dAtA[i:], m.QueryAddress)
  5761  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  5762  		i--
  5763  		dAtA[i] = 0x4a
  5764  	}
  5765  	if m.ConfigData != nil {
  5766  		{
  5767  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  5768  			if err != nil {
  5769  				return 0, err
  5770  			}
  5771  			i -= size
  5772  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  5773  		}
  5774  		i--
  5775  		dAtA[i] = 0x42
  5776  	}
  5777  	if len(m.LockServiceAddress) > 0 {
  5778  		i -= len(m.LockServiceAddress)
  5779  		copy(dAtA[i:], m.LockServiceAddress)
  5780  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  5781  		i--
  5782  		dAtA[i] = 0x32
  5783  	}
  5784  	if len(m.LogtailServerAddress) > 0 {
  5785  		i -= len(m.LogtailServerAddress)
  5786  		copy(dAtA[i:], m.LogtailServerAddress)
  5787  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LogtailServerAddress)))
  5788  		i--
  5789  		dAtA[i] = 0x2a
  5790  	}
  5791  	if m.TaskServiceCreated {
  5792  		i--
  5793  		if m.TaskServiceCreated {
  5794  			dAtA[i] = 1
  5795  		} else {
  5796  			dAtA[i] = 0
  5797  		}
  5798  		i--
  5799  		dAtA[i] = 0x20
  5800  	}
  5801  	if len(m.Shards) > 0 {
  5802  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  5803  			{
  5804  				size, err := m.Shards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5805  				if err != nil {
  5806  					return 0, err
  5807  				}
  5808  				i -= size
  5809  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  5810  			}
  5811  			i--
  5812  			dAtA[i] = 0x1a
  5813  		}
  5814  	}
  5815  	if len(m.ServiceAddress) > 0 {
  5816  		i -= len(m.ServiceAddress)
  5817  		copy(dAtA[i:], m.ServiceAddress)
  5818  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  5819  		i--
  5820  		dAtA[i] = 0x12
  5821  	}
  5822  	if len(m.UUID) > 0 {
  5823  		i -= len(m.UUID)
  5824  		copy(dAtA[i:], m.UUID)
  5825  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  5826  		i--
  5827  		dAtA[i] = 0xa
  5828  	}
  5829  	return len(dAtA) - i, nil
  5830  }
  5831  
  5832  func (m *RSMState) Marshal() (dAtA []byte, err error) {
  5833  	size := m.Size()
  5834  	dAtA = make([]byte, size)
  5835  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5836  	if err != nil {
  5837  		return nil, err
  5838  	}
  5839  	return dAtA[:n], nil
  5840  }
  5841  
  5842  func (m *RSMState) MarshalTo(dAtA []byte) (int, error) {
  5843  	size := m.Size()
  5844  	return m.MarshalToSizedBuffer(dAtA[:size])
  5845  }
  5846  
  5847  func (m *RSMState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5848  	i := len(dAtA)
  5849  	_ = i
  5850  	var l int
  5851  	_ = l
  5852  	if m.XXX_unrecognized != nil {
  5853  		i -= len(m.XXX_unrecognized)
  5854  		copy(dAtA[i:], m.XXX_unrecognized)
  5855  	}
  5856  	if len(m.LeaseHistory) > 0 {
  5857  		for k := range m.LeaseHistory {
  5858  			v := m.LeaseHistory[k]
  5859  			baseI := i
  5860  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  5861  			i--
  5862  			dAtA[i] = 0x10
  5863  			i = encodeVarintLogservice(dAtA, i, uint64(k))
  5864  			i--
  5865  			dAtA[i] = 0x8
  5866  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  5867  			i--
  5868  			dAtA[i] = 0x2a
  5869  		}
  5870  	}
  5871  	if m.TruncatedLsn != 0 {
  5872  		i = encodeVarintLogservice(dAtA, i, uint64(m.TruncatedLsn))
  5873  		i--
  5874  		dAtA[i] = 0x20
  5875  	}
  5876  	if m.LeaseHolderID != 0 {
  5877  		i = encodeVarintLogservice(dAtA, i, uint64(m.LeaseHolderID))
  5878  		i--
  5879  		dAtA[i] = 0x18
  5880  	}
  5881  	if m.Index != 0 {
  5882  		i = encodeVarintLogservice(dAtA, i, uint64(m.Index))
  5883  		i--
  5884  		dAtA[i] = 0x10
  5885  	}
  5886  	if m.Tso != 0 {
  5887  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tso))
  5888  		i--
  5889  		dAtA[i] = 0x8
  5890  	}
  5891  	return len(dAtA) - i, nil
  5892  }
  5893  
  5894  func (m *LogRecord) Marshal() (dAtA []byte, err error) {
  5895  	size := m.Size()
  5896  	dAtA = make([]byte, size)
  5897  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5898  	if err != nil {
  5899  		return nil, err
  5900  	}
  5901  	return dAtA[:n], nil
  5902  }
  5903  
  5904  func (m *LogRecord) MarshalTo(dAtA []byte) (int, error) {
  5905  	size := m.Size()
  5906  	return m.MarshalToSizedBuffer(dAtA[:size])
  5907  }
  5908  
  5909  func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5910  	i := len(dAtA)
  5911  	_ = i
  5912  	var l int
  5913  	_ = l
  5914  	if m.XXX_unrecognized != nil {
  5915  		i -= len(m.XXX_unrecognized)
  5916  		copy(dAtA[i:], m.XXX_unrecognized)
  5917  	}
  5918  	if len(m.Data) > 0 {
  5919  		i -= len(m.Data)
  5920  		copy(dAtA[i:], m.Data)
  5921  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Data)))
  5922  		i--
  5923  		dAtA[i] = 0x1a
  5924  	}
  5925  	if m.Type != 0 {
  5926  		i = encodeVarintLogservice(dAtA, i, uint64(m.Type))
  5927  		i--
  5928  		dAtA[i] = 0x10
  5929  	}
  5930  	if m.Lsn != 0 {
  5931  		i = encodeVarintLogservice(dAtA, i, uint64(m.Lsn))
  5932  		i--
  5933  		dAtA[i] = 0x8
  5934  	}
  5935  	return len(dAtA) - i, nil
  5936  }
  5937  
  5938  func (m *LogRequest) Marshal() (dAtA []byte, err error) {
  5939  	size := m.Size()
  5940  	dAtA = make([]byte, size)
  5941  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5942  	if err != nil {
  5943  		return nil, err
  5944  	}
  5945  	return dAtA[:n], nil
  5946  }
  5947  
  5948  func (m *LogRequest) MarshalTo(dAtA []byte) (int, error) {
  5949  	size := m.Size()
  5950  	return m.MarshalToSizedBuffer(dAtA[:size])
  5951  }
  5952  
  5953  func (m *LogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5954  	i := len(dAtA)
  5955  	_ = i
  5956  	var l int
  5957  	_ = l
  5958  	if m.XXX_unrecognized != nil {
  5959  		i -= len(m.XXX_unrecognized)
  5960  		copy(dAtA[i:], m.XXX_unrecognized)
  5961  	}
  5962  	if m.TNID != 0 {
  5963  		i = encodeVarintLogservice(dAtA, i, uint64(m.TNID))
  5964  		i--
  5965  		dAtA[i] = 0x30
  5966  	}
  5967  	if m.TNShardID != 0 {
  5968  		i = encodeVarintLogservice(dAtA, i, uint64(m.TNShardID))
  5969  		i--
  5970  		dAtA[i] = 0x28
  5971  	}
  5972  	if m.MaxSize != 0 {
  5973  		i = encodeVarintLogservice(dAtA, i, uint64(m.MaxSize))
  5974  		i--
  5975  		dAtA[i] = 0x20
  5976  	}
  5977  	if m.Lsn != 0 {
  5978  		i = encodeVarintLogservice(dAtA, i, uint64(m.Lsn))
  5979  		i--
  5980  		dAtA[i] = 0x18
  5981  	}
  5982  	if m.ShardID != 0 {
  5983  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  5984  		i--
  5985  		dAtA[i] = 0x10
  5986  	}
  5987  	if len(m.Name) > 0 {
  5988  		i -= len(m.Name)
  5989  		copy(dAtA[i:], m.Name)
  5990  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Name)))
  5991  		i--
  5992  		dAtA[i] = 0xa
  5993  	}
  5994  	return len(dAtA) - i, nil
  5995  }
  5996  
  5997  func (m *TsoRequest) Marshal() (dAtA []byte, err error) {
  5998  	size := m.Size()
  5999  	dAtA = make([]byte, size)
  6000  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6001  	if err != nil {
  6002  		return nil, err
  6003  	}
  6004  	return dAtA[:n], nil
  6005  }
  6006  
  6007  func (m *TsoRequest) MarshalTo(dAtA []byte) (int, error) {
  6008  	size := m.Size()
  6009  	return m.MarshalToSizedBuffer(dAtA[:size])
  6010  }
  6011  
  6012  func (m *TsoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6013  	i := len(dAtA)
  6014  	_ = i
  6015  	var l int
  6016  	_ = l
  6017  	if m.XXX_unrecognized != nil {
  6018  		i -= len(m.XXX_unrecognized)
  6019  		copy(dAtA[i:], m.XXX_unrecognized)
  6020  	}
  6021  	if m.Count != 0 {
  6022  		i = encodeVarintLogservice(dAtA, i, uint64(m.Count))
  6023  		i--
  6024  		dAtA[i] = 0x8
  6025  	}
  6026  	return len(dAtA) - i, nil
  6027  }
  6028  
  6029  func (m *CNStoreLabel) Marshal() (dAtA []byte, err error) {
  6030  	size := m.Size()
  6031  	dAtA = make([]byte, size)
  6032  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6033  	if err != nil {
  6034  		return nil, err
  6035  	}
  6036  	return dAtA[:n], nil
  6037  }
  6038  
  6039  func (m *CNStoreLabel) MarshalTo(dAtA []byte) (int, error) {
  6040  	size := m.Size()
  6041  	return m.MarshalToSizedBuffer(dAtA[:size])
  6042  }
  6043  
  6044  func (m *CNStoreLabel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6045  	i := len(dAtA)
  6046  	_ = i
  6047  	var l int
  6048  	_ = l
  6049  	if m.XXX_unrecognized != nil {
  6050  		i -= len(m.XXX_unrecognized)
  6051  		copy(dAtA[i:], m.XXX_unrecognized)
  6052  	}
  6053  	if len(m.Labels) > 0 {
  6054  		for k := range m.Labels {
  6055  			v := m.Labels[k]
  6056  			baseI := i
  6057  			{
  6058  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  6059  				if err != nil {
  6060  					return 0, err
  6061  				}
  6062  				i -= size
  6063  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  6064  			}
  6065  			i--
  6066  			dAtA[i] = 0x12
  6067  			i -= len(k)
  6068  			copy(dAtA[i:], k)
  6069  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  6070  			i--
  6071  			dAtA[i] = 0xa
  6072  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  6073  			i--
  6074  			dAtA[i] = 0x1a
  6075  		}
  6076  	}
  6077  	if m.Operation != 0 {
  6078  		i = encodeVarintLogservice(dAtA, i, uint64(m.Operation))
  6079  		i--
  6080  		dAtA[i] = 0x10
  6081  	}
  6082  	if len(m.UUID) > 0 {
  6083  		i -= len(m.UUID)
  6084  		copy(dAtA[i:], m.UUID)
  6085  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  6086  		i--
  6087  		dAtA[i] = 0xa
  6088  	}
  6089  	return len(dAtA) - i, nil
  6090  }
  6091  
  6092  func (m *CNWorkState) Marshal() (dAtA []byte, err error) {
  6093  	size := m.Size()
  6094  	dAtA = make([]byte, size)
  6095  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6096  	if err != nil {
  6097  		return nil, err
  6098  	}
  6099  	return dAtA[:n], nil
  6100  }
  6101  
  6102  func (m *CNWorkState) MarshalTo(dAtA []byte) (int, error) {
  6103  	size := m.Size()
  6104  	return m.MarshalToSizedBuffer(dAtA[:size])
  6105  }
  6106  
  6107  func (m *CNWorkState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6108  	i := len(dAtA)
  6109  	_ = i
  6110  	var l int
  6111  	_ = l
  6112  	if m.XXX_unrecognized != nil {
  6113  		i -= len(m.XXX_unrecognized)
  6114  		copy(dAtA[i:], m.XXX_unrecognized)
  6115  	}
  6116  	if m.State != 0 {
  6117  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  6118  		i--
  6119  		dAtA[i] = 0x10
  6120  	}
  6121  	if len(m.UUID) > 0 {
  6122  		i -= len(m.UUID)
  6123  		copy(dAtA[i:], m.UUID)
  6124  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  6125  		i--
  6126  		dAtA[i] = 0xa
  6127  	}
  6128  	return len(dAtA) - i, nil
  6129  }
  6130  
  6131  func (m *CNStateLabel) Marshal() (dAtA []byte, err error) {
  6132  	size := m.Size()
  6133  	dAtA = make([]byte, size)
  6134  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6135  	if err != nil {
  6136  		return nil, err
  6137  	}
  6138  	return dAtA[:n], nil
  6139  }
  6140  
  6141  func (m *CNStateLabel) MarshalTo(dAtA []byte) (int, error) {
  6142  	size := m.Size()
  6143  	return m.MarshalToSizedBuffer(dAtA[:size])
  6144  }
  6145  
  6146  func (m *CNStateLabel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6147  	i := len(dAtA)
  6148  	_ = i
  6149  	var l int
  6150  	_ = l
  6151  	if m.XXX_unrecognized != nil {
  6152  		i -= len(m.XXX_unrecognized)
  6153  		copy(dAtA[i:], m.XXX_unrecognized)
  6154  	}
  6155  	if len(m.Labels) > 0 {
  6156  		for k := range m.Labels {
  6157  			v := m.Labels[k]
  6158  			baseI := i
  6159  			{
  6160  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  6161  				if err != nil {
  6162  					return 0, err
  6163  				}
  6164  				i -= size
  6165  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  6166  			}
  6167  			i--
  6168  			dAtA[i] = 0x12
  6169  			i -= len(k)
  6170  			copy(dAtA[i:], k)
  6171  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  6172  			i--
  6173  			dAtA[i] = 0xa
  6174  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  6175  			i--
  6176  			dAtA[i] = 0x1a
  6177  		}
  6178  	}
  6179  	if m.State != 0 {
  6180  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  6181  		i--
  6182  		dAtA[i] = 0x10
  6183  	}
  6184  	if len(m.UUID) > 0 {
  6185  		i -= len(m.UUID)
  6186  		copy(dAtA[i:], m.UUID)
  6187  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  6188  		i--
  6189  		dAtA[i] = 0xa
  6190  	}
  6191  	return len(dAtA) - i, nil
  6192  }
  6193  
  6194  func (m *Request) Marshal() (dAtA []byte, err error) {
  6195  	size := m.Size()
  6196  	dAtA = make([]byte, size)
  6197  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6198  	if err != nil {
  6199  		return nil, err
  6200  	}
  6201  	return dAtA[:n], nil
  6202  }
  6203  
  6204  func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  6205  	size := m.Size()
  6206  	return m.MarshalToSizedBuffer(dAtA[:size])
  6207  }
  6208  
  6209  func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6210  	i := len(dAtA)
  6211  	_ = i
  6212  	var l int
  6213  	_ = l
  6214  	if m.XXX_unrecognized != nil {
  6215  		i -= len(m.XXX_unrecognized)
  6216  		copy(dAtA[i:], m.XXX_unrecognized)
  6217  	}
  6218  	if m.ProxyHeartbeat != nil {
  6219  		{
  6220  			size, err := m.ProxyHeartbeat.MarshalToSizedBuffer(dAtA[:i])
  6221  			if err != nil {
  6222  				return 0, err
  6223  			}
  6224  			i -= size
  6225  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6226  		}
  6227  		i--
  6228  		dAtA[i] = 0x6a
  6229  	}
  6230  	if m.DeleteCNStore != nil {
  6231  		{
  6232  			size, err := m.DeleteCNStore.MarshalToSizedBuffer(dAtA[:i])
  6233  			if err != nil {
  6234  				return 0, err
  6235  			}
  6236  			i -= size
  6237  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6238  		}
  6239  		i--
  6240  		dAtA[i] = 0x62
  6241  	}
  6242  	if m.CNStateLabel != nil {
  6243  		{
  6244  			size, err := m.CNStateLabel.MarshalToSizedBuffer(dAtA[:i])
  6245  			if err != nil {
  6246  				return 0, err
  6247  			}
  6248  			i -= size
  6249  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6250  		}
  6251  		i--
  6252  		dAtA[i] = 0x5a
  6253  	}
  6254  	if m.CNWorkState != nil {
  6255  		{
  6256  			size, err := m.CNWorkState.MarshalToSizedBuffer(dAtA[:i])
  6257  			if err != nil {
  6258  				return 0, err
  6259  			}
  6260  			i -= size
  6261  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6262  		}
  6263  		i--
  6264  		dAtA[i] = 0x52
  6265  	}
  6266  	if m.CNStoreLabel != nil {
  6267  		{
  6268  			size, err := m.CNStoreLabel.MarshalToSizedBuffer(dAtA[:i])
  6269  			if err != nil {
  6270  				return 0, err
  6271  			}
  6272  			i -= size
  6273  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6274  		}
  6275  		i--
  6276  		dAtA[i] = 0x4a
  6277  	}
  6278  	if m.CNAllocateID != nil {
  6279  		{
  6280  			size, err := m.CNAllocateID.MarshalToSizedBuffer(dAtA[:i])
  6281  			if err != nil {
  6282  				return 0, err
  6283  			}
  6284  			i -= size
  6285  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6286  		}
  6287  		i--
  6288  		dAtA[i] = 0x42
  6289  	}
  6290  	if m.TsoRequest != nil {
  6291  		{
  6292  			size, err := m.TsoRequest.MarshalToSizedBuffer(dAtA[:i])
  6293  			if err != nil {
  6294  				return 0, err
  6295  			}
  6296  			i -= size
  6297  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6298  		}
  6299  		i--
  6300  		dAtA[i] = 0x3a
  6301  	}
  6302  	if m.TNHeartbeat != nil {
  6303  		{
  6304  			size, err := m.TNHeartbeat.MarshalToSizedBuffer(dAtA[:i])
  6305  			if err != nil {
  6306  				return 0, err
  6307  			}
  6308  			i -= size
  6309  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6310  		}
  6311  		i--
  6312  		dAtA[i] = 0x32
  6313  	}
  6314  	if m.CNHeartbeat != nil {
  6315  		{
  6316  			size, err := m.CNHeartbeat.MarshalToSizedBuffer(dAtA[:i])
  6317  			if err != nil {
  6318  				return 0, err
  6319  			}
  6320  			i -= size
  6321  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6322  		}
  6323  		i--
  6324  		dAtA[i] = 0x2a
  6325  	}
  6326  	if m.LogHeartbeat != nil {
  6327  		{
  6328  			size, err := m.LogHeartbeat.MarshalToSizedBuffer(dAtA[:i])
  6329  			if err != nil {
  6330  				return 0, err
  6331  			}
  6332  			i -= size
  6333  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6334  		}
  6335  		i--
  6336  		dAtA[i] = 0x22
  6337  	}
  6338  	{
  6339  		size, err := m.LogRequest.MarshalToSizedBuffer(dAtA[:i])
  6340  		if err != nil {
  6341  			return 0, err
  6342  		}
  6343  		i -= size
  6344  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  6345  	}
  6346  	i--
  6347  	dAtA[i] = 0x1a
  6348  	if m.Method != 0 {
  6349  		i = encodeVarintLogservice(dAtA, i, uint64(m.Method))
  6350  		i--
  6351  		dAtA[i] = 0x10
  6352  	}
  6353  	if m.RequestID != 0 {
  6354  		i = encodeVarintLogservice(dAtA, i, uint64(m.RequestID))
  6355  		i--
  6356  		dAtA[i] = 0x8
  6357  	}
  6358  	return len(dAtA) - i, nil
  6359  }
  6360  
  6361  func (m *LogResponse) Marshal() (dAtA []byte, err error) {
  6362  	size := m.Size()
  6363  	dAtA = make([]byte, size)
  6364  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6365  	if err != nil {
  6366  		return nil, err
  6367  	}
  6368  	return dAtA[:n], nil
  6369  }
  6370  
  6371  func (m *LogResponse) MarshalTo(dAtA []byte) (int, error) {
  6372  	size := m.Size()
  6373  	return m.MarshalToSizedBuffer(dAtA[:size])
  6374  }
  6375  
  6376  func (m *LogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6377  	i := len(dAtA)
  6378  	_ = i
  6379  	var l int
  6380  	_ = l
  6381  	if m.XXX_unrecognized != nil {
  6382  		i -= len(m.XXX_unrecognized)
  6383  		copy(dAtA[i:], m.XXX_unrecognized)
  6384  	}
  6385  	if m.LastLsn != 0 {
  6386  		i = encodeVarintLogservice(dAtA, i, uint64(m.LastLsn))
  6387  		i--
  6388  		dAtA[i] = 0x18
  6389  	}
  6390  	if m.Lsn != 0 {
  6391  		i = encodeVarintLogservice(dAtA, i, uint64(m.Lsn))
  6392  		i--
  6393  		dAtA[i] = 0x10
  6394  	}
  6395  	if m.ShardID != 0 {
  6396  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  6397  		i--
  6398  		dAtA[i] = 0x8
  6399  	}
  6400  	return len(dAtA) - i, nil
  6401  }
  6402  
  6403  func (m *AllocateIDResponse) Marshal() (dAtA []byte, err error) {
  6404  	size := m.Size()
  6405  	dAtA = make([]byte, size)
  6406  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6407  	if err != nil {
  6408  		return nil, err
  6409  	}
  6410  	return dAtA[:n], nil
  6411  }
  6412  
  6413  func (m *AllocateIDResponse) MarshalTo(dAtA []byte) (int, error) {
  6414  	size := m.Size()
  6415  	return m.MarshalToSizedBuffer(dAtA[:size])
  6416  }
  6417  
  6418  func (m *AllocateIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6419  	i := len(dAtA)
  6420  	_ = i
  6421  	var l int
  6422  	_ = l
  6423  	if m.XXX_unrecognized != nil {
  6424  		i -= len(m.XXX_unrecognized)
  6425  		copy(dAtA[i:], m.XXX_unrecognized)
  6426  	}
  6427  	if m.FirstID != 0 {
  6428  		i = encodeVarintLogservice(dAtA, i, uint64(m.FirstID))
  6429  		i--
  6430  		dAtA[i] = 0x8
  6431  	}
  6432  	return len(dAtA) - i, nil
  6433  }
  6434  
  6435  func (m *Response) Marshal() (dAtA []byte, err error) {
  6436  	size := m.Size()
  6437  	dAtA = make([]byte, size)
  6438  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6439  	if err != nil {
  6440  		return nil, err
  6441  	}
  6442  	return dAtA[:n], nil
  6443  }
  6444  
  6445  func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  6446  	size := m.Size()
  6447  	return m.MarshalToSizedBuffer(dAtA[:size])
  6448  }
  6449  
  6450  func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6451  	i := len(dAtA)
  6452  	_ = i
  6453  	var l int
  6454  	_ = l
  6455  	if m.XXX_unrecognized != nil {
  6456  		i -= len(m.XXX_unrecognized)
  6457  		copy(dAtA[i:], m.XXX_unrecognized)
  6458  	}
  6459  	if m.CheckerState != nil {
  6460  		{
  6461  			size, err := m.CheckerState.MarshalToSizedBuffer(dAtA[:i])
  6462  			if err != nil {
  6463  				return 0, err
  6464  			}
  6465  			i -= size
  6466  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6467  		}
  6468  		i--
  6469  		dAtA[i] = 0x62
  6470  	}
  6471  	if m.AllocateID != nil {
  6472  		{
  6473  			size, err := m.AllocateID.MarshalToSizedBuffer(dAtA[:i])
  6474  			if err != nil {
  6475  				return 0, err
  6476  			}
  6477  			i -= size
  6478  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6479  		}
  6480  		i--
  6481  		dAtA[i] = 0x5a
  6482  	}
  6483  	if m.ShardInfo != nil {
  6484  		{
  6485  			size, err := m.ShardInfo.MarshalToSizedBuffer(dAtA[:i])
  6486  			if err != nil {
  6487  				return 0, err
  6488  			}
  6489  			i -= size
  6490  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6491  		}
  6492  		i--
  6493  		dAtA[i] = 0x52
  6494  	}
  6495  	if m.ClusterDetails != nil {
  6496  		{
  6497  			size, err := m.ClusterDetails.MarshalToSizedBuffer(dAtA[:i])
  6498  			if err != nil {
  6499  				return 0, err
  6500  			}
  6501  			i -= size
  6502  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6503  		}
  6504  		i--
  6505  		dAtA[i] = 0x4a
  6506  	}
  6507  	if m.TsoResponse != nil {
  6508  		{
  6509  			size, err := m.TsoResponse.MarshalToSizedBuffer(dAtA[:i])
  6510  			if err != nil {
  6511  				return 0, err
  6512  			}
  6513  			i -= size
  6514  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6515  		}
  6516  		i--
  6517  		dAtA[i] = 0x42
  6518  	}
  6519  	if m.CommandBatch != nil {
  6520  		{
  6521  			size, err := m.CommandBatch.MarshalToSizedBuffer(dAtA[:i])
  6522  			if err != nil {
  6523  				return 0, err
  6524  			}
  6525  			i -= size
  6526  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6527  		}
  6528  		i--
  6529  		dAtA[i] = 0x3a
  6530  	}
  6531  	{
  6532  		size, err := m.LogResponse.MarshalToSizedBuffer(dAtA[:i])
  6533  		if err != nil {
  6534  			return 0, err
  6535  		}
  6536  		i -= size
  6537  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  6538  	}
  6539  	i--
  6540  	dAtA[i] = 0x32
  6541  	if m.IsHAKeeper {
  6542  		i--
  6543  		if m.IsHAKeeper {
  6544  			dAtA[i] = 1
  6545  		} else {
  6546  			dAtA[i] = 0
  6547  		}
  6548  		i--
  6549  		dAtA[i] = 0x28
  6550  	}
  6551  	if len(m.ErrorMessage) > 0 {
  6552  		i -= len(m.ErrorMessage)
  6553  		copy(dAtA[i:], m.ErrorMessage)
  6554  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ErrorMessage)))
  6555  		i--
  6556  		dAtA[i] = 0x22
  6557  	}
  6558  	if m.ErrorCode != 0 {
  6559  		i = encodeVarintLogservice(dAtA, i, uint64(m.ErrorCode))
  6560  		i--
  6561  		dAtA[i] = 0x18
  6562  	}
  6563  	if m.Method != 0 {
  6564  		i = encodeVarintLogservice(dAtA, i, uint64(m.Method))
  6565  		i--
  6566  		dAtA[i] = 0x10
  6567  	}
  6568  	if m.RequestID != 0 {
  6569  		i = encodeVarintLogservice(dAtA, i, uint64(m.RequestID))
  6570  		i--
  6571  		dAtA[i] = 0x8
  6572  	}
  6573  	return len(dAtA) - i, nil
  6574  }
  6575  
  6576  func (m *LogRecordResponse) Marshal() (dAtA []byte, err error) {
  6577  	size := m.Size()
  6578  	dAtA = make([]byte, size)
  6579  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6580  	if err != nil {
  6581  		return nil, err
  6582  	}
  6583  	return dAtA[:n], nil
  6584  }
  6585  
  6586  func (m *LogRecordResponse) MarshalTo(dAtA []byte) (int, error) {
  6587  	size := m.Size()
  6588  	return m.MarshalToSizedBuffer(dAtA[:size])
  6589  }
  6590  
  6591  func (m *LogRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6592  	i := len(dAtA)
  6593  	_ = i
  6594  	var l int
  6595  	_ = l
  6596  	if m.XXX_unrecognized != nil {
  6597  		i -= len(m.XXX_unrecognized)
  6598  		copy(dAtA[i:], m.XXX_unrecognized)
  6599  	}
  6600  	if len(m.Records) > 0 {
  6601  		for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- {
  6602  			{
  6603  				size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6604  				if err != nil {
  6605  					return 0, err
  6606  				}
  6607  				i -= size
  6608  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  6609  			}
  6610  			i--
  6611  			dAtA[i] = 0xa
  6612  		}
  6613  	}
  6614  	return len(dAtA) - i, nil
  6615  }
  6616  
  6617  func (m *TsoResponse) Marshal() (dAtA []byte, err error) {
  6618  	size := m.Size()
  6619  	dAtA = make([]byte, size)
  6620  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6621  	if err != nil {
  6622  		return nil, err
  6623  	}
  6624  	return dAtA[:n], nil
  6625  }
  6626  
  6627  func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) {
  6628  	size := m.Size()
  6629  	return m.MarshalToSizedBuffer(dAtA[:size])
  6630  }
  6631  
  6632  func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6633  	i := len(dAtA)
  6634  	_ = i
  6635  	var l int
  6636  	_ = l
  6637  	if m.XXX_unrecognized != nil {
  6638  		i -= len(m.XXX_unrecognized)
  6639  		copy(dAtA[i:], m.XXX_unrecognized)
  6640  	}
  6641  	if m.Value != 0 {
  6642  		i = encodeVarintLogservice(dAtA, i, uint64(m.Value))
  6643  		i--
  6644  		dAtA[i] = 0x8
  6645  	}
  6646  	return len(dAtA) - i, nil
  6647  }
  6648  
  6649  func (m *TaskTableUser) Marshal() (dAtA []byte, err error) {
  6650  	size := m.Size()
  6651  	dAtA = make([]byte, size)
  6652  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6653  	if err != nil {
  6654  		return nil, err
  6655  	}
  6656  	return dAtA[:n], nil
  6657  }
  6658  
  6659  func (m *TaskTableUser) MarshalTo(dAtA []byte) (int, error) {
  6660  	size := m.Size()
  6661  	return m.MarshalToSizedBuffer(dAtA[:size])
  6662  }
  6663  
  6664  func (m *TaskTableUser) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6665  	i := len(dAtA)
  6666  	_ = i
  6667  	var l int
  6668  	_ = l
  6669  	if m.XXX_unrecognized != nil {
  6670  		i -= len(m.XXX_unrecognized)
  6671  		copy(dAtA[i:], m.XXX_unrecognized)
  6672  	}
  6673  	if len(m.Password) > 0 {
  6674  		i -= len(m.Password)
  6675  		copy(dAtA[i:], m.Password)
  6676  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Password)))
  6677  		i--
  6678  		dAtA[i] = 0x12
  6679  	}
  6680  	if len(m.Username) > 0 {
  6681  		i -= len(m.Username)
  6682  		copy(dAtA[i:], m.Username)
  6683  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Username)))
  6684  		i--
  6685  		dAtA[i] = 0xa
  6686  	}
  6687  	return len(dAtA) - i, nil
  6688  }
  6689  
  6690  func (m *Replica) Marshal() (dAtA []byte, err error) {
  6691  	size := m.Size()
  6692  	dAtA = make([]byte, size)
  6693  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6694  	if err != nil {
  6695  		return nil, err
  6696  	}
  6697  	return dAtA[:n], nil
  6698  }
  6699  
  6700  func (m *Replica) MarshalTo(dAtA []byte) (int, error) {
  6701  	size := m.Size()
  6702  	return m.MarshalToSizedBuffer(dAtA[:size])
  6703  }
  6704  
  6705  func (m *Replica) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6706  	i := len(dAtA)
  6707  	_ = i
  6708  	var l int
  6709  	_ = l
  6710  	if m.XXX_unrecognized != nil {
  6711  		i -= len(m.XXX_unrecognized)
  6712  		copy(dAtA[i:], m.XXX_unrecognized)
  6713  	}
  6714  	if m.LogShardID != 0 {
  6715  		i = encodeVarintLogservice(dAtA, i, uint64(m.LogShardID))
  6716  		i--
  6717  		dAtA[i] = 0x28
  6718  	}
  6719  	if m.Epoch != 0 {
  6720  		i = encodeVarintLogservice(dAtA, i, uint64(m.Epoch))
  6721  		i--
  6722  		dAtA[i] = 0x20
  6723  	}
  6724  	if m.ReplicaID != 0 {
  6725  		i = encodeVarintLogservice(dAtA, i, uint64(m.ReplicaID))
  6726  		i--
  6727  		dAtA[i] = 0x18
  6728  	}
  6729  	if m.ShardID != 0 {
  6730  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  6731  		i--
  6732  		dAtA[i] = 0x10
  6733  	}
  6734  	if len(m.UUID) > 0 {
  6735  		i -= len(m.UUID)
  6736  		copy(dAtA[i:], m.UUID)
  6737  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  6738  		i--
  6739  		dAtA[i] = 0xa
  6740  	}
  6741  	return len(dAtA) - i, nil
  6742  }
  6743  
  6744  func (m *ConfigChange) Marshal() (dAtA []byte, err error) {
  6745  	size := m.Size()
  6746  	dAtA = make([]byte, size)
  6747  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6748  	if err != nil {
  6749  		return nil, err
  6750  	}
  6751  	return dAtA[:n], nil
  6752  }
  6753  
  6754  func (m *ConfigChange) MarshalTo(dAtA []byte) (int, error) {
  6755  	size := m.Size()
  6756  	return m.MarshalToSizedBuffer(dAtA[:size])
  6757  }
  6758  
  6759  func (m *ConfigChange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6760  	i := len(dAtA)
  6761  	_ = i
  6762  	var l int
  6763  	_ = l
  6764  	if m.XXX_unrecognized != nil {
  6765  		i -= len(m.XXX_unrecognized)
  6766  		copy(dAtA[i:], m.XXX_unrecognized)
  6767  	}
  6768  	if len(m.InitialMembers) > 0 {
  6769  		for k := range m.InitialMembers {
  6770  			v := m.InitialMembers[k]
  6771  			baseI := i
  6772  			i -= len(v)
  6773  			copy(dAtA[i:], v)
  6774  			i = encodeVarintLogservice(dAtA, i, uint64(len(v)))
  6775  			i--
  6776  			dAtA[i] = 0x12
  6777  			i = encodeVarintLogservice(dAtA, i, uint64(k))
  6778  			i--
  6779  			dAtA[i] = 0x8
  6780  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  6781  			i--
  6782  			dAtA[i] = 0x1a
  6783  		}
  6784  	}
  6785  	if m.ChangeType != 0 {
  6786  		i = encodeVarintLogservice(dAtA, i, uint64(m.ChangeType))
  6787  		i--
  6788  		dAtA[i] = 0x10
  6789  	}
  6790  	{
  6791  		size, err := m.Replica.MarshalToSizedBuffer(dAtA[:i])
  6792  		if err != nil {
  6793  			return 0, err
  6794  		}
  6795  		i -= size
  6796  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  6797  	}
  6798  	i--
  6799  	dAtA[i] = 0xa
  6800  	return len(dAtA) - i, nil
  6801  }
  6802  
  6803  func (m *ShutdownStore) Marshal() (dAtA []byte, err error) {
  6804  	size := m.Size()
  6805  	dAtA = make([]byte, size)
  6806  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6807  	if err != nil {
  6808  		return nil, err
  6809  	}
  6810  	return dAtA[:n], nil
  6811  }
  6812  
  6813  func (m *ShutdownStore) MarshalTo(dAtA []byte) (int, error) {
  6814  	size := m.Size()
  6815  	return m.MarshalToSizedBuffer(dAtA[:size])
  6816  }
  6817  
  6818  func (m *ShutdownStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6819  	i := len(dAtA)
  6820  	_ = i
  6821  	var l int
  6822  	_ = l
  6823  	if m.XXX_unrecognized != nil {
  6824  		i -= len(m.XXX_unrecognized)
  6825  		copy(dAtA[i:], m.XXX_unrecognized)
  6826  	}
  6827  	if len(m.StoreID) > 0 {
  6828  		i -= len(m.StoreID)
  6829  		copy(dAtA[i:], m.StoreID)
  6830  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.StoreID)))
  6831  		i--
  6832  		dAtA[i] = 0xa
  6833  	}
  6834  	return len(dAtA) - i, nil
  6835  }
  6836  
  6837  func (m *ScheduleCommand) Marshal() (dAtA []byte, err error) {
  6838  	size := m.Size()
  6839  	dAtA = make([]byte, size)
  6840  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6841  	if err != nil {
  6842  		return nil, err
  6843  	}
  6844  	return dAtA[:n], nil
  6845  }
  6846  
  6847  func (m *ScheduleCommand) MarshalTo(dAtA []byte) (int, error) {
  6848  	size := m.Size()
  6849  	return m.MarshalToSizedBuffer(dAtA[:size])
  6850  }
  6851  
  6852  func (m *ScheduleCommand) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6853  	i := len(dAtA)
  6854  	_ = i
  6855  	var l int
  6856  	_ = l
  6857  	if m.XXX_unrecognized != nil {
  6858  		i -= len(m.XXX_unrecognized)
  6859  		copy(dAtA[i:], m.XXX_unrecognized)
  6860  	}
  6861  	if m.DeleteProxyStore != nil {
  6862  		{
  6863  			size, err := m.DeleteProxyStore.MarshalToSizedBuffer(dAtA[:i])
  6864  			if err != nil {
  6865  				return 0, err
  6866  			}
  6867  			i -= size
  6868  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6869  		}
  6870  		i--
  6871  		dAtA[i] = 0x4a
  6872  	}
  6873  	if m.JoinGossipCluster != nil {
  6874  		{
  6875  			size, err := m.JoinGossipCluster.MarshalToSizedBuffer(dAtA[:i])
  6876  			if err != nil {
  6877  				return 0, err
  6878  			}
  6879  			i -= size
  6880  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6881  		}
  6882  		i--
  6883  		dAtA[i] = 0x42
  6884  	}
  6885  	if m.DeleteCNStore != nil {
  6886  		{
  6887  			size, err := m.DeleteCNStore.MarshalToSizedBuffer(dAtA[:i])
  6888  			if err != nil {
  6889  				return 0, err
  6890  			}
  6891  			i -= size
  6892  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6893  		}
  6894  		i--
  6895  		dAtA[i] = 0x3a
  6896  	}
  6897  	if m.CreateTaskService != nil {
  6898  		{
  6899  			size, err := m.CreateTaskService.MarshalToSizedBuffer(dAtA[:i])
  6900  			if err != nil {
  6901  				return 0, err
  6902  			}
  6903  			i -= size
  6904  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6905  		}
  6906  		i--
  6907  		dAtA[i] = 0x32
  6908  	}
  6909  	if m.ShutdownStore != nil {
  6910  		{
  6911  			size, err := m.ShutdownStore.MarshalToSizedBuffer(dAtA[:i])
  6912  			if err != nil {
  6913  				return 0, err
  6914  			}
  6915  			i -= size
  6916  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6917  		}
  6918  		i--
  6919  		dAtA[i] = 0x2a
  6920  	}
  6921  	if m.ConfigChange != nil {
  6922  		{
  6923  			size, err := m.ConfigChange.MarshalToSizedBuffer(dAtA[:i])
  6924  			if err != nil {
  6925  				return 0, err
  6926  			}
  6927  			i -= size
  6928  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  6929  		}
  6930  		i--
  6931  		dAtA[i] = 0x22
  6932  	}
  6933  	if m.ServiceType != 0 {
  6934  		i = encodeVarintLogservice(dAtA, i, uint64(m.ServiceType))
  6935  		i--
  6936  		dAtA[i] = 0x18
  6937  	}
  6938  	if m.Bootstrapping {
  6939  		i--
  6940  		if m.Bootstrapping {
  6941  			dAtA[i] = 1
  6942  		} else {
  6943  			dAtA[i] = 0
  6944  		}
  6945  		i--
  6946  		dAtA[i] = 0x10
  6947  	}
  6948  	if len(m.UUID) > 0 {
  6949  		i -= len(m.UUID)
  6950  		copy(dAtA[i:], m.UUID)
  6951  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  6952  		i--
  6953  		dAtA[i] = 0xa
  6954  	}
  6955  	return len(dAtA) - i, nil
  6956  }
  6957  
  6958  func (m *JoinGossipCluster) Marshal() (dAtA []byte, err error) {
  6959  	size := m.Size()
  6960  	dAtA = make([]byte, size)
  6961  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6962  	if err != nil {
  6963  		return nil, err
  6964  	}
  6965  	return dAtA[:n], nil
  6966  }
  6967  
  6968  func (m *JoinGossipCluster) MarshalTo(dAtA []byte) (int, error) {
  6969  	size := m.Size()
  6970  	return m.MarshalToSizedBuffer(dAtA[:size])
  6971  }
  6972  
  6973  func (m *JoinGossipCluster) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6974  	i := len(dAtA)
  6975  	_ = i
  6976  	var l int
  6977  	_ = l
  6978  	if m.XXX_unrecognized != nil {
  6979  		i -= len(m.XXX_unrecognized)
  6980  		copy(dAtA[i:], m.XXX_unrecognized)
  6981  	}
  6982  	if len(m.Existing) > 0 {
  6983  		for iNdEx := len(m.Existing) - 1; iNdEx >= 0; iNdEx-- {
  6984  			i -= len(m.Existing[iNdEx])
  6985  			copy(dAtA[i:], m.Existing[iNdEx])
  6986  			i = encodeVarintLogservice(dAtA, i, uint64(len(m.Existing[iNdEx])))
  6987  			i--
  6988  			dAtA[i] = 0xa
  6989  		}
  6990  	}
  6991  	return len(dAtA) - i, nil
  6992  }
  6993  
  6994  func (m *CreateTaskService) Marshal() (dAtA []byte, err error) {
  6995  	size := m.Size()
  6996  	dAtA = make([]byte, size)
  6997  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6998  	if err != nil {
  6999  		return nil, err
  7000  	}
  7001  	return dAtA[:n], nil
  7002  }
  7003  
  7004  func (m *CreateTaskService) MarshalTo(dAtA []byte) (int, error) {
  7005  	size := m.Size()
  7006  	return m.MarshalToSizedBuffer(dAtA[:size])
  7007  }
  7008  
  7009  func (m *CreateTaskService) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7010  	i := len(dAtA)
  7011  	_ = i
  7012  	var l int
  7013  	_ = l
  7014  	if m.XXX_unrecognized != nil {
  7015  		i -= len(m.XXX_unrecognized)
  7016  		copy(dAtA[i:], m.XXX_unrecognized)
  7017  	}
  7018  	if len(m.TaskDatabase) > 0 {
  7019  		i -= len(m.TaskDatabase)
  7020  		copy(dAtA[i:], m.TaskDatabase)
  7021  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.TaskDatabase)))
  7022  		i--
  7023  		dAtA[i] = 0x12
  7024  	}
  7025  	{
  7026  		size, err := m.User.MarshalToSizedBuffer(dAtA[:i])
  7027  		if err != nil {
  7028  			return 0, err
  7029  		}
  7030  		i -= size
  7031  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  7032  	}
  7033  	i--
  7034  	dAtA[i] = 0xa
  7035  	return len(dAtA) - i, nil
  7036  }
  7037  
  7038  func (m *DeleteCNStore) Marshal() (dAtA []byte, err error) {
  7039  	size := m.Size()
  7040  	dAtA = make([]byte, size)
  7041  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7042  	if err != nil {
  7043  		return nil, err
  7044  	}
  7045  	return dAtA[:n], nil
  7046  }
  7047  
  7048  func (m *DeleteCNStore) MarshalTo(dAtA []byte) (int, error) {
  7049  	size := m.Size()
  7050  	return m.MarshalToSizedBuffer(dAtA[:size])
  7051  }
  7052  
  7053  func (m *DeleteCNStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7054  	i := len(dAtA)
  7055  	_ = i
  7056  	var l int
  7057  	_ = l
  7058  	if m.XXX_unrecognized != nil {
  7059  		i -= len(m.XXX_unrecognized)
  7060  		copy(dAtA[i:], m.XXX_unrecognized)
  7061  	}
  7062  	if len(m.StoreID) > 0 {
  7063  		i -= len(m.StoreID)
  7064  		copy(dAtA[i:], m.StoreID)
  7065  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.StoreID)))
  7066  		i--
  7067  		dAtA[i] = 0xa
  7068  	}
  7069  	return len(dAtA) - i, nil
  7070  }
  7071  
  7072  func (m *DeleteProxyStore) Marshal() (dAtA []byte, err error) {
  7073  	size := m.Size()
  7074  	dAtA = make([]byte, size)
  7075  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7076  	if err != nil {
  7077  		return nil, err
  7078  	}
  7079  	return dAtA[:n], nil
  7080  }
  7081  
  7082  func (m *DeleteProxyStore) MarshalTo(dAtA []byte) (int, error) {
  7083  	size := m.Size()
  7084  	return m.MarshalToSizedBuffer(dAtA[:size])
  7085  }
  7086  
  7087  func (m *DeleteProxyStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7088  	i := len(dAtA)
  7089  	_ = i
  7090  	var l int
  7091  	_ = l
  7092  	if m.XXX_unrecognized != nil {
  7093  		i -= len(m.XXX_unrecognized)
  7094  		copy(dAtA[i:], m.XXX_unrecognized)
  7095  	}
  7096  	if len(m.StoreID) > 0 {
  7097  		i -= len(m.StoreID)
  7098  		copy(dAtA[i:], m.StoreID)
  7099  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.StoreID)))
  7100  		i--
  7101  		dAtA[i] = 0xa
  7102  	}
  7103  	return len(dAtA) - i, nil
  7104  }
  7105  
  7106  func (m *CommandBatch) Marshal() (dAtA []byte, err error) {
  7107  	size := m.Size()
  7108  	dAtA = make([]byte, size)
  7109  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7110  	if err != nil {
  7111  		return nil, err
  7112  	}
  7113  	return dAtA[:n], nil
  7114  }
  7115  
  7116  func (m *CommandBatch) MarshalTo(dAtA []byte) (int, error) {
  7117  	size := m.Size()
  7118  	return m.MarshalToSizedBuffer(dAtA[:size])
  7119  }
  7120  
  7121  func (m *CommandBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7122  	i := len(dAtA)
  7123  	_ = i
  7124  	var l int
  7125  	_ = l
  7126  	if m.XXX_unrecognized != nil {
  7127  		i -= len(m.XXX_unrecognized)
  7128  		copy(dAtA[i:], m.XXX_unrecognized)
  7129  	}
  7130  	if len(m.Commands) > 0 {
  7131  		for iNdEx := len(m.Commands) - 1; iNdEx >= 0; iNdEx-- {
  7132  			{
  7133  				size, err := m.Commands[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7134  				if err != nil {
  7135  					return 0, err
  7136  				}
  7137  				i -= size
  7138  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7139  			}
  7140  			i--
  7141  			dAtA[i] = 0x12
  7142  		}
  7143  	}
  7144  	if m.Term != 0 {
  7145  		i = encodeVarintLogservice(dAtA, i, uint64(m.Term))
  7146  		i--
  7147  		dAtA[i] = 0x8
  7148  	}
  7149  	return len(dAtA) - i, nil
  7150  }
  7151  
  7152  func (m *CNStoreInfo) Marshal() (dAtA []byte, err error) {
  7153  	size := m.Size()
  7154  	dAtA = make([]byte, size)
  7155  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7156  	if err != nil {
  7157  		return nil, err
  7158  	}
  7159  	return dAtA[:n], nil
  7160  }
  7161  
  7162  func (m *CNStoreInfo) MarshalTo(dAtA []byte) (int, error) {
  7163  	size := m.Size()
  7164  	return m.MarshalToSizedBuffer(dAtA[:size])
  7165  }
  7166  
  7167  func (m *CNStoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7168  	i := len(dAtA)
  7169  	_ = i
  7170  	var l int
  7171  	_ = l
  7172  	if m.XXX_unrecognized != nil {
  7173  		i -= len(m.XXX_unrecognized)
  7174  		copy(dAtA[i:], m.XXX_unrecognized)
  7175  	}
  7176  	if m.UpTime != 0 {
  7177  		i = encodeVarintLogservice(dAtA, i, uint64(m.UpTime))
  7178  		i--
  7179  		dAtA[i] = 0x78
  7180  	}
  7181  	{
  7182  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  7183  		if err != nil {
  7184  			return 0, err
  7185  		}
  7186  		i -= size
  7187  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  7188  	}
  7189  	i--
  7190  	dAtA[i] = 0x72
  7191  	if m.ConfigData != nil {
  7192  		{
  7193  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  7194  			if err != nil {
  7195  				return 0, err
  7196  			}
  7197  			i -= size
  7198  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  7199  		}
  7200  		i--
  7201  		dAtA[i] = 0x6a
  7202  	}
  7203  	if m.GossipJoined {
  7204  		i--
  7205  		if m.GossipJoined {
  7206  			dAtA[i] = 1
  7207  		} else {
  7208  			dAtA[i] = 0
  7209  		}
  7210  		i--
  7211  		dAtA[i] = 0x60
  7212  	}
  7213  	if len(m.GossipAddress) > 0 {
  7214  		i -= len(m.GossipAddress)
  7215  		copy(dAtA[i:], m.GossipAddress)
  7216  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.GossipAddress)))
  7217  		i--
  7218  		dAtA[i] = 0x5a
  7219  	}
  7220  	if len(m.QueryAddress) > 0 {
  7221  		i -= len(m.QueryAddress)
  7222  		copy(dAtA[i:], m.QueryAddress)
  7223  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  7224  		i--
  7225  		dAtA[i] = 0x52
  7226  	}
  7227  	if m.WorkState != 0 {
  7228  		i = encodeVarintLogservice(dAtA, i, uint64(m.WorkState))
  7229  		i--
  7230  		dAtA[i] = 0x48
  7231  	}
  7232  	if len(m.Labels) > 0 {
  7233  		for k := range m.Labels {
  7234  			v := m.Labels[k]
  7235  			baseI := i
  7236  			{
  7237  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  7238  				if err != nil {
  7239  					return 0, err
  7240  				}
  7241  				i -= size
  7242  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7243  			}
  7244  			i--
  7245  			dAtA[i] = 0x12
  7246  			i -= len(k)
  7247  			copy(dAtA[i:], k)
  7248  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  7249  			i--
  7250  			dAtA[i] = 0xa
  7251  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  7252  			i--
  7253  			dAtA[i] = 0x42
  7254  		}
  7255  	}
  7256  	if m.TaskServiceCreated {
  7257  		i--
  7258  		if m.TaskServiceCreated {
  7259  			dAtA[i] = 1
  7260  		} else {
  7261  			dAtA[i] = 0
  7262  		}
  7263  		i--
  7264  		dAtA[i] = 0x38
  7265  	}
  7266  	if m.Role != 0 {
  7267  		i = encodeVarintLogservice(dAtA, i, uint64(m.Role))
  7268  		i--
  7269  		dAtA[i] = 0x30
  7270  	}
  7271  	if len(m.LockServiceAddress) > 0 {
  7272  		i -= len(m.LockServiceAddress)
  7273  		copy(dAtA[i:], m.LockServiceAddress)
  7274  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  7275  		i--
  7276  		dAtA[i] = 0x22
  7277  	}
  7278  	if len(m.SQLAddress) > 0 {
  7279  		i -= len(m.SQLAddress)
  7280  		copy(dAtA[i:], m.SQLAddress)
  7281  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.SQLAddress)))
  7282  		i--
  7283  		dAtA[i] = 0x1a
  7284  	}
  7285  	if len(m.ServiceAddress) > 0 {
  7286  		i -= len(m.ServiceAddress)
  7287  		copy(dAtA[i:], m.ServiceAddress)
  7288  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  7289  		i--
  7290  		dAtA[i] = 0x12
  7291  	}
  7292  	if m.Tick != 0 {
  7293  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  7294  		i--
  7295  		dAtA[i] = 0x8
  7296  	}
  7297  	return len(dAtA) - i, nil
  7298  }
  7299  
  7300  func (m *CNState) Marshal() (dAtA []byte, err error) {
  7301  	size := m.Size()
  7302  	dAtA = make([]byte, size)
  7303  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7304  	if err != nil {
  7305  		return nil, err
  7306  	}
  7307  	return dAtA[:n], nil
  7308  }
  7309  
  7310  func (m *CNState) MarshalTo(dAtA []byte) (int, error) {
  7311  	size := m.Size()
  7312  	return m.MarshalToSizedBuffer(dAtA[:size])
  7313  }
  7314  
  7315  func (m *CNState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7316  	i := len(dAtA)
  7317  	_ = i
  7318  	var l int
  7319  	_ = l
  7320  	if m.XXX_unrecognized != nil {
  7321  		i -= len(m.XXX_unrecognized)
  7322  		copy(dAtA[i:], m.XXX_unrecognized)
  7323  	}
  7324  	if len(m.Stores) > 0 {
  7325  		for k := range m.Stores {
  7326  			v := m.Stores[k]
  7327  			baseI := i
  7328  			{
  7329  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  7330  				if err != nil {
  7331  					return 0, err
  7332  				}
  7333  				i -= size
  7334  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7335  			}
  7336  			i--
  7337  			dAtA[i] = 0x12
  7338  			i -= len(k)
  7339  			copy(dAtA[i:], k)
  7340  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  7341  			i--
  7342  			dAtA[i] = 0xa
  7343  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  7344  			i--
  7345  			dAtA[i] = 0xa
  7346  		}
  7347  	}
  7348  	return len(dAtA) - i, nil
  7349  }
  7350  
  7351  func (m *TNStoreInfo) Marshal() (dAtA []byte, err error) {
  7352  	size := m.Size()
  7353  	dAtA = make([]byte, size)
  7354  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7355  	if err != nil {
  7356  		return nil, err
  7357  	}
  7358  	return dAtA[:n], nil
  7359  }
  7360  
  7361  func (m *TNStoreInfo) MarshalTo(dAtA []byte) (int, error) {
  7362  	size := m.Size()
  7363  	return m.MarshalToSizedBuffer(dAtA[:size])
  7364  }
  7365  
  7366  func (m *TNStoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7367  	i := len(dAtA)
  7368  	_ = i
  7369  	var l int
  7370  	_ = l
  7371  	if m.XXX_unrecognized != nil {
  7372  		i -= len(m.XXX_unrecognized)
  7373  		copy(dAtA[i:], m.XXX_unrecognized)
  7374  	}
  7375  	if len(m.QueryAddress) > 0 {
  7376  		i -= len(m.QueryAddress)
  7377  		copy(dAtA[i:], m.QueryAddress)
  7378  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.QueryAddress)))
  7379  		i--
  7380  		dAtA[i] = 0x4a
  7381  	}
  7382  	if m.ConfigData != nil {
  7383  		{
  7384  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  7385  			if err != nil {
  7386  				return 0, err
  7387  			}
  7388  			i -= size
  7389  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  7390  		}
  7391  		i--
  7392  		dAtA[i] = 0x42
  7393  	}
  7394  	if len(m.LockServiceAddress) > 0 {
  7395  		i -= len(m.LockServiceAddress)
  7396  		copy(dAtA[i:], m.LockServiceAddress)
  7397  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LockServiceAddress)))
  7398  		i--
  7399  		dAtA[i] = 0x32
  7400  	}
  7401  	if len(m.LogtailServerAddress) > 0 {
  7402  		i -= len(m.LogtailServerAddress)
  7403  		copy(dAtA[i:], m.LogtailServerAddress)
  7404  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.LogtailServerAddress)))
  7405  		i--
  7406  		dAtA[i] = 0x2a
  7407  	}
  7408  	if m.TaskServiceCreated {
  7409  		i--
  7410  		if m.TaskServiceCreated {
  7411  			dAtA[i] = 1
  7412  		} else {
  7413  			dAtA[i] = 0
  7414  		}
  7415  		i--
  7416  		dAtA[i] = 0x20
  7417  	}
  7418  	if len(m.Shards) > 0 {
  7419  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  7420  			{
  7421  				size, err := m.Shards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7422  				if err != nil {
  7423  					return 0, err
  7424  				}
  7425  				i -= size
  7426  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7427  			}
  7428  			i--
  7429  			dAtA[i] = 0x1a
  7430  		}
  7431  	}
  7432  	if len(m.ServiceAddress) > 0 {
  7433  		i -= len(m.ServiceAddress)
  7434  		copy(dAtA[i:], m.ServiceAddress)
  7435  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  7436  		i--
  7437  		dAtA[i] = 0x12
  7438  	}
  7439  	if m.Tick != 0 {
  7440  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  7441  		i--
  7442  		dAtA[i] = 0x8
  7443  	}
  7444  	return len(dAtA) - i, nil
  7445  }
  7446  
  7447  func (m *TNState) Marshal() (dAtA []byte, err error) {
  7448  	size := m.Size()
  7449  	dAtA = make([]byte, size)
  7450  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7451  	if err != nil {
  7452  		return nil, err
  7453  	}
  7454  	return dAtA[:n], nil
  7455  }
  7456  
  7457  func (m *TNState) MarshalTo(dAtA []byte) (int, error) {
  7458  	size := m.Size()
  7459  	return m.MarshalToSizedBuffer(dAtA[:size])
  7460  }
  7461  
  7462  func (m *TNState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7463  	i := len(dAtA)
  7464  	_ = i
  7465  	var l int
  7466  	_ = l
  7467  	if m.XXX_unrecognized != nil {
  7468  		i -= len(m.XXX_unrecognized)
  7469  		copy(dAtA[i:], m.XXX_unrecognized)
  7470  	}
  7471  	if len(m.Stores) > 0 {
  7472  		for k := range m.Stores {
  7473  			v := m.Stores[k]
  7474  			baseI := i
  7475  			{
  7476  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  7477  				if err != nil {
  7478  					return 0, err
  7479  				}
  7480  				i -= size
  7481  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7482  			}
  7483  			i--
  7484  			dAtA[i] = 0x12
  7485  			i -= len(k)
  7486  			copy(dAtA[i:], k)
  7487  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  7488  			i--
  7489  			dAtA[i] = 0xa
  7490  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  7491  			i--
  7492  			dAtA[i] = 0xa
  7493  		}
  7494  	}
  7495  	return len(dAtA) - i, nil
  7496  }
  7497  
  7498  func (m *ProxyStore) Marshal() (dAtA []byte, err error) {
  7499  	size := m.Size()
  7500  	dAtA = make([]byte, size)
  7501  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7502  	if err != nil {
  7503  		return nil, err
  7504  	}
  7505  	return dAtA[:n], nil
  7506  }
  7507  
  7508  func (m *ProxyStore) MarshalTo(dAtA []byte) (int, error) {
  7509  	size := m.Size()
  7510  	return m.MarshalToSizedBuffer(dAtA[:size])
  7511  }
  7512  
  7513  func (m *ProxyStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7514  	i := len(dAtA)
  7515  	_ = i
  7516  	var l int
  7517  	_ = l
  7518  	if m.XXX_unrecognized != nil {
  7519  		i -= len(m.XXX_unrecognized)
  7520  		copy(dAtA[i:], m.XXX_unrecognized)
  7521  	}
  7522  	if m.ConfigData != nil {
  7523  		{
  7524  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  7525  			if err != nil {
  7526  				return 0, err
  7527  			}
  7528  			i -= size
  7529  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  7530  		}
  7531  		i--
  7532  		dAtA[i] = 0x22
  7533  	}
  7534  	if len(m.ListenAddress) > 0 {
  7535  		i -= len(m.ListenAddress)
  7536  		copy(dAtA[i:], m.ListenAddress)
  7537  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ListenAddress)))
  7538  		i--
  7539  		dAtA[i] = 0x1a
  7540  	}
  7541  	if m.Tick != 0 {
  7542  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  7543  		i--
  7544  		dAtA[i] = 0x10
  7545  	}
  7546  	if len(m.UUID) > 0 {
  7547  		i -= len(m.UUID)
  7548  		copy(dAtA[i:], m.UUID)
  7549  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  7550  		i--
  7551  		dAtA[i] = 0xa
  7552  	}
  7553  	return len(dAtA) - i, nil
  7554  }
  7555  
  7556  func (m *ProxyState) Marshal() (dAtA []byte, err error) {
  7557  	size := m.Size()
  7558  	dAtA = make([]byte, size)
  7559  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7560  	if err != nil {
  7561  		return nil, err
  7562  	}
  7563  	return dAtA[:n], nil
  7564  }
  7565  
  7566  func (m *ProxyState) MarshalTo(dAtA []byte) (int, error) {
  7567  	size := m.Size()
  7568  	return m.MarshalToSizedBuffer(dAtA[:size])
  7569  }
  7570  
  7571  func (m *ProxyState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7572  	i := len(dAtA)
  7573  	_ = i
  7574  	var l int
  7575  	_ = l
  7576  	if m.XXX_unrecognized != nil {
  7577  		i -= len(m.XXX_unrecognized)
  7578  		copy(dAtA[i:], m.XXX_unrecognized)
  7579  	}
  7580  	if len(m.Stores) > 0 {
  7581  		for k := range m.Stores {
  7582  			v := m.Stores[k]
  7583  			baseI := i
  7584  			{
  7585  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  7586  				if err != nil {
  7587  					return 0, err
  7588  				}
  7589  				i -= size
  7590  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7591  			}
  7592  			i--
  7593  			dAtA[i] = 0x12
  7594  			i -= len(k)
  7595  			copy(dAtA[i:], k)
  7596  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  7597  			i--
  7598  			dAtA[i] = 0xa
  7599  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  7600  			i--
  7601  			dAtA[i] = 0xa
  7602  		}
  7603  	}
  7604  	return len(dAtA) - i, nil
  7605  }
  7606  
  7607  func (m *ProxyHeartbeat) Marshal() (dAtA []byte, err error) {
  7608  	size := m.Size()
  7609  	dAtA = make([]byte, size)
  7610  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7611  	if err != nil {
  7612  		return nil, err
  7613  	}
  7614  	return dAtA[:n], nil
  7615  }
  7616  
  7617  func (m *ProxyHeartbeat) MarshalTo(dAtA []byte) (int, error) {
  7618  	size := m.Size()
  7619  	return m.MarshalToSizedBuffer(dAtA[:size])
  7620  }
  7621  
  7622  func (m *ProxyHeartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7623  	i := len(dAtA)
  7624  	_ = i
  7625  	var l int
  7626  	_ = l
  7627  	if m.XXX_unrecognized != nil {
  7628  		i -= len(m.XXX_unrecognized)
  7629  		copy(dAtA[i:], m.XXX_unrecognized)
  7630  	}
  7631  	if m.ConfigData != nil {
  7632  		{
  7633  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  7634  			if err != nil {
  7635  				return 0, err
  7636  			}
  7637  			i -= size
  7638  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  7639  		}
  7640  		i--
  7641  		dAtA[i] = 0x1a
  7642  	}
  7643  	if len(m.ListenAddress) > 0 {
  7644  		i -= len(m.ListenAddress)
  7645  		copy(dAtA[i:], m.ListenAddress)
  7646  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ListenAddress)))
  7647  		i--
  7648  		dAtA[i] = 0x12
  7649  	}
  7650  	if len(m.UUID) > 0 {
  7651  		i -= len(m.UUID)
  7652  		copy(dAtA[i:], m.UUID)
  7653  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  7654  		i--
  7655  		dAtA[i] = 0xa
  7656  	}
  7657  	return len(dAtA) - i, nil
  7658  }
  7659  
  7660  func (m *ClusterDetails) Marshal() (dAtA []byte, err error) {
  7661  	size := m.Size()
  7662  	dAtA = make([]byte, size)
  7663  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7664  	if err != nil {
  7665  		return nil, err
  7666  	}
  7667  	return dAtA[:n], nil
  7668  }
  7669  
  7670  func (m *ClusterDetails) MarshalTo(dAtA []byte) (int, error) {
  7671  	size := m.Size()
  7672  	return m.MarshalToSizedBuffer(dAtA[:size])
  7673  }
  7674  
  7675  func (m *ClusterDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7676  	i := len(dAtA)
  7677  	_ = i
  7678  	var l int
  7679  	_ = l
  7680  	if m.XXX_unrecognized != nil {
  7681  		i -= len(m.XXX_unrecognized)
  7682  		copy(dAtA[i:], m.XXX_unrecognized)
  7683  	}
  7684  	if len(m.DeletedStores) > 0 {
  7685  		for iNdEx := len(m.DeletedStores) - 1; iNdEx >= 0; iNdEx-- {
  7686  			{
  7687  				size, err := m.DeletedStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7688  				if err != nil {
  7689  					return 0, err
  7690  				}
  7691  				i -= size
  7692  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7693  			}
  7694  			i--
  7695  			dAtA[i] = 0x2a
  7696  		}
  7697  	}
  7698  	if len(m.ProxyStores) > 0 {
  7699  		for iNdEx := len(m.ProxyStores) - 1; iNdEx >= 0; iNdEx-- {
  7700  			{
  7701  				size, err := m.ProxyStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7702  				if err != nil {
  7703  					return 0, err
  7704  				}
  7705  				i -= size
  7706  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7707  			}
  7708  			i--
  7709  			dAtA[i] = 0x22
  7710  		}
  7711  	}
  7712  	if len(m.LogStores) > 0 {
  7713  		for iNdEx := len(m.LogStores) - 1; iNdEx >= 0; iNdEx-- {
  7714  			{
  7715  				size, err := m.LogStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7716  				if err != nil {
  7717  					return 0, err
  7718  				}
  7719  				i -= size
  7720  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7721  			}
  7722  			i--
  7723  			dAtA[i] = 0x1a
  7724  		}
  7725  	}
  7726  	if len(m.CNStores) > 0 {
  7727  		for iNdEx := len(m.CNStores) - 1; iNdEx >= 0; iNdEx-- {
  7728  			{
  7729  				size, err := m.CNStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7730  				if err != nil {
  7731  					return 0, err
  7732  				}
  7733  				i -= size
  7734  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7735  			}
  7736  			i--
  7737  			dAtA[i] = 0x12
  7738  		}
  7739  	}
  7740  	if len(m.TNStores) > 0 {
  7741  		for iNdEx := len(m.TNStores) - 1; iNdEx >= 0; iNdEx-- {
  7742  			{
  7743  				size, err := m.TNStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7744  				if err != nil {
  7745  					return 0, err
  7746  				}
  7747  				i -= size
  7748  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7749  			}
  7750  			i--
  7751  			dAtA[i] = 0xa
  7752  		}
  7753  	}
  7754  	return len(dAtA) - i, nil
  7755  }
  7756  
  7757  func (m *ClusterInfo) Marshal() (dAtA []byte, err error) {
  7758  	size := m.Size()
  7759  	dAtA = make([]byte, size)
  7760  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7761  	if err != nil {
  7762  		return nil, err
  7763  	}
  7764  	return dAtA[:n], nil
  7765  }
  7766  
  7767  func (m *ClusterInfo) MarshalTo(dAtA []byte) (int, error) {
  7768  	size := m.Size()
  7769  	return m.MarshalToSizedBuffer(dAtA[:size])
  7770  }
  7771  
  7772  func (m *ClusterInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7773  	i := len(dAtA)
  7774  	_ = i
  7775  	var l int
  7776  	_ = l
  7777  	if m.XXX_unrecognized != nil {
  7778  		i -= len(m.XXX_unrecognized)
  7779  		copy(dAtA[i:], m.XXX_unrecognized)
  7780  	}
  7781  	if len(m.LogShards) > 0 {
  7782  		for iNdEx := len(m.LogShards) - 1; iNdEx >= 0; iNdEx-- {
  7783  			{
  7784  				size, err := m.LogShards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7785  				if err != nil {
  7786  					return 0, err
  7787  				}
  7788  				i -= size
  7789  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7790  			}
  7791  			i--
  7792  			dAtA[i] = 0x12
  7793  		}
  7794  	}
  7795  	if len(m.TNShards) > 0 {
  7796  		for iNdEx := len(m.TNShards) - 1; iNdEx >= 0; iNdEx-- {
  7797  			{
  7798  				size, err := m.TNShards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7799  				if err != nil {
  7800  					return 0, err
  7801  				}
  7802  				i -= size
  7803  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7804  			}
  7805  			i--
  7806  			dAtA[i] = 0xa
  7807  		}
  7808  	}
  7809  	return len(dAtA) - i, nil
  7810  }
  7811  
  7812  func (m *InitialClusterRequest) Marshal() (dAtA []byte, err error) {
  7813  	size := m.Size()
  7814  	dAtA = make([]byte, size)
  7815  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7816  	if err != nil {
  7817  		return nil, err
  7818  	}
  7819  	return dAtA[:n], nil
  7820  }
  7821  
  7822  func (m *InitialClusterRequest) MarshalTo(dAtA []byte) (int, error) {
  7823  	size := m.Size()
  7824  	return m.MarshalToSizedBuffer(dAtA[:size])
  7825  }
  7826  
  7827  func (m *InitialClusterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7828  	i := len(dAtA)
  7829  	_ = i
  7830  	var l int
  7831  	_ = l
  7832  	if m.XXX_unrecognized != nil {
  7833  		i -= len(m.XXX_unrecognized)
  7834  		copy(dAtA[i:], m.XXX_unrecognized)
  7835  	}
  7836  	if len(m.NextIDByKey) > 0 {
  7837  		for k := range m.NextIDByKey {
  7838  			v := m.NextIDByKey[k]
  7839  			baseI := i
  7840  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  7841  			i--
  7842  			dAtA[i] = 0x10
  7843  			i -= len(k)
  7844  			copy(dAtA[i:], k)
  7845  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  7846  			i--
  7847  			dAtA[i] = 0xa
  7848  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  7849  			i--
  7850  			dAtA[i] = 0x2a
  7851  		}
  7852  	}
  7853  	if m.NextID != 0 {
  7854  		i = encodeVarintLogservice(dAtA, i, uint64(m.NextID))
  7855  		i--
  7856  		dAtA[i] = 0x20
  7857  	}
  7858  	if m.NumOfLogReplicas != 0 {
  7859  		i = encodeVarintLogservice(dAtA, i, uint64(m.NumOfLogReplicas))
  7860  		i--
  7861  		dAtA[i] = 0x18
  7862  	}
  7863  	if m.NumOfTNShards != 0 {
  7864  		i = encodeVarintLogservice(dAtA, i, uint64(m.NumOfTNShards))
  7865  		i--
  7866  		dAtA[i] = 0x10
  7867  	}
  7868  	if m.NumOfLogShards != 0 {
  7869  		i = encodeVarintLogservice(dAtA, i, uint64(m.NumOfLogShards))
  7870  		i--
  7871  		dAtA[i] = 0x8
  7872  	}
  7873  	return len(dAtA) - i, nil
  7874  }
  7875  
  7876  func (m *LogStoreInfo) Marshal() (dAtA []byte, err error) {
  7877  	size := m.Size()
  7878  	dAtA = make([]byte, size)
  7879  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7880  	if err != nil {
  7881  		return nil, err
  7882  	}
  7883  	return dAtA[:n], nil
  7884  }
  7885  
  7886  func (m *LogStoreInfo) MarshalTo(dAtA []byte) (int, error) {
  7887  	size := m.Size()
  7888  	return m.MarshalToSizedBuffer(dAtA[:size])
  7889  }
  7890  
  7891  func (m *LogStoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7892  	i := len(dAtA)
  7893  	_ = i
  7894  	var l int
  7895  	_ = l
  7896  	if m.XXX_unrecognized != nil {
  7897  		i -= len(m.XXX_unrecognized)
  7898  		copy(dAtA[i:], m.XXX_unrecognized)
  7899  	}
  7900  	if m.ConfigData != nil {
  7901  		{
  7902  			size, err := m.ConfigData.MarshalToSizedBuffer(dAtA[:i])
  7903  			if err != nil {
  7904  				return 0, err
  7905  			}
  7906  			i -= size
  7907  			i = encodeVarintLogservice(dAtA, i, uint64(size))
  7908  		}
  7909  		i--
  7910  		dAtA[i] = 0x3a
  7911  	}
  7912  	if m.TaskServiceCreated {
  7913  		i--
  7914  		if m.TaskServiceCreated {
  7915  			dAtA[i] = 1
  7916  		} else {
  7917  			dAtA[i] = 0
  7918  		}
  7919  		i--
  7920  		dAtA[i] = 0x30
  7921  	}
  7922  	if len(m.Replicas) > 0 {
  7923  		for iNdEx := len(m.Replicas) - 1; iNdEx >= 0; iNdEx-- {
  7924  			{
  7925  				size, err := m.Replicas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7926  				if err != nil {
  7927  					return 0, err
  7928  				}
  7929  				i -= size
  7930  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  7931  			}
  7932  			i--
  7933  			dAtA[i] = 0x2a
  7934  		}
  7935  	}
  7936  	if len(m.GossipAddress) > 0 {
  7937  		i -= len(m.GossipAddress)
  7938  		copy(dAtA[i:], m.GossipAddress)
  7939  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.GossipAddress)))
  7940  		i--
  7941  		dAtA[i] = 0x22
  7942  	}
  7943  	if len(m.ServiceAddress) > 0 {
  7944  		i -= len(m.ServiceAddress)
  7945  		copy(dAtA[i:], m.ServiceAddress)
  7946  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  7947  		i--
  7948  		dAtA[i] = 0x1a
  7949  	}
  7950  	if len(m.RaftAddress) > 0 {
  7951  		i -= len(m.RaftAddress)
  7952  		copy(dAtA[i:], m.RaftAddress)
  7953  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.RaftAddress)))
  7954  		i--
  7955  		dAtA[i] = 0x12
  7956  	}
  7957  	if m.Tick != 0 {
  7958  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  7959  		i--
  7960  		dAtA[i] = 0x8
  7961  	}
  7962  	return len(dAtA) - i, nil
  7963  }
  7964  
  7965  func (m *LogState) Marshal() (dAtA []byte, err error) {
  7966  	size := m.Size()
  7967  	dAtA = make([]byte, size)
  7968  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7969  	if err != nil {
  7970  		return nil, err
  7971  	}
  7972  	return dAtA[:n], nil
  7973  }
  7974  
  7975  func (m *LogState) MarshalTo(dAtA []byte) (int, error) {
  7976  	size := m.Size()
  7977  	return m.MarshalToSizedBuffer(dAtA[:size])
  7978  }
  7979  
  7980  func (m *LogState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7981  	i := len(dAtA)
  7982  	_ = i
  7983  	var l int
  7984  	_ = l
  7985  	if m.XXX_unrecognized != nil {
  7986  		i -= len(m.XXX_unrecognized)
  7987  		copy(dAtA[i:], m.XXX_unrecognized)
  7988  	}
  7989  	if len(m.Stores) > 0 {
  7990  		for k := range m.Stores {
  7991  			v := m.Stores[k]
  7992  			baseI := i
  7993  			{
  7994  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  7995  				if err != nil {
  7996  					return 0, err
  7997  				}
  7998  				i -= size
  7999  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  8000  			}
  8001  			i--
  8002  			dAtA[i] = 0x12
  8003  			i -= len(k)
  8004  			copy(dAtA[i:], k)
  8005  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8006  			i--
  8007  			dAtA[i] = 0xa
  8008  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8009  			i--
  8010  			dAtA[i] = 0x12
  8011  		}
  8012  	}
  8013  	if len(m.Shards) > 0 {
  8014  		for k := range m.Shards {
  8015  			v := m.Shards[k]
  8016  			baseI := i
  8017  			{
  8018  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  8019  				if err != nil {
  8020  					return 0, err
  8021  				}
  8022  				i -= size
  8023  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  8024  			}
  8025  			i--
  8026  			dAtA[i] = 0x12
  8027  			i = encodeVarintLogservice(dAtA, i, uint64(k))
  8028  			i--
  8029  			dAtA[i] = 0x8
  8030  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8031  			i--
  8032  			dAtA[i] = 0xa
  8033  		}
  8034  	}
  8035  	return len(dAtA) - i, nil
  8036  }
  8037  
  8038  func (m *CheckerState) Marshal() (dAtA []byte, err error) {
  8039  	size := m.Size()
  8040  	dAtA = make([]byte, size)
  8041  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8042  	if err != nil {
  8043  		return nil, err
  8044  	}
  8045  	return dAtA[:n], nil
  8046  }
  8047  
  8048  func (m *CheckerState) MarshalTo(dAtA []byte) (int, error) {
  8049  	size := m.Size()
  8050  	return m.MarshalToSizedBuffer(dAtA[:size])
  8051  }
  8052  
  8053  func (m *CheckerState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8054  	i := len(dAtA)
  8055  	_ = i
  8056  	var l int
  8057  	_ = l
  8058  	if m.XXX_unrecognized != nil {
  8059  		i -= len(m.XXX_unrecognized)
  8060  		copy(dAtA[i:], m.XXX_unrecognized)
  8061  	}
  8062  	{
  8063  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  8064  		if err != nil {
  8065  			return 0, err
  8066  		}
  8067  		i -= size
  8068  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8069  	}
  8070  	i--
  8071  	dAtA[i] = 0x62
  8072  	{
  8073  		size, err := m.ProxyState.MarshalToSizedBuffer(dAtA[:i])
  8074  		if err != nil {
  8075  			return 0, err
  8076  		}
  8077  		i -= size
  8078  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8079  	}
  8080  	i--
  8081  	dAtA[i] = 0x5a
  8082  	if len(m.NextIDByKey) > 0 {
  8083  		for k := range m.NextIDByKey {
  8084  			v := m.NextIDByKey[k]
  8085  			baseI := i
  8086  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  8087  			i--
  8088  			dAtA[i] = 0x10
  8089  			i -= len(k)
  8090  			copy(dAtA[i:], k)
  8091  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8092  			i--
  8093  			dAtA[i] = 0xa
  8094  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8095  			i--
  8096  			dAtA[i] = 0x52
  8097  		}
  8098  	}
  8099  	if m.NextId != 0 {
  8100  		i = encodeVarintLogservice(dAtA, i, uint64(m.NextId))
  8101  		i--
  8102  		dAtA[i] = 0x48
  8103  	}
  8104  	{
  8105  		size, err := m.TaskTableUser.MarshalToSizedBuffer(dAtA[:i])
  8106  		if err != nil {
  8107  			return 0, err
  8108  		}
  8109  		i -= size
  8110  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8111  	}
  8112  	i--
  8113  	dAtA[i] = 0x42
  8114  	if m.TaskSchedulerState != 0 {
  8115  		i = encodeVarintLogservice(dAtA, i, uint64(m.TaskSchedulerState))
  8116  		i--
  8117  		dAtA[i] = 0x38
  8118  	}
  8119  	if m.State != 0 {
  8120  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  8121  		i--
  8122  		dAtA[i] = 0x30
  8123  	}
  8124  	{
  8125  		size, err := m.CNState.MarshalToSizedBuffer(dAtA[:i])
  8126  		if err != nil {
  8127  			return 0, err
  8128  		}
  8129  		i -= size
  8130  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8131  	}
  8132  	i--
  8133  	dAtA[i] = 0x2a
  8134  	{
  8135  		size, err := m.LogState.MarshalToSizedBuffer(dAtA[:i])
  8136  		if err != nil {
  8137  			return 0, err
  8138  		}
  8139  		i -= size
  8140  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8141  	}
  8142  	i--
  8143  	dAtA[i] = 0x22
  8144  	{
  8145  		size, err := m.TNState.MarshalToSizedBuffer(dAtA[:i])
  8146  		if err != nil {
  8147  			return 0, err
  8148  		}
  8149  		i -= size
  8150  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8151  	}
  8152  	i--
  8153  	dAtA[i] = 0x1a
  8154  	{
  8155  		size, err := m.ClusterInfo.MarshalToSizedBuffer(dAtA[:i])
  8156  		if err != nil {
  8157  			return 0, err
  8158  		}
  8159  		i -= size
  8160  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8161  	}
  8162  	i--
  8163  	dAtA[i] = 0x12
  8164  	if m.Tick != 0 {
  8165  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  8166  		i--
  8167  		dAtA[i] = 0x8
  8168  	}
  8169  	return len(dAtA) - i, nil
  8170  }
  8171  
  8172  func (m *DeletedStore) Marshal() (dAtA []byte, err error) {
  8173  	size := m.Size()
  8174  	dAtA = make([]byte, size)
  8175  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8176  	if err != nil {
  8177  		return nil, err
  8178  	}
  8179  	return dAtA[:n], nil
  8180  }
  8181  
  8182  func (m *DeletedStore) MarshalTo(dAtA []byte) (int, error) {
  8183  	size := m.Size()
  8184  	return m.MarshalToSizedBuffer(dAtA[:size])
  8185  }
  8186  
  8187  func (m *DeletedStore) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8188  	i := len(dAtA)
  8189  	_ = i
  8190  	var l int
  8191  	_ = l
  8192  	if m.XXX_unrecognized != nil {
  8193  		i -= len(m.XXX_unrecognized)
  8194  		copy(dAtA[i:], m.XXX_unrecognized)
  8195  	}
  8196  	if m.DownTime != 0 {
  8197  		i = encodeVarintLogservice(dAtA, i, uint64(m.DownTime))
  8198  		i--
  8199  		dAtA[i] = 0x28
  8200  	}
  8201  	if m.UpTime != 0 {
  8202  		i = encodeVarintLogservice(dAtA, i, uint64(m.UpTime))
  8203  		i--
  8204  		dAtA[i] = 0x20
  8205  	}
  8206  	if len(m.Address) > 0 {
  8207  		i -= len(m.Address)
  8208  		copy(dAtA[i:], m.Address)
  8209  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Address)))
  8210  		i--
  8211  		dAtA[i] = 0x1a
  8212  	}
  8213  	if len(m.StoreType) > 0 {
  8214  		i -= len(m.StoreType)
  8215  		copy(dAtA[i:], m.StoreType)
  8216  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.StoreType)))
  8217  		i--
  8218  		dAtA[i] = 0x12
  8219  	}
  8220  	if len(m.UUID) > 0 {
  8221  		i -= len(m.UUID)
  8222  		copy(dAtA[i:], m.UUID)
  8223  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  8224  		i--
  8225  		dAtA[i] = 0xa
  8226  	}
  8227  	return len(dAtA) - i, nil
  8228  }
  8229  
  8230  func (m *HAKeeperRSMState) Marshal() (dAtA []byte, err error) {
  8231  	size := m.Size()
  8232  	dAtA = make([]byte, size)
  8233  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8234  	if err != nil {
  8235  		return nil, err
  8236  	}
  8237  	return dAtA[:n], nil
  8238  }
  8239  
  8240  func (m *HAKeeperRSMState) MarshalTo(dAtA []byte) (int, error) {
  8241  	size := m.Size()
  8242  	return m.MarshalToSizedBuffer(dAtA[:size])
  8243  }
  8244  
  8245  func (m *HAKeeperRSMState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8246  	i := len(dAtA)
  8247  	_ = i
  8248  	var l int
  8249  	_ = l
  8250  	if m.XXX_unrecognized != nil {
  8251  		i -= len(m.XXX_unrecognized)
  8252  		copy(dAtA[i:], m.XXX_unrecognized)
  8253  	}
  8254  	if len(m.DeletedStores) > 0 {
  8255  		for iNdEx := len(m.DeletedStores) - 1; iNdEx >= 0; iNdEx-- {
  8256  			{
  8257  				size, err := m.DeletedStores[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8258  				if err != nil {
  8259  					return 0, err
  8260  				}
  8261  				i -= size
  8262  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  8263  			}
  8264  			i--
  8265  			dAtA[i] = 0x1
  8266  			i--
  8267  			dAtA[i] = 0x82
  8268  		}
  8269  	}
  8270  	{
  8271  		size, err := m.ProxyState.MarshalToSizedBuffer(dAtA[:i])
  8272  		if err != nil {
  8273  			return 0, err
  8274  		}
  8275  		i -= size
  8276  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8277  	}
  8278  	i--
  8279  	dAtA[i] = 0x7a
  8280  	{
  8281  		size, err := m.TaskTableUser.MarshalToSizedBuffer(dAtA[:i])
  8282  		if err != nil {
  8283  			return 0, err
  8284  		}
  8285  		i -= size
  8286  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8287  	}
  8288  	i--
  8289  	dAtA[i] = 0x72
  8290  	{
  8291  		size, err := m.ClusterInfo.MarshalToSizedBuffer(dAtA[:i])
  8292  		if err != nil {
  8293  			return 0, err
  8294  		}
  8295  		i -= size
  8296  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8297  	}
  8298  	i--
  8299  	dAtA[i] = 0x6a
  8300  	{
  8301  		size, err := m.LogState.MarshalToSizedBuffer(dAtA[:i])
  8302  		if err != nil {
  8303  			return 0, err
  8304  		}
  8305  		i -= size
  8306  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8307  	}
  8308  	i--
  8309  	dAtA[i] = 0x62
  8310  	{
  8311  		size, err := m.TNState.MarshalToSizedBuffer(dAtA[:i])
  8312  		if err != nil {
  8313  			return 0, err
  8314  		}
  8315  		i -= size
  8316  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8317  	}
  8318  	i--
  8319  	dAtA[i] = 0x5a
  8320  	{
  8321  		size, err := m.CNState.MarshalToSizedBuffer(dAtA[:i])
  8322  		if err != nil {
  8323  			return 0, err
  8324  		}
  8325  		i -= size
  8326  		i = encodeVarintLogservice(dAtA, i, uint64(size))
  8327  	}
  8328  	i--
  8329  	dAtA[i] = 0x52
  8330  	if len(m.LogShards) > 0 {
  8331  		for k := range m.LogShards {
  8332  			v := m.LogShards[k]
  8333  			baseI := i
  8334  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  8335  			i--
  8336  			dAtA[i] = 0x10
  8337  			i -= len(k)
  8338  			copy(dAtA[i:], k)
  8339  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8340  			i--
  8341  			dAtA[i] = 0xa
  8342  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8343  			i--
  8344  			dAtA[i] = 0x4a
  8345  		}
  8346  	}
  8347  	if len(m.ScheduleCommands) > 0 {
  8348  		for k := range m.ScheduleCommands {
  8349  			v := m.ScheduleCommands[k]
  8350  			baseI := i
  8351  			{
  8352  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  8353  				if err != nil {
  8354  					return 0, err
  8355  				}
  8356  				i -= size
  8357  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  8358  			}
  8359  			i--
  8360  			dAtA[i] = 0x12
  8361  			i -= len(k)
  8362  			copy(dAtA[i:], k)
  8363  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8364  			i--
  8365  			dAtA[i] = 0xa
  8366  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8367  			i--
  8368  			dAtA[i] = 0x42
  8369  		}
  8370  	}
  8371  	if m.TaskSchedulerState != 0 {
  8372  		i = encodeVarintLogservice(dAtA, i, uint64(m.TaskSchedulerState))
  8373  		i--
  8374  		dAtA[i] = 0x38
  8375  	}
  8376  	if m.State != 0 {
  8377  		i = encodeVarintLogservice(dAtA, i, uint64(m.State))
  8378  		i--
  8379  		dAtA[i] = 0x30
  8380  	}
  8381  	if m.Term != 0 {
  8382  		i = encodeVarintLogservice(dAtA, i, uint64(m.Term))
  8383  		i--
  8384  		dAtA[i] = 0x28
  8385  	}
  8386  	if len(m.NextIDByKey) > 0 {
  8387  		for k := range m.NextIDByKey {
  8388  			v := m.NextIDByKey[k]
  8389  			baseI := i
  8390  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  8391  			i--
  8392  			dAtA[i] = 0x10
  8393  			i -= len(k)
  8394  			copy(dAtA[i:], k)
  8395  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8396  			i--
  8397  			dAtA[i] = 0xa
  8398  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8399  			i--
  8400  			dAtA[i] = 0x22
  8401  		}
  8402  	}
  8403  	if m.NextID != 0 {
  8404  		i = encodeVarintLogservice(dAtA, i, uint64(m.NextID))
  8405  		i--
  8406  		dAtA[i] = 0x18
  8407  	}
  8408  	if m.Tick != 0 {
  8409  		i = encodeVarintLogservice(dAtA, i, uint64(m.Tick))
  8410  		i--
  8411  		dAtA[i] = 0x10
  8412  	}
  8413  	if m.Index != 0 {
  8414  		i = encodeVarintLogservice(dAtA, i, uint64(m.Index))
  8415  		i--
  8416  		dAtA[i] = 0x8
  8417  	}
  8418  	return len(dAtA) - i, nil
  8419  }
  8420  
  8421  func (m *ReplicaInfo) Marshal() (dAtA []byte, err error) {
  8422  	size := m.Size()
  8423  	dAtA = make([]byte, size)
  8424  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8425  	if err != nil {
  8426  		return nil, err
  8427  	}
  8428  	return dAtA[:n], nil
  8429  }
  8430  
  8431  func (m *ReplicaInfo) MarshalTo(dAtA []byte) (int, error) {
  8432  	size := m.Size()
  8433  	return m.MarshalToSizedBuffer(dAtA[:size])
  8434  }
  8435  
  8436  func (m *ReplicaInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8437  	i := len(dAtA)
  8438  	_ = i
  8439  	var l int
  8440  	_ = l
  8441  	if m.XXX_unrecognized != nil {
  8442  		i -= len(m.XXX_unrecognized)
  8443  		copy(dAtA[i:], m.XXX_unrecognized)
  8444  	}
  8445  	if len(m.ServiceAddress) > 0 {
  8446  		i -= len(m.ServiceAddress)
  8447  		copy(dAtA[i:], m.ServiceAddress)
  8448  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.ServiceAddress)))
  8449  		i--
  8450  		dAtA[i] = 0x12
  8451  	}
  8452  	if len(m.UUID) > 0 {
  8453  		i -= len(m.UUID)
  8454  		copy(dAtA[i:], m.UUID)
  8455  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.UUID)))
  8456  		i--
  8457  		dAtA[i] = 0xa
  8458  	}
  8459  	return len(dAtA) - i, nil
  8460  }
  8461  
  8462  func (m *ShardInfoQueryResult) Marshal() (dAtA []byte, err error) {
  8463  	size := m.Size()
  8464  	dAtA = make([]byte, size)
  8465  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8466  	if err != nil {
  8467  		return nil, err
  8468  	}
  8469  	return dAtA[:n], nil
  8470  }
  8471  
  8472  func (m *ShardInfoQueryResult) MarshalTo(dAtA []byte) (int, error) {
  8473  	size := m.Size()
  8474  	return m.MarshalToSizedBuffer(dAtA[:size])
  8475  }
  8476  
  8477  func (m *ShardInfoQueryResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8478  	i := len(dAtA)
  8479  	_ = i
  8480  	var l int
  8481  	_ = l
  8482  	if m.XXX_unrecognized != nil {
  8483  		i -= len(m.XXX_unrecognized)
  8484  		copy(dAtA[i:], m.XXX_unrecognized)
  8485  	}
  8486  	if m.Term != 0 {
  8487  		i = encodeVarintLogservice(dAtA, i, uint64(m.Term))
  8488  		i--
  8489  		dAtA[i] = 0x28
  8490  	}
  8491  	if m.LeaderID != 0 {
  8492  		i = encodeVarintLogservice(dAtA, i, uint64(m.LeaderID))
  8493  		i--
  8494  		dAtA[i] = 0x20
  8495  	}
  8496  	if m.Epoch != 0 {
  8497  		i = encodeVarintLogservice(dAtA, i, uint64(m.Epoch))
  8498  		i--
  8499  		dAtA[i] = 0x18
  8500  	}
  8501  	if len(m.Replicas) > 0 {
  8502  		for k := range m.Replicas {
  8503  			v := m.Replicas[k]
  8504  			baseI := i
  8505  			{
  8506  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  8507  				if err != nil {
  8508  					return 0, err
  8509  				}
  8510  				i -= size
  8511  				i = encodeVarintLogservice(dAtA, i, uint64(size))
  8512  			}
  8513  			i--
  8514  			dAtA[i] = 0x12
  8515  			i = encodeVarintLogservice(dAtA, i, uint64(k))
  8516  			i--
  8517  			dAtA[i] = 0x8
  8518  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8519  			i--
  8520  			dAtA[i] = 0x12
  8521  		}
  8522  	}
  8523  	if m.ShardID != 0 {
  8524  		i = encodeVarintLogservice(dAtA, i, uint64(m.ShardID))
  8525  		i--
  8526  		dAtA[i] = 0x8
  8527  	}
  8528  	return len(dAtA) - i, nil
  8529  }
  8530  
  8531  func (m *BackupData) Marshal() (dAtA []byte, err error) {
  8532  	size := m.Size()
  8533  	dAtA = make([]byte, size)
  8534  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8535  	if err != nil {
  8536  		return nil, err
  8537  	}
  8538  	return dAtA[:n], nil
  8539  }
  8540  
  8541  func (m *BackupData) MarshalTo(dAtA []byte) (int, error) {
  8542  	size := m.Size()
  8543  	return m.MarshalToSizedBuffer(dAtA[:size])
  8544  }
  8545  
  8546  func (m *BackupData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8547  	i := len(dAtA)
  8548  	_ = i
  8549  	var l int
  8550  	_ = l
  8551  	if m.XXX_unrecognized != nil {
  8552  		i -= len(m.XXX_unrecognized)
  8553  		copy(dAtA[i:], m.XXX_unrecognized)
  8554  	}
  8555  	if len(m.NextIDByKey) > 0 {
  8556  		for k := range m.NextIDByKey {
  8557  			v := m.NextIDByKey[k]
  8558  			baseI := i
  8559  			i = encodeVarintLogservice(dAtA, i, uint64(v))
  8560  			i--
  8561  			dAtA[i] = 0x10
  8562  			i -= len(k)
  8563  			copy(dAtA[i:], k)
  8564  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8565  			i--
  8566  			dAtA[i] = 0xa
  8567  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8568  			i--
  8569  			dAtA[i] = 0x12
  8570  		}
  8571  	}
  8572  	if m.NextID != 0 {
  8573  		i = encodeVarintLogservice(dAtA, i, uint64(m.NextID))
  8574  		i--
  8575  		dAtA[i] = 0x8
  8576  	}
  8577  	return len(dAtA) - i, nil
  8578  }
  8579  
  8580  func (m *ConfigItem) Marshal() (dAtA []byte, err error) {
  8581  	size := m.Size()
  8582  	dAtA = make([]byte, size)
  8583  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8584  	if err != nil {
  8585  		return nil, err
  8586  	}
  8587  	return dAtA[:n], nil
  8588  }
  8589  
  8590  func (m *ConfigItem) MarshalTo(dAtA []byte) (int, error) {
  8591  	size := m.Size()
  8592  	return m.MarshalToSizedBuffer(dAtA[:size])
  8593  }
  8594  
  8595  func (m *ConfigItem) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8596  	i := len(dAtA)
  8597  	_ = i
  8598  	var l int
  8599  	_ = l
  8600  	if m.XXX_unrecognized != nil {
  8601  		i -= len(m.XXX_unrecognized)
  8602  		copy(dAtA[i:], m.XXX_unrecognized)
  8603  	}
  8604  	if len(m.Internal) > 0 {
  8605  		i -= len(m.Internal)
  8606  		copy(dAtA[i:], m.Internal)
  8607  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Internal)))
  8608  		i--
  8609  		dAtA[i] = 0x22
  8610  	}
  8611  	if len(m.DefaultValue) > 0 {
  8612  		i -= len(m.DefaultValue)
  8613  		copy(dAtA[i:], m.DefaultValue)
  8614  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.DefaultValue)))
  8615  		i--
  8616  		dAtA[i] = 0x1a
  8617  	}
  8618  	if len(m.CurrentValue) > 0 {
  8619  		i -= len(m.CurrentValue)
  8620  		copy(dAtA[i:], m.CurrentValue)
  8621  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.CurrentValue)))
  8622  		i--
  8623  		dAtA[i] = 0x12
  8624  	}
  8625  	if len(m.Name) > 0 {
  8626  		i -= len(m.Name)
  8627  		copy(dAtA[i:], m.Name)
  8628  		i = encodeVarintLogservice(dAtA, i, uint64(len(m.Name)))
  8629  		i--
  8630  		dAtA[i] = 0xa
  8631  	}
  8632  	return len(dAtA) - i, nil
  8633  }
  8634  
  8635  func (m *ConfigData) Marshal() (dAtA []byte, err error) {
  8636  	size := m.Size()
  8637  	dAtA = make([]byte, size)
  8638  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8639  	if err != nil {
  8640  		return nil, err
  8641  	}
  8642  	return dAtA[:n], nil
  8643  }
  8644  
  8645  func (m *ConfigData) MarshalTo(dAtA []byte) (int, error) {
  8646  	size := m.Size()
  8647  	return m.MarshalToSizedBuffer(dAtA[:size])
  8648  }
  8649  
  8650  func (m *ConfigData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8651  	i := len(dAtA)
  8652  	_ = i
  8653  	var l int
  8654  	_ = l
  8655  	if m.XXX_unrecognized != nil {
  8656  		i -= len(m.XXX_unrecognized)
  8657  		copy(dAtA[i:], m.XXX_unrecognized)
  8658  	}
  8659  	if len(m.Content) > 0 {
  8660  		for k := range m.Content {
  8661  			v := m.Content[k]
  8662  			baseI := i
  8663  			if v != nil {
  8664  				{
  8665  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  8666  					if err != nil {
  8667  						return 0, err
  8668  					}
  8669  					i -= size
  8670  					i = encodeVarintLogservice(dAtA, i, uint64(size))
  8671  				}
  8672  				i--
  8673  				dAtA[i] = 0x12
  8674  			}
  8675  			i -= len(k)
  8676  			copy(dAtA[i:], k)
  8677  			i = encodeVarintLogservice(dAtA, i, uint64(len(k)))
  8678  			i--
  8679  			dAtA[i] = 0xa
  8680  			i = encodeVarintLogservice(dAtA, i, uint64(baseI-i))
  8681  			i--
  8682  			dAtA[i] = 0xa
  8683  		}
  8684  	}
  8685  	return len(dAtA) - i, nil
  8686  }
  8687  
  8688  func encodeVarintLogservice(dAtA []byte, offset int, v uint64) int {
  8689  	offset -= sovLogservice(v)
  8690  	base := offset
  8691  	for v >= 1<<7 {
  8692  		dAtA[offset] = uint8(v&0x7f | 0x80)
  8693  		v >>= 7
  8694  		offset++
  8695  	}
  8696  	dAtA[offset] = uint8(v)
  8697  	return base
  8698  }
  8699  func (m *CNStore) Size() (n int) {
  8700  	if m == nil {
  8701  		return 0
  8702  	}
  8703  	var l int
  8704  	_ = l
  8705  	l = len(m.UUID)
  8706  	if l > 0 {
  8707  		n += 1 + l + sovLogservice(uint64(l))
  8708  	}
  8709  	l = len(m.ServiceAddress)
  8710  	if l > 0 {
  8711  		n += 1 + l + sovLogservice(uint64(l))
  8712  	}
  8713  	l = len(m.SQLAddress)
  8714  	if l > 0 {
  8715  		n += 1 + l + sovLogservice(uint64(l))
  8716  	}
  8717  	l = len(m.LockServiceAddress)
  8718  	if l > 0 {
  8719  		n += 1 + l + sovLogservice(uint64(l))
  8720  	}
  8721  	if m.Role != 0 {
  8722  		n += 1 + sovLogservice(uint64(m.Role))
  8723  	}
  8724  	if m.Tick != 0 {
  8725  		n += 1 + sovLogservice(uint64(m.Tick))
  8726  	}
  8727  	if m.State != 0 {
  8728  		n += 1 + sovLogservice(uint64(m.State))
  8729  	}
  8730  	if len(m.Labels) > 0 {
  8731  		for k, v := range m.Labels {
  8732  			_ = k
  8733  			_ = v
  8734  			l = v.Size()
  8735  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  8736  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  8737  		}
  8738  	}
  8739  	if m.WorkState != 0 {
  8740  		n += 1 + sovLogservice(uint64(m.WorkState))
  8741  	}
  8742  	l = len(m.QueryAddress)
  8743  	if l > 0 {
  8744  		n += 1 + l + sovLogservice(uint64(l))
  8745  	}
  8746  	if m.ConfigData != nil {
  8747  		l = m.ConfigData.Size()
  8748  		n += 1 + l + sovLogservice(uint64(l))
  8749  	}
  8750  	l = m.Resource.Size()
  8751  	n += 1 + l + sovLogservice(uint64(l))
  8752  	if m.UpTime != 0 {
  8753  		n += 1 + sovLogservice(uint64(m.UpTime))
  8754  	}
  8755  	if m.XXX_unrecognized != nil {
  8756  		n += len(m.XXX_unrecognized)
  8757  	}
  8758  	return n
  8759  }
  8760  
  8761  func (m *TNStore) Size() (n int) {
  8762  	if m == nil {
  8763  		return 0
  8764  	}
  8765  	var l int
  8766  	_ = l
  8767  	l = len(m.UUID)
  8768  	if l > 0 {
  8769  		n += 1 + l + sovLogservice(uint64(l))
  8770  	}
  8771  	l = len(m.ServiceAddress)
  8772  	if l > 0 {
  8773  		n += 1 + l + sovLogservice(uint64(l))
  8774  	}
  8775  	if m.Tick != 0 {
  8776  		n += 1 + sovLogservice(uint64(m.Tick))
  8777  	}
  8778  	if m.State != 0 {
  8779  		n += 1 + sovLogservice(uint64(m.State))
  8780  	}
  8781  	if len(m.Shards) > 0 {
  8782  		for _, e := range m.Shards {
  8783  			l = e.Size()
  8784  			n += 1 + l + sovLogservice(uint64(l))
  8785  		}
  8786  	}
  8787  	l = len(m.LogtailServerAddress)
  8788  	if l > 0 {
  8789  		n += 1 + l + sovLogservice(uint64(l))
  8790  	}
  8791  	l = len(m.LockServiceAddress)
  8792  	if l > 0 {
  8793  		n += 1 + l + sovLogservice(uint64(l))
  8794  	}
  8795  	if m.ConfigData != nil {
  8796  		l = m.ConfigData.Size()
  8797  		n += 1 + l + sovLogservice(uint64(l))
  8798  	}
  8799  	l = len(m.QueryAddress)
  8800  	if l > 0 {
  8801  		n += 1 + l + sovLogservice(uint64(l))
  8802  	}
  8803  	if m.XXX_unrecognized != nil {
  8804  		n += len(m.XXX_unrecognized)
  8805  	}
  8806  	return n
  8807  }
  8808  
  8809  func (m *LogStore) Size() (n int) {
  8810  	if m == nil {
  8811  		return 0
  8812  	}
  8813  	var l int
  8814  	_ = l
  8815  	l = len(m.UUID)
  8816  	if l > 0 {
  8817  		n += 1 + l + sovLogservice(uint64(l))
  8818  	}
  8819  	l = len(m.ServiceAddress)
  8820  	if l > 0 {
  8821  		n += 1 + l + sovLogservice(uint64(l))
  8822  	}
  8823  	if m.Tick != 0 {
  8824  		n += 1 + sovLogservice(uint64(m.Tick))
  8825  	}
  8826  	if m.State != 0 {
  8827  		n += 1 + sovLogservice(uint64(m.State))
  8828  	}
  8829  	if len(m.Replicas) > 0 {
  8830  		for _, e := range m.Replicas {
  8831  			l = e.Size()
  8832  			n += 1 + l + sovLogservice(uint64(l))
  8833  		}
  8834  	}
  8835  	if m.ConfigData != nil {
  8836  		l = m.ConfigData.Size()
  8837  		n += 1 + l + sovLogservice(uint64(l))
  8838  	}
  8839  	if m.XXX_unrecognized != nil {
  8840  		n += len(m.XXX_unrecognized)
  8841  	}
  8842  	return n
  8843  }
  8844  
  8845  func (m *LogShardInfo) Size() (n int) {
  8846  	if m == nil {
  8847  		return 0
  8848  	}
  8849  	var l int
  8850  	_ = l
  8851  	if m.ShardID != 0 {
  8852  		n += 1 + sovLogservice(uint64(m.ShardID))
  8853  	}
  8854  	if len(m.Replicas) > 0 {
  8855  		for k, v := range m.Replicas {
  8856  			_ = k
  8857  			_ = v
  8858  			mapEntrySize := 1 + sovLogservice(uint64(k)) + 1 + len(v) + sovLogservice(uint64(len(v)))
  8859  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  8860  		}
  8861  	}
  8862  	if m.Epoch != 0 {
  8863  		n += 1 + sovLogservice(uint64(m.Epoch))
  8864  	}
  8865  	if m.LeaderID != 0 {
  8866  		n += 1 + sovLogservice(uint64(m.LeaderID))
  8867  	}
  8868  	if m.Term != 0 {
  8869  		n += 1 + sovLogservice(uint64(m.Term))
  8870  	}
  8871  	if m.XXX_unrecognized != nil {
  8872  		n += len(m.XXX_unrecognized)
  8873  	}
  8874  	return n
  8875  }
  8876  
  8877  func (m *LogReplicaInfo) Size() (n int) {
  8878  	if m == nil {
  8879  		return 0
  8880  	}
  8881  	var l int
  8882  	_ = l
  8883  	l = m.LogShardInfo.Size()
  8884  	n += 1 + l + sovLogservice(uint64(l))
  8885  	if m.ReplicaID != 0 {
  8886  		n += 1 + sovLogservice(uint64(m.ReplicaID))
  8887  	}
  8888  	if m.XXX_unrecognized != nil {
  8889  		n += len(m.XXX_unrecognized)
  8890  	}
  8891  	return n
  8892  }
  8893  
  8894  func (m *Resource) Size() (n int) {
  8895  	if m == nil {
  8896  		return 0
  8897  	}
  8898  	var l int
  8899  	_ = l
  8900  	if m.CPUTotal != 0 {
  8901  		n += 1 + sovLogservice(uint64(m.CPUTotal))
  8902  	}
  8903  	if m.CPUAvailable != 0 {
  8904  		n += 9
  8905  	}
  8906  	if m.MemTotal != 0 {
  8907  		n += 1 + sovLogservice(uint64(m.MemTotal))
  8908  	}
  8909  	if m.MemAvailable != 0 {
  8910  		n += 1 + sovLogservice(uint64(m.MemAvailable))
  8911  	}
  8912  	if m.XXX_unrecognized != nil {
  8913  		n += len(m.XXX_unrecognized)
  8914  	}
  8915  	return n
  8916  }
  8917  
  8918  func (m *CNStoreHeartbeat) Size() (n int) {
  8919  	if m == nil {
  8920  		return 0
  8921  	}
  8922  	var l int
  8923  	_ = l
  8924  	l = len(m.UUID)
  8925  	if l > 0 {
  8926  		n += 1 + l + sovLogservice(uint64(l))
  8927  	}
  8928  	l = len(m.ServiceAddress)
  8929  	if l > 0 {
  8930  		n += 1 + l + sovLogservice(uint64(l))
  8931  	}
  8932  	l = len(m.SQLAddress)
  8933  	if l > 0 {
  8934  		n += 1 + l + sovLogservice(uint64(l))
  8935  	}
  8936  	l = len(m.LockServiceAddress)
  8937  	if l > 0 {
  8938  		n += 1 + l + sovLogservice(uint64(l))
  8939  	}
  8940  	if m.Role != 0 {
  8941  		n += 1 + sovLogservice(uint64(m.Role))
  8942  	}
  8943  	if m.TaskServiceCreated {
  8944  		n += 2
  8945  	}
  8946  	l = len(m.QueryAddress)
  8947  	if l > 0 {
  8948  		n += 1 + l + sovLogservice(uint64(l))
  8949  	}
  8950  	l = len(m.InitWorkState)
  8951  	if l > 0 {
  8952  		n += 1 + l + sovLogservice(uint64(l))
  8953  	}
  8954  	l = len(m.GossipAddress)
  8955  	if l > 0 {
  8956  		n += 1 + l + sovLogservice(uint64(l))
  8957  	}
  8958  	if m.GossipJoined {
  8959  		n += 2
  8960  	}
  8961  	if m.ConfigData != nil {
  8962  		l = m.ConfigData.Size()
  8963  		n += 1 + l + sovLogservice(uint64(l))
  8964  	}
  8965  	l = m.Resource.Size()
  8966  	n += 1 + l + sovLogservice(uint64(l))
  8967  	if m.XXX_unrecognized != nil {
  8968  		n += len(m.XXX_unrecognized)
  8969  	}
  8970  	return n
  8971  }
  8972  
  8973  func (m *CNAllocateID) Size() (n int) {
  8974  	if m == nil {
  8975  		return 0
  8976  	}
  8977  	var l int
  8978  	_ = l
  8979  	l = len(m.Key)
  8980  	if l > 0 {
  8981  		n += 1 + l + sovLogservice(uint64(l))
  8982  	}
  8983  	if m.Batch != 0 {
  8984  		n += 1 + sovLogservice(uint64(m.Batch))
  8985  	}
  8986  	if m.XXX_unrecognized != nil {
  8987  		n += len(m.XXX_unrecognized)
  8988  	}
  8989  	return n
  8990  }
  8991  
  8992  func (m *LogStoreHeartbeat) Size() (n int) {
  8993  	if m == nil {
  8994  		return 0
  8995  	}
  8996  	var l int
  8997  	_ = l
  8998  	l = len(m.UUID)
  8999  	if l > 0 {
  9000  		n += 1 + l + sovLogservice(uint64(l))
  9001  	}
  9002  	l = len(m.RaftAddress)
  9003  	if l > 0 {
  9004  		n += 1 + l + sovLogservice(uint64(l))
  9005  	}
  9006  	l = len(m.ServiceAddress)
  9007  	if l > 0 {
  9008  		n += 1 + l + sovLogservice(uint64(l))
  9009  	}
  9010  	l = len(m.GossipAddress)
  9011  	if l > 0 {
  9012  		n += 1 + l + sovLogservice(uint64(l))
  9013  	}
  9014  	if len(m.Replicas) > 0 {
  9015  		for _, e := range m.Replicas {
  9016  			l = e.Size()
  9017  			n += 1 + l + sovLogservice(uint64(l))
  9018  		}
  9019  	}
  9020  	if m.TaskServiceCreated {
  9021  		n += 2
  9022  	}
  9023  	if m.ConfigData != nil {
  9024  		l = m.ConfigData.Size()
  9025  		n += 1 + l + sovLogservice(uint64(l))
  9026  	}
  9027  	if m.XXX_unrecognized != nil {
  9028  		n += len(m.XXX_unrecognized)
  9029  	}
  9030  	return n
  9031  }
  9032  
  9033  func (m *TNShardInfo) Size() (n int) {
  9034  	if m == nil {
  9035  		return 0
  9036  	}
  9037  	var l int
  9038  	_ = l
  9039  	if m.ShardID != 0 {
  9040  		n += 1 + sovLogservice(uint64(m.ShardID))
  9041  	}
  9042  	if m.ReplicaID != 0 {
  9043  		n += 1 + sovLogservice(uint64(m.ReplicaID))
  9044  	}
  9045  	if m.XXX_unrecognized != nil {
  9046  		n += len(m.XXX_unrecognized)
  9047  	}
  9048  	return n
  9049  }
  9050  
  9051  func (m *TNStoreHeartbeat) Size() (n int) {
  9052  	if m == nil {
  9053  		return 0
  9054  	}
  9055  	var l int
  9056  	_ = l
  9057  	l = len(m.UUID)
  9058  	if l > 0 {
  9059  		n += 1 + l + sovLogservice(uint64(l))
  9060  	}
  9061  	l = len(m.ServiceAddress)
  9062  	if l > 0 {
  9063  		n += 1 + l + sovLogservice(uint64(l))
  9064  	}
  9065  	if len(m.Shards) > 0 {
  9066  		for _, e := range m.Shards {
  9067  			l = e.Size()
  9068  			n += 1 + l + sovLogservice(uint64(l))
  9069  		}
  9070  	}
  9071  	if m.TaskServiceCreated {
  9072  		n += 2
  9073  	}
  9074  	l = len(m.LogtailServerAddress)
  9075  	if l > 0 {
  9076  		n += 1 + l + sovLogservice(uint64(l))
  9077  	}
  9078  	l = len(m.LockServiceAddress)
  9079  	if l > 0 {
  9080  		n += 1 + l + sovLogservice(uint64(l))
  9081  	}
  9082  	if m.ConfigData != nil {
  9083  		l = m.ConfigData.Size()
  9084  		n += 1 + l + sovLogservice(uint64(l))
  9085  	}
  9086  	l = len(m.QueryAddress)
  9087  	if l > 0 {
  9088  		n += 1 + l + sovLogservice(uint64(l))
  9089  	}
  9090  	if m.XXX_unrecognized != nil {
  9091  		n += len(m.XXX_unrecognized)
  9092  	}
  9093  	return n
  9094  }
  9095  
  9096  func (m *RSMState) Size() (n int) {
  9097  	if m == nil {
  9098  		return 0
  9099  	}
  9100  	var l int
  9101  	_ = l
  9102  	if m.Tso != 0 {
  9103  		n += 1 + sovLogservice(uint64(m.Tso))
  9104  	}
  9105  	if m.Index != 0 {
  9106  		n += 1 + sovLogservice(uint64(m.Index))
  9107  	}
  9108  	if m.LeaseHolderID != 0 {
  9109  		n += 1 + sovLogservice(uint64(m.LeaseHolderID))
  9110  	}
  9111  	if m.TruncatedLsn != 0 {
  9112  		n += 1 + sovLogservice(uint64(m.TruncatedLsn))
  9113  	}
  9114  	if len(m.LeaseHistory) > 0 {
  9115  		for k, v := range m.LeaseHistory {
  9116  			_ = k
  9117  			_ = v
  9118  			mapEntrySize := 1 + sovLogservice(uint64(k)) + 1 + sovLogservice(uint64(v))
  9119  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9120  		}
  9121  	}
  9122  	if m.XXX_unrecognized != nil {
  9123  		n += len(m.XXX_unrecognized)
  9124  	}
  9125  	return n
  9126  }
  9127  
  9128  func (m *LogRecord) Size() (n int) {
  9129  	if m == nil {
  9130  		return 0
  9131  	}
  9132  	var l int
  9133  	_ = l
  9134  	if m.Lsn != 0 {
  9135  		n += 1 + sovLogservice(uint64(m.Lsn))
  9136  	}
  9137  	if m.Type != 0 {
  9138  		n += 1 + sovLogservice(uint64(m.Type))
  9139  	}
  9140  	l = len(m.Data)
  9141  	if l > 0 {
  9142  		n += 1 + l + sovLogservice(uint64(l))
  9143  	}
  9144  	if m.XXX_unrecognized != nil {
  9145  		n += len(m.XXX_unrecognized)
  9146  	}
  9147  	return n
  9148  }
  9149  
  9150  func (m *LogRequest) Size() (n int) {
  9151  	if m == nil {
  9152  		return 0
  9153  	}
  9154  	var l int
  9155  	_ = l
  9156  	l = len(m.Name)
  9157  	if l > 0 {
  9158  		n += 1 + l + sovLogservice(uint64(l))
  9159  	}
  9160  	if m.ShardID != 0 {
  9161  		n += 1 + sovLogservice(uint64(m.ShardID))
  9162  	}
  9163  	if m.Lsn != 0 {
  9164  		n += 1 + sovLogservice(uint64(m.Lsn))
  9165  	}
  9166  	if m.MaxSize != 0 {
  9167  		n += 1 + sovLogservice(uint64(m.MaxSize))
  9168  	}
  9169  	if m.TNShardID != 0 {
  9170  		n += 1 + sovLogservice(uint64(m.TNShardID))
  9171  	}
  9172  	if m.TNID != 0 {
  9173  		n += 1 + sovLogservice(uint64(m.TNID))
  9174  	}
  9175  	if m.XXX_unrecognized != nil {
  9176  		n += len(m.XXX_unrecognized)
  9177  	}
  9178  	return n
  9179  }
  9180  
  9181  func (m *TsoRequest) Size() (n int) {
  9182  	if m == nil {
  9183  		return 0
  9184  	}
  9185  	var l int
  9186  	_ = l
  9187  	if m.Count != 0 {
  9188  		n += 1 + sovLogservice(uint64(m.Count))
  9189  	}
  9190  	if m.XXX_unrecognized != nil {
  9191  		n += len(m.XXX_unrecognized)
  9192  	}
  9193  	return n
  9194  }
  9195  
  9196  func (m *CNStoreLabel) Size() (n int) {
  9197  	if m == nil {
  9198  		return 0
  9199  	}
  9200  	var l int
  9201  	_ = l
  9202  	l = len(m.UUID)
  9203  	if l > 0 {
  9204  		n += 1 + l + sovLogservice(uint64(l))
  9205  	}
  9206  	if m.Operation != 0 {
  9207  		n += 1 + sovLogservice(uint64(m.Operation))
  9208  	}
  9209  	if len(m.Labels) > 0 {
  9210  		for k, v := range m.Labels {
  9211  			_ = k
  9212  			_ = v
  9213  			l = v.Size()
  9214  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9215  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9216  		}
  9217  	}
  9218  	if m.XXX_unrecognized != nil {
  9219  		n += len(m.XXX_unrecognized)
  9220  	}
  9221  	return n
  9222  }
  9223  
  9224  func (m *CNWorkState) Size() (n int) {
  9225  	if m == nil {
  9226  		return 0
  9227  	}
  9228  	var l int
  9229  	_ = l
  9230  	l = len(m.UUID)
  9231  	if l > 0 {
  9232  		n += 1 + l + sovLogservice(uint64(l))
  9233  	}
  9234  	if m.State != 0 {
  9235  		n += 1 + sovLogservice(uint64(m.State))
  9236  	}
  9237  	if m.XXX_unrecognized != nil {
  9238  		n += len(m.XXX_unrecognized)
  9239  	}
  9240  	return n
  9241  }
  9242  
  9243  func (m *CNStateLabel) Size() (n int) {
  9244  	if m == nil {
  9245  		return 0
  9246  	}
  9247  	var l int
  9248  	_ = l
  9249  	l = len(m.UUID)
  9250  	if l > 0 {
  9251  		n += 1 + l + sovLogservice(uint64(l))
  9252  	}
  9253  	if m.State != 0 {
  9254  		n += 1 + sovLogservice(uint64(m.State))
  9255  	}
  9256  	if len(m.Labels) > 0 {
  9257  		for k, v := range m.Labels {
  9258  			_ = k
  9259  			_ = v
  9260  			l = v.Size()
  9261  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9262  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9263  		}
  9264  	}
  9265  	if m.XXX_unrecognized != nil {
  9266  		n += len(m.XXX_unrecognized)
  9267  	}
  9268  	return n
  9269  }
  9270  
  9271  func (m *Request) Size() (n int) {
  9272  	if m == nil {
  9273  		return 0
  9274  	}
  9275  	var l int
  9276  	_ = l
  9277  	if m.RequestID != 0 {
  9278  		n += 1 + sovLogservice(uint64(m.RequestID))
  9279  	}
  9280  	if m.Method != 0 {
  9281  		n += 1 + sovLogservice(uint64(m.Method))
  9282  	}
  9283  	l = m.LogRequest.Size()
  9284  	n += 1 + l + sovLogservice(uint64(l))
  9285  	if m.LogHeartbeat != nil {
  9286  		l = m.LogHeartbeat.Size()
  9287  		n += 1 + l + sovLogservice(uint64(l))
  9288  	}
  9289  	if m.CNHeartbeat != nil {
  9290  		l = m.CNHeartbeat.Size()
  9291  		n += 1 + l + sovLogservice(uint64(l))
  9292  	}
  9293  	if m.TNHeartbeat != nil {
  9294  		l = m.TNHeartbeat.Size()
  9295  		n += 1 + l + sovLogservice(uint64(l))
  9296  	}
  9297  	if m.TsoRequest != nil {
  9298  		l = m.TsoRequest.Size()
  9299  		n += 1 + l + sovLogservice(uint64(l))
  9300  	}
  9301  	if m.CNAllocateID != nil {
  9302  		l = m.CNAllocateID.Size()
  9303  		n += 1 + l + sovLogservice(uint64(l))
  9304  	}
  9305  	if m.CNStoreLabel != nil {
  9306  		l = m.CNStoreLabel.Size()
  9307  		n += 1 + l + sovLogservice(uint64(l))
  9308  	}
  9309  	if m.CNWorkState != nil {
  9310  		l = m.CNWorkState.Size()
  9311  		n += 1 + l + sovLogservice(uint64(l))
  9312  	}
  9313  	if m.CNStateLabel != nil {
  9314  		l = m.CNStateLabel.Size()
  9315  		n += 1 + l + sovLogservice(uint64(l))
  9316  	}
  9317  	if m.DeleteCNStore != nil {
  9318  		l = m.DeleteCNStore.Size()
  9319  		n += 1 + l + sovLogservice(uint64(l))
  9320  	}
  9321  	if m.ProxyHeartbeat != nil {
  9322  		l = m.ProxyHeartbeat.Size()
  9323  		n += 1 + l + sovLogservice(uint64(l))
  9324  	}
  9325  	if m.XXX_unrecognized != nil {
  9326  		n += len(m.XXX_unrecognized)
  9327  	}
  9328  	return n
  9329  }
  9330  
  9331  func (m *LogResponse) Size() (n int) {
  9332  	if m == nil {
  9333  		return 0
  9334  	}
  9335  	var l int
  9336  	_ = l
  9337  	if m.ShardID != 0 {
  9338  		n += 1 + sovLogservice(uint64(m.ShardID))
  9339  	}
  9340  	if m.Lsn != 0 {
  9341  		n += 1 + sovLogservice(uint64(m.Lsn))
  9342  	}
  9343  	if m.LastLsn != 0 {
  9344  		n += 1 + sovLogservice(uint64(m.LastLsn))
  9345  	}
  9346  	if m.XXX_unrecognized != nil {
  9347  		n += len(m.XXX_unrecognized)
  9348  	}
  9349  	return n
  9350  }
  9351  
  9352  func (m *AllocateIDResponse) Size() (n int) {
  9353  	if m == nil {
  9354  		return 0
  9355  	}
  9356  	var l int
  9357  	_ = l
  9358  	if m.FirstID != 0 {
  9359  		n += 1 + sovLogservice(uint64(m.FirstID))
  9360  	}
  9361  	if m.XXX_unrecognized != nil {
  9362  		n += len(m.XXX_unrecognized)
  9363  	}
  9364  	return n
  9365  }
  9366  
  9367  func (m *Response) Size() (n int) {
  9368  	if m == nil {
  9369  		return 0
  9370  	}
  9371  	var l int
  9372  	_ = l
  9373  	if m.RequestID != 0 {
  9374  		n += 1 + sovLogservice(uint64(m.RequestID))
  9375  	}
  9376  	if m.Method != 0 {
  9377  		n += 1 + sovLogservice(uint64(m.Method))
  9378  	}
  9379  	if m.ErrorCode != 0 {
  9380  		n += 1 + sovLogservice(uint64(m.ErrorCode))
  9381  	}
  9382  	l = len(m.ErrorMessage)
  9383  	if l > 0 {
  9384  		n += 1 + l + sovLogservice(uint64(l))
  9385  	}
  9386  	if m.IsHAKeeper {
  9387  		n += 2
  9388  	}
  9389  	l = m.LogResponse.Size()
  9390  	n += 1 + l + sovLogservice(uint64(l))
  9391  	if m.CommandBatch != nil {
  9392  		l = m.CommandBatch.Size()
  9393  		n += 1 + l + sovLogservice(uint64(l))
  9394  	}
  9395  	if m.TsoResponse != nil {
  9396  		l = m.TsoResponse.Size()
  9397  		n += 1 + l + sovLogservice(uint64(l))
  9398  	}
  9399  	if m.ClusterDetails != nil {
  9400  		l = m.ClusterDetails.Size()
  9401  		n += 1 + l + sovLogservice(uint64(l))
  9402  	}
  9403  	if m.ShardInfo != nil {
  9404  		l = m.ShardInfo.Size()
  9405  		n += 1 + l + sovLogservice(uint64(l))
  9406  	}
  9407  	if m.AllocateID != nil {
  9408  		l = m.AllocateID.Size()
  9409  		n += 1 + l + sovLogservice(uint64(l))
  9410  	}
  9411  	if m.CheckerState != nil {
  9412  		l = m.CheckerState.Size()
  9413  		n += 1 + l + sovLogservice(uint64(l))
  9414  	}
  9415  	if m.XXX_unrecognized != nil {
  9416  		n += len(m.XXX_unrecognized)
  9417  	}
  9418  	return n
  9419  }
  9420  
  9421  func (m *LogRecordResponse) Size() (n int) {
  9422  	if m == nil {
  9423  		return 0
  9424  	}
  9425  	var l int
  9426  	_ = l
  9427  	if len(m.Records) > 0 {
  9428  		for _, e := range m.Records {
  9429  			l = e.Size()
  9430  			n += 1 + l + sovLogservice(uint64(l))
  9431  		}
  9432  	}
  9433  	if m.XXX_unrecognized != nil {
  9434  		n += len(m.XXX_unrecognized)
  9435  	}
  9436  	return n
  9437  }
  9438  
  9439  func (m *TsoResponse) Size() (n int) {
  9440  	if m == nil {
  9441  		return 0
  9442  	}
  9443  	var l int
  9444  	_ = l
  9445  	if m.Value != 0 {
  9446  		n += 1 + sovLogservice(uint64(m.Value))
  9447  	}
  9448  	if m.XXX_unrecognized != nil {
  9449  		n += len(m.XXX_unrecognized)
  9450  	}
  9451  	return n
  9452  }
  9453  
  9454  func (m *TaskTableUser) Size() (n int) {
  9455  	if m == nil {
  9456  		return 0
  9457  	}
  9458  	var l int
  9459  	_ = l
  9460  	l = len(m.Username)
  9461  	if l > 0 {
  9462  		n += 1 + l + sovLogservice(uint64(l))
  9463  	}
  9464  	l = len(m.Password)
  9465  	if l > 0 {
  9466  		n += 1 + l + sovLogservice(uint64(l))
  9467  	}
  9468  	if m.XXX_unrecognized != nil {
  9469  		n += len(m.XXX_unrecognized)
  9470  	}
  9471  	return n
  9472  }
  9473  
  9474  func (m *Replica) Size() (n int) {
  9475  	if m == nil {
  9476  		return 0
  9477  	}
  9478  	var l int
  9479  	_ = l
  9480  	l = len(m.UUID)
  9481  	if l > 0 {
  9482  		n += 1 + l + sovLogservice(uint64(l))
  9483  	}
  9484  	if m.ShardID != 0 {
  9485  		n += 1 + sovLogservice(uint64(m.ShardID))
  9486  	}
  9487  	if m.ReplicaID != 0 {
  9488  		n += 1 + sovLogservice(uint64(m.ReplicaID))
  9489  	}
  9490  	if m.Epoch != 0 {
  9491  		n += 1 + sovLogservice(uint64(m.Epoch))
  9492  	}
  9493  	if m.LogShardID != 0 {
  9494  		n += 1 + sovLogservice(uint64(m.LogShardID))
  9495  	}
  9496  	if m.XXX_unrecognized != nil {
  9497  		n += len(m.XXX_unrecognized)
  9498  	}
  9499  	return n
  9500  }
  9501  
  9502  func (m *ConfigChange) Size() (n int) {
  9503  	if m == nil {
  9504  		return 0
  9505  	}
  9506  	var l int
  9507  	_ = l
  9508  	l = m.Replica.Size()
  9509  	n += 1 + l + sovLogservice(uint64(l))
  9510  	if m.ChangeType != 0 {
  9511  		n += 1 + sovLogservice(uint64(m.ChangeType))
  9512  	}
  9513  	if len(m.InitialMembers) > 0 {
  9514  		for k, v := range m.InitialMembers {
  9515  			_ = k
  9516  			_ = v
  9517  			mapEntrySize := 1 + sovLogservice(uint64(k)) + 1 + len(v) + sovLogservice(uint64(len(v)))
  9518  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9519  		}
  9520  	}
  9521  	if m.XXX_unrecognized != nil {
  9522  		n += len(m.XXX_unrecognized)
  9523  	}
  9524  	return n
  9525  }
  9526  
  9527  func (m *ShutdownStore) Size() (n int) {
  9528  	if m == nil {
  9529  		return 0
  9530  	}
  9531  	var l int
  9532  	_ = l
  9533  	l = len(m.StoreID)
  9534  	if l > 0 {
  9535  		n += 1 + l + sovLogservice(uint64(l))
  9536  	}
  9537  	if m.XXX_unrecognized != nil {
  9538  		n += len(m.XXX_unrecognized)
  9539  	}
  9540  	return n
  9541  }
  9542  
  9543  func (m *ScheduleCommand) Size() (n int) {
  9544  	if m == nil {
  9545  		return 0
  9546  	}
  9547  	var l int
  9548  	_ = l
  9549  	l = len(m.UUID)
  9550  	if l > 0 {
  9551  		n += 1 + l + sovLogservice(uint64(l))
  9552  	}
  9553  	if m.Bootstrapping {
  9554  		n += 2
  9555  	}
  9556  	if m.ServiceType != 0 {
  9557  		n += 1 + sovLogservice(uint64(m.ServiceType))
  9558  	}
  9559  	if m.ConfigChange != nil {
  9560  		l = m.ConfigChange.Size()
  9561  		n += 1 + l + sovLogservice(uint64(l))
  9562  	}
  9563  	if m.ShutdownStore != nil {
  9564  		l = m.ShutdownStore.Size()
  9565  		n += 1 + l + sovLogservice(uint64(l))
  9566  	}
  9567  	if m.CreateTaskService != nil {
  9568  		l = m.CreateTaskService.Size()
  9569  		n += 1 + l + sovLogservice(uint64(l))
  9570  	}
  9571  	if m.DeleteCNStore != nil {
  9572  		l = m.DeleteCNStore.Size()
  9573  		n += 1 + l + sovLogservice(uint64(l))
  9574  	}
  9575  	if m.JoinGossipCluster != nil {
  9576  		l = m.JoinGossipCluster.Size()
  9577  		n += 1 + l + sovLogservice(uint64(l))
  9578  	}
  9579  	if m.DeleteProxyStore != nil {
  9580  		l = m.DeleteProxyStore.Size()
  9581  		n += 1 + l + sovLogservice(uint64(l))
  9582  	}
  9583  	if m.XXX_unrecognized != nil {
  9584  		n += len(m.XXX_unrecognized)
  9585  	}
  9586  	return n
  9587  }
  9588  
  9589  func (m *JoinGossipCluster) Size() (n int) {
  9590  	if m == nil {
  9591  		return 0
  9592  	}
  9593  	var l int
  9594  	_ = l
  9595  	if len(m.Existing) > 0 {
  9596  		for _, s := range m.Existing {
  9597  			l = len(s)
  9598  			n += 1 + l + sovLogservice(uint64(l))
  9599  		}
  9600  	}
  9601  	if m.XXX_unrecognized != nil {
  9602  		n += len(m.XXX_unrecognized)
  9603  	}
  9604  	return n
  9605  }
  9606  
  9607  func (m *CreateTaskService) Size() (n int) {
  9608  	if m == nil {
  9609  		return 0
  9610  	}
  9611  	var l int
  9612  	_ = l
  9613  	l = m.User.Size()
  9614  	n += 1 + l + sovLogservice(uint64(l))
  9615  	l = len(m.TaskDatabase)
  9616  	if l > 0 {
  9617  		n += 1 + l + sovLogservice(uint64(l))
  9618  	}
  9619  	if m.XXX_unrecognized != nil {
  9620  		n += len(m.XXX_unrecognized)
  9621  	}
  9622  	return n
  9623  }
  9624  
  9625  func (m *DeleteCNStore) Size() (n int) {
  9626  	if m == nil {
  9627  		return 0
  9628  	}
  9629  	var l int
  9630  	_ = l
  9631  	l = len(m.StoreID)
  9632  	if l > 0 {
  9633  		n += 1 + l + sovLogservice(uint64(l))
  9634  	}
  9635  	if m.XXX_unrecognized != nil {
  9636  		n += len(m.XXX_unrecognized)
  9637  	}
  9638  	return n
  9639  }
  9640  
  9641  func (m *DeleteProxyStore) Size() (n int) {
  9642  	if m == nil {
  9643  		return 0
  9644  	}
  9645  	var l int
  9646  	_ = l
  9647  	l = len(m.StoreID)
  9648  	if l > 0 {
  9649  		n += 1 + l + sovLogservice(uint64(l))
  9650  	}
  9651  	if m.XXX_unrecognized != nil {
  9652  		n += len(m.XXX_unrecognized)
  9653  	}
  9654  	return n
  9655  }
  9656  
  9657  func (m *CommandBatch) Size() (n int) {
  9658  	if m == nil {
  9659  		return 0
  9660  	}
  9661  	var l int
  9662  	_ = l
  9663  	if m.Term != 0 {
  9664  		n += 1 + sovLogservice(uint64(m.Term))
  9665  	}
  9666  	if len(m.Commands) > 0 {
  9667  		for _, e := range m.Commands {
  9668  			l = e.Size()
  9669  			n += 1 + l + sovLogservice(uint64(l))
  9670  		}
  9671  	}
  9672  	if m.XXX_unrecognized != nil {
  9673  		n += len(m.XXX_unrecognized)
  9674  	}
  9675  	return n
  9676  }
  9677  
  9678  func (m *CNStoreInfo) Size() (n int) {
  9679  	if m == nil {
  9680  		return 0
  9681  	}
  9682  	var l int
  9683  	_ = l
  9684  	if m.Tick != 0 {
  9685  		n += 1 + sovLogservice(uint64(m.Tick))
  9686  	}
  9687  	l = len(m.ServiceAddress)
  9688  	if l > 0 {
  9689  		n += 1 + l + sovLogservice(uint64(l))
  9690  	}
  9691  	l = len(m.SQLAddress)
  9692  	if l > 0 {
  9693  		n += 1 + l + sovLogservice(uint64(l))
  9694  	}
  9695  	l = len(m.LockServiceAddress)
  9696  	if l > 0 {
  9697  		n += 1 + l + sovLogservice(uint64(l))
  9698  	}
  9699  	if m.Role != 0 {
  9700  		n += 1 + sovLogservice(uint64(m.Role))
  9701  	}
  9702  	if m.TaskServiceCreated {
  9703  		n += 2
  9704  	}
  9705  	if len(m.Labels) > 0 {
  9706  		for k, v := range m.Labels {
  9707  			_ = k
  9708  			_ = v
  9709  			l = v.Size()
  9710  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9711  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9712  		}
  9713  	}
  9714  	if m.WorkState != 0 {
  9715  		n += 1 + sovLogservice(uint64(m.WorkState))
  9716  	}
  9717  	l = len(m.QueryAddress)
  9718  	if l > 0 {
  9719  		n += 1 + l + sovLogservice(uint64(l))
  9720  	}
  9721  	l = len(m.GossipAddress)
  9722  	if l > 0 {
  9723  		n += 1 + l + sovLogservice(uint64(l))
  9724  	}
  9725  	if m.GossipJoined {
  9726  		n += 2
  9727  	}
  9728  	if m.ConfigData != nil {
  9729  		l = m.ConfigData.Size()
  9730  		n += 1 + l + sovLogservice(uint64(l))
  9731  	}
  9732  	l = m.Resource.Size()
  9733  	n += 1 + l + sovLogservice(uint64(l))
  9734  	if m.UpTime != 0 {
  9735  		n += 1 + sovLogservice(uint64(m.UpTime))
  9736  	}
  9737  	if m.XXX_unrecognized != nil {
  9738  		n += len(m.XXX_unrecognized)
  9739  	}
  9740  	return n
  9741  }
  9742  
  9743  func (m *CNState) Size() (n int) {
  9744  	if m == nil {
  9745  		return 0
  9746  	}
  9747  	var l int
  9748  	_ = l
  9749  	if len(m.Stores) > 0 {
  9750  		for k, v := range m.Stores {
  9751  			_ = k
  9752  			_ = v
  9753  			l = v.Size()
  9754  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9755  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9756  		}
  9757  	}
  9758  	if m.XXX_unrecognized != nil {
  9759  		n += len(m.XXX_unrecognized)
  9760  	}
  9761  	return n
  9762  }
  9763  
  9764  func (m *TNStoreInfo) Size() (n int) {
  9765  	if m == nil {
  9766  		return 0
  9767  	}
  9768  	var l int
  9769  	_ = l
  9770  	if m.Tick != 0 {
  9771  		n += 1 + sovLogservice(uint64(m.Tick))
  9772  	}
  9773  	l = len(m.ServiceAddress)
  9774  	if l > 0 {
  9775  		n += 1 + l + sovLogservice(uint64(l))
  9776  	}
  9777  	if len(m.Shards) > 0 {
  9778  		for _, e := range m.Shards {
  9779  			l = e.Size()
  9780  			n += 1 + l + sovLogservice(uint64(l))
  9781  		}
  9782  	}
  9783  	if m.TaskServiceCreated {
  9784  		n += 2
  9785  	}
  9786  	l = len(m.LogtailServerAddress)
  9787  	if l > 0 {
  9788  		n += 1 + l + sovLogservice(uint64(l))
  9789  	}
  9790  	l = len(m.LockServiceAddress)
  9791  	if l > 0 {
  9792  		n += 1 + l + sovLogservice(uint64(l))
  9793  	}
  9794  	if m.ConfigData != nil {
  9795  		l = m.ConfigData.Size()
  9796  		n += 1 + l + sovLogservice(uint64(l))
  9797  	}
  9798  	l = len(m.QueryAddress)
  9799  	if l > 0 {
  9800  		n += 1 + l + sovLogservice(uint64(l))
  9801  	}
  9802  	if m.XXX_unrecognized != nil {
  9803  		n += len(m.XXX_unrecognized)
  9804  	}
  9805  	return n
  9806  }
  9807  
  9808  func (m *TNState) Size() (n int) {
  9809  	if m == nil {
  9810  		return 0
  9811  	}
  9812  	var l int
  9813  	_ = l
  9814  	if len(m.Stores) > 0 {
  9815  		for k, v := range m.Stores {
  9816  			_ = k
  9817  			_ = v
  9818  			l = v.Size()
  9819  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9820  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9821  		}
  9822  	}
  9823  	if m.XXX_unrecognized != nil {
  9824  		n += len(m.XXX_unrecognized)
  9825  	}
  9826  	return n
  9827  }
  9828  
  9829  func (m *ProxyStore) Size() (n int) {
  9830  	if m == nil {
  9831  		return 0
  9832  	}
  9833  	var l int
  9834  	_ = l
  9835  	l = len(m.UUID)
  9836  	if l > 0 {
  9837  		n += 1 + l + sovLogservice(uint64(l))
  9838  	}
  9839  	if m.Tick != 0 {
  9840  		n += 1 + sovLogservice(uint64(m.Tick))
  9841  	}
  9842  	l = len(m.ListenAddress)
  9843  	if l > 0 {
  9844  		n += 1 + l + sovLogservice(uint64(l))
  9845  	}
  9846  	if m.ConfigData != nil {
  9847  		l = m.ConfigData.Size()
  9848  		n += 1 + l + sovLogservice(uint64(l))
  9849  	}
  9850  	if m.XXX_unrecognized != nil {
  9851  		n += len(m.XXX_unrecognized)
  9852  	}
  9853  	return n
  9854  }
  9855  
  9856  func (m *ProxyState) Size() (n int) {
  9857  	if m == nil {
  9858  		return 0
  9859  	}
  9860  	var l int
  9861  	_ = l
  9862  	if len(m.Stores) > 0 {
  9863  		for k, v := range m.Stores {
  9864  			_ = k
  9865  			_ = v
  9866  			l = v.Size()
  9867  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
  9868  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9869  		}
  9870  	}
  9871  	if m.XXX_unrecognized != nil {
  9872  		n += len(m.XXX_unrecognized)
  9873  	}
  9874  	return n
  9875  }
  9876  
  9877  func (m *ProxyHeartbeat) Size() (n int) {
  9878  	if m == nil {
  9879  		return 0
  9880  	}
  9881  	var l int
  9882  	_ = l
  9883  	l = len(m.UUID)
  9884  	if l > 0 {
  9885  		n += 1 + l + sovLogservice(uint64(l))
  9886  	}
  9887  	l = len(m.ListenAddress)
  9888  	if l > 0 {
  9889  		n += 1 + l + sovLogservice(uint64(l))
  9890  	}
  9891  	if m.ConfigData != nil {
  9892  		l = m.ConfigData.Size()
  9893  		n += 1 + l + sovLogservice(uint64(l))
  9894  	}
  9895  	if m.XXX_unrecognized != nil {
  9896  		n += len(m.XXX_unrecognized)
  9897  	}
  9898  	return n
  9899  }
  9900  
  9901  func (m *ClusterDetails) Size() (n int) {
  9902  	if m == nil {
  9903  		return 0
  9904  	}
  9905  	var l int
  9906  	_ = l
  9907  	if len(m.TNStores) > 0 {
  9908  		for _, e := range m.TNStores {
  9909  			l = e.Size()
  9910  			n += 1 + l + sovLogservice(uint64(l))
  9911  		}
  9912  	}
  9913  	if len(m.CNStores) > 0 {
  9914  		for _, e := range m.CNStores {
  9915  			l = e.Size()
  9916  			n += 1 + l + sovLogservice(uint64(l))
  9917  		}
  9918  	}
  9919  	if len(m.LogStores) > 0 {
  9920  		for _, e := range m.LogStores {
  9921  			l = e.Size()
  9922  			n += 1 + l + sovLogservice(uint64(l))
  9923  		}
  9924  	}
  9925  	if len(m.ProxyStores) > 0 {
  9926  		for _, e := range m.ProxyStores {
  9927  			l = e.Size()
  9928  			n += 1 + l + sovLogservice(uint64(l))
  9929  		}
  9930  	}
  9931  	if len(m.DeletedStores) > 0 {
  9932  		for _, e := range m.DeletedStores {
  9933  			l = e.Size()
  9934  			n += 1 + l + sovLogservice(uint64(l))
  9935  		}
  9936  	}
  9937  	if m.XXX_unrecognized != nil {
  9938  		n += len(m.XXX_unrecognized)
  9939  	}
  9940  	return n
  9941  }
  9942  
  9943  func (m *ClusterInfo) Size() (n int) {
  9944  	if m == nil {
  9945  		return 0
  9946  	}
  9947  	var l int
  9948  	_ = l
  9949  	if len(m.TNShards) > 0 {
  9950  		for _, e := range m.TNShards {
  9951  			l = e.Size()
  9952  			n += 1 + l + sovLogservice(uint64(l))
  9953  		}
  9954  	}
  9955  	if len(m.LogShards) > 0 {
  9956  		for _, e := range m.LogShards {
  9957  			l = e.Size()
  9958  			n += 1 + l + sovLogservice(uint64(l))
  9959  		}
  9960  	}
  9961  	if m.XXX_unrecognized != nil {
  9962  		n += len(m.XXX_unrecognized)
  9963  	}
  9964  	return n
  9965  }
  9966  
  9967  func (m *InitialClusterRequest) Size() (n int) {
  9968  	if m == nil {
  9969  		return 0
  9970  	}
  9971  	var l int
  9972  	_ = l
  9973  	if m.NumOfLogShards != 0 {
  9974  		n += 1 + sovLogservice(uint64(m.NumOfLogShards))
  9975  	}
  9976  	if m.NumOfTNShards != 0 {
  9977  		n += 1 + sovLogservice(uint64(m.NumOfTNShards))
  9978  	}
  9979  	if m.NumOfLogReplicas != 0 {
  9980  		n += 1 + sovLogservice(uint64(m.NumOfLogReplicas))
  9981  	}
  9982  	if m.NextID != 0 {
  9983  		n += 1 + sovLogservice(uint64(m.NextID))
  9984  	}
  9985  	if len(m.NextIDByKey) > 0 {
  9986  		for k, v := range m.NextIDByKey {
  9987  			_ = k
  9988  			_ = v
  9989  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + sovLogservice(uint64(v))
  9990  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
  9991  		}
  9992  	}
  9993  	if m.XXX_unrecognized != nil {
  9994  		n += len(m.XXX_unrecognized)
  9995  	}
  9996  	return n
  9997  }
  9998  
  9999  func (m *LogStoreInfo) Size() (n int) {
 10000  	if m == nil {
 10001  		return 0
 10002  	}
 10003  	var l int
 10004  	_ = l
 10005  	if m.Tick != 0 {
 10006  		n += 1 + sovLogservice(uint64(m.Tick))
 10007  	}
 10008  	l = len(m.RaftAddress)
 10009  	if l > 0 {
 10010  		n += 1 + l + sovLogservice(uint64(l))
 10011  	}
 10012  	l = len(m.ServiceAddress)
 10013  	if l > 0 {
 10014  		n += 1 + l + sovLogservice(uint64(l))
 10015  	}
 10016  	l = len(m.GossipAddress)
 10017  	if l > 0 {
 10018  		n += 1 + l + sovLogservice(uint64(l))
 10019  	}
 10020  	if len(m.Replicas) > 0 {
 10021  		for _, e := range m.Replicas {
 10022  			l = e.Size()
 10023  			n += 1 + l + sovLogservice(uint64(l))
 10024  		}
 10025  	}
 10026  	if m.TaskServiceCreated {
 10027  		n += 2
 10028  	}
 10029  	if m.ConfigData != nil {
 10030  		l = m.ConfigData.Size()
 10031  		n += 1 + l + sovLogservice(uint64(l))
 10032  	}
 10033  	if m.XXX_unrecognized != nil {
 10034  		n += len(m.XXX_unrecognized)
 10035  	}
 10036  	return n
 10037  }
 10038  
 10039  func (m *LogState) Size() (n int) {
 10040  	if m == nil {
 10041  		return 0
 10042  	}
 10043  	var l int
 10044  	_ = l
 10045  	if len(m.Shards) > 0 {
 10046  		for k, v := range m.Shards {
 10047  			_ = k
 10048  			_ = v
 10049  			l = v.Size()
 10050  			mapEntrySize := 1 + sovLogservice(uint64(k)) + 1 + l + sovLogservice(uint64(l))
 10051  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10052  		}
 10053  	}
 10054  	if len(m.Stores) > 0 {
 10055  		for k, v := range m.Stores {
 10056  			_ = k
 10057  			_ = v
 10058  			l = v.Size()
 10059  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
 10060  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10061  		}
 10062  	}
 10063  	if m.XXX_unrecognized != nil {
 10064  		n += len(m.XXX_unrecognized)
 10065  	}
 10066  	return n
 10067  }
 10068  
 10069  func (m *CheckerState) Size() (n int) {
 10070  	if m == nil {
 10071  		return 0
 10072  	}
 10073  	var l int
 10074  	_ = l
 10075  	if m.Tick != 0 {
 10076  		n += 1 + sovLogservice(uint64(m.Tick))
 10077  	}
 10078  	l = m.ClusterInfo.Size()
 10079  	n += 1 + l + sovLogservice(uint64(l))
 10080  	l = m.TNState.Size()
 10081  	n += 1 + l + sovLogservice(uint64(l))
 10082  	l = m.LogState.Size()
 10083  	n += 1 + l + sovLogservice(uint64(l))
 10084  	l = m.CNState.Size()
 10085  	n += 1 + l + sovLogservice(uint64(l))
 10086  	if m.State != 0 {
 10087  		n += 1 + sovLogservice(uint64(m.State))
 10088  	}
 10089  	if m.TaskSchedulerState != 0 {
 10090  		n += 1 + sovLogservice(uint64(m.TaskSchedulerState))
 10091  	}
 10092  	l = m.TaskTableUser.Size()
 10093  	n += 1 + l + sovLogservice(uint64(l))
 10094  	if m.NextId != 0 {
 10095  		n += 1 + sovLogservice(uint64(m.NextId))
 10096  	}
 10097  	if len(m.NextIDByKey) > 0 {
 10098  		for k, v := range m.NextIDByKey {
 10099  			_ = k
 10100  			_ = v
 10101  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + sovLogservice(uint64(v))
 10102  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10103  		}
 10104  	}
 10105  	l = m.ProxyState.Size()
 10106  	n += 1 + l + sovLogservice(uint64(l))
 10107  	l = m.Resource.Size()
 10108  	n += 1 + l + sovLogservice(uint64(l))
 10109  	if m.XXX_unrecognized != nil {
 10110  		n += len(m.XXX_unrecognized)
 10111  	}
 10112  	return n
 10113  }
 10114  
 10115  func (m *DeletedStore) Size() (n int) {
 10116  	if m == nil {
 10117  		return 0
 10118  	}
 10119  	var l int
 10120  	_ = l
 10121  	l = len(m.UUID)
 10122  	if l > 0 {
 10123  		n += 1 + l + sovLogservice(uint64(l))
 10124  	}
 10125  	l = len(m.StoreType)
 10126  	if l > 0 {
 10127  		n += 1 + l + sovLogservice(uint64(l))
 10128  	}
 10129  	l = len(m.Address)
 10130  	if l > 0 {
 10131  		n += 1 + l + sovLogservice(uint64(l))
 10132  	}
 10133  	if m.UpTime != 0 {
 10134  		n += 1 + sovLogservice(uint64(m.UpTime))
 10135  	}
 10136  	if m.DownTime != 0 {
 10137  		n += 1 + sovLogservice(uint64(m.DownTime))
 10138  	}
 10139  	if m.XXX_unrecognized != nil {
 10140  		n += len(m.XXX_unrecognized)
 10141  	}
 10142  	return n
 10143  }
 10144  
 10145  func (m *HAKeeperRSMState) Size() (n int) {
 10146  	if m == nil {
 10147  		return 0
 10148  	}
 10149  	var l int
 10150  	_ = l
 10151  	if m.Index != 0 {
 10152  		n += 1 + sovLogservice(uint64(m.Index))
 10153  	}
 10154  	if m.Tick != 0 {
 10155  		n += 1 + sovLogservice(uint64(m.Tick))
 10156  	}
 10157  	if m.NextID != 0 {
 10158  		n += 1 + sovLogservice(uint64(m.NextID))
 10159  	}
 10160  	if len(m.NextIDByKey) > 0 {
 10161  		for k, v := range m.NextIDByKey {
 10162  			_ = k
 10163  			_ = v
 10164  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + sovLogservice(uint64(v))
 10165  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10166  		}
 10167  	}
 10168  	if m.Term != 0 {
 10169  		n += 1 + sovLogservice(uint64(m.Term))
 10170  	}
 10171  	if m.State != 0 {
 10172  		n += 1 + sovLogservice(uint64(m.State))
 10173  	}
 10174  	if m.TaskSchedulerState != 0 {
 10175  		n += 1 + sovLogservice(uint64(m.TaskSchedulerState))
 10176  	}
 10177  	if len(m.ScheduleCommands) > 0 {
 10178  		for k, v := range m.ScheduleCommands {
 10179  			_ = k
 10180  			_ = v
 10181  			l = v.Size()
 10182  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + l + sovLogservice(uint64(l))
 10183  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10184  		}
 10185  	}
 10186  	if len(m.LogShards) > 0 {
 10187  		for k, v := range m.LogShards {
 10188  			_ = k
 10189  			_ = v
 10190  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + sovLogservice(uint64(v))
 10191  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10192  		}
 10193  	}
 10194  	l = m.CNState.Size()
 10195  	n += 1 + l + sovLogservice(uint64(l))
 10196  	l = m.TNState.Size()
 10197  	n += 1 + l + sovLogservice(uint64(l))
 10198  	l = m.LogState.Size()
 10199  	n += 1 + l + sovLogservice(uint64(l))
 10200  	l = m.ClusterInfo.Size()
 10201  	n += 1 + l + sovLogservice(uint64(l))
 10202  	l = m.TaskTableUser.Size()
 10203  	n += 1 + l + sovLogservice(uint64(l))
 10204  	l = m.ProxyState.Size()
 10205  	n += 1 + l + sovLogservice(uint64(l))
 10206  	if len(m.DeletedStores) > 0 {
 10207  		for _, e := range m.DeletedStores {
 10208  			l = e.Size()
 10209  			n += 2 + l + sovLogservice(uint64(l))
 10210  		}
 10211  	}
 10212  	if m.XXX_unrecognized != nil {
 10213  		n += len(m.XXX_unrecognized)
 10214  	}
 10215  	return n
 10216  }
 10217  
 10218  func (m *ReplicaInfo) Size() (n int) {
 10219  	if m == nil {
 10220  		return 0
 10221  	}
 10222  	var l int
 10223  	_ = l
 10224  	l = len(m.UUID)
 10225  	if l > 0 {
 10226  		n += 1 + l + sovLogservice(uint64(l))
 10227  	}
 10228  	l = len(m.ServiceAddress)
 10229  	if l > 0 {
 10230  		n += 1 + l + sovLogservice(uint64(l))
 10231  	}
 10232  	if m.XXX_unrecognized != nil {
 10233  		n += len(m.XXX_unrecognized)
 10234  	}
 10235  	return n
 10236  }
 10237  
 10238  func (m *ShardInfoQueryResult) Size() (n int) {
 10239  	if m == nil {
 10240  		return 0
 10241  	}
 10242  	var l int
 10243  	_ = l
 10244  	if m.ShardID != 0 {
 10245  		n += 1 + sovLogservice(uint64(m.ShardID))
 10246  	}
 10247  	if len(m.Replicas) > 0 {
 10248  		for k, v := range m.Replicas {
 10249  			_ = k
 10250  			_ = v
 10251  			l = v.Size()
 10252  			mapEntrySize := 1 + sovLogservice(uint64(k)) + 1 + l + sovLogservice(uint64(l))
 10253  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10254  		}
 10255  	}
 10256  	if m.Epoch != 0 {
 10257  		n += 1 + sovLogservice(uint64(m.Epoch))
 10258  	}
 10259  	if m.LeaderID != 0 {
 10260  		n += 1 + sovLogservice(uint64(m.LeaderID))
 10261  	}
 10262  	if m.Term != 0 {
 10263  		n += 1 + sovLogservice(uint64(m.Term))
 10264  	}
 10265  	if m.XXX_unrecognized != nil {
 10266  		n += len(m.XXX_unrecognized)
 10267  	}
 10268  	return n
 10269  }
 10270  
 10271  func (m *BackupData) Size() (n int) {
 10272  	if m == nil {
 10273  		return 0
 10274  	}
 10275  	var l int
 10276  	_ = l
 10277  	if m.NextID != 0 {
 10278  		n += 1 + sovLogservice(uint64(m.NextID))
 10279  	}
 10280  	if len(m.NextIDByKey) > 0 {
 10281  		for k, v := range m.NextIDByKey {
 10282  			_ = k
 10283  			_ = v
 10284  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + 1 + sovLogservice(uint64(v))
 10285  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10286  		}
 10287  	}
 10288  	if m.XXX_unrecognized != nil {
 10289  		n += len(m.XXX_unrecognized)
 10290  	}
 10291  	return n
 10292  }
 10293  
 10294  func (m *ConfigItem) Size() (n int) {
 10295  	if m == nil {
 10296  		return 0
 10297  	}
 10298  	var l int
 10299  	_ = l
 10300  	l = len(m.Name)
 10301  	if l > 0 {
 10302  		n += 1 + l + sovLogservice(uint64(l))
 10303  	}
 10304  	l = len(m.CurrentValue)
 10305  	if l > 0 {
 10306  		n += 1 + l + sovLogservice(uint64(l))
 10307  	}
 10308  	l = len(m.DefaultValue)
 10309  	if l > 0 {
 10310  		n += 1 + l + sovLogservice(uint64(l))
 10311  	}
 10312  	l = len(m.Internal)
 10313  	if l > 0 {
 10314  		n += 1 + l + sovLogservice(uint64(l))
 10315  	}
 10316  	if m.XXX_unrecognized != nil {
 10317  		n += len(m.XXX_unrecognized)
 10318  	}
 10319  	return n
 10320  }
 10321  
 10322  func (m *ConfigData) Size() (n int) {
 10323  	if m == nil {
 10324  		return 0
 10325  	}
 10326  	var l int
 10327  	_ = l
 10328  	if len(m.Content) > 0 {
 10329  		for k, v := range m.Content {
 10330  			_ = k
 10331  			_ = v
 10332  			l = 0
 10333  			if v != nil {
 10334  				l = v.Size()
 10335  				l += 1 + sovLogservice(uint64(l))
 10336  			}
 10337  			mapEntrySize := 1 + len(k) + sovLogservice(uint64(len(k))) + l
 10338  			n += mapEntrySize + 1 + sovLogservice(uint64(mapEntrySize))
 10339  		}
 10340  	}
 10341  	if m.XXX_unrecognized != nil {
 10342  		n += len(m.XXX_unrecognized)
 10343  	}
 10344  	return n
 10345  }
 10346  
 10347  func sovLogservice(x uint64) (n int) {
 10348  	return (math_bits.Len64(x|1) + 6) / 7
 10349  }
 10350  func sozLogservice(x uint64) (n int) {
 10351  	return sovLogservice(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 10352  }
 10353  func (m *CNStore) Unmarshal(dAtA []byte) error {
 10354  	l := len(dAtA)
 10355  	iNdEx := 0
 10356  	for iNdEx < l {
 10357  		preIndex := iNdEx
 10358  		var wire uint64
 10359  		for shift := uint(0); ; shift += 7 {
 10360  			if shift >= 64 {
 10361  				return ErrIntOverflowLogservice
 10362  			}
 10363  			if iNdEx >= l {
 10364  				return io.ErrUnexpectedEOF
 10365  			}
 10366  			b := dAtA[iNdEx]
 10367  			iNdEx++
 10368  			wire |= uint64(b&0x7F) << shift
 10369  			if b < 0x80 {
 10370  				break
 10371  			}
 10372  		}
 10373  		fieldNum := int32(wire >> 3)
 10374  		wireType := int(wire & 0x7)
 10375  		if wireType == 4 {
 10376  			return fmt.Errorf("proto: CNStore: wiretype end group for non-group")
 10377  		}
 10378  		if fieldNum <= 0 {
 10379  			return fmt.Errorf("proto: CNStore: illegal tag %d (wire type %d)", fieldNum, wire)
 10380  		}
 10381  		switch fieldNum {
 10382  		case 1:
 10383  			if wireType != 2 {
 10384  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 10385  			}
 10386  			var stringLen uint64
 10387  			for shift := uint(0); ; shift += 7 {
 10388  				if shift >= 64 {
 10389  					return ErrIntOverflowLogservice
 10390  				}
 10391  				if iNdEx >= l {
 10392  					return io.ErrUnexpectedEOF
 10393  				}
 10394  				b := dAtA[iNdEx]
 10395  				iNdEx++
 10396  				stringLen |= uint64(b&0x7F) << shift
 10397  				if b < 0x80 {
 10398  					break
 10399  				}
 10400  			}
 10401  			intStringLen := int(stringLen)
 10402  			if intStringLen < 0 {
 10403  				return ErrInvalidLengthLogservice
 10404  			}
 10405  			postIndex := iNdEx + intStringLen
 10406  			if postIndex < 0 {
 10407  				return ErrInvalidLengthLogservice
 10408  			}
 10409  			if postIndex > l {
 10410  				return io.ErrUnexpectedEOF
 10411  			}
 10412  			m.UUID = string(dAtA[iNdEx:postIndex])
 10413  			iNdEx = postIndex
 10414  		case 2:
 10415  			if wireType != 2 {
 10416  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 10417  			}
 10418  			var stringLen uint64
 10419  			for shift := uint(0); ; shift += 7 {
 10420  				if shift >= 64 {
 10421  					return ErrIntOverflowLogservice
 10422  				}
 10423  				if iNdEx >= l {
 10424  					return io.ErrUnexpectedEOF
 10425  				}
 10426  				b := dAtA[iNdEx]
 10427  				iNdEx++
 10428  				stringLen |= uint64(b&0x7F) << shift
 10429  				if b < 0x80 {
 10430  					break
 10431  				}
 10432  			}
 10433  			intStringLen := int(stringLen)
 10434  			if intStringLen < 0 {
 10435  				return ErrInvalidLengthLogservice
 10436  			}
 10437  			postIndex := iNdEx + intStringLen
 10438  			if postIndex < 0 {
 10439  				return ErrInvalidLengthLogservice
 10440  			}
 10441  			if postIndex > l {
 10442  				return io.ErrUnexpectedEOF
 10443  			}
 10444  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 10445  			iNdEx = postIndex
 10446  		case 3:
 10447  			if wireType != 2 {
 10448  				return fmt.Errorf("proto: wrong wireType = %d for field SQLAddress", wireType)
 10449  			}
 10450  			var stringLen uint64
 10451  			for shift := uint(0); ; shift += 7 {
 10452  				if shift >= 64 {
 10453  					return ErrIntOverflowLogservice
 10454  				}
 10455  				if iNdEx >= l {
 10456  					return io.ErrUnexpectedEOF
 10457  				}
 10458  				b := dAtA[iNdEx]
 10459  				iNdEx++
 10460  				stringLen |= uint64(b&0x7F) << shift
 10461  				if b < 0x80 {
 10462  					break
 10463  				}
 10464  			}
 10465  			intStringLen := int(stringLen)
 10466  			if intStringLen < 0 {
 10467  				return ErrInvalidLengthLogservice
 10468  			}
 10469  			postIndex := iNdEx + intStringLen
 10470  			if postIndex < 0 {
 10471  				return ErrInvalidLengthLogservice
 10472  			}
 10473  			if postIndex > l {
 10474  				return io.ErrUnexpectedEOF
 10475  			}
 10476  			m.SQLAddress = string(dAtA[iNdEx:postIndex])
 10477  			iNdEx = postIndex
 10478  		case 4:
 10479  			if wireType != 2 {
 10480  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 10481  			}
 10482  			var stringLen uint64
 10483  			for shift := uint(0); ; shift += 7 {
 10484  				if shift >= 64 {
 10485  					return ErrIntOverflowLogservice
 10486  				}
 10487  				if iNdEx >= l {
 10488  					return io.ErrUnexpectedEOF
 10489  				}
 10490  				b := dAtA[iNdEx]
 10491  				iNdEx++
 10492  				stringLen |= uint64(b&0x7F) << shift
 10493  				if b < 0x80 {
 10494  					break
 10495  				}
 10496  			}
 10497  			intStringLen := int(stringLen)
 10498  			if intStringLen < 0 {
 10499  				return ErrInvalidLengthLogservice
 10500  			}
 10501  			postIndex := iNdEx + intStringLen
 10502  			if postIndex < 0 {
 10503  				return ErrInvalidLengthLogservice
 10504  			}
 10505  			if postIndex > l {
 10506  				return io.ErrUnexpectedEOF
 10507  			}
 10508  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 10509  			iNdEx = postIndex
 10510  		case 6:
 10511  			if wireType != 0 {
 10512  				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
 10513  			}
 10514  			m.Role = 0
 10515  			for shift := uint(0); ; shift += 7 {
 10516  				if shift >= 64 {
 10517  					return ErrIntOverflowLogservice
 10518  				}
 10519  				if iNdEx >= l {
 10520  					return io.ErrUnexpectedEOF
 10521  				}
 10522  				b := dAtA[iNdEx]
 10523  				iNdEx++
 10524  				m.Role |= metadata.CNRole(b&0x7F) << shift
 10525  				if b < 0x80 {
 10526  					break
 10527  				}
 10528  			}
 10529  		case 7:
 10530  			if wireType != 0 {
 10531  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 10532  			}
 10533  			m.Tick = 0
 10534  			for shift := uint(0); ; shift += 7 {
 10535  				if shift >= 64 {
 10536  					return ErrIntOverflowLogservice
 10537  				}
 10538  				if iNdEx >= l {
 10539  					return io.ErrUnexpectedEOF
 10540  				}
 10541  				b := dAtA[iNdEx]
 10542  				iNdEx++
 10543  				m.Tick |= uint64(b&0x7F) << shift
 10544  				if b < 0x80 {
 10545  					break
 10546  				}
 10547  			}
 10548  		case 8:
 10549  			if wireType != 0 {
 10550  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 10551  			}
 10552  			m.State = 0
 10553  			for shift := uint(0); ; shift += 7 {
 10554  				if shift >= 64 {
 10555  					return ErrIntOverflowLogservice
 10556  				}
 10557  				if iNdEx >= l {
 10558  					return io.ErrUnexpectedEOF
 10559  				}
 10560  				b := dAtA[iNdEx]
 10561  				iNdEx++
 10562  				m.State |= NodeState(b&0x7F) << shift
 10563  				if b < 0x80 {
 10564  					break
 10565  				}
 10566  			}
 10567  		case 9:
 10568  			if wireType != 2 {
 10569  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 10570  			}
 10571  			var msglen int
 10572  			for shift := uint(0); ; shift += 7 {
 10573  				if shift >= 64 {
 10574  					return ErrIntOverflowLogservice
 10575  				}
 10576  				if iNdEx >= l {
 10577  					return io.ErrUnexpectedEOF
 10578  				}
 10579  				b := dAtA[iNdEx]
 10580  				iNdEx++
 10581  				msglen |= int(b&0x7F) << shift
 10582  				if b < 0x80 {
 10583  					break
 10584  				}
 10585  			}
 10586  			if msglen < 0 {
 10587  				return ErrInvalidLengthLogservice
 10588  			}
 10589  			postIndex := iNdEx + msglen
 10590  			if postIndex < 0 {
 10591  				return ErrInvalidLengthLogservice
 10592  			}
 10593  			if postIndex > l {
 10594  				return io.ErrUnexpectedEOF
 10595  			}
 10596  			if m.Labels == nil {
 10597  				m.Labels = make(map[string]metadata.LabelList)
 10598  			}
 10599  			var mapkey string
 10600  			mapvalue := &metadata.LabelList{}
 10601  			for iNdEx < postIndex {
 10602  				entryPreIndex := iNdEx
 10603  				var wire uint64
 10604  				for shift := uint(0); ; shift += 7 {
 10605  					if shift >= 64 {
 10606  						return ErrIntOverflowLogservice
 10607  					}
 10608  					if iNdEx >= l {
 10609  						return io.ErrUnexpectedEOF
 10610  					}
 10611  					b := dAtA[iNdEx]
 10612  					iNdEx++
 10613  					wire |= uint64(b&0x7F) << shift
 10614  					if b < 0x80 {
 10615  						break
 10616  					}
 10617  				}
 10618  				fieldNum := int32(wire >> 3)
 10619  				if fieldNum == 1 {
 10620  					var stringLenmapkey uint64
 10621  					for shift := uint(0); ; shift += 7 {
 10622  						if shift >= 64 {
 10623  							return ErrIntOverflowLogservice
 10624  						}
 10625  						if iNdEx >= l {
 10626  							return io.ErrUnexpectedEOF
 10627  						}
 10628  						b := dAtA[iNdEx]
 10629  						iNdEx++
 10630  						stringLenmapkey |= uint64(b&0x7F) << shift
 10631  						if b < 0x80 {
 10632  							break
 10633  						}
 10634  					}
 10635  					intStringLenmapkey := int(stringLenmapkey)
 10636  					if intStringLenmapkey < 0 {
 10637  						return ErrInvalidLengthLogservice
 10638  					}
 10639  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 10640  					if postStringIndexmapkey < 0 {
 10641  						return ErrInvalidLengthLogservice
 10642  					}
 10643  					if postStringIndexmapkey > l {
 10644  						return io.ErrUnexpectedEOF
 10645  					}
 10646  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 10647  					iNdEx = postStringIndexmapkey
 10648  				} else if fieldNum == 2 {
 10649  					var mapmsglen int
 10650  					for shift := uint(0); ; shift += 7 {
 10651  						if shift >= 64 {
 10652  							return ErrIntOverflowLogservice
 10653  						}
 10654  						if iNdEx >= l {
 10655  							return io.ErrUnexpectedEOF
 10656  						}
 10657  						b := dAtA[iNdEx]
 10658  						iNdEx++
 10659  						mapmsglen |= int(b&0x7F) << shift
 10660  						if b < 0x80 {
 10661  							break
 10662  						}
 10663  					}
 10664  					if mapmsglen < 0 {
 10665  						return ErrInvalidLengthLogservice
 10666  					}
 10667  					postmsgIndex := iNdEx + mapmsglen
 10668  					if postmsgIndex < 0 {
 10669  						return ErrInvalidLengthLogservice
 10670  					}
 10671  					if postmsgIndex > l {
 10672  						return io.ErrUnexpectedEOF
 10673  					}
 10674  					mapvalue = &metadata.LabelList{}
 10675  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 10676  						return err
 10677  					}
 10678  					iNdEx = postmsgIndex
 10679  				} else {
 10680  					iNdEx = entryPreIndex
 10681  					skippy, err := skipLogservice(dAtA[iNdEx:])
 10682  					if err != nil {
 10683  						return err
 10684  					}
 10685  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 10686  						return ErrInvalidLengthLogservice
 10687  					}
 10688  					if (iNdEx + skippy) > postIndex {
 10689  						return io.ErrUnexpectedEOF
 10690  					}
 10691  					iNdEx += skippy
 10692  				}
 10693  			}
 10694  			m.Labels[mapkey] = *mapvalue
 10695  			iNdEx = postIndex
 10696  		case 10:
 10697  			if wireType != 0 {
 10698  				return fmt.Errorf("proto: wrong wireType = %d for field WorkState", wireType)
 10699  			}
 10700  			m.WorkState = 0
 10701  			for shift := uint(0); ; shift += 7 {
 10702  				if shift >= 64 {
 10703  					return ErrIntOverflowLogservice
 10704  				}
 10705  				if iNdEx >= l {
 10706  					return io.ErrUnexpectedEOF
 10707  				}
 10708  				b := dAtA[iNdEx]
 10709  				iNdEx++
 10710  				m.WorkState |= metadata.WorkState(b&0x7F) << shift
 10711  				if b < 0x80 {
 10712  					break
 10713  				}
 10714  			}
 10715  		case 11:
 10716  			if wireType != 2 {
 10717  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 10718  			}
 10719  			var stringLen uint64
 10720  			for shift := uint(0); ; shift += 7 {
 10721  				if shift >= 64 {
 10722  					return ErrIntOverflowLogservice
 10723  				}
 10724  				if iNdEx >= l {
 10725  					return io.ErrUnexpectedEOF
 10726  				}
 10727  				b := dAtA[iNdEx]
 10728  				iNdEx++
 10729  				stringLen |= uint64(b&0x7F) << shift
 10730  				if b < 0x80 {
 10731  					break
 10732  				}
 10733  			}
 10734  			intStringLen := int(stringLen)
 10735  			if intStringLen < 0 {
 10736  				return ErrInvalidLengthLogservice
 10737  			}
 10738  			postIndex := iNdEx + intStringLen
 10739  			if postIndex < 0 {
 10740  				return ErrInvalidLengthLogservice
 10741  			}
 10742  			if postIndex > l {
 10743  				return io.ErrUnexpectedEOF
 10744  			}
 10745  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 10746  			iNdEx = postIndex
 10747  		case 12:
 10748  			if wireType != 2 {
 10749  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 10750  			}
 10751  			var msglen int
 10752  			for shift := uint(0); ; shift += 7 {
 10753  				if shift >= 64 {
 10754  					return ErrIntOverflowLogservice
 10755  				}
 10756  				if iNdEx >= l {
 10757  					return io.ErrUnexpectedEOF
 10758  				}
 10759  				b := dAtA[iNdEx]
 10760  				iNdEx++
 10761  				msglen |= int(b&0x7F) << shift
 10762  				if b < 0x80 {
 10763  					break
 10764  				}
 10765  			}
 10766  			if msglen < 0 {
 10767  				return ErrInvalidLengthLogservice
 10768  			}
 10769  			postIndex := iNdEx + msglen
 10770  			if postIndex < 0 {
 10771  				return ErrInvalidLengthLogservice
 10772  			}
 10773  			if postIndex > l {
 10774  				return io.ErrUnexpectedEOF
 10775  			}
 10776  			if m.ConfigData == nil {
 10777  				m.ConfigData = &ConfigData{}
 10778  			}
 10779  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10780  				return err
 10781  			}
 10782  			iNdEx = postIndex
 10783  		case 13:
 10784  			if wireType != 2 {
 10785  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
 10786  			}
 10787  			var msglen int
 10788  			for shift := uint(0); ; shift += 7 {
 10789  				if shift >= 64 {
 10790  					return ErrIntOverflowLogservice
 10791  				}
 10792  				if iNdEx >= l {
 10793  					return io.ErrUnexpectedEOF
 10794  				}
 10795  				b := dAtA[iNdEx]
 10796  				iNdEx++
 10797  				msglen |= int(b&0x7F) << shift
 10798  				if b < 0x80 {
 10799  					break
 10800  				}
 10801  			}
 10802  			if msglen < 0 {
 10803  				return ErrInvalidLengthLogservice
 10804  			}
 10805  			postIndex := iNdEx + msglen
 10806  			if postIndex < 0 {
 10807  				return ErrInvalidLengthLogservice
 10808  			}
 10809  			if postIndex > l {
 10810  				return io.ErrUnexpectedEOF
 10811  			}
 10812  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10813  				return err
 10814  			}
 10815  			iNdEx = postIndex
 10816  		case 14:
 10817  			if wireType != 0 {
 10818  				return fmt.Errorf("proto: wrong wireType = %d for field UpTime", wireType)
 10819  			}
 10820  			m.UpTime = 0
 10821  			for shift := uint(0); ; shift += 7 {
 10822  				if shift >= 64 {
 10823  					return ErrIntOverflowLogservice
 10824  				}
 10825  				if iNdEx >= l {
 10826  					return io.ErrUnexpectedEOF
 10827  				}
 10828  				b := dAtA[iNdEx]
 10829  				iNdEx++
 10830  				m.UpTime |= int64(b&0x7F) << shift
 10831  				if b < 0x80 {
 10832  					break
 10833  				}
 10834  			}
 10835  		default:
 10836  			iNdEx = preIndex
 10837  			skippy, err := skipLogservice(dAtA[iNdEx:])
 10838  			if err != nil {
 10839  				return err
 10840  			}
 10841  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10842  				return ErrInvalidLengthLogservice
 10843  			}
 10844  			if (iNdEx + skippy) > l {
 10845  				return io.ErrUnexpectedEOF
 10846  			}
 10847  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 10848  			iNdEx += skippy
 10849  		}
 10850  	}
 10851  
 10852  	if iNdEx > l {
 10853  		return io.ErrUnexpectedEOF
 10854  	}
 10855  	return nil
 10856  }
 10857  func (m *TNStore) Unmarshal(dAtA []byte) error {
 10858  	l := len(dAtA)
 10859  	iNdEx := 0
 10860  	for iNdEx < l {
 10861  		preIndex := iNdEx
 10862  		var wire uint64
 10863  		for shift := uint(0); ; shift += 7 {
 10864  			if shift >= 64 {
 10865  				return ErrIntOverflowLogservice
 10866  			}
 10867  			if iNdEx >= l {
 10868  				return io.ErrUnexpectedEOF
 10869  			}
 10870  			b := dAtA[iNdEx]
 10871  			iNdEx++
 10872  			wire |= uint64(b&0x7F) << shift
 10873  			if b < 0x80 {
 10874  				break
 10875  			}
 10876  		}
 10877  		fieldNum := int32(wire >> 3)
 10878  		wireType := int(wire & 0x7)
 10879  		if wireType == 4 {
 10880  			return fmt.Errorf("proto: TNStore: wiretype end group for non-group")
 10881  		}
 10882  		if fieldNum <= 0 {
 10883  			return fmt.Errorf("proto: TNStore: illegal tag %d (wire type %d)", fieldNum, wire)
 10884  		}
 10885  		switch fieldNum {
 10886  		case 1:
 10887  			if wireType != 2 {
 10888  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 10889  			}
 10890  			var stringLen uint64
 10891  			for shift := uint(0); ; shift += 7 {
 10892  				if shift >= 64 {
 10893  					return ErrIntOverflowLogservice
 10894  				}
 10895  				if iNdEx >= l {
 10896  					return io.ErrUnexpectedEOF
 10897  				}
 10898  				b := dAtA[iNdEx]
 10899  				iNdEx++
 10900  				stringLen |= uint64(b&0x7F) << shift
 10901  				if b < 0x80 {
 10902  					break
 10903  				}
 10904  			}
 10905  			intStringLen := int(stringLen)
 10906  			if intStringLen < 0 {
 10907  				return ErrInvalidLengthLogservice
 10908  			}
 10909  			postIndex := iNdEx + intStringLen
 10910  			if postIndex < 0 {
 10911  				return ErrInvalidLengthLogservice
 10912  			}
 10913  			if postIndex > l {
 10914  				return io.ErrUnexpectedEOF
 10915  			}
 10916  			m.UUID = string(dAtA[iNdEx:postIndex])
 10917  			iNdEx = postIndex
 10918  		case 2:
 10919  			if wireType != 2 {
 10920  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 10921  			}
 10922  			var stringLen uint64
 10923  			for shift := uint(0); ; shift += 7 {
 10924  				if shift >= 64 {
 10925  					return ErrIntOverflowLogservice
 10926  				}
 10927  				if iNdEx >= l {
 10928  					return io.ErrUnexpectedEOF
 10929  				}
 10930  				b := dAtA[iNdEx]
 10931  				iNdEx++
 10932  				stringLen |= uint64(b&0x7F) << shift
 10933  				if b < 0x80 {
 10934  					break
 10935  				}
 10936  			}
 10937  			intStringLen := int(stringLen)
 10938  			if intStringLen < 0 {
 10939  				return ErrInvalidLengthLogservice
 10940  			}
 10941  			postIndex := iNdEx + intStringLen
 10942  			if postIndex < 0 {
 10943  				return ErrInvalidLengthLogservice
 10944  			}
 10945  			if postIndex > l {
 10946  				return io.ErrUnexpectedEOF
 10947  			}
 10948  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 10949  			iNdEx = postIndex
 10950  		case 3:
 10951  			if wireType != 0 {
 10952  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 10953  			}
 10954  			m.Tick = 0
 10955  			for shift := uint(0); ; shift += 7 {
 10956  				if shift >= 64 {
 10957  					return ErrIntOverflowLogservice
 10958  				}
 10959  				if iNdEx >= l {
 10960  					return io.ErrUnexpectedEOF
 10961  				}
 10962  				b := dAtA[iNdEx]
 10963  				iNdEx++
 10964  				m.Tick |= uint64(b&0x7F) << shift
 10965  				if b < 0x80 {
 10966  					break
 10967  				}
 10968  			}
 10969  		case 4:
 10970  			if wireType != 0 {
 10971  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 10972  			}
 10973  			m.State = 0
 10974  			for shift := uint(0); ; shift += 7 {
 10975  				if shift >= 64 {
 10976  					return ErrIntOverflowLogservice
 10977  				}
 10978  				if iNdEx >= l {
 10979  					return io.ErrUnexpectedEOF
 10980  				}
 10981  				b := dAtA[iNdEx]
 10982  				iNdEx++
 10983  				m.State |= NodeState(b&0x7F) << shift
 10984  				if b < 0x80 {
 10985  					break
 10986  				}
 10987  			}
 10988  		case 5:
 10989  			if wireType != 2 {
 10990  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
 10991  			}
 10992  			var msglen int
 10993  			for shift := uint(0); ; shift += 7 {
 10994  				if shift >= 64 {
 10995  					return ErrIntOverflowLogservice
 10996  				}
 10997  				if iNdEx >= l {
 10998  					return io.ErrUnexpectedEOF
 10999  				}
 11000  				b := dAtA[iNdEx]
 11001  				iNdEx++
 11002  				msglen |= int(b&0x7F) << shift
 11003  				if b < 0x80 {
 11004  					break
 11005  				}
 11006  			}
 11007  			if msglen < 0 {
 11008  				return ErrInvalidLengthLogservice
 11009  			}
 11010  			postIndex := iNdEx + msglen
 11011  			if postIndex < 0 {
 11012  				return ErrInvalidLengthLogservice
 11013  			}
 11014  			if postIndex > l {
 11015  				return io.ErrUnexpectedEOF
 11016  			}
 11017  			m.Shards = append(m.Shards, TNShardInfo{})
 11018  			if err := m.Shards[len(m.Shards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11019  				return err
 11020  			}
 11021  			iNdEx = postIndex
 11022  		case 6:
 11023  			if wireType != 2 {
 11024  				return fmt.Errorf("proto: wrong wireType = %d for field LogtailServerAddress", wireType)
 11025  			}
 11026  			var stringLen uint64
 11027  			for shift := uint(0); ; shift += 7 {
 11028  				if shift >= 64 {
 11029  					return ErrIntOverflowLogservice
 11030  				}
 11031  				if iNdEx >= l {
 11032  					return io.ErrUnexpectedEOF
 11033  				}
 11034  				b := dAtA[iNdEx]
 11035  				iNdEx++
 11036  				stringLen |= uint64(b&0x7F) << shift
 11037  				if b < 0x80 {
 11038  					break
 11039  				}
 11040  			}
 11041  			intStringLen := int(stringLen)
 11042  			if intStringLen < 0 {
 11043  				return ErrInvalidLengthLogservice
 11044  			}
 11045  			postIndex := iNdEx + intStringLen
 11046  			if postIndex < 0 {
 11047  				return ErrInvalidLengthLogservice
 11048  			}
 11049  			if postIndex > l {
 11050  				return io.ErrUnexpectedEOF
 11051  			}
 11052  			m.LogtailServerAddress = string(dAtA[iNdEx:postIndex])
 11053  			iNdEx = postIndex
 11054  		case 7:
 11055  			if wireType != 2 {
 11056  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 11057  			}
 11058  			var stringLen uint64
 11059  			for shift := uint(0); ; shift += 7 {
 11060  				if shift >= 64 {
 11061  					return ErrIntOverflowLogservice
 11062  				}
 11063  				if iNdEx >= l {
 11064  					return io.ErrUnexpectedEOF
 11065  				}
 11066  				b := dAtA[iNdEx]
 11067  				iNdEx++
 11068  				stringLen |= uint64(b&0x7F) << shift
 11069  				if b < 0x80 {
 11070  					break
 11071  				}
 11072  			}
 11073  			intStringLen := int(stringLen)
 11074  			if intStringLen < 0 {
 11075  				return ErrInvalidLengthLogservice
 11076  			}
 11077  			postIndex := iNdEx + intStringLen
 11078  			if postIndex < 0 {
 11079  				return ErrInvalidLengthLogservice
 11080  			}
 11081  			if postIndex > l {
 11082  				return io.ErrUnexpectedEOF
 11083  			}
 11084  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 11085  			iNdEx = postIndex
 11086  		case 9:
 11087  			if wireType != 2 {
 11088  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 11089  			}
 11090  			var msglen int
 11091  			for shift := uint(0); ; shift += 7 {
 11092  				if shift >= 64 {
 11093  					return ErrIntOverflowLogservice
 11094  				}
 11095  				if iNdEx >= l {
 11096  					return io.ErrUnexpectedEOF
 11097  				}
 11098  				b := dAtA[iNdEx]
 11099  				iNdEx++
 11100  				msglen |= int(b&0x7F) << shift
 11101  				if b < 0x80 {
 11102  					break
 11103  				}
 11104  			}
 11105  			if msglen < 0 {
 11106  				return ErrInvalidLengthLogservice
 11107  			}
 11108  			postIndex := iNdEx + msglen
 11109  			if postIndex < 0 {
 11110  				return ErrInvalidLengthLogservice
 11111  			}
 11112  			if postIndex > l {
 11113  				return io.ErrUnexpectedEOF
 11114  			}
 11115  			if m.ConfigData == nil {
 11116  				m.ConfigData = &ConfigData{}
 11117  			}
 11118  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11119  				return err
 11120  			}
 11121  			iNdEx = postIndex
 11122  		case 10:
 11123  			if wireType != 2 {
 11124  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 11125  			}
 11126  			var stringLen uint64
 11127  			for shift := uint(0); ; shift += 7 {
 11128  				if shift >= 64 {
 11129  					return ErrIntOverflowLogservice
 11130  				}
 11131  				if iNdEx >= l {
 11132  					return io.ErrUnexpectedEOF
 11133  				}
 11134  				b := dAtA[iNdEx]
 11135  				iNdEx++
 11136  				stringLen |= uint64(b&0x7F) << shift
 11137  				if b < 0x80 {
 11138  					break
 11139  				}
 11140  			}
 11141  			intStringLen := int(stringLen)
 11142  			if intStringLen < 0 {
 11143  				return ErrInvalidLengthLogservice
 11144  			}
 11145  			postIndex := iNdEx + intStringLen
 11146  			if postIndex < 0 {
 11147  				return ErrInvalidLengthLogservice
 11148  			}
 11149  			if postIndex > l {
 11150  				return io.ErrUnexpectedEOF
 11151  			}
 11152  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 11153  			iNdEx = postIndex
 11154  		default:
 11155  			iNdEx = preIndex
 11156  			skippy, err := skipLogservice(dAtA[iNdEx:])
 11157  			if err != nil {
 11158  				return err
 11159  			}
 11160  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11161  				return ErrInvalidLengthLogservice
 11162  			}
 11163  			if (iNdEx + skippy) > l {
 11164  				return io.ErrUnexpectedEOF
 11165  			}
 11166  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11167  			iNdEx += skippy
 11168  		}
 11169  	}
 11170  
 11171  	if iNdEx > l {
 11172  		return io.ErrUnexpectedEOF
 11173  	}
 11174  	return nil
 11175  }
 11176  func (m *LogStore) Unmarshal(dAtA []byte) error {
 11177  	l := len(dAtA)
 11178  	iNdEx := 0
 11179  	for iNdEx < l {
 11180  		preIndex := iNdEx
 11181  		var wire uint64
 11182  		for shift := uint(0); ; shift += 7 {
 11183  			if shift >= 64 {
 11184  				return ErrIntOverflowLogservice
 11185  			}
 11186  			if iNdEx >= l {
 11187  				return io.ErrUnexpectedEOF
 11188  			}
 11189  			b := dAtA[iNdEx]
 11190  			iNdEx++
 11191  			wire |= uint64(b&0x7F) << shift
 11192  			if b < 0x80 {
 11193  				break
 11194  			}
 11195  		}
 11196  		fieldNum := int32(wire >> 3)
 11197  		wireType := int(wire & 0x7)
 11198  		if wireType == 4 {
 11199  			return fmt.Errorf("proto: LogStore: wiretype end group for non-group")
 11200  		}
 11201  		if fieldNum <= 0 {
 11202  			return fmt.Errorf("proto: LogStore: illegal tag %d (wire type %d)", fieldNum, wire)
 11203  		}
 11204  		switch fieldNum {
 11205  		case 1:
 11206  			if wireType != 2 {
 11207  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 11208  			}
 11209  			var stringLen uint64
 11210  			for shift := uint(0); ; shift += 7 {
 11211  				if shift >= 64 {
 11212  					return ErrIntOverflowLogservice
 11213  				}
 11214  				if iNdEx >= l {
 11215  					return io.ErrUnexpectedEOF
 11216  				}
 11217  				b := dAtA[iNdEx]
 11218  				iNdEx++
 11219  				stringLen |= uint64(b&0x7F) << shift
 11220  				if b < 0x80 {
 11221  					break
 11222  				}
 11223  			}
 11224  			intStringLen := int(stringLen)
 11225  			if intStringLen < 0 {
 11226  				return ErrInvalidLengthLogservice
 11227  			}
 11228  			postIndex := iNdEx + intStringLen
 11229  			if postIndex < 0 {
 11230  				return ErrInvalidLengthLogservice
 11231  			}
 11232  			if postIndex > l {
 11233  				return io.ErrUnexpectedEOF
 11234  			}
 11235  			m.UUID = string(dAtA[iNdEx:postIndex])
 11236  			iNdEx = postIndex
 11237  		case 2:
 11238  			if wireType != 2 {
 11239  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 11240  			}
 11241  			var stringLen uint64
 11242  			for shift := uint(0); ; shift += 7 {
 11243  				if shift >= 64 {
 11244  					return ErrIntOverflowLogservice
 11245  				}
 11246  				if iNdEx >= l {
 11247  					return io.ErrUnexpectedEOF
 11248  				}
 11249  				b := dAtA[iNdEx]
 11250  				iNdEx++
 11251  				stringLen |= uint64(b&0x7F) << shift
 11252  				if b < 0x80 {
 11253  					break
 11254  				}
 11255  			}
 11256  			intStringLen := int(stringLen)
 11257  			if intStringLen < 0 {
 11258  				return ErrInvalidLengthLogservice
 11259  			}
 11260  			postIndex := iNdEx + intStringLen
 11261  			if postIndex < 0 {
 11262  				return ErrInvalidLengthLogservice
 11263  			}
 11264  			if postIndex > l {
 11265  				return io.ErrUnexpectedEOF
 11266  			}
 11267  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 11268  			iNdEx = postIndex
 11269  		case 3:
 11270  			if wireType != 0 {
 11271  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 11272  			}
 11273  			m.Tick = 0
 11274  			for shift := uint(0); ; shift += 7 {
 11275  				if shift >= 64 {
 11276  					return ErrIntOverflowLogservice
 11277  				}
 11278  				if iNdEx >= l {
 11279  					return io.ErrUnexpectedEOF
 11280  				}
 11281  				b := dAtA[iNdEx]
 11282  				iNdEx++
 11283  				m.Tick |= uint64(b&0x7F) << shift
 11284  				if b < 0x80 {
 11285  					break
 11286  				}
 11287  			}
 11288  		case 4:
 11289  			if wireType != 0 {
 11290  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 11291  			}
 11292  			m.State = 0
 11293  			for shift := uint(0); ; shift += 7 {
 11294  				if shift >= 64 {
 11295  					return ErrIntOverflowLogservice
 11296  				}
 11297  				if iNdEx >= l {
 11298  					return io.ErrUnexpectedEOF
 11299  				}
 11300  				b := dAtA[iNdEx]
 11301  				iNdEx++
 11302  				m.State |= NodeState(b&0x7F) << shift
 11303  				if b < 0x80 {
 11304  					break
 11305  				}
 11306  			}
 11307  		case 5:
 11308  			if wireType != 2 {
 11309  				return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
 11310  			}
 11311  			var msglen int
 11312  			for shift := uint(0); ; shift += 7 {
 11313  				if shift >= 64 {
 11314  					return ErrIntOverflowLogservice
 11315  				}
 11316  				if iNdEx >= l {
 11317  					return io.ErrUnexpectedEOF
 11318  				}
 11319  				b := dAtA[iNdEx]
 11320  				iNdEx++
 11321  				msglen |= int(b&0x7F) << shift
 11322  				if b < 0x80 {
 11323  					break
 11324  				}
 11325  			}
 11326  			if msglen < 0 {
 11327  				return ErrInvalidLengthLogservice
 11328  			}
 11329  			postIndex := iNdEx + msglen
 11330  			if postIndex < 0 {
 11331  				return ErrInvalidLengthLogservice
 11332  			}
 11333  			if postIndex > l {
 11334  				return io.ErrUnexpectedEOF
 11335  			}
 11336  			m.Replicas = append(m.Replicas, LogReplicaInfo{})
 11337  			if err := m.Replicas[len(m.Replicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11338  				return err
 11339  			}
 11340  			iNdEx = postIndex
 11341  		case 6:
 11342  			if wireType != 2 {
 11343  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 11344  			}
 11345  			var msglen int
 11346  			for shift := uint(0); ; shift += 7 {
 11347  				if shift >= 64 {
 11348  					return ErrIntOverflowLogservice
 11349  				}
 11350  				if iNdEx >= l {
 11351  					return io.ErrUnexpectedEOF
 11352  				}
 11353  				b := dAtA[iNdEx]
 11354  				iNdEx++
 11355  				msglen |= int(b&0x7F) << shift
 11356  				if b < 0x80 {
 11357  					break
 11358  				}
 11359  			}
 11360  			if msglen < 0 {
 11361  				return ErrInvalidLengthLogservice
 11362  			}
 11363  			postIndex := iNdEx + msglen
 11364  			if postIndex < 0 {
 11365  				return ErrInvalidLengthLogservice
 11366  			}
 11367  			if postIndex > l {
 11368  				return io.ErrUnexpectedEOF
 11369  			}
 11370  			if m.ConfigData == nil {
 11371  				m.ConfigData = &ConfigData{}
 11372  			}
 11373  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11374  				return err
 11375  			}
 11376  			iNdEx = postIndex
 11377  		default:
 11378  			iNdEx = preIndex
 11379  			skippy, err := skipLogservice(dAtA[iNdEx:])
 11380  			if err != nil {
 11381  				return err
 11382  			}
 11383  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11384  				return ErrInvalidLengthLogservice
 11385  			}
 11386  			if (iNdEx + skippy) > l {
 11387  				return io.ErrUnexpectedEOF
 11388  			}
 11389  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11390  			iNdEx += skippy
 11391  		}
 11392  	}
 11393  
 11394  	if iNdEx > l {
 11395  		return io.ErrUnexpectedEOF
 11396  	}
 11397  	return nil
 11398  }
 11399  func (m *LogShardInfo) Unmarshal(dAtA []byte) error {
 11400  	l := len(dAtA)
 11401  	iNdEx := 0
 11402  	for iNdEx < l {
 11403  		preIndex := iNdEx
 11404  		var wire uint64
 11405  		for shift := uint(0); ; shift += 7 {
 11406  			if shift >= 64 {
 11407  				return ErrIntOverflowLogservice
 11408  			}
 11409  			if iNdEx >= l {
 11410  				return io.ErrUnexpectedEOF
 11411  			}
 11412  			b := dAtA[iNdEx]
 11413  			iNdEx++
 11414  			wire |= uint64(b&0x7F) << shift
 11415  			if b < 0x80 {
 11416  				break
 11417  			}
 11418  		}
 11419  		fieldNum := int32(wire >> 3)
 11420  		wireType := int(wire & 0x7)
 11421  		if wireType == 4 {
 11422  			return fmt.Errorf("proto: LogShardInfo: wiretype end group for non-group")
 11423  		}
 11424  		if fieldNum <= 0 {
 11425  			return fmt.Errorf("proto: LogShardInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 11426  		}
 11427  		switch fieldNum {
 11428  		case 1:
 11429  			if wireType != 0 {
 11430  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 11431  			}
 11432  			m.ShardID = 0
 11433  			for shift := uint(0); ; shift += 7 {
 11434  				if shift >= 64 {
 11435  					return ErrIntOverflowLogservice
 11436  				}
 11437  				if iNdEx >= l {
 11438  					return io.ErrUnexpectedEOF
 11439  				}
 11440  				b := dAtA[iNdEx]
 11441  				iNdEx++
 11442  				m.ShardID |= uint64(b&0x7F) << shift
 11443  				if b < 0x80 {
 11444  					break
 11445  				}
 11446  			}
 11447  		case 2:
 11448  			if wireType != 2 {
 11449  				return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
 11450  			}
 11451  			var msglen int
 11452  			for shift := uint(0); ; shift += 7 {
 11453  				if shift >= 64 {
 11454  					return ErrIntOverflowLogservice
 11455  				}
 11456  				if iNdEx >= l {
 11457  					return io.ErrUnexpectedEOF
 11458  				}
 11459  				b := dAtA[iNdEx]
 11460  				iNdEx++
 11461  				msglen |= int(b&0x7F) << shift
 11462  				if b < 0x80 {
 11463  					break
 11464  				}
 11465  			}
 11466  			if msglen < 0 {
 11467  				return ErrInvalidLengthLogservice
 11468  			}
 11469  			postIndex := iNdEx + msglen
 11470  			if postIndex < 0 {
 11471  				return ErrInvalidLengthLogservice
 11472  			}
 11473  			if postIndex > l {
 11474  				return io.ErrUnexpectedEOF
 11475  			}
 11476  			if m.Replicas == nil {
 11477  				m.Replicas = make(map[uint64]string)
 11478  			}
 11479  			var mapkey uint64
 11480  			var mapvalue string
 11481  			for iNdEx < postIndex {
 11482  				entryPreIndex := iNdEx
 11483  				var wire uint64
 11484  				for shift := uint(0); ; shift += 7 {
 11485  					if shift >= 64 {
 11486  						return ErrIntOverflowLogservice
 11487  					}
 11488  					if iNdEx >= l {
 11489  						return io.ErrUnexpectedEOF
 11490  					}
 11491  					b := dAtA[iNdEx]
 11492  					iNdEx++
 11493  					wire |= uint64(b&0x7F) << shift
 11494  					if b < 0x80 {
 11495  						break
 11496  					}
 11497  				}
 11498  				fieldNum := int32(wire >> 3)
 11499  				if fieldNum == 1 {
 11500  					for shift := uint(0); ; shift += 7 {
 11501  						if shift >= 64 {
 11502  							return ErrIntOverflowLogservice
 11503  						}
 11504  						if iNdEx >= l {
 11505  							return io.ErrUnexpectedEOF
 11506  						}
 11507  						b := dAtA[iNdEx]
 11508  						iNdEx++
 11509  						mapkey |= uint64(b&0x7F) << shift
 11510  						if b < 0x80 {
 11511  							break
 11512  						}
 11513  					}
 11514  				} else if fieldNum == 2 {
 11515  					var stringLenmapvalue uint64
 11516  					for shift := uint(0); ; shift += 7 {
 11517  						if shift >= 64 {
 11518  							return ErrIntOverflowLogservice
 11519  						}
 11520  						if iNdEx >= l {
 11521  							return io.ErrUnexpectedEOF
 11522  						}
 11523  						b := dAtA[iNdEx]
 11524  						iNdEx++
 11525  						stringLenmapvalue |= uint64(b&0x7F) << shift
 11526  						if b < 0x80 {
 11527  							break
 11528  						}
 11529  					}
 11530  					intStringLenmapvalue := int(stringLenmapvalue)
 11531  					if intStringLenmapvalue < 0 {
 11532  						return ErrInvalidLengthLogservice
 11533  					}
 11534  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
 11535  					if postStringIndexmapvalue < 0 {
 11536  						return ErrInvalidLengthLogservice
 11537  					}
 11538  					if postStringIndexmapvalue > l {
 11539  						return io.ErrUnexpectedEOF
 11540  					}
 11541  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
 11542  					iNdEx = postStringIndexmapvalue
 11543  				} else {
 11544  					iNdEx = entryPreIndex
 11545  					skippy, err := skipLogservice(dAtA[iNdEx:])
 11546  					if err != nil {
 11547  						return err
 11548  					}
 11549  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 11550  						return ErrInvalidLengthLogservice
 11551  					}
 11552  					if (iNdEx + skippy) > postIndex {
 11553  						return io.ErrUnexpectedEOF
 11554  					}
 11555  					iNdEx += skippy
 11556  				}
 11557  			}
 11558  			m.Replicas[mapkey] = mapvalue
 11559  			iNdEx = postIndex
 11560  		case 3:
 11561  			if wireType != 0 {
 11562  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
 11563  			}
 11564  			m.Epoch = 0
 11565  			for shift := uint(0); ; shift += 7 {
 11566  				if shift >= 64 {
 11567  					return ErrIntOverflowLogservice
 11568  				}
 11569  				if iNdEx >= l {
 11570  					return io.ErrUnexpectedEOF
 11571  				}
 11572  				b := dAtA[iNdEx]
 11573  				iNdEx++
 11574  				m.Epoch |= uint64(b&0x7F) << shift
 11575  				if b < 0x80 {
 11576  					break
 11577  				}
 11578  			}
 11579  		case 4:
 11580  			if wireType != 0 {
 11581  				return fmt.Errorf("proto: wrong wireType = %d for field LeaderID", wireType)
 11582  			}
 11583  			m.LeaderID = 0
 11584  			for shift := uint(0); ; shift += 7 {
 11585  				if shift >= 64 {
 11586  					return ErrIntOverflowLogservice
 11587  				}
 11588  				if iNdEx >= l {
 11589  					return io.ErrUnexpectedEOF
 11590  				}
 11591  				b := dAtA[iNdEx]
 11592  				iNdEx++
 11593  				m.LeaderID |= uint64(b&0x7F) << shift
 11594  				if b < 0x80 {
 11595  					break
 11596  				}
 11597  			}
 11598  		case 5:
 11599  			if wireType != 0 {
 11600  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
 11601  			}
 11602  			m.Term = 0
 11603  			for shift := uint(0); ; shift += 7 {
 11604  				if shift >= 64 {
 11605  					return ErrIntOverflowLogservice
 11606  				}
 11607  				if iNdEx >= l {
 11608  					return io.ErrUnexpectedEOF
 11609  				}
 11610  				b := dAtA[iNdEx]
 11611  				iNdEx++
 11612  				m.Term |= uint64(b&0x7F) << shift
 11613  				if b < 0x80 {
 11614  					break
 11615  				}
 11616  			}
 11617  		default:
 11618  			iNdEx = preIndex
 11619  			skippy, err := skipLogservice(dAtA[iNdEx:])
 11620  			if err != nil {
 11621  				return err
 11622  			}
 11623  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11624  				return ErrInvalidLengthLogservice
 11625  			}
 11626  			if (iNdEx + skippy) > l {
 11627  				return io.ErrUnexpectedEOF
 11628  			}
 11629  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11630  			iNdEx += skippy
 11631  		}
 11632  	}
 11633  
 11634  	if iNdEx > l {
 11635  		return io.ErrUnexpectedEOF
 11636  	}
 11637  	return nil
 11638  }
 11639  func (m *LogReplicaInfo) Unmarshal(dAtA []byte) error {
 11640  	l := len(dAtA)
 11641  	iNdEx := 0
 11642  	for iNdEx < l {
 11643  		preIndex := iNdEx
 11644  		var wire uint64
 11645  		for shift := uint(0); ; shift += 7 {
 11646  			if shift >= 64 {
 11647  				return ErrIntOverflowLogservice
 11648  			}
 11649  			if iNdEx >= l {
 11650  				return io.ErrUnexpectedEOF
 11651  			}
 11652  			b := dAtA[iNdEx]
 11653  			iNdEx++
 11654  			wire |= uint64(b&0x7F) << shift
 11655  			if b < 0x80 {
 11656  				break
 11657  			}
 11658  		}
 11659  		fieldNum := int32(wire >> 3)
 11660  		wireType := int(wire & 0x7)
 11661  		if wireType == 4 {
 11662  			return fmt.Errorf("proto: LogReplicaInfo: wiretype end group for non-group")
 11663  		}
 11664  		if fieldNum <= 0 {
 11665  			return fmt.Errorf("proto: LogReplicaInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 11666  		}
 11667  		switch fieldNum {
 11668  		case 1:
 11669  			if wireType != 2 {
 11670  				return fmt.Errorf("proto: wrong wireType = %d for field LogShardInfo", wireType)
 11671  			}
 11672  			var msglen int
 11673  			for shift := uint(0); ; shift += 7 {
 11674  				if shift >= 64 {
 11675  					return ErrIntOverflowLogservice
 11676  				}
 11677  				if iNdEx >= l {
 11678  					return io.ErrUnexpectedEOF
 11679  				}
 11680  				b := dAtA[iNdEx]
 11681  				iNdEx++
 11682  				msglen |= int(b&0x7F) << shift
 11683  				if b < 0x80 {
 11684  					break
 11685  				}
 11686  			}
 11687  			if msglen < 0 {
 11688  				return ErrInvalidLengthLogservice
 11689  			}
 11690  			postIndex := iNdEx + msglen
 11691  			if postIndex < 0 {
 11692  				return ErrInvalidLengthLogservice
 11693  			}
 11694  			if postIndex > l {
 11695  				return io.ErrUnexpectedEOF
 11696  			}
 11697  			if err := m.LogShardInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11698  				return err
 11699  			}
 11700  			iNdEx = postIndex
 11701  		case 2:
 11702  			if wireType != 0 {
 11703  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType)
 11704  			}
 11705  			m.ReplicaID = 0
 11706  			for shift := uint(0); ; shift += 7 {
 11707  				if shift >= 64 {
 11708  					return ErrIntOverflowLogservice
 11709  				}
 11710  				if iNdEx >= l {
 11711  					return io.ErrUnexpectedEOF
 11712  				}
 11713  				b := dAtA[iNdEx]
 11714  				iNdEx++
 11715  				m.ReplicaID |= uint64(b&0x7F) << shift
 11716  				if b < 0x80 {
 11717  					break
 11718  				}
 11719  			}
 11720  		default:
 11721  			iNdEx = preIndex
 11722  			skippy, err := skipLogservice(dAtA[iNdEx:])
 11723  			if err != nil {
 11724  				return err
 11725  			}
 11726  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11727  				return ErrInvalidLengthLogservice
 11728  			}
 11729  			if (iNdEx + skippy) > l {
 11730  				return io.ErrUnexpectedEOF
 11731  			}
 11732  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11733  			iNdEx += skippy
 11734  		}
 11735  	}
 11736  
 11737  	if iNdEx > l {
 11738  		return io.ErrUnexpectedEOF
 11739  	}
 11740  	return nil
 11741  }
 11742  func (m *Resource) Unmarshal(dAtA []byte) error {
 11743  	l := len(dAtA)
 11744  	iNdEx := 0
 11745  	for iNdEx < l {
 11746  		preIndex := iNdEx
 11747  		var wire uint64
 11748  		for shift := uint(0); ; shift += 7 {
 11749  			if shift >= 64 {
 11750  				return ErrIntOverflowLogservice
 11751  			}
 11752  			if iNdEx >= l {
 11753  				return io.ErrUnexpectedEOF
 11754  			}
 11755  			b := dAtA[iNdEx]
 11756  			iNdEx++
 11757  			wire |= uint64(b&0x7F) << shift
 11758  			if b < 0x80 {
 11759  				break
 11760  			}
 11761  		}
 11762  		fieldNum := int32(wire >> 3)
 11763  		wireType := int(wire & 0x7)
 11764  		if wireType == 4 {
 11765  			return fmt.Errorf("proto: Resource: wiretype end group for non-group")
 11766  		}
 11767  		if fieldNum <= 0 {
 11768  			return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire)
 11769  		}
 11770  		switch fieldNum {
 11771  		case 1:
 11772  			if wireType != 0 {
 11773  				return fmt.Errorf("proto: wrong wireType = %d for field CPUTotal", wireType)
 11774  			}
 11775  			m.CPUTotal = 0
 11776  			for shift := uint(0); ; shift += 7 {
 11777  				if shift >= 64 {
 11778  					return ErrIntOverflowLogservice
 11779  				}
 11780  				if iNdEx >= l {
 11781  					return io.ErrUnexpectedEOF
 11782  				}
 11783  				b := dAtA[iNdEx]
 11784  				iNdEx++
 11785  				m.CPUTotal |= uint64(b&0x7F) << shift
 11786  				if b < 0x80 {
 11787  					break
 11788  				}
 11789  			}
 11790  		case 2:
 11791  			if wireType != 1 {
 11792  				return fmt.Errorf("proto: wrong wireType = %d for field CPUAvailable", wireType)
 11793  			}
 11794  			var v uint64
 11795  			if (iNdEx + 8) > l {
 11796  				return io.ErrUnexpectedEOF
 11797  			}
 11798  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 11799  			iNdEx += 8
 11800  			m.CPUAvailable = float64(math.Float64frombits(v))
 11801  		case 3:
 11802  			if wireType != 0 {
 11803  				return fmt.Errorf("proto: wrong wireType = %d for field MemTotal", wireType)
 11804  			}
 11805  			m.MemTotal = 0
 11806  			for shift := uint(0); ; shift += 7 {
 11807  				if shift >= 64 {
 11808  					return ErrIntOverflowLogservice
 11809  				}
 11810  				if iNdEx >= l {
 11811  					return io.ErrUnexpectedEOF
 11812  				}
 11813  				b := dAtA[iNdEx]
 11814  				iNdEx++
 11815  				m.MemTotal |= uint64(b&0x7F) << shift
 11816  				if b < 0x80 {
 11817  					break
 11818  				}
 11819  			}
 11820  		case 4:
 11821  			if wireType != 0 {
 11822  				return fmt.Errorf("proto: wrong wireType = %d for field MemAvailable", wireType)
 11823  			}
 11824  			m.MemAvailable = 0
 11825  			for shift := uint(0); ; shift += 7 {
 11826  				if shift >= 64 {
 11827  					return ErrIntOverflowLogservice
 11828  				}
 11829  				if iNdEx >= l {
 11830  					return io.ErrUnexpectedEOF
 11831  				}
 11832  				b := dAtA[iNdEx]
 11833  				iNdEx++
 11834  				m.MemAvailable |= uint64(b&0x7F) << shift
 11835  				if b < 0x80 {
 11836  					break
 11837  				}
 11838  			}
 11839  		default:
 11840  			iNdEx = preIndex
 11841  			skippy, err := skipLogservice(dAtA[iNdEx:])
 11842  			if err != nil {
 11843  				return err
 11844  			}
 11845  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 11846  				return ErrInvalidLengthLogservice
 11847  			}
 11848  			if (iNdEx + skippy) > l {
 11849  				return io.ErrUnexpectedEOF
 11850  			}
 11851  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11852  			iNdEx += skippy
 11853  		}
 11854  	}
 11855  
 11856  	if iNdEx > l {
 11857  		return io.ErrUnexpectedEOF
 11858  	}
 11859  	return nil
 11860  }
 11861  func (m *CNStoreHeartbeat) Unmarshal(dAtA []byte) error {
 11862  	l := len(dAtA)
 11863  	iNdEx := 0
 11864  	for iNdEx < l {
 11865  		preIndex := iNdEx
 11866  		var wire uint64
 11867  		for shift := uint(0); ; shift += 7 {
 11868  			if shift >= 64 {
 11869  				return ErrIntOverflowLogservice
 11870  			}
 11871  			if iNdEx >= l {
 11872  				return io.ErrUnexpectedEOF
 11873  			}
 11874  			b := dAtA[iNdEx]
 11875  			iNdEx++
 11876  			wire |= uint64(b&0x7F) << shift
 11877  			if b < 0x80 {
 11878  				break
 11879  			}
 11880  		}
 11881  		fieldNum := int32(wire >> 3)
 11882  		wireType := int(wire & 0x7)
 11883  		if wireType == 4 {
 11884  			return fmt.Errorf("proto: CNStoreHeartbeat: wiretype end group for non-group")
 11885  		}
 11886  		if fieldNum <= 0 {
 11887  			return fmt.Errorf("proto: CNStoreHeartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
 11888  		}
 11889  		switch fieldNum {
 11890  		case 1:
 11891  			if wireType != 2 {
 11892  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 11893  			}
 11894  			var stringLen uint64
 11895  			for shift := uint(0); ; shift += 7 {
 11896  				if shift >= 64 {
 11897  					return ErrIntOverflowLogservice
 11898  				}
 11899  				if iNdEx >= l {
 11900  					return io.ErrUnexpectedEOF
 11901  				}
 11902  				b := dAtA[iNdEx]
 11903  				iNdEx++
 11904  				stringLen |= uint64(b&0x7F) << shift
 11905  				if b < 0x80 {
 11906  					break
 11907  				}
 11908  			}
 11909  			intStringLen := int(stringLen)
 11910  			if intStringLen < 0 {
 11911  				return ErrInvalidLengthLogservice
 11912  			}
 11913  			postIndex := iNdEx + intStringLen
 11914  			if postIndex < 0 {
 11915  				return ErrInvalidLengthLogservice
 11916  			}
 11917  			if postIndex > l {
 11918  				return io.ErrUnexpectedEOF
 11919  			}
 11920  			m.UUID = string(dAtA[iNdEx:postIndex])
 11921  			iNdEx = postIndex
 11922  		case 2:
 11923  			if wireType != 2 {
 11924  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 11925  			}
 11926  			var stringLen uint64
 11927  			for shift := uint(0); ; shift += 7 {
 11928  				if shift >= 64 {
 11929  					return ErrIntOverflowLogservice
 11930  				}
 11931  				if iNdEx >= l {
 11932  					return io.ErrUnexpectedEOF
 11933  				}
 11934  				b := dAtA[iNdEx]
 11935  				iNdEx++
 11936  				stringLen |= uint64(b&0x7F) << shift
 11937  				if b < 0x80 {
 11938  					break
 11939  				}
 11940  			}
 11941  			intStringLen := int(stringLen)
 11942  			if intStringLen < 0 {
 11943  				return ErrInvalidLengthLogservice
 11944  			}
 11945  			postIndex := iNdEx + intStringLen
 11946  			if postIndex < 0 {
 11947  				return ErrInvalidLengthLogservice
 11948  			}
 11949  			if postIndex > l {
 11950  				return io.ErrUnexpectedEOF
 11951  			}
 11952  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 11953  			iNdEx = postIndex
 11954  		case 3:
 11955  			if wireType != 2 {
 11956  				return fmt.Errorf("proto: wrong wireType = %d for field SQLAddress", wireType)
 11957  			}
 11958  			var stringLen uint64
 11959  			for shift := uint(0); ; shift += 7 {
 11960  				if shift >= 64 {
 11961  					return ErrIntOverflowLogservice
 11962  				}
 11963  				if iNdEx >= l {
 11964  					return io.ErrUnexpectedEOF
 11965  				}
 11966  				b := dAtA[iNdEx]
 11967  				iNdEx++
 11968  				stringLen |= uint64(b&0x7F) << shift
 11969  				if b < 0x80 {
 11970  					break
 11971  				}
 11972  			}
 11973  			intStringLen := int(stringLen)
 11974  			if intStringLen < 0 {
 11975  				return ErrInvalidLengthLogservice
 11976  			}
 11977  			postIndex := iNdEx + intStringLen
 11978  			if postIndex < 0 {
 11979  				return ErrInvalidLengthLogservice
 11980  			}
 11981  			if postIndex > l {
 11982  				return io.ErrUnexpectedEOF
 11983  			}
 11984  			m.SQLAddress = string(dAtA[iNdEx:postIndex])
 11985  			iNdEx = postIndex
 11986  		case 4:
 11987  			if wireType != 2 {
 11988  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 11989  			}
 11990  			var stringLen uint64
 11991  			for shift := uint(0); ; shift += 7 {
 11992  				if shift >= 64 {
 11993  					return ErrIntOverflowLogservice
 11994  				}
 11995  				if iNdEx >= l {
 11996  					return io.ErrUnexpectedEOF
 11997  				}
 11998  				b := dAtA[iNdEx]
 11999  				iNdEx++
 12000  				stringLen |= uint64(b&0x7F) << shift
 12001  				if b < 0x80 {
 12002  					break
 12003  				}
 12004  			}
 12005  			intStringLen := int(stringLen)
 12006  			if intStringLen < 0 {
 12007  				return ErrInvalidLengthLogservice
 12008  			}
 12009  			postIndex := iNdEx + intStringLen
 12010  			if postIndex < 0 {
 12011  				return ErrInvalidLengthLogservice
 12012  			}
 12013  			if postIndex > l {
 12014  				return io.ErrUnexpectedEOF
 12015  			}
 12016  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 12017  			iNdEx = postIndex
 12018  		case 6:
 12019  			if wireType != 0 {
 12020  				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
 12021  			}
 12022  			m.Role = 0
 12023  			for shift := uint(0); ; shift += 7 {
 12024  				if shift >= 64 {
 12025  					return ErrIntOverflowLogservice
 12026  				}
 12027  				if iNdEx >= l {
 12028  					return io.ErrUnexpectedEOF
 12029  				}
 12030  				b := dAtA[iNdEx]
 12031  				iNdEx++
 12032  				m.Role |= metadata.CNRole(b&0x7F) << shift
 12033  				if b < 0x80 {
 12034  					break
 12035  				}
 12036  			}
 12037  		case 7:
 12038  			if wireType != 0 {
 12039  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 12040  			}
 12041  			var v int
 12042  			for shift := uint(0); ; shift += 7 {
 12043  				if shift >= 64 {
 12044  					return ErrIntOverflowLogservice
 12045  				}
 12046  				if iNdEx >= l {
 12047  					return io.ErrUnexpectedEOF
 12048  				}
 12049  				b := dAtA[iNdEx]
 12050  				iNdEx++
 12051  				v |= int(b&0x7F) << shift
 12052  				if b < 0x80 {
 12053  					break
 12054  				}
 12055  			}
 12056  			m.TaskServiceCreated = bool(v != 0)
 12057  		case 8:
 12058  			if wireType != 2 {
 12059  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 12060  			}
 12061  			var stringLen uint64
 12062  			for shift := uint(0); ; shift += 7 {
 12063  				if shift >= 64 {
 12064  					return ErrIntOverflowLogservice
 12065  				}
 12066  				if iNdEx >= l {
 12067  					return io.ErrUnexpectedEOF
 12068  				}
 12069  				b := dAtA[iNdEx]
 12070  				iNdEx++
 12071  				stringLen |= uint64(b&0x7F) << shift
 12072  				if b < 0x80 {
 12073  					break
 12074  				}
 12075  			}
 12076  			intStringLen := int(stringLen)
 12077  			if intStringLen < 0 {
 12078  				return ErrInvalidLengthLogservice
 12079  			}
 12080  			postIndex := iNdEx + intStringLen
 12081  			if postIndex < 0 {
 12082  				return ErrInvalidLengthLogservice
 12083  			}
 12084  			if postIndex > l {
 12085  				return io.ErrUnexpectedEOF
 12086  			}
 12087  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 12088  			iNdEx = postIndex
 12089  		case 9:
 12090  			if wireType != 2 {
 12091  				return fmt.Errorf("proto: wrong wireType = %d for field InitWorkState", wireType)
 12092  			}
 12093  			var stringLen uint64
 12094  			for shift := uint(0); ; shift += 7 {
 12095  				if shift >= 64 {
 12096  					return ErrIntOverflowLogservice
 12097  				}
 12098  				if iNdEx >= l {
 12099  					return io.ErrUnexpectedEOF
 12100  				}
 12101  				b := dAtA[iNdEx]
 12102  				iNdEx++
 12103  				stringLen |= uint64(b&0x7F) << shift
 12104  				if b < 0x80 {
 12105  					break
 12106  				}
 12107  			}
 12108  			intStringLen := int(stringLen)
 12109  			if intStringLen < 0 {
 12110  				return ErrInvalidLengthLogservice
 12111  			}
 12112  			postIndex := iNdEx + intStringLen
 12113  			if postIndex < 0 {
 12114  				return ErrInvalidLengthLogservice
 12115  			}
 12116  			if postIndex > l {
 12117  				return io.ErrUnexpectedEOF
 12118  			}
 12119  			m.InitWorkState = string(dAtA[iNdEx:postIndex])
 12120  			iNdEx = postIndex
 12121  		case 10:
 12122  			if wireType != 2 {
 12123  				return fmt.Errorf("proto: wrong wireType = %d for field GossipAddress", wireType)
 12124  			}
 12125  			var stringLen uint64
 12126  			for shift := uint(0); ; shift += 7 {
 12127  				if shift >= 64 {
 12128  					return ErrIntOverflowLogservice
 12129  				}
 12130  				if iNdEx >= l {
 12131  					return io.ErrUnexpectedEOF
 12132  				}
 12133  				b := dAtA[iNdEx]
 12134  				iNdEx++
 12135  				stringLen |= uint64(b&0x7F) << shift
 12136  				if b < 0x80 {
 12137  					break
 12138  				}
 12139  			}
 12140  			intStringLen := int(stringLen)
 12141  			if intStringLen < 0 {
 12142  				return ErrInvalidLengthLogservice
 12143  			}
 12144  			postIndex := iNdEx + intStringLen
 12145  			if postIndex < 0 {
 12146  				return ErrInvalidLengthLogservice
 12147  			}
 12148  			if postIndex > l {
 12149  				return io.ErrUnexpectedEOF
 12150  			}
 12151  			m.GossipAddress = string(dAtA[iNdEx:postIndex])
 12152  			iNdEx = postIndex
 12153  		case 11:
 12154  			if wireType != 0 {
 12155  				return fmt.Errorf("proto: wrong wireType = %d for field GossipJoined", wireType)
 12156  			}
 12157  			var v int
 12158  			for shift := uint(0); ; shift += 7 {
 12159  				if shift >= 64 {
 12160  					return ErrIntOverflowLogservice
 12161  				}
 12162  				if iNdEx >= l {
 12163  					return io.ErrUnexpectedEOF
 12164  				}
 12165  				b := dAtA[iNdEx]
 12166  				iNdEx++
 12167  				v |= int(b&0x7F) << shift
 12168  				if b < 0x80 {
 12169  					break
 12170  				}
 12171  			}
 12172  			m.GossipJoined = bool(v != 0)
 12173  		case 12:
 12174  			if wireType != 2 {
 12175  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 12176  			}
 12177  			var msglen int
 12178  			for shift := uint(0); ; shift += 7 {
 12179  				if shift >= 64 {
 12180  					return ErrIntOverflowLogservice
 12181  				}
 12182  				if iNdEx >= l {
 12183  					return io.ErrUnexpectedEOF
 12184  				}
 12185  				b := dAtA[iNdEx]
 12186  				iNdEx++
 12187  				msglen |= int(b&0x7F) << shift
 12188  				if b < 0x80 {
 12189  					break
 12190  				}
 12191  			}
 12192  			if msglen < 0 {
 12193  				return ErrInvalidLengthLogservice
 12194  			}
 12195  			postIndex := iNdEx + msglen
 12196  			if postIndex < 0 {
 12197  				return ErrInvalidLengthLogservice
 12198  			}
 12199  			if postIndex > l {
 12200  				return io.ErrUnexpectedEOF
 12201  			}
 12202  			if m.ConfigData == nil {
 12203  				m.ConfigData = &ConfigData{}
 12204  			}
 12205  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12206  				return err
 12207  			}
 12208  			iNdEx = postIndex
 12209  		case 13:
 12210  			if wireType != 2 {
 12211  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
 12212  			}
 12213  			var msglen int
 12214  			for shift := uint(0); ; shift += 7 {
 12215  				if shift >= 64 {
 12216  					return ErrIntOverflowLogservice
 12217  				}
 12218  				if iNdEx >= l {
 12219  					return io.ErrUnexpectedEOF
 12220  				}
 12221  				b := dAtA[iNdEx]
 12222  				iNdEx++
 12223  				msglen |= int(b&0x7F) << shift
 12224  				if b < 0x80 {
 12225  					break
 12226  				}
 12227  			}
 12228  			if msglen < 0 {
 12229  				return ErrInvalidLengthLogservice
 12230  			}
 12231  			postIndex := iNdEx + msglen
 12232  			if postIndex < 0 {
 12233  				return ErrInvalidLengthLogservice
 12234  			}
 12235  			if postIndex > l {
 12236  				return io.ErrUnexpectedEOF
 12237  			}
 12238  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12239  				return err
 12240  			}
 12241  			iNdEx = postIndex
 12242  		default:
 12243  			iNdEx = preIndex
 12244  			skippy, err := skipLogservice(dAtA[iNdEx:])
 12245  			if err != nil {
 12246  				return err
 12247  			}
 12248  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12249  				return ErrInvalidLengthLogservice
 12250  			}
 12251  			if (iNdEx + skippy) > l {
 12252  				return io.ErrUnexpectedEOF
 12253  			}
 12254  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12255  			iNdEx += skippy
 12256  		}
 12257  	}
 12258  
 12259  	if iNdEx > l {
 12260  		return io.ErrUnexpectedEOF
 12261  	}
 12262  	return nil
 12263  }
 12264  func (m *CNAllocateID) Unmarshal(dAtA []byte) error {
 12265  	l := len(dAtA)
 12266  	iNdEx := 0
 12267  	for iNdEx < l {
 12268  		preIndex := iNdEx
 12269  		var wire uint64
 12270  		for shift := uint(0); ; shift += 7 {
 12271  			if shift >= 64 {
 12272  				return ErrIntOverflowLogservice
 12273  			}
 12274  			if iNdEx >= l {
 12275  				return io.ErrUnexpectedEOF
 12276  			}
 12277  			b := dAtA[iNdEx]
 12278  			iNdEx++
 12279  			wire |= uint64(b&0x7F) << shift
 12280  			if b < 0x80 {
 12281  				break
 12282  			}
 12283  		}
 12284  		fieldNum := int32(wire >> 3)
 12285  		wireType := int(wire & 0x7)
 12286  		if wireType == 4 {
 12287  			return fmt.Errorf("proto: CNAllocateID: wiretype end group for non-group")
 12288  		}
 12289  		if fieldNum <= 0 {
 12290  			return fmt.Errorf("proto: CNAllocateID: illegal tag %d (wire type %d)", fieldNum, wire)
 12291  		}
 12292  		switch fieldNum {
 12293  		case 1:
 12294  			if wireType != 2 {
 12295  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 12296  			}
 12297  			var stringLen uint64
 12298  			for shift := uint(0); ; shift += 7 {
 12299  				if shift >= 64 {
 12300  					return ErrIntOverflowLogservice
 12301  				}
 12302  				if iNdEx >= l {
 12303  					return io.ErrUnexpectedEOF
 12304  				}
 12305  				b := dAtA[iNdEx]
 12306  				iNdEx++
 12307  				stringLen |= uint64(b&0x7F) << shift
 12308  				if b < 0x80 {
 12309  					break
 12310  				}
 12311  			}
 12312  			intStringLen := int(stringLen)
 12313  			if intStringLen < 0 {
 12314  				return ErrInvalidLengthLogservice
 12315  			}
 12316  			postIndex := iNdEx + intStringLen
 12317  			if postIndex < 0 {
 12318  				return ErrInvalidLengthLogservice
 12319  			}
 12320  			if postIndex > l {
 12321  				return io.ErrUnexpectedEOF
 12322  			}
 12323  			m.Key = string(dAtA[iNdEx:postIndex])
 12324  			iNdEx = postIndex
 12325  		case 2:
 12326  			if wireType != 0 {
 12327  				return fmt.Errorf("proto: wrong wireType = %d for field Batch", wireType)
 12328  			}
 12329  			m.Batch = 0
 12330  			for shift := uint(0); ; shift += 7 {
 12331  				if shift >= 64 {
 12332  					return ErrIntOverflowLogservice
 12333  				}
 12334  				if iNdEx >= l {
 12335  					return io.ErrUnexpectedEOF
 12336  				}
 12337  				b := dAtA[iNdEx]
 12338  				iNdEx++
 12339  				m.Batch |= uint64(b&0x7F) << shift
 12340  				if b < 0x80 {
 12341  					break
 12342  				}
 12343  			}
 12344  		default:
 12345  			iNdEx = preIndex
 12346  			skippy, err := skipLogservice(dAtA[iNdEx:])
 12347  			if err != nil {
 12348  				return err
 12349  			}
 12350  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12351  				return ErrInvalidLengthLogservice
 12352  			}
 12353  			if (iNdEx + skippy) > l {
 12354  				return io.ErrUnexpectedEOF
 12355  			}
 12356  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12357  			iNdEx += skippy
 12358  		}
 12359  	}
 12360  
 12361  	if iNdEx > l {
 12362  		return io.ErrUnexpectedEOF
 12363  	}
 12364  	return nil
 12365  }
 12366  func (m *LogStoreHeartbeat) Unmarshal(dAtA []byte) error {
 12367  	l := len(dAtA)
 12368  	iNdEx := 0
 12369  	for iNdEx < l {
 12370  		preIndex := iNdEx
 12371  		var wire uint64
 12372  		for shift := uint(0); ; shift += 7 {
 12373  			if shift >= 64 {
 12374  				return ErrIntOverflowLogservice
 12375  			}
 12376  			if iNdEx >= l {
 12377  				return io.ErrUnexpectedEOF
 12378  			}
 12379  			b := dAtA[iNdEx]
 12380  			iNdEx++
 12381  			wire |= uint64(b&0x7F) << shift
 12382  			if b < 0x80 {
 12383  				break
 12384  			}
 12385  		}
 12386  		fieldNum := int32(wire >> 3)
 12387  		wireType := int(wire & 0x7)
 12388  		if wireType == 4 {
 12389  			return fmt.Errorf("proto: LogStoreHeartbeat: wiretype end group for non-group")
 12390  		}
 12391  		if fieldNum <= 0 {
 12392  			return fmt.Errorf("proto: LogStoreHeartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
 12393  		}
 12394  		switch fieldNum {
 12395  		case 1:
 12396  			if wireType != 2 {
 12397  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 12398  			}
 12399  			var stringLen uint64
 12400  			for shift := uint(0); ; shift += 7 {
 12401  				if shift >= 64 {
 12402  					return ErrIntOverflowLogservice
 12403  				}
 12404  				if iNdEx >= l {
 12405  					return io.ErrUnexpectedEOF
 12406  				}
 12407  				b := dAtA[iNdEx]
 12408  				iNdEx++
 12409  				stringLen |= uint64(b&0x7F) << shift
 12410  				if b < 0x80 {
 12411  					break
 12412  				}
 12413  			}
 12414  			intStringLen := int(stringLen)
 12415  			if intStringLen < 0 {
 12416  				return ErrInvalidLengthLogservice
 12417  			}
 12418  			postIndex := iNdEx + intStringLen
 12419  			if postIndex < 0 {
 12420  				return ErrInvalidLengthLogservice
 12421  			}
 12422  			if postIndex > l {
 12423  				return io.ErrUnexpectedEOF
 12424  			}
 12425  			m.UUID = string(dAtA[iNdEx:postIndex])
 12426  			iNdEx = postIndex
 12427  		case 2:
 12428  			if wireType != 2 {
 12429  				return fmt.Errorf("proto: wrong wireType = %d for field RaftAddress", wireType)
 12430  			}
 12431  			var stringLen uint64
 12432  			for shift := uint(0); ; shift += 7 {
 12433  				if shift >= 64 {
 12434  					return ErrIntOverflowLogservice
 12435  				}
 12436  				if iNdEx >= l {
 12437  					return io.ErrUnexpectedEOF
 12438  				}
 12439  				b := dAtA[iNdEx]
 12440  				iNdEx++
 12441  				stringLen |= uint64(b&0x7F) << shift
 12442  				if b < 0x80 {
 12443  					break
 12444  				}
 12445  			}
 12446  			intStringLen := int(stringLen)
 12447  			if intStringLen < 0 {
 12448  				return ErrInvalidLengthLogservice
 12449  			}
 12450  			postIndex := iNdEx + intStringLen
 12451  			if postIndex < 0 {
 12452  				return ErrInvalidLengthLogservice
 12453  			}
 12454  			if postIndex > l {
 12455  				return io.ErrUnexpectedEOF
 12456  			}
 12457  			m.RaftAddress = string(dAtA[iNdEx:postIndex])
 12458  			iNdEx = postIndex
 12459  		case 3:
 12460  			if wireType != 2 {
 12461  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 12462  			}
 12463  			var stringLen uint64
 12464  			for shift := uint(0); ; shift += 7 {
 12465  				if shift >= 64 {
 12466  					return ErrIntOverflowLogservice
 12467  				}
 12468  				if iNdEx >= l {
 12469  					return io.ErrUnexpectedEOF
 12470  				}
 12471  				b := dAtA[iNdEx]
 12472  				iNdEx++
 12473  				stringLen |= uint64(b&0x7F) << shift
 12474  				if b < 0x80 {
 12475  					break
 12476  				}
 12477  			}
 12478  			intStringLen := int(stringLen)
 12479  			if intStringLen < 0 {
 12480  				return ErrInvalidLengthLogservice
 12481  			}
 12482  			postIndex := iNdEx + intStringLen
 12483  			if postIndex < 0 {
 12484  				return ErrInvalidLengthLogservice
 12485  			}
 12486  			if postIndex > l {
 12487  				return io.ErrUnexpectedEOF
 12488  			}
 12489  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 12490  			iNdEx = postIndex
 12491  		case 4:
 12492  			if wireType != 2 {
 12493  				return fmt.Errorf("proto: wrong wireType = %d for field GossipAddress", wireType)
 12494  			}
 12495  			var stringLen uint64
 12496  			for shift := uint(0); ; shift += 7 {
 12497  				if shift >= 64 {
 12498  					return ErrIntOverflowLogservice
 12499  				}
 12500  				if iNdEx >= l {
 12501  					return io.ErrUnexpectedEOF
 12502  				}
 12503  				b := dAtA[iNdEx]
 12504  				iNdEx++
 12505  				stringLen |= uint64(b&0x7F) << shift
 12506  				if b < 0x80 {
 12507  					break
 12508  				}
 12509  			}
 12510  			intStringLen := int(stringLen)
 12511  			if intStringLen < 0 {
 12512  				return ErrInvalidLengthLogservice
 12513  			}
 12514  			postIndex := iNdEx + intStringLen
 12515  			if postIndex < 0 {
 12516  				return ErrInvalidLengthLogservice
 12517  			}
 12518  			if postIndex > l {
 12519  				return io.ErrUnexpectedEOF
 12520  			}
 12521  			m.GossipAddress = string(dAtA[iNdEx:postIndex])
 12522  			iNdEx = postIndex
 12523  		case 5:
 12524  			if wireType != 2 {
 12525  				return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
 12526  			}
 12527  			var msglen int
 12528  			for shift := uint(0); ; shift += 7 {
 12529  				if shift >= 64 {
 12530  					return ErrIntOverflowLogservice
 12531  				}
 12532  				if iNdEx >= l {
 12533  					return io.ErrUnexpectedEOF
 12534  				}
 12535  				b := dAtA[iNdEx]
 12536  				iNdEx++
 12537  				msglen |= int(b&0x7F) << shift
 12538  				if b < 0x80 {
 12539  					break
 12540  				}
 12541  			}
 12542  			if msglen < 0 {
 12543  				return ErrInvalidLengthLogservice
 12544  			}
 12545  			postIndex := iNdEx + msglen
 12546  			if postIndex < 0 {
 12547  				return ErrInvalidLengthLogservice
 12548  			}
 12549  			if postIndex > l {
 12550  				return io.ErrUnexpectedEOF
 12551  			}
 12552  			m.Replicas = append(m.Replicas, LogReplicaInfo{})
 12553  			if err := m.Replicas[len(m.Replicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12554  				return err
 12555  			}
 12556  			iNdEx = postIndex
 12557  		case 6:
 12558  			if wireType != 0 {
 12559  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 12560  			}
 12561  			var v int
 12562  			for shift := uint(0); ; shift += 7 {
 12563  				if shift >= 64 {
 12564  					return ErrIntOverflowLogservice
 12565  				}
 12566  				if iNdEx >= l {
 12567  					return io.ErrUnexpectedEOF
 12568  				}
 12569  				b := dAtA[iNdEx]
 12570  				iNdEx++
 12571  				v |= int(b&0x7F) << shift
 12572  				if b < 0x80 {
 12573  					break
 12574  				}
 12575  			}
 12576  			m.TaskServiceCreated = bool(v != 0)
 12577  		case 7:
 12578  			if wireType != 2 {
 12579  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 12580  			}
 12581  			var msglen int
 12582  			for shift := uint(0); ; shift += 7 {
 12583  				if shift >= 64 {
 12584  					return ErrIntOverflowLogservice
 12585  				}
 12586  				if iNdEx >= l {
 12587  					return io.ErrUnexpectedEOF
 12588  				}
 12589  				b := dAtA[iNdEx]
 12590  				iNdEx++
 12591  				msglen |= int(b&0x7F) << shift
 12592  				if b < 0x80 {
 12593  					break
 12594  				}
 12595  			}
 12596  			if msglen < 0 {
 12597  				return ErrInvalidLengthLogservice
 12598  			}
 12599  			postIndex := iNdEx + msglen
 12600  			if postIndex < 0 {
 12601  				return ErrInvalidLengthLogservice
 12602  			}
 12603  			if postIndex > l {
 12604  				return io.ErrUnexpectedEOF
 12605  			}
 12606  			if m.ConfigData == nil {
 12607  				m.ConfigData = &ConfigData{}
 12608  			}
 12609  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12610  				return err
 12611  			}
 12612  			iNdEx = postIndex
 12613  		default:
 12614  			iNdEx = preIndex
 12615  			skippy, err := skipLogservice(dAtA[iNdEx:])
 12616  			if err != nil {
 12617  				return err
 12618  			}
 12619  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12620  				return ErrInvalidLengthLogservice
 12621  			}
 12622  			if (iNdEx + skippy) > l {
 12623  				return io.ErrUnexpectedEOF
 12624  			}
 12625  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12626  			iNdEx += skippy
 12627  		}
 12628  	}
 12629  
 12630  	if iNdEx > l {
 12631  		return io.ErrUnexpectedEOF
 12632  	}
 12633  	return nil
 12634  }
 12635  func (m *TNShardInfo) Unmarshal(dAtA []byte) error {
 12636  	l := len(dAtA)
 12637  	iNdEx := 0
 12638  	for iNdEx < l {
 12639  		preIndex := iNdEx
 12640  		var wire uint64
 12641  		for shift := uint(0); ; shift += 7 {
 12642  			if shift >= 64 {
 12643  				return ErrIntOverflowLogservice
 12644  			}
 12645  			if iNdEx >= l {
 12646  				return io.ErrUnexpectedEOF
 12647  			}
 12648  			b := dAtA[iNdEx]
 12649  			iNdEx++
 12650  			wire |= uint64(b&0x7F) << shift
 12651  			if b < 0x80 {
 12652  				break
 12653  			}
 12654  		}
 12655  		fieldNum := int32(wire >> 3)
 12656  		wireType := int(wire & 0x7)
 12657  		if wireType == 4 {
 12658  			return fmt.Errorf("proto: TNShardInfo: wiretype end group for non-group")
 12659  		}
 12660  		if fieldNum <= 0 {
 12661  			return fmt.Errorf("proto: TNShardInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 12662  		}
 12663  		switch fieldNum {
 12664  		case 1:
 12665  			if wireType != 0 {
 12666  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 12667  			}
 12668  			m.ShardID = 0
 12669  			for shift := uint(0); ; shift += 7 {
 12670  				if shift >= 64 {
 12671  					return ErrIntOverflowLogservice
 12672  				}
 12673  				if iNdEx >= l {
 12674  					return io.ErrUnexpectedEOF
 12675  				}
 12676  				b := dAtA[iNdEx]
 12677  				iNdEx++
 12678  				m.ShardID |= uint64(b&0x7F) << shift
 12679  				if b < 0x80 {
 12680  					break
 12681  				}
 12682  			}
 12683  		case 2:
 12684  			if wireType != 0 {
 12685  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType)
 12686  			}
 12687  			m.ReplicaID = 0
 12688  			for shift := uint(0); ; shift += 7 {
 12689  				if shift >= 64 {
 12690  					return ErrIntOverflowLogservice
 12691  				}
 12692  				if iNdEx >= l {
 12693  					return io.ErrUnexpectedEOF
 12694  				}
 12695  				b := dAtA[iNdEx]
 12696  				iNdEx++
 12697  				m.ReplicaID |= uint64(b&0x7F) << shift
 12698  				if b < 0x80 {
 12699  					break
 12700  				}
 12701  			}
 12702  		default:
 12703  			iNdEx = preIndex
 12704  			skippy, err := skipLogservice(dAtA[iNdEx:])
 12705  			if err != nil {
 12706  				return err
 12707  			}
 12708  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 12709  				return ErrInvalidLengthLogservice
 12710  			}
 12711  			if (iNdEx + skippy) > l {
 12712  				return io.ErrUnexpectedEOF
 12713  			}
 12714  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12715  			iNdEx += skippy
 12716  		}
 12717  	}
 12718  
 12719  	if iNdEx > l {
 12720  		return io.ErrUnexpectedEOF
 12721  	}
 12722  	return nil
 12723  }
 12724  func (m *TNStoreHeartbeat) Unmarshal(dAtA []byte) error {
 12725  	l := len(dAtA)
 12726  	iNdEx := 0
 12727  	for iNdEx < l {
 12728  		preIndex := iNdEx
 12729  		var wire uint64
 12730  		for shift := uint(0); ; shift += 7 {
 12731  			if shift >= 64 {
 12732  				return ErrIntOverflowLogservice
 12733  			}
 12734  			if iNdEx >= l {
 12735  				return io.ErrUnexpectedEOF
 12736  			}
 12737  			b := dAtA[iNdEx]
 12738  			iNdEx++
 12739  			wire |= uint64(b&0x7F) << shift
 12740  			if b < 0x80 {
 12741  				break
 12742  			}
 12743  		}
 12744  		fieldNum := int32(wire >> 3)
 12745  		wireType := int(wire & 0x7)
 12746  		if wireType == 4 {
 12747  			return fmt.Errorf("proto: TNStoreHeartbeat: wiretype end group for non-group")
 12748  		}
 12749  		if fieldNum <= 0 {
 12750  			return fmt.Errorf("proto: TNStoreHeartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
 12751  		}
 12752  		switch fieldNum {
 12753  		case 1:
 12754  			if wireType != 2 {
 12755  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 12756  			}
 12757  			var stringLen uint64
 12758  			for shift := uint(0); ; shift += 7 {
 12759  				if shift >= 64 {
 12760  					return ErrIntOverflowLogservice
 12761  				}
 12762  				if iNdEx >= l {
 12763  					return io.ErrUnexpectedEOF
 12764  				}
 12765  				b := dAtA[iNdEx]
 12766  				iNdEx++
 12767  				stringLen |= uint64(b&0x7F) << shift
 12768  				if b < 0x80 {
 12769  					break
 12770  				}
 12771  			}
 12772  			intStringLen := int(stringLen)
 12773  			if intStringLen < 0 {
 12774  				return ErrInvalidLengthLogservice
 12775  			}
 12776  			postIndex := iNdEx + intStringLen
 12777  			if postIndex < 0 {
 12778  				return ErrInvalidLengthLogservice
 12779  			}
 12780  			if postIndex > l {
 12781  				return io.ErrUnexpectedEOF
 12782  			}
 12783  			m.UUID = string(dAtA[iNdEx:postIndex])
 12784  			iNdEx = postIndex
 12785  		case 2:
 12786  			if wireType != 2 {
 12787  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 12788  			}
 12789  			var stringLen uint64
 12790  			for shift := uint(0); ; shift += 7 {
 12791  				if shift >= 64 {
 12792  					return ErrIntOverflowLogservice
 12793  				}
 12794  				if iNdEx >= l {
 12795  					return io.ErrUnexpectedEOF
 12796  				}
 12797  				b := dAtA[iNdEx]
 12798  				iNdEx++
 12799  				stringLen |= uint64(b&0x7F) << shift
 12800  				if b < 0x80 {
 12801  					break
 12802  				}
 12803  			}
 12804  			intStringLen := int(stringLen)
 12805  			if intStringLen < 0 {
 12806  				return ErrInvalidLengthLogservice
 12807  			}
 12808  			postIndex := iNdEx + intStringLen
 12809  			if postIndex < 0 {
 12810  				return ErrInvalidLengthLogservice
 12811  			}
 12812  			if postIndex > l {
 12813  				return io.ErrUnexpectedEOF
 12814  			}
 12815  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 12816  			iNdEx = postIndex
 12817  		case 3:
 12818  			if wireType != 2 {
 12819  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
 12820  			}
 12821  			var msglen int
 12822  			for shift := uint(0); ; shift += 7 {
 12823  				if shift >= 64 {
 12824  					return ErrIntOverflowLogservice
 12825  				}
 12826  				if iNdEx >= l {
 12827  					return io.ErrUnexpectedEOF
 12828  				}
 12829  				b := dAtA[iNdEx]
 12830  				iNdEx++
 12831  				msglen |= int(b&0x7F) << shift
 12832  				if b < 0x80 {
 12833  					break
 12834  				}
 12835  			}
 12836  			if msglen < 0 {
 12837  				return ErrInvalidLengthLogservice
 12838  			}
 12839  			postIndex := iNdEx + msglen
 12840  			if postIndex < 0 {
 12841  				return ErrInvalidLengthLogservice
 12842  			}
 12843  			if postIndex > l {
 12844  				return io.ErrUnexpectedEOF
 12845  			}
 12846  			m.Shards = append(m.Shards, TNShardInfo{})
 12847  			if err := m.Shards[len(m.Shards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12848  				return err
 12849  			}
 12850  			iNdEx = postIndex
 12851  		case 4:
 12852  			if wireType != 0 {
 12853  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 12854  			}
 12855  			var v int
 12856  			for shift := uint(0); ; shift += 7 {
 12857  				if shift >= 64 {
 12858  					return ErrIntOverflowLogservice
 12859  				}
 12860  				if iNdEx >= l {
 12861  					return io.ErrUnexpectedEOF
 12862  				}
 12863  				b := dAtA[iNdEx]
 12864  				iNdEx++
 12865  				v |= int(b&0x7F) << shift
 12866  				if b < 0x80 {
 12867  					break
 12868  				}
 12869  			}
 12870  			m.TaskServiceCreated = bool(v != 0)
 12871  		case 5:
 12872  			if wireType != 2 {
 12873  				return fmt.Errorf("proto: wrong wireType = %d for field LogtailServerAddress", wireType)
 12874  			}
 12875  			var stringLen uint64
 12876  			for shift := uint(0); ; shift += 7 {
 12877  				if shift >= 64 {
 12878  					return ErrIntOverflowLogservice
 12879  				}
 12880  				if iNdEx >= l {
 12881  					return io.ErrUnexpectedEOF
 12882  				}
 12883  				b := dAtA[iNdEx]
 12884  				iNdEx++
 12885  				stringLen |= uint64(b&0x7F) << shift
 12886  				if b < 0x80 {
 12887  					break
 12888  				}
 12889  			}
 12890  			intStringLen := int(stringLen)
 12891  			if intStringLen < 0 {
 12892  				return ErrInvalidLengthLogservice
 12893  			}
 12894  			postIndex := iNdEx + intStringLen
 12895  			if postIndex < 0 {
 12896  				return ErrInvalidLengthLogservice
 12897  			}
 12898  			if postIndex > l {
 12899  				return io.ErrUnexpectedEOF
 12900  			}
 12901  			m.LogtailServerAddress = string(dAtA[iNdEx:postIndex])
 12902  			iNdEx = postIndex
 12903  		case 6:
 12904  			if wireType != 2 {
 12905  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 12906  			}
 12907  			var stringLen uint64
 12908  			for shift := uint(0); ; shift += 7 {
 12909  				if shift >= 64 {
 12910  					return ErrIntOverflowLogservice
 12911  				}
 12912  				if iNdEx >= l {
 12913  					return io.ErrUnexpectedEOF
 12914  				}
 12915  				b := dAtA[iNdEx]
 12916  				iNdEx++
 12917  				stringLen |= uint64(b&0x7F) << shift
 12918  				if b < 0x80 {
 12919  					break
 12920  				}
 12921  			}
 12922  			intStringLen := int(stringLen)
 12923  			if intStringLen < 0 {
 12924  				return ErrInvalidLengthLogservice
 12925  			}
 12926  			postIndex := iNdEx + intStringLen
 12927  			if postIndex < 0 {
 12928  				return ErrInvalidLengthLogservice
 12929  			}
 12930  			if postIndex > l {
 12931  				return io.ErrUnexpectedEOF
 12932  			}
 12933  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 12934  			iNdEx = postIndex
 12935  		case 8:
 12936  			if wireType != 2 {
 12937  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 12938  			}
 12939  			var msglen int
 12940  			for shift := uint(0); ; shift += 7 {
 12941  				if shift >= 64 {
 12942  					return ErrIntOverflowLogservice
 12943  				}
 12944  				if iNdEx >= l {
 12945  					return io.ErrUnexpectedEOF
 12946  				}
 12947  				b := dAtA[iNdEx]
 12948  				iNdEx++
 12949  				msglen |= int(b&0x7F) << shift
 12950  				if b < 0x80 {
 12951  					break
 12952  				}
 12953  			}
 12954  			if msglen < 0 {
 12955  				return ErrInvalidLengthLogservice
 12956  			}
 12957  			postIndex := iNdEx + msglen
 12958  			if postIndex < 0 {
 12959  				return ErrInvalidLengthLogservice
 12960  			}
 12961  			if postIndex > l {
 12962  				return io.ErrUnexpectedEOF
 12963  			}
 12964  			if m.ConfigData == nil {
 12965  				m.ConfigData = &ConfigData{}
 12966  			}
 12967  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12968  				return err
 12969  			}
 12970  			iNdEx = postIndex
 12971  		case 9:
 12972  			if wireType != 2 {
 12973  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 12974  			}
 12975  			var stringLen uint64
 12976  			for shift := uint(0); ; shift += 7 {
 12977  				if shift >= 64 {
 12978  					return ErrIntOverflowLogservice
 12979  				}
 12980  				if iNdEx >= l {
 12981  					return io.ErrUnexpectedEOF
 12982  				}
 12983  				b := dAtA[iNdEx]
 12984  				iNdEx++
 12985  				stringLen |= uint64(b&0x7F) << shift
 12986  				if b < 0x80 {
 12987  					break
 12988  				}
 12989  			}
 12990  			intStringLen := int(stringLen)
 12991  			if intStringLen < 0 {
 12992  				return ErrInvalidLengthLogservice
 12993  			}
 12994  			postIndex := iNdEx + intStringLen
 12995  			if postIndex < 0 {
 12996  				return ErrInvalidLengthLogservice
 12997  			}
 12998  			if postIndex > l {
 12999  				return io.ErrUnexpectedEOF
 13000  			}
 13001  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 13002  			iNdEx = postIndex
 13003  		default:
 13004  			iNdEx = preIndex
 13005  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13006  			if err != nil {
 13007  				return err
 13008  			}
 13009  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13010  				return ErrInvalidLengthLogservice
 13011  			}
 13012  			if (iNdEx + skippy) > l {
 13013  				return io.ErrUnexpectedEOF
 13014  			}
 13015  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13016  			iNdEx += skippy
 13017  		}
 13018  	}
 13019  
 13020  	if iNdEx > l {
 13021  		return io.ErrUnexpectedEOF
 13022  	}
 13023  	return nil
 13024  }
 13025  func (m *RSMState) Unmarshal(dAtA []byte) error {
 13026  	l := len(dAtA)
 13027  	iNdEx := 0
 13028  	for iNdEx < l {
 13029  		preIndex := iNdEx
 13030  		var wire uint64
 13031  		for shift := uint(0); ; shift += 7 {
 13032  			if shift >= 64 {
 13033  				return ErrIntOverflowLogservice
 13034  			}
 13035  			if iNdEx >= l {
 13036  				return io.ErrUnexpectedEOF
 13037  			}
 13038  			b := dAtA[iNdEx]
 13039  			iNdEx++
 13040  			wire |= uint64(b&0x7F) << shift
 13041  			if b < 0x80 {
 13042  				break
 13043  			}
 13044  		}
 13045  		fieldNum := int32(wire >> 3)
 13046  		wireType := int(wire & 0x7)
 13047  		if wireType == 4 {
 13048  			return fmt.Errorf("proto: RSMState: wiretype end group for non-group")
 13049  		}
 13050  		if fieldNum <= 0 {
 13051  			return fmt.Errorf("proto: RSMState: illegal tag %d (wire type %d)", fieldNum, wire)
 13052  		}
 13053  		switch fieldNum {
 13054  		case 1:
 13055  			if wireType != 0 {
 13056  				return fmt.Errorf("proto: wrong wireType = %d for field Tso", wireType)
 13057  			}
 13058  			m.Tso = 0
 13059  			for shift := uint(0); ; shift += 7 {
 13060  				if shift >= 64 {
 13061  					return ErrIntOverflowLogservice
 13062  				}
 13063  				if iNdEx >= l {
 13064  					return io.ErrUnexpectedEOF
 13065  				}
 13066  				b := dAtA[iNdEx]
 13067  				iNdEx++
 13068  				m.Tso |= uint64(b&0x7F) << shift
 13069  				if b < 0x80 {
 13070  					break
 13071  				}
 13072  			}
 13073  		case 2:
 13074  			if wireType != 0 {
 13075  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 13076  			}
 13077  			m.Index = 0
 13078  			for shift := uint(0); ; shift += 7 {
 13079  				if shift >= 64 {
 13080  					return ErrIntOverflowLogservice
 13081  				}
 13082  				if iNdEx >= l {
 13083  					return io.ErrUnexpectedEOF
 13084  				}
 13085  				b := dAtA[iNdEx]
 13086  				iNdEx++
 13087  				m.Index |= uint64(b&0x7F) << shift
 13088  				if b < 0x80 {
 13089  					break
 13090  				}
 13091  			}
 13092  		case 3:
 13093  			if wireType != 0 {
 13094  				return fmt.Errorf("proto: wrong wireType = %d for field LeaseHolderID", wireType)
 13095  			}
 13096  			m.LeaseHolderID = 0
 13097  			for shift := uint(0); ; shift += 7 {
 13098  				if shift >= 64 {
 13099  					return ErrIntOverflowLogservice
 13100  				}
 13101  				if iNdEx >= l {
 13102  					return io.ErrUnexpectedEOF
 13103  				}
 13104  				b := dAtA[iNdEx]
 13105  				iNdEx++
 13106  				m.LeaseHolderID |= uint64(b&0x7F) << shift
 13107  				if b < 0x80 {
 13108  					break
 13109  				}
 13110  			}
 13111  		case 4:
 13112  			if wireType != 0 {
 13113  				return fmt.Errorf("proto: wrong wireType = %d for field TruncatedLsn", wireType)
 13114  			}
 13115  			m.TruncatedLsn = 0
 13116  			for shift := uint(0); ; shift += 7 {
 13117  				if shift >= 64 {
 13118  					return ErrIntOverflowLogservice
 13119  				}
 13120  				if iNdEx >= l {
 13121  					return io.ErrUnexpectedEOF
 13122  				}
 13123  				b := dAtA[iNdEx]
 13124  				iNdEx++
 13125  				m.TruncatedLsn |= uint64(b&0x7F) << shift
 13126  				if b < 0x80 {
 13127  					break
 13128  				}
 13129  			}
 13130  		case 5:
 13131  			if wireType != 2 {
 13132  				return fmt.Errorf("proto: wrong wireType = %d for field LeaseHistory", wireType)
 13133  			}
 13134  			var msglen int
 13135  			for shift := uint(0); ; shift += 7 {
 13136  				if shift >= 64 {
 13137  					return ErrIntOverflowLogservice
 13138  				}
 13139  				if iNdEx >= l {
 13140  					return io.ErrUnexpectedEOF
 13141  				}
 13142  				b := dAtA[iNdEx]
 13143  				iNdEx++
 13144  				msglen |= int(b&0x7F) << shift
 13145  				if b < 0x80 {
 13146  					break
 13147  				}
 13148  			}
 13149  			if msglen < 0 {
 13150  				return ErrInvalidLengthLogservice
 13151  			}
 13152  			postIndex := iNdEx + msglen
 13153  			if postIndex < 0 {
 13154  				return ErrInvalidLengthLogservice
 13155  			}
 13156  			if postIndex > l {
 13157  				return io.ErrUnexpectedEOF
 13158  			}
 13159  			if m.LeaseHistory == nil {
 13160  				m.LeaseHistory = make(map[uint64]uint64)
 13161  			}
 13162  			var mapkey uint64
 13163  			var mapvalue uint64
 13164  			for iNdEx < postIndex {
 13165  				entryPreIndex := iNdEx
 13166  				var wire uint64
 13167  				for shift := uint(0); ; shift += 7 {
 13168  					if shift >= 64 {
 13169  						return ErrIntOverflowLogservice
 13170  					}
 13171  					if iNdEx >= l {
 13172  						return io.ErrUnexpectedEOF
 13173  					}
 13174  					b := dAtA[iNdEx]
 13175  					iNdEx++
 13176  					wire |= uint64(b&0x7F) << shift
 13177  					if b < 0x80 {
 13178  						break
 13179  					}
 13180  				}
 13181  				fieldNum := int32(wire >> 3)
 13182  				if fieldNum == 1 {
 13183  					for shift := uint(0); ; shift += 7 {
 13184  						if shift >= 64 {
 13185  							return ErrIntOverflowLogservice
 13186  						}
 13187  						if iNdEx >= l {
 13188  							return io.ErrUnexpectedEOF
 13189  						}
 13190  						b := dAtA[iNdEx]
 13191  						iNdEx++
 13192  						mapkey |= uint64(b&0x7F) << shift
 13193  						if b < 0x80 {
 13194  							break
 13195  						}
 13196  					}
 13197  				} else if fieldNum == 2 {
 13198  					for shift := uint(0); ; shift += 7 {
 13199  						if shift >= 64 {
 13200  							return ErrIntOverflowLogservice
 13201  						}
 13202  						if iNdEx >= l {
 13203  							return io.ErrUnexpectedEOF
 13204  						}
 13205  						b := dAtA[iNdEx]
 13206  						iNdEx++
 13207  						mapvalue |= uint64(b&0x7F) << shift
 13208  						if b < 0x80 {
 13209  							break
 13210  						}
 13211  					}
 13212  				} else {
 13213  					iNdEx = entryPreIndex
 13214  					skippy, err := skipLogservice(dAtA[iNdEx:])
 13215  					if err != nil {
 13216  						return err
 13217  					}
 13218  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 13219  						return ErrInvalidLengthLogservice
 13220  					}
 13221  					if (iNdEx + skippy) > postIndex {
 13222  						return io.ErrUnexpectedEOF
 13223  					}
 13224  					iNdEx += skippy
 13225  				}
 13226  			}
 13227  			m.LeaseHistory[mapkey] = mapvalue
 13228  			iNdEx = postIndex
 13229  		default:
 13230  			iNdEx = preIndex
 13231  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13232  			if err != nil {
 13233  				return err
 13234  			}
 13235  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13236  				return ErrInvalidLengthLogservice
 13237  			}
 13238  			if (iNdEx + skippy) > l {
 13239  				return io.ErrUnexpectedEOF
 13240  			}
 13241  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13242  			iNdEx += skippy
 13243  		}
 13244  	}
 13245  
 13246  	if iNdEx > l {
 13247  		return io.ErrUnexpectedEOF
 13248  	}
 13249  	return nil
 13250  }
 13251  func (m *LogRecord) Unmarshal(dAtA []byte) error {
 13252  	l := len(dAtA)
 13253  	iNdEx := 0
 13254  	for iNdEx < l {
 13255  		preIndex := iNdEx
 13256  		var wire uint64
 13257  		for shift := uint(0); ; shift += 7 {
 13258  			if shift >= 64 {
 13259  				return ErrIntOverflowLogservice
 13260  			}
 13261  			if iNdEx >= l {
 13262  				return io.ErrUnexpectedEOF
 13263  			}
 13264  			b := dAtA[iNdEx]
 13265  			iNdEx++
 13266  			wire |= uint64(b&0x7F) << shift
 13267  			if b < 0x80 {
 13268  				break
 13269  			}
 13270  		}
 13271  		fieldNum := int32(wire >> 3)
 13272  		wireType := int(wire & 0x7)
 13273  		if wireType == 4 {
 13274  			return fmt.Errorf("proto: LogRecord: wiretype end group for non-group")
 13275  		}
 13276  		if fieldNum <= 0 {
 13277  			return fmt.Errorf("proto: LogRecord: illegal tag %d (wire type %d)", fieldNum, wire)
 13278  		}
 13279  		switch fieldNum {
 13280  		case 1:
 13281  			if wireType != 0 {
 13282  				return fmt.Errorf("proto: wrong wireType = %d for field Lsn", wireType)
 13283  			}
 13284  			m.Lsn = 0
 13285  			for shift := uint(0); ; shift += 7 {
 13286  				if shift >= 64 {
 13287  					return ErrIntOverflowLogservice
 13288  				}
 13289  				if iNdEx >= l {
 13290  					return io.ErrUnexpectedEOF
 13291  				}
 13292  				b := dAtA[iNdEx]
 13293  				iNdEx++
 13294  				m.Lsn |= uint64(b&0x7F) << shift
 13295  				if b < 0x80 {
 13296  					break
 13297  				}
 13298  			}
 13299  		case 2:
 13300  			if wireType != 0 {
 13301  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
 13302  			}
 13303  			m.Type = 0
 13304  			for shift := uint(0); ; shift += 7 {
 13305  				if shift >= 64 {
 13306  					return ErrIntOverflowLogservice
 13307  				}
 13308  				if iNdEx >= l {
 13309  					return io.ErrUnexpectedEOF
 13310  				}
 13311  				b := dAtA[iNdEx]
 13312  				iNdEx++
 13313  				m.Type |= RecordType(b&0x7F) << shift
 13314  				if b < 0x80 {
 13315  					break
 13316  				}
 13317  			}
 13318  		case 3:
 13319  			if wireType != 2 {
 13320  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 13321  			}
 13322  			var byteLen int
 13323  			for shift := uint(0); ; shift += 7 {
 13324  				if shift >= 64 {
 13325  					return ErrIntOverflowLogservice
 13326  				}
 13327  				if iNdEx >= l {
 13328  					return io.ErrUnexpectedEOF
 13329  				}
 13330  				b := dAtA[iNdEx]
 13331  				iNdEx++
 13332  				byteLen |= int(b&0x7F) << shift
 13333  				if b < 0x80 {
 13334  					break
 13335  				}
 13336  			}
 13337  			if byteLen < 0 {
 13338  				return ErrInvalidLengthLogservice
 13339  			}
 13340  			postIndex := iNdEx + byteLen
 13341  			if postIndex < 0 {
 13342  				return ErrInvalidLengthLogservice
 13343  			}
 13344  			if postIndex > l {
 13345  				return io.ErrUnexpectedEOF
 13346  			}
 13347  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 13348  			if m.Data == nil {
 13349  				m.Data = []byte{}
 13350  			}
 13351  			iNdEx = postIndex
 13352  		default:
 13353  			iNdEx = preIndex
 13354  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13355  			if err != nil {
 13356  				return err
 13357  			}
 13358  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13359  				return ErrInvalidLengthLogservice
 13360  			}
 13361  			if (iNdEx + skippy) > l {
 13362  				return io.ErrUnexpectedEOF
 13363  			}
 13364  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13365  			iNdEx += skippy
 13366  		}
 13367  	}
 13368  
 13369  	if iNdEx > l {
 13370  		return io.ErrUnexpectedEOF
 13371  	}
 13372  	return nil
 13373  }
 13374  func (m *LogRequest) Unmarshal(dAtA []byte) error {
 13375  	l := len(dAtA)
 13376  	iNdEx := 0
 13377  	for iNdEx < l {
 13378  		preIndex := iNdEx
 13379  		var wire uint64
 13380  		for shift := uint(0); ; shift += 7 {
 13381  			if shift >= 64 {
 13382  				return ErrIntOverflowLogservice
 13383  			}
 13384  			if iNdEx >= l {
 13385  				return io.ErrUnexpectedEOF
 13386  			}
 13387  			b := dAtA[iNdEx]
 13388  			iNdEx++
 13389  			wire |= uint64(b&0x7F) << shift
 13390  			if b < 0x80 {
 13391  				break
 13392  			}
 13393  		}
 13394  		fieldNum := int32(wire >> 3)
 13395  		wireType := int(wire & 0x7)
 13396  		if wireType == 4 {
 13397  			return fmt.Errorf("proto: LogRequest: wiretype end group for non-group")
 13398  		}
 13399  		if fieldNum <= 0 {
 13400  			return fmt.Errorf("proto: LogRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13401  		}
 13402  		switch fieldNum {
 13403  		case 1:
 13404  			if wireType != 2 {
 13405  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 13406  			}
 13407  			var stringLen uint64
 13408  			for shift := uint(0); ; shift += 7 {
 13409  				if shift >= 64 {
 13410  					return ErrIntOverflowLogservice
 13411  				}
 13412  				if iNdEx >= l {
 13413  					return io.ErrUnexpectedEOF
 13414  				}
 13415  				b := dAtA[iNdEx]
 13416  				iNdEx++
 13417  				stringLen |= uint64(b&0x7F) << shift
 13418  				if b < 0x80 {
 13419  					break
 13420  				}
 13421  			}
 13422  			intStringLen := int(stringLen)
 13423  			if intStringLen < 0 {
 13424  				return ErrInvalidLengthLogservice
 13425  			}
 13426  			postIndex := iNdEx + intStringLen
 13427  			if postIndex < 0 {
 13428  				return ErrInvalidLengthLogservice
 13429  			}
 13430  			if postIndex > l {
 13431  				return io.ErrUnexpectedEOF
 13432  			}
 13433  			m.Name = string(dAtA[iNdEx:postIndex])
 13434  			iNdEx = postIndex
 13435  		case 2:
 13436  			if wireType != 0 {
 13437  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 13438  			}
 13439  			m.ShardID = 0
 13440  			for shift := uint(0); ; shift += 7 {
 13441  				if shift >= 64 {
 13442  					return ErrIntOverflowLogservice
 13443  				}
 13444  				if iNdEx >= l {
 13445  					return io.ErrUnexpectedEOF
 13446  				}
 13447  				b := dAtA[iNdEx]
 13448  				iNdEx++
 13449  				m.ShardID |= uint64(b&0x7F) << shift
 13450  				if b < 0x80 {
 13451  					break
 13452  				}
 13453  			}
 13454  		case 3:
 13455  			if wireType != 0 {
 13456  				return fmt.Errorf("proto: wrong wireType = %d for field Lsn", wireType)
 13457  			}
 13458  			m.Lsn = 0
 13459  			for shift := uint(0); ; shift += 7 {
 13460  				if shift >= 64 {
 13461  					return ErrIntOverflowLogservice
 13462  				}
 13463  				if iNdEx >= l {
 13464  					return io.ErrUnexpectedEOF
 13465  				}
 13466  				b := dAtA[iNdEx]
 13467  				iNdEx++
 13468  				m.Lsn |= uint64(b&0x7F) << shift
 13469  				if b < 0x80 {
 13470  					break
 13471  				}
 13472  			}
 13473  		case 4:
 13474  			if wireType != 0 {
 13475  				return fmt.Errorf("proto: wrong wireType = %d for field MaxSize", wireType)
 13476  			}
 13477  			m.MaxSize = 0
 13478  			for shift := uint(0); ; shift += 7 {
 13479  				if shift >= 64 {
 13480  					return ErrIntOverflowLogservice
 13481  				}
 13482  				if iNdEx >= l {
 13483  					return io.ErrUnexpectedEOF
 13484  				}
 13485  				b := dAtA[iNdEx]
 13486  				iNdEx++
 13487  				m.MaxSize |= uint64(b&0x7F) << shift
 13488  				if b < 0x80 {
 13489  					break
 13490  				}
 13491  			}
 13492  		case 5:
 13493  			if wireType != 0 {
 13494  				return fmt.Errorf("proto: wrong wireType = %d for field TNShardID", wireType)
 13495  			}
 13496  			m.TNShardID = 0
 13497  			for shift := uint(0); ; shift += 7 {
 13498  				if shift >= 64 {
 13499  					return ErrIntOverflowLogservice
 13500  				}
 13501  				if iNdEx >= l {
 13502  					return io.ErrUnexpectedEOF
 13503  				}
 13504  				b := dAtA[iNdEx]
 13505  				iNdEx++
 13506  				m.TNShardID |= uint64(b&0x7F) << shift
 13507  				if b < 0x80 {
 13508  					break
 13509  				}
 13510  			}
 13511  		case 6:
 13512  			if wireType != 0 {
 13513  				return fmt.Errorf("proto: wrong wireType = %d for field TNID", wireType)
 13514  			}
 13515  			m.TNID = 0
 13516  			for shift := uint(0); ; shift += 7 {
 13517  				if shift >= 64 {
 13518  					return ErrIntOverflowLogservice
 13519  				}
 13520  				if iNdEx >= l {
 13521  					return io.ErrUnexpectedEOF
 13522  				}
 13523  				b := dAtA[iNdEx]
 13524  				iNdEx++
 13525  				m.TNID |= uint64(b&0x7F) << shift
 13526  				if b < 0x80 {
 13527  					break
 13528  				}
 13529  			}
 13530  		default:
 13531  			iNdEx = preIndex
 13532  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13533  			if err != nil {
 13534  				return err
 13535  			}
 13536  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13537  				return ErrInvalidLengthLogservice
 13538  			}
 13539  			if (iNdEx + skippy) > l {
 13540  				return io.ErrUnexpectedEOF
 13541  			}
 13542  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13543  			iNdEx += skippy
 13544  		}
 13545  	}
 13546  
 13547  	if iNdEx > l {
 13548  		return io.ErrUnexpectedEOF
 13549  	}
 13550  	return nil
 13551  }
 13552  func (m *TsoRequest) Unmarshal(dAtA []byte) error {
 13553  	l := len(dAtA)
 13554  	iNdEx := 0
 13555  	for iNdEx < l {
 13556  		preIndex := iNdEx
 13557  		var wire uint64
 13558  		for shift := uint(0); ; shift += 7 {
 13559  			if shift >= 64 {
 13560  				return ErrIntOverflowLogservice
 13561  			}
 13562  			if iNdEx >= l {
 13563  				return io.ErrUnexpectedEOF
 13564  			}
 13565  			b := dAtA[iNdEx]
 13566  			iNdEx++
 13567  			wire |= uint64(b&0x7F) << shift
 13568  			if b < 0x80 {
 13569  				break
 13570  			}
 13571  		}
 13572  		fieldNum := int32(wire >> 3)
 13573  		wireType := int(wire & 0x7)
 13574  		if wireType == 4 {
 13575  			return fmt.Errorf("proto: TsoRequest: wiretype end group for non-group")
 13576  		}
 13577  		if fieldNum <= 0 {
 13578  			return fmt.Errorf("proto: TsoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13579  		}
 13580  		switch fieldNum {
 13581  		case 1:
 13582  			if wireType != 0 {
 13583  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 13584  			}
 13585  			m.Count = 0
 13586  			for shift := uint(0); ; shift += 7 {
 13587  				if shift >= 64 {
 13588  					return ErrIntOverflowLogservice
 13589  				}
 13590  				if iNdEx >= l {
 13591  					return io.ErrUnexpectedEOF
 13592  				}
 13593  				b := dAtA[iNdEx]
 13594  				iNdEx++
 13595  				m.Count |= uint64(b&0x7F) << shift
 13596  				if b < 0x80 {
 13597  					break
 13598  				}
 13599  			}
 13600  		default:
 13601  			iNdEx = preIndex
 13602  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13603  			if err != nil {
 13604  				return err
 13605  			}
 13606  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13607  				return ErrInvalidLengthLogservice
 13608  			}
 13609  			if (iNdEx + skippy) > l {
 13610  				return io.ErrUnexpectedEOF
 13611  			}
 13612  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13613  			iNdEx += skippy
 13614  		}
 13615  	}
 13616  
 13617  	if iNdEx > l {
 13618  		return io.ErrUnexpectedEOF
 13619  	}
 13620  	return nil
 13621  }
 13622  func (m *CNStoreLabel) Unmarshal(dAtA []byte) error {
 13623  	l := len(dAtA)
 13624  	iNdEx := 0
 13625  	for iNdEx < l {
 13626  		preIndex := iNdEx
 13627  		var wire uint64
 13628  		for shift := uint(0); ; shift += 7 {
 13629  			if shift >= 64 {
 13630  				return ErrIntOverflowLogservice
 13631  			}
 13632  			if iNdEx >= l {
 13633  				return io.ErrUnexpectedEOF
 13634  			}
 13635  			b := dAtA[iNdEx]
 13636  			iNdEx++
 13637  			wire |= uint64(b&0x7F) << shift
 13638  			if b < 0x80 {
 13639  				break
 13640  			}
 13641  		}
 13642  		fieldNum := int32(wire >> 3)
 13643  		wireType := int(wire & 0x7)
 13644  		if wireType == 4 {
 13645  			return fmt.Errorf("proto: CNStoreLabel: wiretype end group for non-group")
 13646  		}
 13647  		if fieldNum <= 0 {
 13648  			return fmt.Errorf("proto: CNStoreLabel: illegal tag %d (wire type %d)", fieldNum, wire)
 13649  		}
 13650  		switch fieldNum {
 13651  		case 1:
 13652  			if wireType != 2 {
 13653  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 13654  			}
 13655  			var stringLen uint64
 13656  			for shift := uint(0); ; shift += 7 {
 13657  				if shift >= 64 {
 13658  					return ErrIntOverflowLogservice
 13659  				}
 13660  				if iNdEx >= l {
 13661  					return io.ErrUnexpectedEOF
 13662  				}
 13663  				b := dAtA[iNdEx]
 13664  				iNdEx++
 13665  				stringLen |= uint64(b&0x7F) << shift
 13666  				if b < 0x80 {
 13667  					break
 13668  				}
 13669  			}
 13670  			intStringLen := int(stringLen)
 13671  			if intStringLen < 0 {
 13672  				return ErrInvalidLengthLogservice
 13673  			}
 13674  			postIndex := iNdEx + intStringLen
 13675  			if postIndex < 0 {
 13676  				return ErrInvalidLengthLogservice
 13677  			}
 13678  			if postIndex > l {
 13679  				return io.ErrUnexpectedEOF
 13680  			}
 13681  			m.UUID = string(dAtA[iNdEx:postIndex])
 13682  			iNdEx = postIndex
 13683  		case 2:
 13684  			if wireType != 0 {
 13685  				return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
 13686  			}
 13687  			m.Operation = 0
 13688  			for shift := uint(0); ; shift += 7 {
 13689  				if shift >= 64 {
 13690  					return ErrIntOverflowLogservice
 13691  				}
 13692  				if iNdEx >= l {
 13693  					return io.ErrUnexpectedEOF
 13694  				}
 13695  				b := dAtA[iNdEx]
 13696  				iNdEx++
 13697  				m.Operation |= CNLabelOp(b&0x7F) << shift
 13698  				if b < 0x80 {
 13699  					break
 13700  				}
 13701  			}
 13702  		case 3:
 13703  			if wireType != 2 {
 13704  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 13705  			}
 13706  			var msglen int
 13707  			for shift := uint(0); ; shift += 7 {
 13708  				if shift >= 64 {
 13709  					return ErrIntOverflowLogservice
 13710  				}
 13711  				if iNdEx >= l {
 13712  					return io.ErrUnexpectedEOF
 13713  				}
 13714  				b := dAtA[iNdEx]
 13715  				iNdEx++
 13716  				msglen |= int(b&0x7F) << shift
 13717  				if b < 0x80 {
 13718  					break
 13719  				}
 13720  			}
 13721  			if msglen < 0 {
 13722  				return ErrInvalidLengthLogservice
 13723  			}
 13724  			postIndex := iNdEx + msglen
 13725  			if postIndex < 0 {
 13726  				return ErrInvalidLengthLogservice
 13727  			}
 13728  			if postIndex > l {
 13729  				return io.ErrUnexpectedEOF
 13730  			}
 13731  			if m.Labels == nil {
 13732  				m.Labels = make(map[string]metadata.LabelList)
 13733  			}
 13734  			var mapkey string
 13735  			mapvalue := &metadata.LabelList{}
 13736  			for iNdEx < postIndex {
 13737  				entryPreIndex := iNdEx
 13738  				var wire uint64
 13739  				for shift := uint(0); ; shift += 7 {
 13740  					if shift >= 64 {
 13741  						return ErrIntOverflowLogservice
 13742  					}
 13743  					if iNdEx >= l {
 13744  						return io.ErrUnexpectedEOF
 13745  					}
 13746  					b := dAtA[iNdEx]
 13747  					iNdEx++
 13748  					wire |= uint64(b&0x7F) << shift
 13749  					if b < 0x80 {
 13750  						break
 13751  					}
 13752  				}
 13753  				fieldNum := int32(wire >> 3)
 13754  				if fieldNum == 1 {
 13755  					var stringLenmapkey uint64
 13756  					for shift := uint(0); ; shift += 7 {
 13757  						if shift >= 64 {
 13758  							return ErrIntOverflowLogservice
 13759  						}
 13760  						if iNdEx >= l {
 13761  							return io.ErrUnexpectedEOF
 13762  						}
 13763  						b := dAtA[iNdEx]
 13764  						iNdEx++
 13765  						stringLenmapkey |= uint64(b&0x7F) << shift
 13766  						if b < 0x80 {
 13767  							break
 13768  						}
 13769  					}
 13770  					intStringLenmapkey := int(stringLenmapkey)
 13771  					if intStringLenmapkey < 0 {
 13772  						return ErrInvalidLengthLogservice
 13773  					}
 13774  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 13775  					if postStringIndexmapkey < 0 {
 13776  						return ErrInvalidLengthLogservice
 13777  					}
 13778  					if postStringIndexmapkey > l {
 13779  						return io.ErrUnexpectedEOF
 13780  					}
 13781  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 13782  					iNdEx = postStringIndexmapkey
 13783  				} else if fieldNum == 2 {
 13784  					var mapmsglen int
 13785  					for shift := uint(0); ; shift += 7 {
 13786  						if shift >= 64 {
 13787  							return ErrIntOverflowLogservice
 13788  						}
 13789  						if iNdEx >= l {
 13790  							return io.ErrUnexpectedEOF
 13791  						}
 13792  						b := dAtA[iNdEx]
 13793  						iNdEx++
 13794  						mapmsglen |= int(b&0x7F) << shift
 13795  						if b < 0x80 {
 13796  							break
 13797  						}
 13798  					}
 13799  					if mapmsglen < 0 {
 13800  						return ErrInvalidLengthLogservice
 13801  					}
 13802  					postmsgIndex := iNdEx + mapmsglen
 13803  					if postmsgIndex < 0 {
 13804  						return ErrInvalidLengthLogservice
 13805  					}
 13806  					if postmsgIndex > l {
 13807  						return io.ErrUnexpectedEOF
 13808  					}
 13809  					mapvalue = &metadata.LabelList{}
 13810  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 13811  						return err
 13812  					}
 13813  					iNdEx = postmsgIndex
 13814  				} else {
 13815  					iNdEx = entryPreIndex
 13816  					skippy, err := skipLogservice(dAtA[iNdEx:])
 13817  					if err != nil {
 13818  						return err
 13819  					}
 13820  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 13821  						return ErrInvalidLengthLogservice
 13822  					}
 13823  					if (iNdEx + skippy) > postIndex {
 13824  						return io.ErrUnexpectedEOF
 13825  					}
 13826  					iNdEx += skippy
 13827  				}
 13828  			}
 13829  			m.Labels[mapkey] = *mapvalue
 13830  			iNdEx = postIndex
 13831  		default:
 13832  			iNdEx = preIndex
 13833  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13834  			if err != nil {
 13835  				return err
 13836  			}
 13837  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13838  				return ErrInvalidLengthLogservice
 13839  			}
 13840  			if (iNdEx + skippy) > l {
 13841  				return io.ErrUnexpectedEOF
 13842  			}
 13843  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13844  			iNdEx += skippy
 13845  		}
 13846  	}
 13847  
 13848  	if iNdEx > l {
 13849  		return io.ErrUnexpectedEOF
 13850  	}
 13851  	return nil
 13852  }
 13853  func (m *CNWorkState) Unmarshal(dAtA []byte) error {
 13854  	l := len(dAtA)
 13855  	iNdEx := 0
 13856  	for iNdEx < l {
 13857  		preIndex := iNdEx
 13858  		var wire uint64
 13859  		for shift := uint(0); ; shift += 7 {
 13860  			if shift >= 64 {
 13861  				return ErrIntOverflowLogservice
 13862  			}
 13863  			if iNdEx >= l {
 13864  				return io.ErrUnexpectedEOF
 13865  			}
 13866  			b := dAtA[iNdEx]
 13867  			iNdEx++
 13868  			wire |= uint64(b&0x7F) << shift
 13869  			if b < 0x80 {
 13870  				break
 13871  			}
 13872  		}
 13873  		fieldNum := int32(wire >> 3)
 13874  		wireType := int(wire & 0x7)
 13875  		if wireType == 4 {
 13876  			return fmt.Errorf("proto: CNWorkState: wiretype end group for non-group")
 13877  		}
 13878  		if fieldNum <= 0 {
 13879  			return fmt.Errorf("proto: CNWorkState: illegal tag %d (wire type %d)", fieldNum, wire)
 13880  		}
 13881  		switch fieldNum {
 13882  		case 1:
 13883  			if wireType != 2 {
 13884  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 13885  			}
 13886  			var stringLen uint64
 13887  			for shift := uint(0); ; shift += 7 {
 13888  				if shift >= 64 {
 13889  					return ErrIntOverflowLogservice
 13890  				}
 13891  				if iNdEx >= l {
 13892  					return io.ErrUnexpectedEOF
 13893  				}
 13894  				b := dAtA[iNdEx]
 13895  				iNdEx++
 13896  				stringLen |= uint64(b&0x7F) << shift
 13897  				if b < 0x80 {
 13898  					break
 13899  				}
 13900  			}
 13901  			intStringLen := int(stringLen)
 13902  			if intStringLen < 0 {
 13903  				return ErrInvalidLengthLogservice
 13904  			}
 13905  			postIndex := iNdEx + intStringLen
 13906  			if postIndex < 0 {
 13907  				return ErrInvalidLengthLogservice
 13908  			}
 13909  			if postIndex > l {
 13910  				return io.ErrUnexpectedEOF
 13911  			}
 13912  			m.UUID = string(dAtA[iNdEx:postIndex])
 13913  			iNdEx = postIndex
 13914  		case 2:
 13915  			if wireType != 0 {
 13916  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 13917  			}
 13918  			m.State = 0
 13919  			for shift := uint(0); ; shift += 7 {
 13920  				if shift >= 64 {
 13921  					return ErrIntOverflowLogservice
 13922  				}
 13923  				if iNdEx >= l {
 13924  					return io.ErrUnexpectedEOF
 13925  				}
 13926  				b := dAtA[iNdEx]
 13927  				iNdEx++
 13928  				m.State |= metadata.WorkState(b&0x7F) << shift
 13929  				if b < 0x80 {
 13930  					break
 13931  				}
 13932  			}
 13933  		default:
 13934  			iNdEx = preIndex
 13935  			skippy, err := skipLogservice(dAtA[iNdEx:])
 13936  			if err != nil {
 13937  				return err
 13938  			}
 13939  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 13940  				return ErrInvalidLengthLogservice
 13941  			}
 13942  			if (iNdEx + skippy) > l {
 13943  				return io.ErrUnexpectedEOF
 13944  			}
 13945  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13946  			iNdEx += skippy
 13947  		}
 13948  	}
 13949  
 13950  	if iNdEx > l {
 13951  		return io.ErrUnexpectedEOF
 13952  	}
 13953  	return nil
 13954  }
 13955  func (m *CNStateLabel) Unmarshal(dAtA []byte) error {
 13956  	l := len(dAtA)
 13957  	iNdEx := 0
 13958  	for iNdEx < l {
 13959  		preIndex := iNdEx
 13960  		var wire uint64
 13961  		for shift := uint(0); ; shift += 7 {
 13962  			if shift >= 64 {
 13963  				return ErrIntOverflowLogservice
 13964  			}
 13965  			if iNdEx >= l {
 13966  				return io.ErrUnexpectedEOF
 13967  			}
 13968  			b := dAtA[iNdEx]
 13969  			iNdEx++
 13970  			wire |= uint64(b&0x7F) << shift
 13971  			if b < 0x80 {
 13972  				break
 13973  			}
 13974  		}
 13975  		fieldNum := int32(wire >> 3)
 13976  		wireType := int(wire & 0x7)
 13977  		if wireType == 4 {
 13978  			return fmt.Errorf("proto: CNStateLabel: wiretype end group for non-group")
 13979  		}
 13980  		if fieldNum <= 0 {
 13981  			return fmt.Errorf("proto: CNStateLabel: illegal tag %d (wire type %d)", fieldNum, wire)
 13982  		}
 13983  		switch fieldNum {
 13984  		case 1:
 13985  			if wireType != 2 {
 13986  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 13987  			}
 13988  			var stringLen uint64
 13989  			for shift := uint(0); ; shift += 7 {
 13990  				if shift >= 64 {
 13991  					return ErrIntOverflowLogservice
 13992  				}
 13993  				if iNdEx >= l {
 13994  					return io.ErrUnexpectedEOF
 13995  				}
 13996  				b := dAtA[iNdEx]
 13997  				iNdEx++
 13998  				stringLen |= uint64(b&0x7F) << shift
 13999  				if b < 0x80 {
 14000  					break
 14001  				}
 14002  			}
 14003  			intStringLen := int(stringLen)
 14004  			if intStringLen < 0 {
 14005  				return ErrInvalidLengthLogservice
 14006  			}
 14007  			postIndex := iNdEx + intStringLen
 14008  			if postIndex < 0 {
 14009  				return ErrInvalidLengthLogservice
 14010  			}
 14011  			if postIndex > l {
 14012  				return io.ErrUnexpectedEOF
 14013  			}
 14014  			m.UUID = string(dAtA[iNdEx:postIndex])
 14015  			iNdEx = postIndex
 14016  		case 2:
 14017  			if wireType != 0 {
 14018  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 14019  			}
 14020  			m.State = 0
 14021  			for shift := uint(0); ; shift += 7 {
 14022  				if shift >= 64 {
 14023  					return ErrIntOverflowLogservice
 14024  				}
 14025  				if iNdEx >= l {
 14026  					return io.ErrUnexpectedEOF
 14027  				}
 14028  				b := dAtA[iNdEx]
 14029  				iNdEx++
 14030  				m.State |= metadata.WorkState(b&0x7F) << shift
 14031  				if b < 0x80 {
 14032  					break
 14033  				}
 14034  			}
 14035  		case 3:
 14036  			if wireType != 2 {
 14037  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 14038  			}
 14039  			var msglen int
 14040  			for shift := uint(0); ; shift += 7 {
 14041  				if shift >= 64 {
 14042  					return ErrIntOverflowLogservice
 14043  				}
 14044  				if iNdEx >= l {
 14045  					return io.ErrUnexpectedEOF
 14046  				}
 14047  				b := dAtA[iNdEx]
 14048  				iNdEx++
 14049  				msglen |= int(b&0x7F) << shift
 14050  				if b < 0x80 {
 14051  					break
 14052  				}
 14053  			}
 14054  			if msglen < 0 {
 14055  				return ErrInvalidLengthLogservice
 14056  			}
 14057  			postIndex := iNdEx + msglen
 14058  			if postIndex < 0 {
 14059  				return ErrInvalidLengthLogservice
 14060  			}
 14061  			if postIndex > l {
 14062  				return io.ErrUnexpectedEOF
 14063  			}
 14064  			if m.Labels == nil {
 14065  				m.Labels = make(map[string]metadata.LabelList)
 14066  			}
 14067  			var mapkey string
 14068  			mapvalue := &metadata.LabelList{}
 14069  			for iNdEx < postIndex {
 14070  				entryPreIndex := iNdEx
 14071  				var wire uint64
 14072  				for shift := uint(0); ; shift += 7 {
 14073  					if shift >= 64 {
 14074  						return ErrIntOverflowLogservice
 14075  					}
 14076  					if iNdEx >= l {
 14077  						return io.ErrUnexpectedEOF
 14078  					}
 14079  					b := dAtA[iNdEx]
 14080  					iNdEx++
 14081  					wire |= uint64(b&0x7F) << shift
 14082  					if b < 0x80 {
 14083  						break
 14084  					}
 14085  				}
 14086  				fieldNum := int32(wire >> 3)
 14087  				if fieldNum == 1 {
 14088  					var stringLenmapkey uint64
 14089  					for shift := uint(0); ; shift += 7 {
 14090  						if shift >= 64 {
 14091  							return ErrIntOverflowLogservice
 14092  						}
 14093  						if iNdEx >= l {
 14094  							return io.ErrUnexpectedEOF
 14095  						}
 14096  						b := dAtA[iNdEx]
 14097  						iNdEx++
 14098  						stringLenmapkey |= uint64(b&0x7F) << shift
 14099  						if b < 0x80 {
 14100  							break
 14101  						}
 14102  					}
 14103  					intStringLenmapkey := int(stringLenmapkey)
 14104  					if intStringLenmapkey < 0 {
 14105  						return ErrInvalidLengthLogservice
 14106  					}
 14107  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 14108  					if postStringIndexmapkey < 0 {
 14109  						return ErrInvalidLengthLogservice
 14110  					}
 14111  					if postStringIndexmapkey > l {
 14112  						return io.ErrUnexpectedEOF
 14113  					}
 14114  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 14115  					iNdEx = postStringIndexmapkey
 14116  				} else if fieldNum == 2 {
 14117  					var mapmsglen int
 14118  					for shift := uint(0); ; shift += 7 {
 14119  						if shift >= 64 {
 14120  							return ErrIntOverflowLogservice
 14121  						}
 14122  						if iNdEx >= l {
 14123  							return io.ErrUnexpectedEOF
 14124  						}
 14125  						b := dAtA[iNdEx]
 14126  						iNdEx++
 14127  						mapmsglen |= int(b&0x7F) << shift
 14128  						if b < 0x80 {
 14129  							break
 14130  						}
 14131  					}
 14132  					if mapmsglen < 0 {
 14133  						return ErrInvalidLengthLogservice
 14134  					}
 14135  					postmsgIndex := iNdEx + mapmsglen
 14136  					if postmsgIndex < 0 {
 14137  						return ErrInvalidLengthLogservice
 14138  					}
 14139  					if postmsgIndex > l {
 14140  						return io.ErrUnexpectedEOF
 14141  					}
 14142  					mapvalue = &metadata.LabelList{}
 14143  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 14144  						return err
 14145  					}
 14146  					iNdEx = postmsgIndex
 14147  				} else {
 14148  					iNdEx = entryPreIndex
 14149  					skippy, err := skipLogservice(dAtA[iNdEx:])
 14150  					if err != nil {
 14151  						return err
 14152  					}
 14153  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 14154  						return ErrInvalidLengthLogservice
 14155  					}
 14156  					if (iNdEx + skippy) > postIndex {
 14157  						return io.ErrUnexpectedEOF
 14158  					}
 14159  					iNdEx += skippy
 14160  				}
 14161  			}
 14162  			m.Labels[mapkey] = *mapvalue
 14163  			iNdEx = postIndex
 14164  		default:
 14165  			iNdEx = preIndex
 14166  			skippy, err := skipLogservice(dAtA[iNdEx:])
 14167  			if err != nil {
 14168  				return err
 14169  			}
 14170  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14171  				return ErrInvalidLengthLogservice
 14172  			}
 14173  			if (iNdEx + skippy) > l {
 14174  				return io.ErrUnexpectedEOF
 14175  			}
 14176  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14177  			iNdEx += skippy
 14178  		}
 14179  	}
 14180  
 14181  	if iNdEx > l {
 14182  		return io.ErrUnexpectedEOF
 14183  	}
 14184  	return nil
 14185  }
 14186  func (m *Request) Unmarshal(dAtA []byte) error {
 14187  	l := len(dAtA)
 14188  	iNdEx := 0
 14189  	for iNdEx < l {
 14190  		preIndex := iNdEx
 14191  		var wire uint64
 14192  		for shift := uint(0); ; shift += 7 {
 14193  			if shift >= 64 {
 14194  				return ErrIntOverflowLogservice
 14195  			}
 14196  			if iNdEx >= l {
 14197  				return io.ErrUnexpectedEOF
 14198  			}
 14199  			b := dAtA[iNdEx]
 14200  			iNdEx++
 14201  			wire |= uint64(b&0x7F) << shift
 14202  			if b < 0x80 {
 14203  				break
 14204  			}
 14205  		}
 14206  		fieldNum := int32(wire >> 3)
 14207  		wireType := int(wire & 0x7)
 14208  		if wireType == 4 {
 14209  			return fmt.Errorf("proto: Request: wiretype end group for non-group")
 14210  		}
 14211  		if fieldNum <= 0 {
 14212  			return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
 14213  		}
 14214  		switch fieldNum {
 14215  		case 1:
 14216  			if wireType != 0 {
 14217  				return fmt.Errorf("proto: wrong wireType = %d for field RequestID", wireType)
 14218  			}
 14219  			m.RequestID = 0
 14220  			for shift := uint(0); ; shift += 7 {
 14221  				if shift >= 64 {
 14222  					return ErrIntOverflowLogservice
 14223  				}
 14224  				if iNdEx >= l {
 14225  					return io.ErrUnexpectedEOF
 14226  				}
 14227  				b := dAtA[iNdEx]
 14228  				iNdEx++
 14229  				m.RequestID |= uint64(b&0x7F) << shift
 14230  				if b < 0x80 {
 14231  					break
 14232  				}
 14233  			}
 14234  		case 2:
 14235  			if wireType != 0 {
 14236  				return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
 14237  			}
 14238  			m.Method = 0
 14239  			for shift := uint(0); ; shift += 7 {
 14240  				if shift >= 64 {
 14241  					return ErrIntOverflowLogservice
 14242  				}
 14243  				if iNdEx >= l {
 14244  					return io.ErrUnexpectedEOF
 14245  				}
 14246  				b := dAtA[iNdEx]
 14247  				iNdEx++
 14248  				m.Method |= MethodType(b&0x7F) << shift
 14249  				if b < 0x80 {
 14250  					break
 14251  				}
 14252  			}
 14253  		case 3:
 14254  			if wireType != 2 {
 14255  				return fmt.Errorf("proto: wrong wireType = %d for field LogRequest", wireType)
 14256  			}
 14257  			var msglen int
 14258  			for shift := uint(0); ; shift += 7 {
 14259  				if shift >= 64 {
 14260  					return ErrIntOverflowLogservice
 14261  				}
 14262  				if iNdEx >= l {
 14263  					return io.ErrUnexpectedEOF
 14264  				}
 14265  				b := dAtA[iNdEx]
 14266  				iNdEx++
 14267  				msglen |= int(b&0x7F) << shift
 14268  				if b < 0x80 {
 14269  					break
 14270  				}
 14271  			}
 14272  			if msglen < 0 {
 14273  				return ErrInvalidLengthLogservice
 14274  			}
 14275  			postIndex := iNdEx + msglen
 14276  			if postIndex < 0 {
 14277  				return ErrInvalidLengthLogservice
 14278  			}
 14279  			if postIndex > l {
 14280  				return io.ErrUnexpectedEOF
 14281  			}
 14282  			if err := m.LogRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14283  				return err
 14284  			}
 14285  			iNdEx = postIndex
 14286  		case 4:
 14287  			if wireType != 2 {
 14288  				return fmt.Errorf("proto: wrong wireType = %d for field LogHeartbeat", wireType)
 14289  			}
 14290  			var msglen int
 14291  			for shift := uint(0); ; shift += 7 {
 14292  				if shift >= 64 {
 14293  					return ErrIntOverflowLogservice
 14294  				}
 14295  				if iNdEx >= l {
 14296  					return io.ErrUnexpectedEOF
 14297  				}
 14298  				b := dAtA[iNdEx]
 14299  				iNdEx++
 14300  				msglen |= int(b&0x7F) << shift
 14301  				if b < 0x80 {
 14302  					break
 14303  				}
 14304  			}
 14305  			if msglen < 0 {
 14306  				return ErrInvalidLengthLogservice
 14307  			}
 14308  			postIndex := iNdEx + msglen
 14309  			if postIndex < 0 {
 14310  				return ErrInvalidLengthLogservice
 14311  			}
 14312  			if postIndex > l {
 14313  				return io.ErrUnexpectedEOF
 14314  			}
 14315  			if m.LogHeartbeat == nil {
 14316  				m.LogHeartbeat = &LogStoreHeartbeat{}
 14317  			}
 14318  			if err := m.LogHeartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14319  				return err
 14320  			}
 14321  			iNdEx = postIndex
 14322  		case 5:
 14323  			if wireType != 2 {
 14324  				return fmt.Errorf("proto: wrong wireType = %d for field CNHeartbeat", wireType)
 14325  			}
 14326  			var msglen int
 14327  			for shift := uint(0); ; shift += 7 {
 14328  				if shift >= 64 {
 14329  					return ErrIntOverflowLogservice
 14330  				}
 14331  				if iNdEx >= l {
 14332  					return io.ErrUnexpectedEOF
 14333  				}
 14334  				b := dAtA[iNdEx]
 14335  				iNdEx++
 14336  				msglen |= int(b&0x7F) << shift
 14337  				if b < 0x80 {
 14338  					break
 14339  				}
 14340  			}
 14341  			if msglen < 0 {
 14342  				return ErrInvalidLengthLogservice
 14343  			}
 14344  			postIndex := iNdEx + msglen
 14345  			if postIndex < 0 {
 14346  				return ErrInvalidLengthLogservice
 14347  			}
 14348  			if postIndex > l {
 14349  				return io.ErrUnexpectedEOF
 14350  			}
 14351  			if m.CNHeartbeat == nil {
 14352  				m.CNHeartbeat = &CNStoreHeartbeat{}
 14353  			}
 14354  			if err := m.CNHeartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14355  				return err
 14356  			}
 14357  			iNdEx = postIndex
 14358  		case 6:
 14359  			if wireType != 2 {
 14360  				return fmt.Errorf("proto: wrong wireType = %d for field TNHeartbeat", wireType)
 14361  			}
 14362  			var msglen int
 14363  			for shift := uint(0); ; shift += 7 {
 14364  				if shift >= 64 {
 14365  					return ErrIntOverflowLogservice
 14366  				}
 14367  				if iNdEx >= l {
 14368  					return io.ErrUnexpectedEOF
 14369  				}
 14370  				b := dAtA[iNdEx]
 14371  				iNdEx++
 14372  				msglen |= int(b&0x7F) << shift
 14373  				if b < 0x80 {
 14374  					break
 14375  				}
 14376  			}
 14377  			if msglen < 0 {
 14378  				return ErrInvalidLengthLogservice
 14379  			}
 14380  			postIndex := iNdEx + msglen
 14381  			if postIndex < 0 {
 14382  				return ErrInvalidLengthLogservice
 14383  			}
 14384  			if postIndex > l {
 14385  				return io.ErrUnexpectedEOF
 14386  			}
 14387  			if m.TNHeartbeat == nil {
 14388  				m.TNHeartbeat = &TNStoreHeartbeat{}
 14389  			}
 14390  			if err := m.TNHeartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14391  				return err
 14392  			}
 14393  			iNdEx = postIndex
 14394  		case 7:
 14395  			if wireType != 2 {
 14396  				return fmt.Errorf("proto: wrong wireType = %d for field TsoRequest", wireType)
 14397  			}
 14398  			var msglen int
 14399  			for shift := uint(0); ; shift += 7 {
 14400  				if shift >= 64 {
 14401  					return ErrIntOverflowLogservice
 14402  				}
 14403  				if iNdEx >= l {
 14404  					return io.ErrUnexpectedEOF
 14405  				}
 14406  				b := dAtA[iNdEx]
 14407  				iNdEx++
 14408  				msglen |= int(b&0x7F) << shift
 14409  				if b < 0x80 {
 14410  					break
 14411  				}
 14412  			}
 14413  			if msglen < 0 {
 14414  				return ErrInvalidLengthLogservice
 14415  			}
 14416  			postIndex := iNdEx + msglen
 14417  			if postIndex < 0 {
 14418  				return ErrInvalidLengthLogservice
 14419  			}
 14420  			if postIndex > l {
 14421  				return io.ErrUnexpectedEOF
 14422  			}
 14423  			if m.TsoRequest == nil {
 14424  				m.TsoRequest = &TsoRequest{}
 14425  			}
 14426  			if err := m.TsoRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14427  				return err
 14428  			}
 14429  			iNdEx = postIndex
 14430  		case 8:
 14431  			if wireType != 2 {
 14432  				return fmt.Errorf("proto: wrong wireType = %d for field CNAllocateID", wireType)
 14433  			}
 14434  			var msglen int
 14435  			for shift := uint(0); ; shift += 7 {
 14436  				if shift >= 64 {
 14437  					return ErrIntOverflowLogservice
 14438  				}
 14439  				if iNdEx >= l {
 14440  					return io.ErrUnexpectedEOF
 14441  				}
 14442  				b := dAtA[iNdEx]
 14443  				iNdEx++
 14444  				msglen |= int(b&0x7F) << shift
 14445  				if b < 0x80 {
 14446  					break
 14447  				}
 14448  			}
 14449  			if msglen < 0 {
 14450  				return ErrInvalidLengthLogservice
 14451  			}
 14452  			postIndex := iNdEx + msglen
 14453  			if postIndex < 0 {
 14454  				return ErrInvalidLengthLogservice
 14455  			}
 14456  			if postIndex > l {
 14457  				return io.ErrUnexpectedEOF
 14458  			}
 14459  			if m.CNAllocateID == nil {
 14460  				m.CNAllocateID = &CNAllocateID{}
 14461  			}
 14462  			if err := m.CNAllocateID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14463  				return err
 14464  			}
 14465  			iNdEx = postIndex
 14466  		case 9:
 14467  			if wireType != 2 {
 14468  				return fmt.Errorf("proto: wrong wireType = %d for field CNStoreLabel", wireType)
 14469  			}
 14470  			var msglen int
 14471  			for shift := uint(0); ; shift += 7 {
 14472  				if shift >= 64 {
 14473  					return ErrIntOverflowLogservice
 14474  				}
 14475  				if iNdEx >= l {
 14476  					return io.ErrUnexpectedEOF
 14477  				}
 14478  				b := dAtA[iNdEx]
 14479  				iNdEx++
 14480  				msglen |= int(b&0x7F) << shift
 14481  				if b < 0x80 {
 14482  					break
 14483  				}
 14484  			}
 14485  			if msglen < 0 {
 14486  				return ErrInvalidLengthLogservice
 14487  			}
 14488  			postIndex := iNdEx + msglen
 14489  			if postIndex < 0 {
 14490  				return ErrInvalidLengthLogservice
 14491  			}
 14492  			if postIndex > l {
 14493  				return io.ErrUnexpectedEOF
 14494  			}
 14495  			if m.CNStoreLabel == nil {
 14496  				m.CNStoreLabel = &CNStoreLabel{}
 14497  			}
 14498  			if err := m.CNStoreLabel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14499  				return err
 14500  			}
 14501  			iNdEx = postIndex
 14502  		case 10:
 14503  			if wireType != 2 {
 14504  				return fmt.Errorf("proto: wrong wireType = %d for field CNWorkState", wireType)
 14505  			}
 14506  			var msglen int
 14507  			for shift := uint(0); ; shift += 7 {
 14508  				if shift >= 64 {
 14509  					return ErrIntOverflowLogservice
 14510  				}
 14511  				if iNdEx >= l {
 14512  					return io.ErrUnexpectedEOF
 14513  				}
 14514  				b := dAtA[iNdEx]
 14515  				iNdEx++
 14516  				msglen |= int(b&0x7F) << shift
 14517  				if b < 0x80 {
 14518  					break
 14519  				}
 14520  			}
 14521  			if msglen < 0 {
 14522  				return ErrInvalidLengthLogservice
 14523  			}
 14524  			postIndex := iNdEx + msglen
 14525  			if postIndex < 0 {
 14526  				return ErrInvalidLengthLogservice
 14527  			}
 14528  			if postIndex > l {
 14529  				return io.ErrUnexpectedEOF
 14530  			}
 14531  			if m.CNWorkState == nil {
 14532  				m.CNWorkState = &CNWorkState{}
 14533  			}
 14534  			if err := m.CNWorkState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14535  				return err
 14536  			}
 14537  			iNdEx = postIndex
 14538  		case 11:
 14539  			if wireType != 2 {
 14540  				return fmt.Errorf("proto: wrong wireType = %d for field CNStateLabel", wireType)
 14541  			}
 14542  			var msglen int
 14543  			for shift := uint(0); ; shift += 7 {
 14544  				if shift >= 64 {
 14545  					return ErrIntOverflowLogservice
 14546  				}
 14547  				if iNdEx >= l {
 14548  					return io.ErrUnexpectedEOF
 14549  				}
 14550  				b := dAtA[iNdEx]
 14551  				iNdEx++
 14552  				msglen |= int(b&0x7F) << shift
 14553  				if b < 0x80 {
 14554  					break
 14555  				}
 14556  			}
 14557  			if msglen < 0 {
 14558  				return ErrInvalidLengthLogservice
 14559  			}
 14560  			postIndex := iNdEx + msglen
 14561  			if postIndex < 0 {
 14562  				return ErrInvalidLengthLogservice
 14563  			}
 14564  			if postIndex > l {
 14565  				return io.ErrUnexpectedEOF
 14566  			}
 14567  			if m.CNStateLabel == nil {
 14568  				m.CNStateLabel = &CNStateLabel{}
 14569  			}
 14570  			if err := m.CNStateLabel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14571  				return err
 14572  			}
 14573  			iNdEx = postIndex
 14574  		case 12:
 14575  			if wireType != 2 {
 14576  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteCNStore", wireType)
 14577  			}
 14578  			var msglen int
 14579  			for shift := uint(0); ; shift += 7 {
 14580  				if shift >= 64 {
 14581  					return ErrIntOverflowLogservice
 14582  				}
 14583  				if iNdEx >= l {
 14584  					return io.ErrUnexpectedEOF
 14585  				}
 14586  				b := dAtA[iNdEx]
 14587  				iNdEx++
 14588  				msglen |= int(b&0x7F) << shift
 14589  				if b < 0x80 {
 14590  					break
 14591  				}
 14592  			}
 14593  			if msglen < 0 {
 14594  				return ErrInvalidLengthLogservice
 14595  			}
 14596  			postIndex := iNdEx + msglen
 14597  			if postIndex < 0 {
 14598  				return ErrInvalidLengthLogservice
 14599  			}
 14600  			if postIndex > l {
 14601  				return io.ErrUnexpectedEOF
 14602  			}
 14603  			if m.DeleteCNStore == nil {
 14604  				m.DeleteCNStore = &DeleteCNStore{}
 14605  			}
 14606  			if err := m.DeleteCNStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14607  				return err
 14608  			}
 14609  			iNdEx = postIndex
 14610  		case 13:
 14611  			if wireType != 2 {
 14612  				return fmt.Errorf("proto: wrong wireType = %d for field ProxyHeartbeat", wireType)
 14613  			}
 14614  			var msglen int
 14615  			for shift := uint(0); ; shift += 7 {
 14616  				if shift >= 64 {
 14617  					return ErrIntOverflowLogservice
 14618  				}
 14619  				if iNdEx >= l {
 14620  					return io.ErrUnexpectedEOF
 14621  				}
 14622  				b := dAtA[iNdEx]
 14623  				iNdEx++
 14624  				msglen |= int(b&0x7F) << shift
 14625  				if b < 0x80 {
 14626  					break
 14627  				}
 14628  			}
 14629  			if msglen < 0 {
 14630  				return ErrInvalidLengthLogservice
 14631  			}
 14632  			postIndex := iNdEx + msglen
 14633  			if postIndex < 0 {
 14634  				return ErrInvalidLengthLogservice
 14635  			}
 14636  			if postIndex > l {
 14637  				return io.ErrUnexpectedEOF
 14638  			}
 14639  			if m.ProxyHeartbeat == nil {
 14640  				m.ProxyHeartbeat = &ProxyHeartbeat{}
 14641  			}
 14642  			if err := m.ProxyHeartbeat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14643  				return err
 14644  			}
 14645  			iNdEx = postIndex
 14646  		default:
 14647  			iNdEx = preIndex
 14648  			skippy, err := skipLogservice(dAtA[iNdEx:])
 14649  			if err != nil {
 14650  				return err
 14651  			}
 14652  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14653  				return ErrInvalidLengthLogservice
 14654  			}
 14655  			if (iNdEx + skippy) > l {
 14656  				return io.ErrUnexpectedEOF
 14657  			}
 14658  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14659  			iNdEx += skippy
 14660  		}
 14661  	}
 14662  
 14663  	if iNdEx > l {
 14664  		return io.ErrUnexpectedEOF
 14665  	}
 14666  	return nil
 14667  }
 14668  func (m *LogResponse) Unmarshal(dAtA []byte) error {
 14669  	l := len(dAtA)
 14670  	iNdEx := 0
 14671  	for iNdEx < l {
 14672  		preIndex := iNdEx
 14673  		var wire uint64
 14674  		for shift := uint(0); ; shift += 7 {
 14675  			if shift >= 64 {
 14676  				return ErrIntOverflowLogservice
 14677  			}
 14678  			if iNdEx >= l {
 14679  				return io.ErrUnexpectedEOF
 14680  			}
 14681  			b := dAtA[iNdEx]
 14682  			iNdEx++
 14683  			wire |= uint64(b&0x7F) << shift
 14684  			if b < 0x80 {
 14685  				break
 14686  			}
 14687  		}
 14688  		fieldNum := int32(wire >> 3)
 14689  		wireType := int(wire & 0x7)
 14690  		if wireType == 4 {
 14691  			return fmt.Errorf("proto: LogResponse: wiretype end group for non-group")
 14692  		}
 14693  		if fieldNum <= 0 {
 14694  			return fmt.Errorf("proto: LogResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 14695  		}
 14696  		switch fieldNum {
 14697  		case 1:
 14698  			if wireType != 0 {
 14699  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 14700  			}
 14701  			m.ShardID = 0
 14702  			for shift := uint(0); ; shift += 7 {
 14703  				if shift >= 64 {
 14704  					return ErrIntOverflowLogservice
 14705  				}
 14706  				if iNdEx >= l {
 14707  					return io.ErrUnexpectedEOF
 14708  				}
 14709  				b := dAtA[iNdEx]
 14710  				iNdEx++
 14711  				m.ShardID |= uint64(b&0x7F) << shift
 14712  				if b < 0x80 {
 14713  					break
 14714  				}
 14715  			}
 14716  		case 2:
 14717  			if wireType != 0 {
 14718  				return fmt.Errorf("proto: wrong wireType = %d for field Lsn", wireType)
 14719  			}
 14720  			m.Lsn = 0
 14721  			for shift := uint(0); ; shift += 7 {
 14722  				if shift >= 64 {
 14723  					return ErrIntOverflowLogservice
 14724  				}
 14725  				if iNdEx >= l {
 14726  					return io.ErrUnexpectedEOF
 14727  				}
 14728  				b := dAtA[iNdEx]
 14729  				iNdEx++
 14730  				m.Lsn |= uint64(b&0x7F) << shift
 14731  				if b < 0x80 {
 14732  					break
 14733  				}
 14734  			}
 14735  		case 3:
 14736  			if wireType != 0 {
 14737  				return fmt.Errorf("proto: wrong wireType = %d for field LastLsn", wireType)
 14738  			}
 14739  			m.LastLsn = 0
 14740  			for shift := uint(0); ; shift += 7 {
 14741  				if shift >= 64 {
 14742  					return ErrIntOverflowLogservice
 14743  				}
 14744  				if iNdEx >= l {
 14745  					return io.ErrUnexpectedEOF
 14746  				}
 14747  				b := dAtA[iNdEx]
 14748  				iNdEx++
 14749  				m.LastLsn |= uint64(b&0x7F) << shift
 14750  				if b < 0x80 {
 14751  					break
 14752  				}
 14753  			}
 14754  		default:
 14755  			iNdEx = preIndex
 14756  			skippy, err := skipLogservice(dAtA[iNdEx:])
 14757  			if err != nil {
 14758  				return err
 14759  			}
 14760  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14761  				return ErrInvalidLengthLogservice
 14762  			}
 14763  			if (iNdEx + skippy) > l {
 14764  				return io.ErrUnexpectedEOF
 14765  			}
 14766  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14767  			iNdEx += skippy
 14768  		}
 14769  	}
 14770  
 14771  	if iNdEx > l {
 14772  		return io.ErrUnexpectedEOF
 14773  	}
 14774  	return nil
 14775  }
 14776  func (m *AllocateIDResponse) Unmarshal(dAtA []byte) error {
 14777  	l := len(dAtA)
 14778  	iNdEx := 0
 14779  	for iNdEx < l {
 14780  		preIndex := iNdEx
 14781  		var wire uint64
 14782  		for shift := uint(0); ; shift += 7 {
 14783  			if shift >= 64 {
 14784  				return ErrIntOverflowLogservice
 14785  			}
 14786  			if iNdEx >= l {
 14787  				return io.ErrUnexpectedEOF
 14788  			}
 14789  			b := dAtA[iNdEx]
 14790  			iNdEx++
 14791  			wire |= uint64(b&0x7F) << shift
 14792  			if b < 0x80 {
 14793  				break
 14794  			}
 14795  		}
 14796  		fieldNum := int32(wire >> 3)
 14797  		wireType := int(wire & 0x7)
 14798  		if wireType == 4 {
 14799  			return fmt.Errorf("proto: AllocateIDResponse: wiretype end group for non-group")
 14800  		}
 14801  		if fieldNum <= 0 {
 14802  			return fmt.Errorf("proto: AllocateIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 14803  		}
 14804  		switch fieldNum {
 14805  		case 1:
 14806  			if wireType != 0 {
 14807  				return fmt.Errorf("proto: wrong wireType = %d for field FirstID", wireType)
 14808  			}
 14809  			m.FirstID = 0
 14810  			for shift := uint(0); ; shift += 7 {
 14811  				if shift >= 64 {
 14812  					return ErrIntOverflowLogservice
 14813  				}
 14814  				if iNdEx >= l {
 14815  					return io.ErrUnexpectedEOF
 14816  				}
 14817  				b := dAtA[iNdEx]
 14818  				iNdEx++
 14819  				m.FirstID |= uint64(b&0x7F) << shift
 14820  				if b < 0x80 {
 14821  					break
 14822  				}
 14823  			}
 14824  		default:
 14825  			iNdEx = preIndex
 14826  			skippy, err := skipLogservice(dAtA[iNdEx:])
 14827  			if err != nil {
 14828  				return err
 14829  			}
 14830  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 14831  				return ErrInvalidLengthLogservice
 14832  			}
 14833  			if (iNdEx + skippy) > l {
 14834  				return io.ErrUnexpectedEOF
 14835  			}
 14836  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14837  			iNdEx += skippy
 14838  		}
 14839  	}
 14840  
 14841  	if iNdEx > l {
 14842  		return io.ErrUnexpectedEOF
 14843  	}
 14844  	return nil
 14845  }
 14846  func (m *Response) Unmarshal(dAtA []byte) error {
 14847  	l := len(dAtA)
 14848  	iNdEx := 0
 14849  	for iNdEx < l {
 14850  		preIndex := iNdEx
 14851  		var wire uint64
 14852  		for shift := uint(0); ; shift += 7 {
 14853  			if shift >= 64 {
 14854  				return ErrIntOverflowLogservice
 14855  			}
 14856  			if iNdEx >= l {
 14857  				return io.ErrUnexpectedEOF
 14858  			}
 14859  			b := dAtA[iNdEx]
 14860  			iNdEx++
 14861  			wire |= uint64(b&0x7F) << shift
 14862  			if b < 0x80 {
 14863  				break
 14864  			}
 14865  		}
 14866  		fieldNum := int32(wire >> 3)
 14867  		wireType := int(wire & 0x7)
 14868  		if wireType == 4 {
 14869  			return fmt.Errorf("proto: Response: wiretype end group for non-group")
 14870  		}
 14871  		if fieldNum <= 0 {
 14872  			return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
 14873  		}
 14874  		switch fieldNum {
 14875  		case 1:
 14876  			if wireType != 0 {
 14877  				return fmt.Errorf("proto: wrong wireType = %d for field RequestID", wireType)
 14878  			}
 14879  			m.RequestID = 0
 14880  			for shift := uint(0); ; shift += 7 {
 14881  				if shift >= 64 {
 14882  					return ErrIntOverflowLogservice
 14883  				}
 14884  				if iNdEx >= l {
 14885  					return io.ErrUnexpectedEOF
 14886  				}
 14887  				b := dAtA[iNdEx]
 14888  				iNdEx++
 14889  				m.RequestID |= uint64(b&0x7F) << shift
 14890  				if b < 0x80 {
 14891  					break
 14892  				}
 14893  			}
 14894  		case 2:
 14895  			if wireType != 0 {
 14896  				return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType)
 14897  			}
 14898  			m.Method = 0
 14899  			for shift := uint(0); ; shift += 7 {
 14900  				if shift >= 64 {
 14901  					return ErrIntOverflowLogservice
 14902  				}
 14903  				if iNdEx >= l {
 14904  					return io.ErrUnexpectedEOF
 14905  				}
 14906  				b := dAtA[iNdEx]
 14907  				iNdEx++
 14908  				m.Method |= MethodType(b&0x7F) << shift
 14909  				if b < 0x80 {
 14910  					break
 14911  				}
 14912  			}
 14913  		case 3:
 14914  			if wireType != 0 {
 14915  				return fmt.Errorf("proto: wrong wireType = %d for field ErrorCode", wireType)
 14916  			}
 14917  			m.ErrorCode = 0
 14918  			for shift := uint(0); ; shift += 7 {
 14919  				if shift >= 64 {
 14920  					return ErrIntOverflowLogservice
 14921  				}
 14922  				if iNdEx >= l {
 14923  					return io.ErrUnexpectedEOF
 14924  				}
 14925  				b := dAtA[iNdEx]
 14926  				iNdEx++
 14927  				m.ErrorCode |= uint32(b&0x7F) << shift
 14928  				if b < 0x80 {
 14929  					break
 14930  				}
 14931  			}
 14932  		case 4:
 14933  			if wireType != 2 {
 14934  				return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType)
 14935  			}
 14936  			var stringLen uint64
 14937  			for shift := uint(0); ; shift += 7 {
 14938  				if shift >= 64 {
 14939  					return ErrIntOverflowLogservice
 14940  				}
 14941  				if iNdEx >= l {
 14942  					return io.ErrUnexpectedEOF
 14943  				}
 14944  				b := dAtA[iNdEx]
 14945  				iNdEx++
 14946  				stringLen |= uint64(b&0x7F) << shift
 14947  				if b < 0x80 {
 14948  					break
 14949  				}
 14950  			}
 14951  			intStringLen := int(stringLen)
 14952  			if intStringLen < 0 {
 14953  				return ErrInvalidLengthLogservice
 14954  			}
 14955  			postIndex := iNdEx + intStringLen
 14956  			if postIndex < 0 {
 14957  				return ErrInvalidLengthLogservice
 14958  			}
 14959  			if postIndex > l {
 14960  				return io.ErrUnexpectedEOF
 14961  			}
 14962  			m.ErrorMessage = string(dAtA[iNdEx:postIndex])
 14963  			iNdEx = postIndex
 14964  		case 5:
 14965  			if wireType != 0 {
 14966  				return fmt.Errorf("proto: wrong wireType = %d for field IsHAKeeper", wireType)
 14967  			}
 14968  			var v int
 14969  			for shift := uint(0); ; shift += 7 {
 14970  				if shift >= 64 {
 14971  					return ErrIntOverflowLogservice
 14972  				}
 14973  				if iNdEx >= l {
 14974  					return io.ErrUnexpectedEOF
 14975  				}
 14976  				b := dAtA[iNdEx]
 14977  				iNdEx++
 14978  				v |= int(b&0x7F) << shift
 14979  				if b < 0x80 {
 14980  					break
 14981  				}
 14982  			}
 14983  			m.IsHAKeeper = bool(v != 0)
 14984  		case 6:
 14985  			if wireType != 2 {
 14986  				return fmt.Errorf("proto: wrong wireType = %d for field LogResponse", wireType)
 14987  			}
 14988  			var msglen int
 14989  			for shift := uint(0); ; shift += 7 {
 14990  				if shift >= 64 {
 14991  					return ErrIntOverflowLogservice
 14992  				}
 14993  				if iNdEx >= l {
 14994  					return io.ErrUnexpectedEOF
 14995  				}
 14996  				b := dAtA[iNdEx]
 14997  				iNdEx++
 14998  				msglen |= int(b&0x7F) << shift
 14999  				if b < 0x80 {
 15000  					break
 15001  				}
 15002  			}
 15003  			if msglen < 0 {
 15004  				return ErrInvalidLengthLogservice
 15005  			}
 15006  			postIndex := iNdEx + msglen
 15007  			if postIndex < 0 {
 15008  				return ErrInvalidLengthLogservice
 15009  			}
 15010  			if postIndex > l {
 15011  				return io.ErrUnexpectedEOF
 15012  			}
 15013  			if err := m.LogResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15014  				return err
 15015  			}
 15016  			iNdEx = postIndex
 15017  		case 7:
 15018  			if wireType != 2 {
 15019  				return fmt.Errorf("proto: wrong wireType = %d for field CommandBatch", wireType)
 15020  			}
 15021  			var msglen int
 15022  			for shift := uint(0); ; shift += 7 {
 15023  				if shift >= 64 {
 15024  					return ErrIntOverflowLogservice
 15025  				}
 15026  				if iNdEx >= l {
 15027  					return io.ErrUnexpectedEOF
 15028  				}
 15029  				b := dAtA[iNdEx]
 15030  				iNdEx++
 15031  				msglen |= int(b&0x7F) << shift
 15032  				if b < 0x80 {
 15033  					break
 15034  				}
 15035  			}
 15036  			if msglen < 0 {
 15037  				return ErrInvalidLengthLogservice
 15038  			}
 15039  			postIndex := iNdEx + msglen
 15040  			if postIndex < 0 {
 15041  				return ErrInvalidLengthLogservice
 15042  			}
 15043  			if postIndex > l {
 15044  				return io.ErrUnexpectedEOF
 15045  			}
 15046  			if m.CommandBatch == nil {
 15047  				m.CommandBatch = &CommandBatch{}
 15048  			}
 15049  			if err := m.CommandBatch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15050  				return err
 15051  			}
 15052  			iNdEx = postIndex
 15053  		case 8:
 15054  			if wireType != 2 {
 15055  				return fmt.Errorf("proto: wrong wireType = %d for field TsoResponse", wireType)
 15056  			}
 15057  			var msglen int
 15058  			for shift := uint(0); ; shift += 7 {
 15059  				if shift >= 64 {
 15060  					return ErrIntOverflowLogservice
 15061  				}
 15062  				if iNdEx >= l {
 15063  					return io.ErrUnexpectedEOF
 15064  				}
 15065  				b := dAtA[iNdEx]
 15066  				iNdEx++
 15067  				msglen |= int(b&0x7F) << shift
 15068  				if b < 0x80 {
 15069  					break
 15070  				}
 15071  			}
 15072  			if msglen < 0 {
 15073  				return ErrInvalidLengthLogservice
 15074  			}
 15075  			postIndex := iNdEx + msglen
 15076  			if postIndex < 0 {
 15077  				return ErrInvalidLengthLogservice
 15078  			}
 15079  			if postIndex > l {
 15080  				return io.ErrUnexpectedEOF
 15081  			}
 15082  			if m.TsoResponse == nil {
 15083  				m.TsoResponse = &TsoResponse{}
 15084  			}
 15085  			if err := m.TsoResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15086  				return err
 15087  			}
 15088  			iNdEx = postIndex
 15089  		case 9:
 15090  			if wireType != 2 {
 15091  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterDetails", wireType)
 15092  			}
 15093  			var msglen int
 15094  			for shift := uint(0); ; shift += 7 {
 15095  				if shift >= 64 {
 15096  					return ErrIntOverflowLogservice
 15097  				}
 15098  				if iNdEx >= l {
 15099  					return io.ErrUnexpectedEOF
 15100  				}
 15101  				b := dAtA[iNdEx]
 15102  				iNdEx++
 15103  				msglen |= int(b&0x7F) << shift
 15104  				if b < 0x80 {
 15105  					break
 15106  				}
 15107  			}
 15108  			if msglen < 0 {
 15109  				return ErrInvalidLengthLogservice
 15110  			}
 15111  			postIndex := iNdEx + msglen
 15112  			if postIndex < 0 {
 15113  				return ErrInvalidLengthLogservice
 15114  			}
 15115  			if postIndex > l {
 15116  				return io.ErrUnexpectedEOF
 15117  			}
 15118  			if m.ClusterDetails == nil {
 15119  				m.ClusterDetails = &ClusterDetails{}
 15120  			}
 15121  			if err := m.ClusterDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15122  				return err
 15123  			}
 15124  			iNdEx = postIndex
 15125  		case 10:
 15126  			if wireType != 2 {
 15127  				return fmt.Errorf("proto: wrong wireType = %d for field ShardInfo", wireType)
 15128  			}
 15129  			var msglen int
 15130  			for shift := uint(0); ; shift += 7 {
 15131  				if shift >= 64 {
 15132  					return ErrIntOverflowLogservice
 15133  				}
 15134  				if iNdEx >= l {
 15135  					return io.ErrUnexpectedEOF
 15136  				}
 15137  				b := dAtA[iNdEx]
 15138  				iNdEx++
 15139  				msglen |= int(b&0x7F) << shift
 15140  				if b < 0x80 {
 15141  					break
 15142  				}
 15143  			}
 15144  			if msglen < 0 {
 15145  				return ErrInvalidLengthLogservice
 15146  			}
 15147  			postIndex := iNdEx + msglen
 15148  			if postIndex < 0 {
 15149  				return ErrInvalidLengthLogservice
 15150  			}
 15151  			if postIndex > l {
 15152  				return io.ErrUnexpectedEOF
 15153  			}
 15154  			if m.ShardInfo == nil {
 15155  				m.ShardInfo = &ShardInfoQueryResult{}
 15156  			}
 15157  			if err := m.ShardInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15158  				return err
 15159  			}
 15160  			iNdEx = postIndex
 15161  		case 11:
 15162  			if wireType != 2 {
 15163  				return fmt.Errorf("proto: wrong wireType = %d for field AllocateID", wireType)
 15164  			}
 15165  			var msglen int
 15166  			for shift := uint(0); ; shift += 7 {
 15167  				if shift >= 64 {
 15168  					return ErrIntOverflowLogservice
 15169  				}
 15170  				if iNdEx >= l {
 15171  					return io.ErrUnexpectedEOF
 15172  				}
 15173  				b := dAtA[iNdEx]
 15174  				iNdEx++
 15175  				msglen |= int(b&0x7F) << shift
 15176  				if b < 0x80 {
 15177  					break
 15178  				}
 15179  			}
 15180  			if msglen < 0 {
 15181  				return ErrInvalidLengthLogservice
 15182  			}
 15183  			postIndex := iNdEx + msglen
 15184  			if postIndex < 0 {
 15185  				return ErrInvalidLengthLogservice
 15186  			}
 15187  			if postIndex > l {
 15188  				return io.ErrUnexpectedEOF
 15189  			}
 15190  			if m.AllocateID == nil {
 15191  				m.AllocateID = &AllocateIDResponse{}
 15192  			}
 15193  			if err := m.AllocateID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15194  				return err
 15195  			}
 15196  			iNdEx = postIndex
 15197  		case 12:
 15198  			if wireType != 2 {
 15199  				return fmt.Errorf("proto: wrong wireType = %d for field CheckerState", wireType)
 15200  			}
 15201  			var msglen int
 15202  			for shift := uint(0); ; shift += 7 {
 15203  				if shift >= 64 {
 15204  					return ErrIntOverflowLogservice
 15205  				}
 15206  				if iNdEx >= l {
 15207  					return io.ErrUnexpectedEOF
 15208  				}
 15209  				b := dAtA[iNdEx]
 15210  				iNdEx++
 15211  				msglen |= int(b&0x7F) << shift
 15212  				if b < 0x80 {
 15213  					break
 15214  				}
 15215  			}
 15216  			if msglen < 0 {
 15217  				return ErrInvalidLengthLogservice
 15218  			}
 15219  			postIndex := iNdEx + msglen
 15220  			if postIndex < 0 {
 15221  				return ErrInvalidLengthLogservice
 15222  			}
 15223  			if postIndex > l {
 15224  				return io.ErrUnexpectedEOF
 15225  			}
 15226  			if m.CheckerState == nil {
 15227  				m.CheckerState = &CheckerState{}
 15228  			}
 15229  			if err := m.CheckerState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15230  				return err
 15231  			}
 15232  			iNdEx = postIndex
 15233  		default:
 15234  			iNdEx = preIndex
 15235  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15236  			if err != nil {
 15237  				return err
 15238  			}
 15239  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15240  				return ErrInvalidLengthLogservice
 15241  			}
 15242  			if (iNdEx + skippy) > l {
 15243  				return io.ErrUnexpectedEOF
 15244  			}
 15245  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15246  			iNdEx += skippy
 15247  		}
 15248  	}
 15249  
 15250  	if iNdEx > l {
 15251  		return io.ErrUnexpectedEOF
 15252  	}
 15253  	return nil
 15254  }
 15255  func (m *LogRecordResponse) Unmarshal(dAtA []byte) error {
 15256  	l := len(dAtA)
 15257  	iNdEx := 0
 15258  	for iNdEx < l {
 15259  		preIndex := iNdEx
 15260  		var wire uint64
 15261  		for shift := uint(0); ; shift += 7 {
 15262  			if shift >= 64 {
 15263  				return ErrIntOverflowLogservice
 15264  			}
 15265  			if iNdEx >= l {
 15266  				return io.ErrUnexpectedEOF
 15267  			}
 15268  			b := dAtA[iNdEx]
 15269  			iNdEx++
 15270  			wire |= uint64(b&0x7F) << shift
 15271  			if b < 0x80 {
 15272  				break
 15273  			}
 15274  		}
 15275  		fieldNum := int32(wire >> 3)
 15276  		wireType := int(wire & 0x7)
 15277  		if wireType == 4 {
 15278  			return fmt.Errorf("proto: LogRecordResponse: wiretype end group for non-group")
 15279  		}
 15280  		if fieldNum <= 0 {
 15281  			return fmt.Errorf("proto: LogRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 15282  		}
 15283  		switch fieldNum {
 15284  		case 1:
 15285  			if wireType != 2 {
 15286  				return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType)
 15287  			}
 15288  			var msglen int
 15289  			for shift := uint(0); ; shift += 7 {
 15290  				if shift >= 64 {
 15291  					return ErrIntOverflowLogservice
 15292  				}
 15293  				if iNdEx >= l {
 15294  					return io.ErrUnexpectedEOF
 15295  				}
 15296  				b := dAtA[iNdEx]
 15297  				iNdEx++
 15298  				msglen |= int(b&0x7F) << shift
 15299  				if b < 0x80 {
 15300  					break
 15301  				}
 15302  			}
 15303  			if msglen < 0 {
 15304  				return ErrInvalidLengthLogservice
 15305  			}
 15306  			postIndex := iNdEx + msglen
 15307  			if postIndex < 0 {
 15308  				return ErrInvalidLengthLogservice
 15309  			}
 15310  			if postIndex > l {
 15311  				return io.ErrUnexpectedEOF
 15312  			}
 15313  			m.Records = append(m.Records, LogRecord{})
 15314  			if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15315  				return err
 15316  			}
 15317  			iNdEx = postIndex
 15318  		default:
 15319  			iNdEx = preIndex
 15320  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15321  			if err != nil {
 15322  				return err
 15323  			}
 15324  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15325  				return ErrInvalidLengthLogservice
 15326  			}
 15327  			if (iNdEx + skippy) > l {
 15328  				return io.ErrUnexpectedEOF
 15329  			}
 15330  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15331  			iNdEx += skippy
 15332  		}
 15333  	}
 15334  
 15335  	if iNdEx > l {
 15336  		return io.ErrUnexpectedEOF
 15337  	}
 15338  	return nil
 15339  }
 15340  func (m *TsoResponse) Unmarshal(dAtA []byte) error {
 15341  	l := len(dAtA)
 15342  	iNdEx := 0
 15343  	for iNdEx < l {
 15344  		preIndex := iNdEx
 15345  		var wire uint64
 15346  		for shift := uint(0); ; shift += 7 {
 15347  			if shift >= 64 {
 15348  				return ErrIntOverflowLogservice
 15349  			}
 15350  			if iNdEx >= l {
 15351  				return io.ErrUnexpectedEOF
 15352  			}
 15353  			b := dAtA[iNdEx]
 15354  			iNdEx++
 15355  			wire |= uint64(b&0x7F) << shift
 15356  			if b < 0x80 {
 15357  				break
 15358  			}
 15359  		}
 15360  		fieldNum := int32(wire >> 3)
 15361  		wireType := int(wire & 0x7)
 15362  		if wireType == 4 {
 15363  			return fmt.Errorf("proto: TsoResponse: wiretype end group for non-group")
 15364  		}
 15365  		if fieldNum <= 0 {
 15366  			return fmt.Errorf("proto: TsoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 15367  		}
 15368  		switch fieldNum {
 15369  		case 1:
 15370  			if wireType != 0 {
 15371  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 15372  			}
 15373  			m.Value = 0
 15374  			for shift := uint(0); ; shift += 7 {
 15375  				if shift >= 64 {
 15376  					return ErrIntOverflowLogservice
 15377  				}
 15378  				if iNdEx >= l {
 15379  					return io.ErrUnexpectedEOF
 15380  				}
 15381  				b := dAtA[iNdEx]
 15382  				iNdEx++
 15383  				m.Value |= uint64(b&0x7F) << shift
 15384  				if b < 0x80 {
 15385  					break
 15386  				}
 15387  			}
 15388  		default:
 15389  			iNdEx = preIndex
 15390  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15391  			if err != nil {
 15392  				return err
 15393  			}
 15394  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15395  				return ErrInvalidLengthLogservice
 15396  			}
 15397  			if (iNdEx + skippy) > l {
 15398  				return io.ErrUnexpectedEOF
 15399  			}
 15400  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15401  			iNdEx += skippy
 15402  		}
 15403  	}
 15404  
 15405  	if iNdEx > l {
 15406  		return io.ErrUnexpectedEOF
 15407  	}
 15408  	return nil
 15409  }
 15410  func (m *TaskTableUser) Unmarshal(dAtA []byte) error {
 15411  	l := len(dAtA)
 15412  	iNdEx := 0
 15413  	for iNdEx < l {
 15414  		preIndex := iNdEx
 15415  		var wire uint64
 15416  		for shift := uint(0); ; shift += 7 {
 15417  			if shift >= 64 {
 15418  				return ErrIntOverflowLogservice
 15419  			}
 15420  			if iNdEx >= l {
 15421  				return io.ErrUnexpectedEOF
 15422  			}
 15423  			b := dAtA[iNdEx]
 15424  			iNdEx++
 15425  			wire |= uint64(b&0x7F) << shift
 15426  			if b < 0x80 {
 15427  				break
 15428  			}
 15429  		}
 15430  		fieldNum := int32(wire >> 3)
 15431  		wireType := int(wire & 0x7)
 15432  		if wireType == 4 {
 15433  			return fmt.Errorf("proto: TaskTableUser: wiretype end group for non-group")
 15434  		}
 15435  		if fieldNum <= 0 {
 15436  			return fmt.Errorf("proto: TaskTableUser: illegal tag %d (wire type %d)", fieldNum, wire)
 15437  		}
 15438  		switch fieldNum {
 15439  		case 1:
 15440  			if wireType != 2 {
 15441  				return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
 15442  			}
 15443  			var stringLen uint64
 15444  			for shift := uint(0); ; shift += 7 {
 15445  				if shift >= 64 {
 15446  					return ErrIntOverflowLogservice
 15447  				}
 15448  				if iNdEx >= l {
 15449  					return io.ErrUnexpectedEOF
 15450  				}
 15451  				b := dAtA[iNdEx]
 15452  				iNdEx++
 15453  				stringLen |= uint64(b&0x7F) << shift
 15454  				if b < 0x80 {
 15455  					break
 15456  				}
 15457  			}
 15458  			intStringLen := int(stringLen)
 15459  			if intStringLen < 0 {
 15460  				return ErrInvalidLengthLogservice
 15461  			}
 15462  			postIndex := iNdEx + intStringLen
 15463  			if postIndex < 0 {
 15464  				return ErrInvalidLengthLogservice
 15465  			}
 15466  			if postIndex > l {
 15467  				return io.ErrUnexpectedEOF
 15468  			}
 15469  			m.Username = string(dAtA[iNdEx:postIndex])
 15470  			iNdEx = postIndex
 15471  		case 2:
 15472  			if wireType != 2 {
 15473  				return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
 15474  			}
 15475  			var stringLen uint64
 15476  			for shift := uint(0); ; shift += 7 {
 15477  				if shift >= 64 {
 15478  					return ErrIntOverflowLogservice
 15479  				}
 15480  				if iNdEx >= l {
 15481  					return io.ErrUnexpectedEOF
 15482  				}
 15483  				b := dAtA[iNdEx]
 15484  				iNdEx++
 15485  				stringLen |= uint64(b&0x7F) << shift
 15486  				if b < 0x80 {
 15487  					break
 15488  				}
 15489  			}
 15490  			intStringLen := int(stringLen)
 15491  			if intStringLen < 0 {
 15492  				return ErrInvalidLengthLogservice
 15493  			}
 15494  			postIndex := iNdEx + intStringLen
 15495  			if postIndex < 0 {
 15496  				return ErrInvalidLengthLogservice
 15497  			}
 15498  			if postIndex > l {
 15499  				return io.ErrUnexpectedEOF
 15500  			}
 15501  			m.Password = string(dAtA[iNdEx:postIndex])
 15502  			iNdEx = postIndex
 15503  		default:
 15504  			iNdEx = preIndex
 15505  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15506  			if err != nil {
 15507  				return err
 15508  			}
 15509  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15510  				return ErrInvalidLengthLogservice
 15511  			}
 15512  			if (iNdEx + skippy) > l {
 15513  				return io.ErrUnexpectedEOF
 15514  			}
 15515  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15516  			iNdEx += skippy
 15517  		}
 15518  	}
 15519  
 15520  	if iNdEx > l {
 15521  		return io.ErrUnexpectedEOF
 15522  	}
 15523  	return nil
 15524  }
 15525  func (m *Replica) Unmarshal(dAtA []byte) error {
 15526  	l := len(dAtA)
 15527  	iNdEx := 0
 15528  	for iNdEx < l {
 15529  		preIndex := iNdEx
 15530  		var wire uint64
 15531  		for shift := uint(0); ; shift += 7 {
 15532  			if shift >= 64 {
 15533  				return ErrIntOverflowLogservice
 15534  			}
 15535  			if iNdEx >= l {
 15536  				return io.ErrUnexpectedEOF
 15537  			}
 15538  			b := dAtA[iNdEx]
 15539  			iNdEx++
 15540  			wire |= uint64(b&0x7F) << shift
 15541  			if b < 0x80 {
 15542  				break
 15543  			}
 15544  		}
 15545  		fieldNum := int32(wire >> 3)
 15546  		wireType := int(wire & 0x7)
 15547  		if wireType == 4 {
 15548  			return fmt.Errorf("proto: Replica: wiretype end group for non-group")
 15549  		}
 15550  		if fieldNum <= 0 {
 15551  			return fmt.Errorf("proto: Replica: illegal tag %d (wire type %d)", fieldNum, wire)
 15552  		}
 15553  		switch fieldNum {
 15554  		case 1:
 15555  			if wireType != 2 {
 15556  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 15557  			}
 15558  			var stringLen uint64
 15559  			for shift := uint(0); ; shift += 7 {
 15560  				if shift >= 64 {
 15561  					return ErrIntOverflowLogservice
 15562  				}
 15563  				if iNdEx >= l {
 15564  					return io.ErrUnexpectedEOF
 15565  				}
 15566  				b := dAtA[iNdEx]
 15567  				iNdEx++
 15568  				stringLen |= uint64(b&0x7F) << shift
 15569  				if b < 0x80 {
 15570  					break
 15571  				}
 15572  			}
 15573  			intStringLen := int(stringLen)
 15574  			if intStringLen < 0 {
 15575  				return ErrInvalidLengthLogservice
 15576  			}
 15577  			postIndex := iNdEx + intStringLen
 15578  			if postIndex < 0 {
 15579  				return ErrInvalidLengthLogservice
 15580  			}
 15581  			if postIndex > l {
 15582  				return io.ErrUnexpectedEOF
 15583  			}
 15584  			m.UUID = string(dAtA[iNdEx:postIndex])
 15585  			iNdEx = postIndex
 15586  		case 2:
 15587  			if wireType != 0 {
 15588  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 15589  			}
 15590  			m.ShardID = 0
 15591  			for shift := uint(0); ; shift += 7 {
 15592  				if shift >= 64 {
 15593  					return ErrIntOverflowLogservice
 15594  				}
 15595  				if iNdEx >= l {
 15596  					return io.ErrUnexpectedEOF
 15597  				}
 15598  				b := dAtA[iNdEx]
 15599  				iNdEx++
 15600  				m.ShardID |= uint64(b&0x7F) << shift
 15601  				if b < 0x80 {
 15602  					break
 15603  				}
 15604  			}
 15605  		case 3:
 15606  			if wireType != 0 {
 15607  				return fmt.Errorf("proto: wrong wireType = %d for field ReplicaID", wireType)
 15608  			}
 15609  			m.ReplicaID = 0
 15610  			for shift := uint(0); ; shift += 7 {
 15611  				if shift >= 64 {
 15612  					return ErrIntOverflowLogservice
 15613  				}
 15614  				if iNdEx >= l {
 15615  					return io.ErrUnexpectedEOF
 15616  				}
 15617  				b := dAtA[iNdEx]
 15618  				iNdEx++
 15619  				m.ReplicaID |= uint64(b&0x7F) << shift
 15620  				if b < 0x80 {
 15621  					break
 15622  				}
 15623  			}
 15624  		case 4:
 15625  			if wireType != 0 {
 15626  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
 15627  			}
 15628  			m.Epoch = 0
 15629  			for shift := uint(0); ; shift += 7 {
 15630  				if shift >= 64 {
 15631  					return ErrIntOverflowLogservice
 15632  				}
 15633  				if iNdEx >= l {
 15634  					return io.ErrUnexpectedEOF
 15635  				}
 15636  				b := dAtA[iNdEx]
 15637  				iNdEx++
 15638  				m.Epoch |= uint64(b&0x7F) << shift
 15639  				if b < 0x80 {
 15640  					break
 15641  				}
 15642  			}
 15643  		case 5:
 15644  			if wireType != 0 {
 15645  				return fmt.Errorf("proto: wrong wireType = %d for field LogShardID", wireType)
 15646  			}
 15647  			m.LogShardID = 0
 15648  			for shift := uint(0); ; shift += 7 {
 15649  				if shift >= 64 {
 15650  					return ErrIntOverflowLogservice
 15651  				}
 15652  				if iNdEx >= l {
 15653  					return io.ErrUnexpectedEOF
 15654  				}
 15655  				b := dAtA[iNdEx]
 15656  				iNdEx++
 15657  				m.LogShardID |= uint64(b&0x7F) << shift
 15658  				if b < 0x80 {
 15659  					break
 15660  				}
 15661  			}
 15662  		default:
 15663  			iNdEx = preIndex
 15664  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15665  			if err != nil {
 15666  				return err
 15667  			}
 15668  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15669  				return ErrInvalidLengthLogservice
 15670  			}
 15671  			if (iNdEx + skippy) > l {
 15672  				return io.ErrUnexpectedEOF
 15673  			}
 15674  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15675  			iNdEx += skippy
 15676  		}
 15677  	}
 15678  
 15679  	if iNdEx > l {
 15680  		return io.ErrUnexpectedEOF
 15681  	}
 15682  	return nil
 15683  }
 15684  func (m *ConfigChange) Unmarshal(dAtA []byte) error {
 15685  	l := len(dAtA)
 15686  	iNdEx := 0
 15687  	for iNdEx < l {
 15688  		preIndex := iNdEx
 15689  		var wire uint64
 15690  		for shift := uint(0); ; shift += 7 {
 15691  			if shift >= 64 {
 15692  				return ErrIntOverflowLogservice
 15693  			}
 15694  			if iNdEx >= l {
 15695  				return io.ErrUnexpectedEOF
 15696  			}
 15697  			b := dAtA[iNdEx]
 15698  			iNdEx++
 15699  			wire |= uint64(b&0x7F) << shift
 15700  			if b < 0x80 {
 15701  				break
 15702  			}
 15703  		}
 15704  		fieldNum := int32(wire >> 3)
 15705  		wireType := int(wire & 0x7)
 15706  		if wireType == 4 {
 15707  			return fmt.Errorf("proto: ConfigChange: wiretype end group for non-group")
 15708  		}
 15709  		if fieldNum <= 0 {
 15710  			return fmt.Errorf("proto: ConfigChange: illegal tag %d (wire type %d)", fieldNum, wire)
 15711  		}
 15712  		switch fieldNum {
 15713  		case 1:
 15714  			if wireType != 2 {
 15715  				return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType)
 15716  			}
 15717  			var msglen int
 15718  			for shift := uint(0); ; shift += 7 {
 15719  				if shift >= 64 {
 15720  					return ErrIntOverflowLogservice
 15721  				}
 15722  				if iNdEx >= l {
 15723  					return io.ErrUnexpectedEOF
 15724  				}
 15725  				b := dAtA[iNdEx]
 15726  				iNdEx++
 15727  				msglen |= int(b&0x7F) << shift
 15728  				if b < 0x80 {
 15729  					break
 15730  				}
 15731  			}
 15732  			if msglen < 0 {
 15733  				return ErrInvalidLengthLogservice
 15734  			}
 15735  			postIndex := iNdEx + msglen
 15736  			if postIndex < 0 {
 15737  				return ErrInvalidLengthLogservice
 15738  			}
 15739  			if postIndex > l {
 15740  				return io.ErrUnexpectedEOF
 15741  			}
 15742  			if err := m.Replica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15743  				return err
 15744  			}
 15745  			iNdEx = postIndex
 15746  		case 2:
 15747  			if wireType != 0 {
 15748  				return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType)
 15749  			}
 15750  			m.ChangeType = 0
 15751  			for shift := uint(0); ; shift += 7 {
 15752  				if shift >= 64 {
 15753  					return ErrIntOverflowLogservice
 15754  				}
 15755  				if iNdEx >= l {
 15756  					return io.ErrUnexpectedEOF
 15757  				}
 15758  				b := dAtA[iNdEx]
 15759  				iNdEx++
 15760  				m.ChangeType |= ConfigChangeType(b&0x7F) << shift
 15761  				if b < 0x80 {
 15762  					break
 15763  				}
 15764  			}
 15765  		case 3:
 15766  			if wireType != 2 {
 15767  				return fmt.Errorf("proto: wrong wireType = %d for field InitialMembers", wireType)
 15768  			}
 15769  			var msglen int
 15770  			for shift := uint(0); ; shift += 7 {
 15771  				if shift >= 64 {
 15772  					return ErrIntOverflowLogservice
 15773  				}
 15774  				if iNdEx >= l {
 15775  					return io.ErrUnexpectedEOF
 15776  				}
 15777  				b := dAtA[iNdEx]
 15778  				iNdEx++
 15779  				msglen |= int(b&0x7F) << shift
 15780  				if b < 0x80 {
 15781  					break
 15782  				}
 15783  			}
 15784  			if msglen < 0 {
 15785  				return ErrInvalidLengthLogservice
 15786  			}
 15787  			postIndex := iNdEx + msglen
 15788  			if postIndex < 0 {
 15789  				return ErrInvalidLengthLogservice
 15790  			}
 15791  			if postIndex > l {
 15792  				return io.ErrUnexpectedEOF
 15793  			}
 15794  			if m.InitialMembers == nil {
 15795  				m.InitialMembers = make(map[uint64]string)
 15796  			}
 15797  			var mapkey uint64
 15798  			var mapvalue string
 15799  			for iNdEx < postIndex {
 15800  				entryPreIndex := iNdEx
 15801  				var wire uint64
 15802  				for shift := uint(0); ; shift += 7 {
 15803  					if shift >= 64 {
 15804  						return ErrIntOverflowLogservice
 15805  					}
 15806  					if iNdEx >= l {
 15807  						return io.ErrUnexpectedEOF
 15808  					}
 15809  					b := dAtA[iNdEx]
 15810  					iNdEx++
 15811  					wire |= uint64(b&0x7F) << shift
 15812  					if b < 0x80 {
 15813  						break
 15814  					}
 15815  				}
 15816  				fieldNum := int32(wire >> 3)
 15817  				if fieldNum == 1 {
 15818  					for shift := uint(0); ; shift += 7 {
 15819  						if shift >= 64 {
 15820  							return ErrIntOverflowLogservice
 15821  						}
 15822  						if iNdEx >= l {
 15823  							return io.ErrUnexpectedEOF
 15824  						}
 15825  						b := dAtA[iNdEx]
 15826  						iNdEx++
 15827  						mapkey |= uint64(b&0x7F) << shift
 15828  						if b < 0x80 {
 15829  							break
 15830  						}
 15831  					}
 15832  				} else if fieldNum == 2 {
 15833  					var stringLenmapvalue uint64
 15834  					for shift := uint(0); ; shift += 7 {
 15835  						if shift >= 64 {
 15836  							return ErrIntOverflowLogservice
 15837  						}
 15838  						if iNdEx >= l {
 15839  							return io.ErrUnexpectedEOF
 15840  						}
 15841  						b := dAtA[iNdEx]
 15842  						iNdEx++
 15843  						stringLenmapvalue |= uint64(b&0x7F) << shift
 15844  						if b < 0x80 {
 15845  							break
 15846  						}
 15847  					}
 15848  					intStringLenmapvalue := int(stringLenmapvalue)
 15849  					if intStringLenmapvalue < 0 {
 15850  						return ErrInvalidLengthLogservice
 15851  					}
 15852  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
 15853  					if postStringIndexmapvalue < 0 {
 15854  						return ErrInvalidLengthLogservice
 15855  					}
 15856  					if postStringIndexmapvalue > l {
 15857  						return io.ErrUnexpectedEOF
 15858  					}
 15859  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
 15860  					iNdEx = postStringIndexmapvalue
 15861  				} else {
 15862  					iNdEx = entryPreIndex
 15863  					skippy, err := skipLogservice(dAtA[iNdEx:])
 15864  					if err != nil {
 15865  						return err
 15866  					}
 15867  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 15868  						return ErrInvalidLengthLogservice
 15869  					}
 15870  					if (iNdEx + skippy) > postIndex {
 15871  						return io.ErrUnexpectedEOF
 15872  					}
 15873  					iNdEx += skippy
 15874  				}
 15875  			}
 15876  			m.InitialMembers[mapkey] = mapvalue
 15877  			iNdEx = postIndex
 15878  		default:
 15879  			iNdEx = preIndex
 15880  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15881  			if err != nil {
 15882  				return err
 15883  			}
 15884  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15885  				return ErrInvalidLengthLogservice
 15886  			}
 15887  			if (iNdEx + skippy) > l {
 15888  				return io.ErrUnexpectedEOF
 15889  			}
 15890  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15891  			iNdEx += skippy
 15892  		}
 15893  	}
 15894  
 15895  	if iNdEx > l {
 15896  		return io.ErrUnexpectedEOF
 15897  	}
 15898  	return nil
 15899  }
 15900  func (m *ShutdownStore) Unmarshal(dAtA []byte) error {
 15901  	l := len(dAtA)
 15902  	iNdEx := 0
 15903  	for iNdEx < l {
 15904  		preIndex := iNdEx
 15905  		var wire uint64
 15906  		for shift := uint(0); ; shift += 7 {
 15907  			if shift >= 64 {
 15908  				return ErrIntOverflowLogservice
 15909  			}
 15910  			if iNdEx >= l {
 15911  				return io.ErrUnexpectedEOF
 15912  			}
 15913  			b := dAtA[iNdEx]
 15914  			iNdEx++
 15915  			wire |= uint64(b&0x7F) << shift
 15916  			if b < 0x80 {
 15917  				break
 15918  			}
 15919  		}
 15920  		fieldNum := int32(wire >> 3)
 15921  		wireType := int(wire & 0x7)
 15922  		if wireType == 4 {
 15923  			return fmt.Errorf("proto: ShutdownStore: wiretype end group for non-group")
 15924  		}
 15925  		if fieldNum <= 0 {
 15926  			return fmt.Errorf("proto: ShutdownStore: illegal tag %d (wire type %d)", fieldNum, wire)
 15927  		}
 15928  		switch fieldNum {
 15929  		case 1:
 15930  			if wireType != 2 {
 15931  				return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
 15932  			}
 15933  			var stringLen uint64
 15934  			for shift := uint(0); ; shift += 7 {
 15935  				if shift >= 64 {
 15936  					return ErrIntOverflowLogservice
 15937  				}
 15938  				if iNdEx >= l {
 15939  					return io.ErrUnexpectedEOF
 15940  				}
 15941  				b := dAtA[iNdEx]
 15942  				iNdEx++
 15943  				stringLen |= uint64(b&0x7F) << shift
 15944  				if b < 0x80 {
 15945  					break
 15946  				}
 15947  			}
 15948  			intStringLen := int(stringLen)
 15949  			if intStringLen < 0 {
 15950  				return ErrInvalidLengthLogservice
 15951  			}
 15952  			postIndex := iNdEx + intStringLen
 15953  			if postIndex < 0 {
 15954  				return ErrInvalidLengthLogservice
 15955  			}
 15956  			if postIndex > l {
 15957  				return io.ErrUnexpectedEOF
 15958  			}
 15959  			m.StoreID = string(dAtA[iNdEx:postIndex])
 15960  			iNdEx = postIndex
 15961  		default:
 15962  			iNdEx = preIndex
 15963  			skippy, err := skipLogservice(dAtA[iNdEx:])
 15964  			if err != nil {
 15965  				return err
 15966  			}
 15967  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 15968  				return ErrInvalidLengthLogservice
 15969  			}
 15970  			if (iNdEx + skippy) > l {
 15971  				return io.ErrUnexpectedEOF
 15972  			}
 15973  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15974  			iNdEx += skippy
 15975  		}
 15976  	}
 15977  
 15978  	if iNdEx > l {
 15979  		return io.ErrUnexpectedEOF
 15980  	}
 15981  	return nil
 15982  }
 15983  func (m *ScheduleCommand) Unmarshal(dAtA []byte) error {
 15984  	l := len(dAtA)
 15985  	iNdEx := 0
 15986  	for iNdEx < l {
 15987  		preIndex := iNdEx
 15988  		var wire uint64
 15989  		for shift := uint(0); ; shift += 7 {
 15990  			if shift >= 64 {
 15991  				return ErrIntOverflowLogservice
 15992  			}
 15993  			if iNdEx >= l {
 15994  				return io.ErrUnexpectedEOF
 15995  			}
 15996  			b := dAtA[iNdEx]
 15997  			iNdEx++
 15998  			wire |= uint64(b&0x7F) << shift
 15999  			if b < 0x80 {
 16000  				break
 16001  			}
 16002  		}
 16003  		fieldNum := int32(wire >> 3)
 16004  		wireType := int(wire & 0x7)
 16005  		if wireType == 4 {
 16006  			return fmt.Errorf("proto: ScheduleCommand: wiretype end group for non-group")
 16007  		}
 16008  		if fieldNum <= 0 {
 16009  			return fmt.Errorf("proto: ScheduleCommand: illegal tag %d (wire type %d)", fieldNum, wire)
 16010  		}
 16011  		switch fieldNum {
 16012  		case 1:
 16013  			if wireType != 2 {
 16014  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 16015  			}
 16016  			var stringLen uint64
 16017  			for shift := uint(0); ; shift += 7 {
 16018  				if shift >= 64 {
 16019  					return ErrIntOverflowLogservice
 16020  				}
 16021  				if iNdEx >= l {
 16022  					return io.ErrUnexpectedEOF
 16023  				}
 16024  				b := dAtA[iNdEx]
 16025  				iNdEx++
 16026  				stringLen |= uint64(b&0x7F) << shift
 16027  				if b < 0x80 {
 16028  					break
 16029  				}
 16030  			}
 16031  			intStringLen := int(stringLen)
 16032  			if intStringLen < 0 {
 16033  				return ErrInvalidLengthLogservice
 16034  			}
 16035  			postIndex := iNdEx + intStringLen
 16036  			if postIndex < 0 {
 16037  				return ErrInvalidLengthLogservice
 16038  			}
 16039  			if postIndex > l {
 16040  				return io.ErrUnexpectedEOF
 16041  			}
 16042  			m.UUID = string(dAtA[iNdEx:postIndex])
 16043  			iNdEx = postIndex
 16044  		case 2:
 16045  			if wireType != 0 {
 16046  				return fmt.Errorf("proto: wrong wireType = %d for field Bootstrapping", wireType)
 16047  			}
 16048  			var v int
 16049  			for shift := uint(0); ; shift += 7 {
 16050  				if shift >= 64 {
 16051  					return ErrIntOverflowLogservice
 16052  				}
 16053  				if iNdEx >= l {
 16054  					return io.ErrUnexpectedEOF
 16055  				}
 16056  				b := dAtA[iNdEx]
 16057  				iNdEx++
 16058  				v |= int(b&0x7F) << shift
 16059  				if b < 0x80 {
 16060  					break
 16061  				}
 16062  			}
 16063  			m.Bootstrapping = bool(v != 0)
 16064  		case 3:
 16065  			if wireType != 0 {
 16066  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceType", wireType)
 16067  			}
 16068  			m.ServiceType = 0
 16069  			for shift := uint(0); ; shift += 7 {
 16070  				if shift >= 64 {
 16071  					return ErrIntOverflowLogservice
 16072  				}
 16073  				if iNdEx >= l {
 16074  					return io.ErrUnexpectedEOF
 16075  				}
 16076  				b := dAtA[iNdEx]
 16077  				iNdEx++
 16078  				m.ServiceType |= ServiceType(b&0x7F) << shift
 16079  				if b < 0x80 {
 16080  					break
 16081  				}
 16082  			}
 16083  		case 4:
 16084  			if wireType != 2 {
 16085  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigChange", wireType)
 16086  			}
 16087  			var msglen int
 16088  			for shift := uint(0); ; shift += 7 {
 16089  				if shift >= 64 {
 16090  					return ErrIntOverflowLogservice
 16091  				}
 16092  				if iNdEx >= l {
 16093  					return io.ErrUnexpectedEOF
 16094  				}
 16095  				b := dAtA[iNdEx]
 16096  				iNdEx++
 16097  				msglen |= int(b&0x7F) << shift
 16098  				if b < 0x80 {
 16099  					break
 16100  				}
 16101  			}
 16102  			if msglen < 0 {
 16103  				return ErrInvalidLengthLogservice
 16104  			}
 16105  			postIndex := iNdEx + msglen
 16106  			if postIndex < 0 {
 16107  				return ErrInvalidLengthLogservice
 16108  			}
 16109  			if postIndex > l {
 16110  				return io.ErrUnexpectedEOF
 16111  			}
 16112  			if m.ConfigChange == nil {
 16113  				m.ConfigChange = &ConfigChange{}
 16114  			}
 16115  			if err := m.ConfigChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16116  				return err
 16117  			}
 16118  			iNdEx = postIndex
 16119  		case 5:
 16120  			if wireType != 2 {
 16121  				return fmt.Errorf("proto: wrong wireType = %d for field ShutdownStore", wireType)
 16122  			}
 16123  			var msglen int
 16124  			for shift := uint(0); ; shift += 7 {
 16125  				if shift >= 64 {
 16126  					return ErrIntOverflowLogservice
 16127  				}
 16128  				if iNdEx >= l {
 16129  					return io.ErrUnexpectedEOF
 16130  				}
 16131  				b := dAtA[iNdEx]
 16132  				iNdEx++
 16133  				msglen |= int(b&0x7F) << shift
 16134  				if b < 0x80 {
 16135  					break
 16136  				}
 16137  			}
 16138  			if msglen < 0 {
 16139  				return ErrInvalidLengthLogservice
 16140  			}
 16141  			postIndex := iNdEx + msglen
 16142  			if postIndex < 0 {
 16143  				return ErrInvalidLengthLogservice
 16144  			}
 16145  			if postIndex > l {
 16146  				return io.ErrUnexpectedEOF
 16147  			}
 16148  			if m.ShutdownStore == nil {
 16149  				m.ShutdownStore = &ShutdownStore{}
 16150  			}
 16151  			if err := m.ShutdownStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16152  				return err
 16153  			}
 16154  			iNdEx = postIndex
 16155  		case 6:
 16156  			if wireType != 2 {
 16157  				return fmt.Errorf("proto: wrong wireType = %d for field CreateTaskService", wireType)
 16158  			}
 16159  			var msglen int
 16160  			for shift := uint(0); ; shift += 7 {
 16161  				if shift >= 64 {
 16162  					return ErrIntOverflowLogservice
 16163  				}
 16164  				if iNdEx >= l {
 16165  					return io.ErrUnexpectedEOF
 16166  				}
 16167  				b := dAtA[iNdEx]
 16168  				iNdEx++
 16169  				msglen |= int(b&0x7F) << shift
 16170  				if b < 0x80 {
 16171  					break
 16172  				}
 16173  			}
 16174  			if msglen < 0 {
 16175  				return ErrInvalidLengthLogservice
 16176  			}
 16177  			postIndex := iNdEx + msglen
 16178  			if postIndex < 0 {
 16179  				return ErrInvalidLengthLogservice
 16180  			}
 16181  			if postIndex > l {
 16182  				return io.ErrUnexpectedEOF
 16183  			}
 16184  			if m.CreateTaskService == nil {
 16185  				m.CreateTaskService = &CreateTaskService{}
 16186  			}
 16187  			if err := m.CreateTaskService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16188  				return err
 16189  			}
 16190  			iNdEx = postIndex
 16191  		case 7:
 16192  			if wireType != 2 {
 16193  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteCNStore", wireType)
 16194  			}
 16195  			var msglen int
 16196  			for shift := uint(0); ; shift += 7 {
 16197  				if shift >= 64 {
 16198  					return ErrIntOverflowLogservice
 16199  				}
 16200  				if iNdEx >= l {
 16201  					return io.ErrUnexpectedEOF
 16202  				}
 16203  				b := dAtA[iNdEx]
 16204  				iNdEx++
 16205  				msglen |= int(b&0x7F) << shift
 16206  				if b < 0x80 {
 16207  					break
 16208  				}
 16209  			}
 16210  			if msglen < 0 {
 16211  				return ErrInvalidLengthLogservice
 16212  			}
 16213  			postIndex := iNdEx + msglen
 16214  			if postIndex < 0 {
 16215  				return ErrInvalidLengthLogservice
 16216  			}
 16217  			if postIndex > l {
 16218  				return io.ErrUnexpectedEOF
 16219  			}
 16220  			if m.DeleteCNStore == nil {
 16221  				m.DeleteCNStore = &DeleteCNStore{}
 16222  			}
 16223  			if err := m.DeleteCNStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16224  				return err
 16225  			}
 16226  			iNdEx = postIndex
 16227  		case 8:
 16228  			if wireType != 2 {
 16229  				return fmt.Errorf("proto: wrong wireType = %d for field JoinGossipCluster", wireType)
 16230  			}
 16231  			var msglen int
 16232  			for shift := uint(0); ; shift += 7 {
 16233  				if shift >= 64 {
 16234  					return ErrIntOverflowLogservice
 16235  				}
 16236  				if iNdEx >= l {
 16237  					return io.ErrUnexpectedEOF
 16238  				}
 16239  				b := dAtA[iNdEx]
 16240  				iNdEx++
 16241  				msglen |= int(b&0x7F) << shift
 16242  				if b < 0x80 {
 16243  					break
 16244  				}
 16245  			}
 16246  			if msglen < 0 {
 16247  				return ErrInvalidLengthLogservice
 16248  			}
 16249  			postIndex := iNdEx + msglen
 16250  			if postIndex < 0 {
 16251  				return ErrInvalidLengthLogservice
 16252  			}
 16253  			if postIndex > l {
 16254  				return io.ErrUnexpectedEOF
 16255  			}
 16256  			if m.JoinGossipCluster == nil {
 16257  				m.JoinGossipCluster = &JoinGossipCluster{}
 16258  			}
 16259  			if err := m.JoinGossipCluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16260  				return err
 16261  			}
 16262  			iNdEx = postIndex
 16263  		case 9:
 16264  			if wireType != 2 {
 16265  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteProxyStore", wireType)
 16266  			}
 16267  			var msglen int
 16268  			for shift := uint(0); ; shift += 7 {
 16269  				if shift >= 64 {
 16270  					return ErrIntOverflowLogservice
 16271  				}
 16272  				if iNdEx >= l {
 16273  					return io.ErrUnexpectedEOF
 16274  				}
 16275  				b := dAtA[iNdEx]
 16276  				iNdEx++
 16277  				msglen |= int(b&0x7F) << shift
 16278  				if b < 0x80 {
 16279  					break
 16280  				}
 16281  			}
 16282  			if msglen < 0 {
 16283  				return ErrInvalidLengthLogservice
 16284  			}
 16285  			postIndex := iNdEx + msglen
 16286  			if postIndex < 0 {
 16287  				return ErrInvalidLengthLogservice
 16288  			}
 16289  			if postIndex > l {
 16290  				return io.ErrUnexpectedEOF
 16291  			}
 16292  			if m.DeleteProxyStore == nil {
 16293  				m.DeleteProxyStore = &DeleteProxyStore{}
 16294  			}
 16295  			if err := m.DeleteProxyStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16296  				return err
 16297  			}
 16298  			iNdEx = postIndex
 16299  		default:
 16300  			iNdEx = preIndex
 16301  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16302  			if err != nil {
 16303  				return err
 16304  			}
 16305  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16306  				return ErrInvalidLengthLogservice
 16307  			}
 16308  			if (iNdEx + skippy) > l {
 16309  				return io.ErrUnexpectedEOF
 16310  			}
 16311  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16312  			iNdEx += skippy
 16313  		}
 16314  	}
 16315  
 16316  	if iNdEx > l {
 16317  		return io.ErrUnexpectedEOF
 16318  	}
 16319  	return nil
 16320  }
 16321  func (m *JoinGossipCluster) Unmarshal(dAtA []byte) error {
 16322  	l := len(dAtA)
 16323  	iNdEx := 0
 16324  	for iNdEx < l {
 16325  		preIndex := iNdEx
 16326  		var wire uint64
 16327  		for shift := uint(0); ; shift += 7 {
 16328  			if shift >= 64 {
 16329  				return ErrIntOverflowLogservice
 16330  			}
 16331  			if iNdEx >= l {
 16332  				return io.ErrUnexpectedEOF
 16333  			}
 16334  			b := dAtA[iNdEx]
 16335  			iNdEx++
 16336  			wire |= uint64(b&0x7F) << shift
 16337  			if b < 0x80 {
 16338  				break
 16339  			}
 16340  		}
 16341  		fieldNum := int32(wire >> 3)
 16342  		wireType := int(wire & 0x7)
 16343  		if wireType == 4 {
 16344  			return fmt.Errorf("proto: JoinGossipCluster: wiretype end group for non-group")
 16345  		}
 16346  		if fieldNum <= 0 {
 16347  			return fmt.Errorf("proto: JoinGossipCluster: illegal tag %d (wire type %d)", fieldNum, wire)
 16348  		}
 16349  		switch fieldNum {
 16350  		case 1:
 16351  			if wireType != 2 {
 16352  				return fmt.Errorf("proto: wrong wireType = %d for field Existing", wireType)
 16353  			}
 16354  			var stringLen uint64
 16355  			for shift := uint(0); ; shift += 7 {
 16356  				if shift >= 64 {
 16357  					return ErrIntOverflowLogservice
 16358  				}
 16359  				if iNdEx >= l {
 16360  					return io.ErrUnexpectedEOF
 16361  				}
 16362  				b := dAtA[iNdEx]
 16363  				iNdEx++
 16364  				stringLen |= uint64(b&0x7F) << shift
 16365  				if b < 0x80 {
 16366  					break
 16367  				}
 16368  			}
 16369  			intStringLen := int(stringLen)
 16370  			if intStringLen < 0 {
 16371  				return ErrInvalidLengthLogservice
 16372  			}
 16373  			postIndex := iNdEx + intStringLen
 16374  			if postIndex < 0 {
 16375  				return ErrInvalidLengthLogservice
 16376  			}
 16377  			if postIndex > l {
 16378  				return io.ErrUnexpectedEOF
 16379  			}
 16380  			m.Existing = append(m.Existing, string(dAtA[iNdEx:postIndex]))
 16381  			iNdEx = postIndex
 16382  		default:
 16383  			iNdEx = preIndex
 16384  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16385  			if err != nil {
 16386  				return err
 16387  			}
 16388  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16389  				return ErrInvalidLengthLogservice
 16390  			}
 16391  			if (iNdEx + skippy) > l {
 16392  				return io.ErrUnexpectedEOF
 16393  			}
 16394  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16395  			iNdEx += skippy
 16396  		}
 16397  	}
 16398  
 16399  	if iNdEx > l {
 16400  		return io.ErrUnexpectedEOF
 16401  	}
 16402  	return nil
 16403  }
 16404  func (m *CreateTaskService) Unmarshal(dAtA []byte) error {
 16405  	l := len(dAtA)
 16406  	iNdEx := 0
 16407  	for iNdEx < l {
 16408  		preIndex := iNdEx
 16409  		var wire uint64
 16410  		for shift := uint(0); ; shift += 7 {
 16411  			if shift >= 64 {
 16412  				return ErrIntOverflowLogservice
 16413  			}
 16414  			if iNdEx >= l {
 16415  				return io.ErrUnexpectedEOF
 16416  			}
 16417  			b := dAtA[iNdEx]
 16418  			iNdEx++
 16419  			wire |= uint64(b&0x7F) << shift
 16420  			if b < 0x80 {
 16421  				break
 16422  			}
 16423  		}
 16424  		fieldNum := int32(wire >> 3)
 16425  		wireType := int(wire & 0x7)
 16426  		if wireType == 4 {
 16427  			return fmt.Errorf("proto: CreateTaskService: wiretype end group for non-group")
 16428  		}
 16429  		if fieldNum <= 0 {
 16430  			return fmt.Errorf("proto: CreateTaskService: illegal tag %d (wire type %d)", fieldNum, wire)
 16431  		}
 16432  		switch fieldNum {
 16433  		case 1:
 16434  			if wireType != 2 {
 16435  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
 16436  			}
 16437  			var msglen int
 16438  			for shift := uint(0); ; shift += 7 {
 16439  				if shift >= 64 {
 16440  					return ErrIntOverflowLogservice
 16441  				}
 16442  				if iNdEx >= l {
 16443  					return io.ErrUnexpectedEOF
 16444  				}
 16445  				b := dAtA[iNdEx]
 16446  				iNdEx++
 16447  				msglen |= int(b&0x7F) << shift
 16448  				if b < 0x80 {
 16449  					break
 16450  				}
 16451  			}
 16452  			if msglen < 0 {
 16453  				return ErrInvalidLengthLogservice
 16454  			}
 16455  			postIndex := iNdEx + msglen
 16456  			if postIndex < 0 {
 16457  				return ErrInvalidLengthLogservice
 16458  			}
 16459  			if postIndex > l {
 16460  				return io.ErrUnexpectedEOF
 16461  			}
 16462  			if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16463  				return err
 16464  			}
 16465  			iNdEx = postIndex
 16466  		case 2:
 16467  			if wireType != 2 {
 16468  				return fmt.Errorf("proto: wrong wireType = %d for field TaskDatabase", wireType)
 16469  			}
 16470  			var stringLen uint64
 16471  			for shift := uint(0); ; shift += 7 {
 16472  				if shift >= 64 {
 16473  					return ErrIntOverflowLogservice
 16474  				}
 16475  				if iNdEx >= l {
 16476  					return io.ErrUnexpectedEOF
 16477  				}
 16478  				b := dAtA[iNdEx]
 16479  				iNdEx++
 16480  				stringLen |= uint64(b&0x7F) << shift
 16481  				if b < 0x80 {
 16482  					break
 16483  				}
 16484  			}
 16485  			intStringLen := int(stringLen)
 16486  			if intStringLen < 0 {
 16487  				return ErrInvalidLengthLogservice
 16488  			}
 16489  			postIndex := iNdEx + intStringLen
 16490  			if postIndex < 0 {
 16491  				return ErrInvalidLengthLogservice
 16492  			}
 16493  			if postIndex > l {
 16494  				return io.ErrUnexpectedEOF
 16495  			}
 16496  			m.TaskDatabase = string(dAtA[iNdEx:postIndex])
 16497  			iNdEx = postIndex
 16498  		default:
 16499  			iNdEx = preIndex
 16500  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16501  			if err != nil {
 16502  				return err
 16503  			}
 16504  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16505  				return ErrInvalidLengthLogservice
 16506  			}
 16507  			if (iNdEx + skippy) > l {
 16508  				return io.ErrUnexpectedEOF
 16509  			}
 16510  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16511  			iNdEx += skippy
 16512  		}
 16513  	}
 16514  
 16515  	if iNdEx > l {
 16516  		return io.ErrUnexpectedEOF
 16517  	}
 16518  	return nil
 16519  }
 16520  func (m *DeleteCNStore) Unmarshal(dAtA []byte) error {
 16521  	l := len(dAtA)
 16522  	iNdEx := 0
 16523  	for iNdEx < l {
 16524  		preIndex := iNdEx
 16525  		var wire uint64
 16526  		for shift := uint(0); ; shift += 7 {
 16527  			if shift >= 64 {
 16528  				return ErrIntOverflowLogservice
 16529  			}
 16530  			if iNdEx >= l {
 16531  				return io.ErrUnexpectedEOF
 16532  			}
 16533  			b := dAtA[iNdEx]
 16534  			iNdEx++
 16535  			wire |= uint64(b&0x7F) << shift
 16536  			if b < 0x80 {
 16537  				break
 16538  			}
 16539  		}
 16540  		fieldNum := int32(wire >> 3)
 16541  		wireType := int(wire & 0x7)
 16542  		if wireType == 4 {
 16543  			return fmt.Errorf("proto: DeleteCNStore: wiretype end group for non-group")
 16544  		}
 16545  		if fieldNum <= 0 {
 16546  			return fmt.Errorf("proto: DeleteCNStore: illegal tag %d (wire type %d)", fieldNum, wire)
 16547  		}
 16548  		switch fieldNum {
 16549  		case 1:
 16550  			if wireType != 2 {
 16551  				return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
 16552  			}
 16553  			var stringLen uint64
 16554  			for shift := uint(0); ; shift += 7 {
 16555  				if shift >= 64 {
 16556  					return ErrIntOverflowLogservice
 16557  				}
 16558  				if iNdEx >= l {
 16559  					return io.ErrUnexpectedEOF
 16560  				}
 16561  				b := dAtA[iNdEx]
 16562  				iNdEx++
 16563  				stringLen |= uint64(b&0x7F) << shift
 16564  				if b < 0x80 {
 16565  					break
 16566  				}
 16567  			}
 16568  			intStringLen := int(stringLen)
 16569  			if intStringLen < 0 {
 16570  				return ErrInvalidLengthLogservice
 16571  			}
 16572  			postIndex := iNdEx + intStringLen
 16573  			if postIndex < 0 {
 16574  				return ErrInvalidLengthLogservice
 16575  			}
 16576  			if postIndex > l {
 16577  				return io.ErrUnexpectedEOF
 16578  			}
 16579  			m.StoreID = string(dAtA[iNdEx:postIndex])
 16580  			iNdEx = postIndex
 16581  		default:
 16582  			iNdEx = preIndex
 16583  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16584  			if err != nil {
 16585  				return err
 16586  			}
 16587  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16588  				return ErrInvalidLengthLogservice
 16589  			}
 16590  			if (iNdEx + skippy) > l {
 16591  				return io.ErrUnexpectedEOF
 16592  			}
 16593  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16594  			iNdEx += skippy
 16595  		}
 16596  	}
 16597  
 16598  	if iNdEx > l {
 16599  		return io.ErrUnexpectedEOF
 16600  	}
 16601  	return nil
 16602  }
 16603  func (m *DeleteProxyStore) Unmarshal(dAtA []byte) error {
 16604  	l := len(dAtA)
 16605  	iNdEx := 0
 16606  	for iNdEx < l {
 16607  		preIndex := iNdEx
 16608  		var wire uint64
 16609  		for shift := uint(0); ; shift += 7 {
 16610  			if shift >= 64 {
 16611  				return ErrIntOverflowLogservice
 16612  			}
 16613  			if iNdEx >= l {
 16614  				return io.ErrUnexpectedEOF
 16615  			}
 16616  			b := dAtA[iNdEx]
 16617  			iNdEx++
 16618  			wire |= uint64(b&0x7F) << shift
 16619  			if b < 0x80 {
 16620  				break
 16621  			}
 16622  		}
 16623  		fieldNum := int32(wire >> 3)
 16624  		wireType := int(wire & 0x7)
 16625  		if wireType == 4 {
 16626  			return fmt.Errorf("proto: DeleteProxyStore: wiretype end group for non-group")
 16627  		}
 16628  		if fieldNum <= 0 {
 16629  			return fmt.Errorf("proto: DeleteProxyStore: illegal tag %d (wire type %d)", fieldNum, wire)
 16630  		}
 16631  		switch fieldNum {
 16632  		case 1:
 16633  			if wireType != 2 {
 16634  				return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
 16635  			}
 16636  			var stringLen uint64
 16637  			for shift := uint(0); ; shift += 7 {
 16638  				if shift >= 64 {
 16639  					return ErrIntOverflowLogservice
 16640  				}
 16641  				if iNdEx >= l {
 16642  					return io.ErrUnexpectedEOF
 16643  				}
 16644  				b := dAtA[iNdEx]
 16645  				iNdEx++
 16646  				stringLen |= uint64(b&0x7F) << shift
 16647  				if b < 0x80 {
 16648  					break
 16649  				}
 16650  			}
 16651  			intStringLen := int(stringLen)
 16652  			if intStringLen < 0 {
 16653  				return ErrInvalidLengthLogservice
 16654  			}
 16655  			postIndex := iNdEx + intStringLen
 16656  			if postIndex < 0 {
 16657  				return ErrInvalidLengthLogservice
 16658  			}
 16659  			if postIndex > l {
 16660  				return io.ErrUnexpectedEOF
 16661  			}
 16662  			m.StoreID = string(dAtA[iNdEx:postIndex])
 16663  			iNdEx = postIndex
 16664  		default:
 16665  			iNdEx = preIndex
 16666  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16667  			if err != nil {
 16668  				return err
 16669  			}
 16670  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16671  				return ErrInvalidLengthLogservice
 16672  			}
 16673  			if (iNdEx + skippy) > l {
 16674  				return io.ErrUnexpectedEOF
 16675  			}
 16676  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16677  			iNdEx += skippy
 16678  		}
 16679  	}
 16680  
 16681  	if iNdEx > l {
 16682  		return io.ErrUnexpectedEOF
 16683  	}
 16684  	return nil
 16685  }
 16686  func (m *CommandBatch) Unmarshal(dAtA []byte) error {
 16687  	l := len(dAtA)
 16688  	iNdEx := 0
 16689  	for iNdEx < l {
 16690  		preIndex := iNdEx
 16691  		var wire uint64
 16692  		for shift := uint(0); ; shift += 7 {
 16693  			if shift >= 64 {
 16694  				return ErrIntOverflowLogservice
 16695  			}
 16696  			if iNdEx >= l {
 16697  				return io.ErrUnexpectedEOF
 16698  			}
 16699  			b := dAtA[iNdEx]
 16700  			iNdEx++
 16701  			wire |= uint64(b&0x7F) << shift
 16702  			if b < 0x80 {
 16703  				break
 16704  			}
 16705  		}
 16706  		fieldNum := int32(wire >> 3)
 16707  		wireType := int(wire & 0x7)
 16708  		if wireType == 4 {
 16709  			return fmt.Errorf("proto: CommandBatch: wiretype end group for non-group")
 16710  		}
 16711  		if fieldNum <= 0 {
 16712  			return fmt.Errorf("proto: CommandBatch: illegal tag %d (wire type %d)", fieldNum, wire)
 16713  		}
 16714  		switch fieldNum {
 16715  		case 1:
 16716  			if wireType != 0 {
 16717  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
 16718  			}
 16719  			m.Term = 0
 16720  			for shift := uint(0); ; shift += 7 {
 16721  				if shift >= 64 {
 16722  					return ErrIntOverflowLogservice
 16723  				}
 16724  				if iNdEx >= l {
 16725  					return io.ErrUnexpectedEOF
 16726  				}
 16727  				b := dAtA[iNdEx]
 16728  				iNdEx++
 16729  				m.Term |= uint64(b&0x7F) << shift
 16730  				if b < 0x80 {
 16731  					break
 16732  				}
 16733  			}
 16734  		case 2:
 16735  			if wireType != 2 {
 16736  				return fmt.Errorf("proto: wrong wireType = %d for field Commands", wireType)
 16737  			}
 16738  			var msglen int
 16739  			for shift := uint(0); ; shift += 7 {
 16740  				if shift >= 64 {
 16741  					return ErrIntOverflowLogservice
 16742  				}
 16743  				if iNdEx >= l {
 16744  					return io.ErrUnexpectedEOF
 16745  				}
 16746  				b := dAtA[iNdEx]
 16747  				iNdEx++
 16748  				msglen |= int(b&0x7F) << shift
 16749  				if b < 0x80 {
 16750  					break
 16751  				}
 16752  			}
 16753  			if msglen < 0 {
 16754  				return ErrInvalidLengthLogservice
 16755  			}
 16756  			postIndex := iNdEx + msglen
 16757  			if postIndex < 0 {
 16758  				return ErrInvalidLengthLogservice
 16759  			}
 16760  			if postIndex > l {
 16761  				return io.ErrUnexpectedEOF
 16762  			}
 16763  			m.Commands = append(m.Commands, ScheduleCommand{})
 16764  			if err := m.Commands[len(m.Commands)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16765  				return err
 16766  			}
 16767  			iNdEx = postIndex
 16768  		default:
 16769  			iNdEx = preIndex
 16770  			skippy, err := skipLogservice(dAtA[iNdEx:])
 16771  			if err != nil {
 16772  				return err
 16773  			}
 16774  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 16775  				return ErrInvalidLengthLogservice
 16776  			}
 16777  			if (iNdEx + skippy) > l {
 16778  				return io.ErrUnexpectedEOF
 16779  			}
 16780  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16781  			iNdEx += skippy
 16782  		}
 16783  	}
 16784  
 16785  	if iNdEx > l {
 16786  		return io.ErrUnexpectedEOF
 16787  	}
 16788  	return nil
 16789  }
 16790  func (m *CNStoreInfo) Unmarshal(dAtA []byte) error {
 16791  	l := len(dAtA)
 16792  	iNdEx := 0
 16793  	for iNdEx < l {
 16794  		preIndex := iNdEx
 16795  		var wire uint64
 16796  		for shift := uint(0); ; shift += 7 {
 16797  			if shift >= 64 {
 16798  				return ErrIntOverflowLogservice
 16799  			}
 16800  			if iNdEx >= l {
 16801  				return io.ErrUnexpectedEOF
 16802  			}
 16803  			b := dAtA[iNdEx]
 16804  			iNdEx++
 16805  			wire |= uint64(b&0x7F) << shift
 16806  			if b < 0x80 {
 16807  				break
 16808  			}
 16809  		}
 16810  		fieldNum := int32(wire >> 3)
 16811  		wireType := int(wire & 0x7)
 16812  		if wireType == 4 {
 16813  			return fmt.Errorf("proto: CNStoreInfo: wiretype end group for non-group")
 16814  		}
 16815  		if fieldNum <= 0 {
 16816  			return fmt.Errorf("proto: CNStoreInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 16817  		}
 16818  		switch fieldNum {
 16819  		case 1:
 16820  			if wireType != 0 {
 16821  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 16822  			}
 16823  			m.Tick = 0
 16824  			for shift := uint(0); ; shift += 7 {
 16825  				if shift >= 64 {
 16826  					return ErrIntOverflowLogservice
 16827  				}
 16828  				if iNdEx >= l {
 16829  					return io.ErrUnexpectedEOF
 16830  				}
 16831  				b := dAtA[iNdEx]
 16832  				iNdEx++
 16833  				m.Tick |= uint64(b&0x7F) << shift
 16834  				if b < 0x80 {
 16835  					break
 16836  				}
 16837  			}
 16838  		case 2:
 16839  			if wireType != 2 {
 16840  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 16841  			}
 16842  			var stringLen uint64
 16843  			for shift := uint(0); ; shift += 7 {
 16844  				if shift >= 64 {
 16845  					return ErrIntOverflowLogservice
 16846  				}
 16847  				if iNdEx >= l {
 16848  					return io.ErrUnexpectedEOF
 16849  				}
 16850  				b := dAtA[iNdEx]
 16851  				iNdEx++
 16852  				stringLen |= uint64(b&0x7F) << shift
 16853  				if b < 0x80 {
 16854  					break
 16855  				}
 16856  			}
 16857  			intStringLen := int(stringLen)
 16858  			if intStringLen < 0 {
 16859  				return ErrInvalidLengthLogservice
 16860  			}
 16861  			postIndex := iNdEx + intStringLen
 16862  			if postIndex < 0 {
 16863  				return ErrInvalidLengthLogservice
 16864  			}
 16865  			if postIndex > l {
 16866  				return io.ErrUnexpectedEOF
 16867  			}
 16868  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 16869  			iNdEx = postIndex
 16870  		case 3:
 16871  			if wireType != 2 {
 16872  				return fmt.Errorf("proto: wrong wireType = %d for field SQLAddress", wireType)
 16873  			}
 16874  			var stringLen uint64
 16875  			for shift := uint(0); ; shift += 7 {
 16876  				if shift >= 64 {
 16877  					return ErrIntOverflowLogservice
 16878  				}
 16879  				if iNdEx >= l {
 16880  					return io.ErrUnexpectedEOF
 16881  				}
 16882  				b := dAtA[iNdEx]
 16883  				iNdEx++
 16884  				stringLen |= uint64(b&0x7F) << shift
 16885  				if b < 0x80 {
 16886  					break
 16887  				}
 16888  			}
 16889  			intStringLen := int(stringLen)
 16890  			if intStringLen < 0 {
 16891  				return ErrInvalidLengthLogservice
 16892  			}
 16893  			postIndex := iNdEx + intStringLen
 16894  			if postIndex < 0 {
 16895  				return ErrInvalidLengthLogservice
 16896  			}
 16897  			if postIndex > l {
 16898  				return io.ErrUnexpectedEOF
 16899  			}
 16900  			m.SQLAddress = string(dAtA[iNdEx:postIndex])
 16901  			iNdEx = postIndex
 16902  		case 4:
 16903  			if wireType != 2 {
 16904  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 16905  			}
 16906  			var stringLen uint64
 16907  			for shift := uint(0); ; shift += 7 {
 16908  				if shift >= 64 {
 16909  					return ErrIntOverflowLogservice
 16910  				}
 16911  				if iNdEx >= l {
 16912  					return io.ErrUnexpectedEOF
 16913  				}
 16914  				b := dAtA[iNdEx]
 16915  				iNdEx++
 16916  				stringLen |= uint64(b&0x7F) << shift
 16917  				if b < 0x80 {
 16918  					break
 16919  				}
 16920  			}
 16921  			intStringLen := int(stringLen)
 16922  			if intStringLen < 0 {
 16923  				return ErrInvalidLengthLogservice
 16924  			}
 16925  			postIndex := iNdEx + intStringLen
 16926  			if postIndex < 0 {
 16927  				return ErrInvalidLengthLogservice
 16928  			}
 16929  			if postIndex > l {
 16930  				return io.ErrUnexpectedEOF
 16931  			}
 16932  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 16933  			iNdEx = postIndex
 16934  		case 6:
 16935  			if wireType != 0 {
 16936  				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
 16937  			}
 16938  			m.Role = 0
 16939  			for shift := uint(0); ; shift += 7 {
 16940  				if shift >= 64 {
 16941  					return ErrIntOverflowLogservice
 16942  				}
 16943  				if iNdEx >= l {
 16944  					return io.ErrUnexpectedEOF
 16945  				}
 16946  				b := dAtA[iNdEx]
 16947  				iNdEx++
 16948  				m.Role |= metadata.CNRole(b&0x7F) << shift
 16949  				if b < 0x80 {
 16950  					break
 16951  				}
 16952  			}
 16953  		case 7:
 16954  			if wireType != 0 {
 16955  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 16956  			}
 16957  			var v int
 16958  			for shift := uint(0); ; shift += 7 {
 16959  				if shift >= 64 {
 16960  					return ErrIntOverflowLogservice
 16961  				}
 16962  				if iNdEx >= l {
 16963  					return io.ErrUnexpectedEOF
 16964  				}
 16965  				b := dAtA[iNdEx]
 16966  				iNdEx++
 16967  				v |= int(b&0x7F) << shift
 16968  				if b < 0x80 {
 16969  					break
 16970  				}
 16971  			}
 16972  			m.TaskServiceCreated = bool(v != 0)
 16973  		case 8:
 16974  			if wireType != 2 {
 16975  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 16976  			}
 16977  			var msglen int
 16978  			for shift := uint(0); ; shift += 7 {
 16979  				if shift >= 64 {
 16980  					return ErrIntOverflowLogservice
 16981  				}
 16982  				if iNdEx >= l {
 16983  					return io.ErrUnexpectedEOF
 16984  				}
 16985  				b := dAtA[iNdEx]
 16986  				iNdEx++
 16987  				msglen |= int(b&0x7F) << shift
 16988  				if b < 0x80 {
 16989  					break
 16990  				}
 16991  			}
 16992  			if msglen < 0 {
 16993  				return ErrInvalidLengthLogservice
 16994  			}
 16995  			postIndex := iNdEx + msglen
 16996  			if postIndex < 0 {
 16997  				return ErrInvalidLengthLogservice
 16998  			}
 16999  			if postIndex > l {
 17000  				return io.ErrUnexpectedEOF
 17001  			}
 17002  			if m.Labels == nil {
 17003  				m.Labels = make(map[string]metadata.LabelList)
 17004  			}
 17005  			var mapkey string
 17006  			mapvalue := &metadata.LabelList{}
 17007  			for iNdEx < postIndex {
 17008  				entryPreIndex := iNdEx
 17009  				var wire uint64
 17010  				for shift := uint(0); ; shift += 7 {
 17011  					if shift >= 64 {
 17012  						return ErrIntOverflowLogservice
 17013  					}
 17014  					if iNdEx >= l {
 17015  						return io.ErrUnexpectedEOF
 17016  					}
 17017  					b := dAtA[iNdEx]
 17018  					iNdEx++
 17019  					wire |= uint64(b&0x7F) << shift
 17020  					if b < 0x80 {
 17021  						break
 17022  					}
 17023  				}
 17024  				fieldNum := int32(wire >> 3)
 17025  				if fieldNum == 1 {
 17026  					var stringLenmapkey uint64
 17027  					for shift := uint(0); ; shift += 7 {
 17028  						if shift >= 64 {
 17029  							return ErrIntOverflowLogservice
 17030  						}
 17031  						if iNdEx >= l {
 17032  							return io.ErrUnexpectedEOF
 17033  						}
 17034  						b := dAtA[iNdEx]
 17035  						iNdEx++
 17036  						stringLenmapkey |= uint64(b&0x7F) << shift
 17037  						if b < 0x80 {
 17038  							break
 17039  						}
 17040  					}
 17041  					intStringLenmapkey := int(stringLenmapkey)
 17042  					if intStringLenmapkey < 0 {
 17043  						return ErrInvalidLengthLogservice
 17044  					}
 17045  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 17046  					if postStringIndexmapkey < 0 {
 17047  						return ErrInvalidLengthLogservice
 17048  					}
 17049  					if postStringIndexmapkey > l {
 17050  						return io.ErrUnexpectedEOF
 17051  					}
 17052  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 17053  					iNdEx = postStringIndexmapkey
 17054  				} else if fieldNum == 2 {
 17055  					var mapmsglen int
 17056  					for shift := uint(0); ; shift += 7 {
 17057  						if shift >= 64 {
 17058  							return ErrIntOverflowLogservice
 17059  						}
 17060  						if iNdEx >= l {
 17061  							return io.ErrUnexpectedEOF
 17062  						}
 17063  						b := dAtA[iNdEx]
 17064  						iNdEx++
 17065  						mapmsglen |= int(b&0x7F) << shift
 17066  						if b < 0x80 {
 17067  							break
 17068  						}
 17069  					}
 17070  					if mapmsglen < 0 {
 17071  						return ErrInvalidLengthLogservice
 17072  					}
 17073  					postmsgIndex := iNdEx + mapmsglen
 17074  					if postmsgIndex < 0 {
 17075  						return ErrInvalidLengthLogservice
 17076  					}
 17077  					if postmsgIndex > l {
 17078  						return io.ErrUnexpectedEOF
 17079  					}
 17080  					mapvalue = &metadata.LabelList{}
 17081  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 17082  						return err
 17083  					}
 17084  					iNdEx = postmsgIndex
 17085  				} else {
 17086  					iNdEx = entryPreIndex
 17087  					skippy, err := skipLogservice(dAtA[iNdEx:])
 17088  					if err != nil {
 17089  						return err
 17090  					}
 17091  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 17092  						return ErrInvalidLengthLogservice
 17093  					}
 17094  					if (iNdEx + skippy) > postIndex {
 17095  						return io.ErrUnexpectedEOF
 17096  					}
 17097  					iNdEx += skippy
 17098  				}
 17099  			}
 17100  			m.Labels[mapkey] = *mapvalue
 17101  			iNdEx = postIndex
 17102  		case 9:
 17103  			if wireType != 0 {
 17104  				return fmt.Errorf("proto: wrong wireType = %d for field WorkState", wireType)
 17105  			}
 17106  			m.WorkState = 0
 17107  			for shift := uint(0); ; shift += 7 {
 17108  				if shift >= 64 {
 17109  					return ErrIntOverflowLogservice
 17110  				}
 17111  				if iNdEx >= l {
 17112  					return io.ErrUnexpectedEOF
 17113  				}
 17114  				b := dAtA[iNdEx]
 17115  				iNdEx++
 17116  				m.WorkState |= metadata.WorkState(b&0x7F) << shift
 17117  				if b < 0x80 {
 17118  					break
 17119  				}
 17120  			}
 17121  		case 10:
 17122  			if wireType != 2 {
 17123  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 17124  			}
 17125  			var stringLen uint64
 17126  			for shift := uint(0); ; shift += 7 {
 17127  				if shift >= 64 {
 17128  					return ErrIntOverflowLogservice
 17129  				}
 17130  				if iNdEx >= l {
 17131  					return io.ErrUnexpectedEOF
 17132  				}
 17133  				b := dAtA[iNdEx]
 17134  				iNdEx++
 17135  				stringLen |= uint64(b&0x7F) << shift
 17136  				if b < 0x80 {
 17137  					break
 17138  				}
 17139  			}
 17140  			intStringLen := int(stringLen)
 17141  			if intStringLen < 0 {
 17142  				return ErrInvalidLengthLogservice
 17143  			}
 17144  			postIndex := iNdEx + intStringLen
 17145  			if postIndex < 0 {
 17146  				return ErrInvalidLengthLogservice
 17147  			}
 17148  			if postIndex > l {
 17149  				return io.ErrUnexpectedEOF
 17150  			}
 17151  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 17152  			iNdEx = postIndex
 17153  		case 11:
 17154  			if wireType != 2 {
 17155  				return fmt.Errorf("proto: wrong wireType = %d for field GossipAddress", wireType)
 17156  			}
 17157  			var stringLen uint64
 17158  			for shift := uint(0); ; shift += 7 {
 17159  				if shift >= 64 {
 17160  					return ErrIntOverflowLogservice
 17161  				}
 17162  				if iNdEx >= l {
 17163  					return io.ErrUnexpectedEOF
 17164  				}
 17165  				b := dAtA[iNdEx]
 17166  				iNdEx++
 17167  				stringLen |= uint64(b&0x7F) << shift
 17168  				if b < 0x80 {
 17169  					break
 17170  				}
 17171  			}
 17172  			intStringLen := int(stringLen)
 17173  			if intStringLen < 0 {
 17174  				return ErrInvalidLengthLogservice
 17175  			}
 17176  			postIndex := iNdEx + intStringLen
 17177  			if postIndex < 0 {
 17178  				return ErrInvalidLengthLogservice
 17179  			}
 17180  			if postIndex > l {
 17181  				return io.ErrUnexpectedEOF
 17182  			}
 17183  			m.GossipAddress = string(dAtA[iNdEx:postIndex])
 17184  			iNdEx = postIndex
 17185  		case 12:
 17186  			if wireType != 0 {
 17187  				return fmt.Errorf("proto: wrong wireType = %d for field GossipJoined", wireType)
 17188  			}
 17189  			var v int
 17190  			for shift := uint(0); ; shift += 7 {
 17191  				if shift >= 64 {
 17192  					return ErrIntOverflowLogservice
 17193  				}
 17194  				if iNdEx >= l {
 17195  					return io.ErrUnexpectedEOF
 17196  				}
 17197  				b := dAtA[iNdEx]
 17198  				iNdEx++
 17199  				v |= int(b&0x7F) << shift
 17200  				if b < 0x80 {
 17201  					break
 17202  				}
 17203  			}
 17204  			m.GossipJoined = bool(v != 0)
 17205  		case 13:
 17206  			if wireType != 2 {
 17207  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 17208  			}
 17209  			var msglen int
 17210  			for shift := uint(0); ; shift += 7 {
 17211  				if shift >= 64 {
 17212  					return ErrIntOverflowLogservice
 17213  				}
 17214  				if iNdEx >= l {
 17215  					return io.ErrUnexpectedEOF
 17216  				}
 17217  				b := dAtA[iNdEx]
 17218  				iNdEx++
 17219  				msglen |= int(b&0x7F) << shift
 17220  				if b < 0x80 {
 17221  					break
 17222  				}
 17223  			}
 17224  			if msglen < 0 {
 17225  				return ErrInvalidLengthLogservice
 17226  			}
 17227  			postIndex := iNdEx + msglen
 17228  			if postIndex < 0 {
 17229  				return ErrInvalidLengthLogservice
 17230  			}
 17231  			if postIndex > l {
 17232  				return io.ErrUnexpectedEOF
 17233  			}
 17234  			if m.ConfigData == nil {
 17235  				m.ConfigData = &ConfigData{}
 17236  			}
 17237  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17238  				return err
 17239  			}
 17240  			iNdEx = postIndex
 17241  		case 14:
 17242  			if wireType != 2 {
 17243  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
 17244  			}
 17245  			var msglen int
 17246  			for shift := uint(0); ; shift += 7 {
 17247  				if shift >= 64 {
 17248  					return ErrIntOverflowLogservice
 17249  				}
 17250  				if iNdEx >= l {
 17251  					return io.ErrUnexpectedEOF
 17252  				}
 17253  				b := dAtA[iNdEx]
 17254  				iNdEx++
 17255  				msglen |= int(b&0x7F) << shift
 17256  				if b < 0x80 {
 17257  					break
 17258  				}
 17259  			}
 17260  			if msglen < 0 {
 17261  				return ErrInvalidLengthLogservice
 17262  			}
 17263  			postIndex := iNdEx + msglen
 17264  			if postIndex < 0 {
 17265  				return ErrInvalidLengthLogservice
 17266  			}
 17267  			if postIndex > l {
 17268  				return io.ErrUnexpectedEOF
 17269  			}
 17270  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17271  				return err
 17272  			}
 17273  			iNdEx = postIndex
 17274  		case 15:
 17275  			if wireType != 0 {
 17276  				return fmt.Errorf("proto: wrong wireType = %d for field UpTime", wireType)
 17277  			}
 17278  			m.UpTime = 0
 17279  			for shift := uint(0); ; shift += 7 {
 17280  				if shift >= 64 {
 17281  					return ErrIntOverflowLogservice
 17282  				}
 17283  				if iNdEx >= l {
 17284  					return io.ErrUnexpectedEOF
 17285  				}
 17286  				b := dAtA[iNdEx]
 17287  				iNdEx++
 17288  				m.UpTime |= int64(b&0x7F) << shift
 17289  				if b < 0x80 {
 17290  					break
 17291  				}
 17292  			}
 17293  		default:
 17294  			iNdEx = preIndex
 17295  			skippy, err := skipLogservice(dAtA[iNdEx:])
 17296  			if err != nil {
 17297  				return err
 17298  			}
 17299  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 17300  				return ErrInvalidLengthLogservice
 17301  			}
 17302  			if (iNdEx + skippy) > l {
 17303  				return io.ErrUnexpectedEOF
 17304  			}
 17305  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17306  			iNdEx += skippy
 17307  		}
 17308  	}
 17309  
 17310  	if iNdEx > l {
 17311  		return io.ErrUnexpectedEOF
 17312  	}
 17313  	return nil
 17314  }
 17315  func (m *CNState) Unmarshal(dAtA []byte) error {
 17316  	l := len(dAtA)
 17317  	iNdEx := 0
 17318  	for iNdEx < l {
 17319  		preIndex := iNdEx
 17320  		var wire uint64
 17321  		for shift := uint(0); ; shift += 7 {
 17322  			if shift >= 64 {
 17323  				return ErrIntOverflowLogservice
 17324  			}
 17325  			if iNdEx >= l {
 17326  				return io.ErrUnexpectedEOF
 17327  			}
 17328  			b := dAtA[iNdEx]
 17329  			iNdEx++
 17330  			wire |= uint64(b&0x7F) << shift
 17331  			if b < 0x80 {
 17332  				break
 17333  			}
 17334  		}
 17335  		fieldNum := int32(wire >> 3)
 17336  		wireType := int(wire & 0x7)
 17337  		if wireType == 4 {
 17338  			return fmt.Errorf("proto: CNState: wiretype end group for non-group")
 17339  		}
 17340  		if fieldNum <= 0 {
 17341  			return fmt.Errorf("proto: CNState: illegal tag %d (wire type %d)", fieldNum, wire)
 17342  		}
 17343  		switch fieldNum {
 17344  		case 1:
 17345  			if wireType != 2 {
 17346  				return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType)
 17347  			}
 17348  			var msglen int
 17349  			for shift := uint(0); ; shift += 7 {
 17350  				if shift >= 64 {
 17351  					return ErrIntOverflowLogservice
 17352  				}
 17353  				if iNdEx >= l {
 17354  					return io.ErrUnexpectedEOF
 17355  				}
 17356  				b := dAtA[iNdEx]
 17357  				iNdEx++
 17358  				msglen |= int(b&0x7F) << shift
 17359  				if b < 0x80 {
 17360  					break
 17361  				}
 17362  			}
 17363  			if msglen < 0 {
 17364  				return ErrInvalidLengthLogservice
 17365  			}
 17366  			postIndex := iNdEx + msglen
 17367  			if postIndex < 0 {
 17368  				return ErrInvalidLengthLogservice
 17369  			}
 17370  			if postIndex > l {
 17371  				return io.ErrUnexpectedEOF
 17372  			}
 17373  			if m.Stores == nil {
 17374  				m.Stores = make(map[string]CNStoreInfo)
 17375  			}
 17376  			var mapkey string
 17377  			mapvalue := &CNStoreInfo{}
 17378  			for iNdEx < postIndex {
 17379  				entryPreIndex := iNdEx
 17380  				var wire uint64
 17381  				for shift := uint(0); ; shift += 7 {
 17382  					if shift >= 64 {
 17383  						return ErrIntOverflowLogservice
 17384  					}
 17385  					if iNdEx >= l {
 17386  						return io.ErrUnexpectedEOF
 17387  					}
 17388  					b := dAtA[iNdEx]
 17389  					iNdEx++
 17390  					wire |= uint64(b&0x7F) << shift
 17391  					if b < 0x80 {
 17392  						break
 17393  					}
 17394  				}
 17395  				fieldNum := int32(wire >> 3)
 17396  				if fieldNum == 1 {
 17397  					var stringLenmapkey uint64
 17398  					for shift := uint(0); ; shift += 7 {
 17399  						if shift >= 64 {
 17400  							return ErrIntOverflowLogservice
 17401  						}
 17402  						if iNdEx >= l {
 17403  							return io.ErrUnexpectedEOF
 17404  						}
 17405  						b := dAtA[iNdEx]
 17406  						iNdEx++
 17407  						stringLenmapkey |= uint64(b&0x7F) << shift
 17408  						if b < 0x80 {
 17409  							break
 17410  						}
 17411  					}
 17412  					intStringLenmapkey := int(stringLenmapkey)
 17413  					if intStringLenmapkey < 0 {
 17414  						return ErrInvalidLengthLogservice
 17415  					}
 17416  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 17417  					if postStringIndexmapkey < 0 {
 17418  						return ErrInvalidLengthLogservice
 17419  					}
 17420  					if postStringIndexmapkey > l {
 17421  						return io.ErrUnexpectedEOF
 17422  					}
 17423  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 17424  					iNdEx = postStringIndexmapkey
 17425  				} else if fieldNum == 2 {
 17426  					var mapmsglen int
 17427  					for shift := uint(0); ; shift += 7 {
 17428  						if shift >= 64 {
 17429  							return ErrIntOverflowLogservice
 17430  						}
 17431  						if iNdEx >= l {
 17432  							return io.ErrUnexpectedEOF
 17433  						}
 17434  						b := dAtA[iNdEx]
 17435  						iNdEx++
 17436  						mapmsglen |= int(b&0x7F) << shift
 17437  						if b < 0x80 {
 17438  							break
 17439  						}
 17440  					}
 17441  					if mapmsglen < 0 {
 17442  						return ErrInvalidLengthLogservice
 17443  					}
 17444  					postmsgIndex := iNdEx + mapmsglen
 17445  					if postmsgIndex < 0 {
 17446  						return ErrInvalidLengthLogservice
 17447  					}
 17448  					if postmsgIndex > l {
 17449  						return io.ErrUnexpectedEOF
 17450  					}
 17451  					mapvalue = &CNStoreInfo{}
 17452  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 17453  						return err
 17454  					}
 17455  					iNdEx = postmsgIndex
 17456  				} else {
 17457  					iNdEx = entryPreIndex
 17458  					skippy, err := skipLogservice(dAtA[iNdEx:])
 17459  					if err != nil {
 17460  						return err
 17461  					}
 17462  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 17463  						return ErrInvalidLengthLogservice
 17464  					}
 17465  					if (iNdEx + skippy) > postIndex {
 17466  						return io.ErrUnexpectedEOF
 17467  					}
 17468  					iNdEx += skippy
 17469  				}
 17470  			}
 17471  			m.Stores[mapkey] = *mapvalue
 17472  			iNdEx = postIndex
 17473  		default:
 17474  			iNdEx = preIndex
 17475  			skippy, err := skipLogservice(dAtA[iNdEx:])
 17476  			if err != nil {
 17477  				return err
 17478  			}
 17479  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 17480  				return ErrInvalidLengthLogservice
 17481  			}
 17482  			if (iNdEx + skippy) > l {
 17483  				return io.ErrUnexpectedEOF
 17484  			}
 17485  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17486  			iNdEx += skippy
 17487  		}
 17488  	}
 17489  
 17490  	if iNdEx > l {
 17491  		return io.ErrUnexpectedEOF
 17492  	}
 17493  	return nil
 17494  }
 17495  func (m *TNStoreInfo) Unmarshal(dAtA []byte) error {
 17496  	l := len(dAtA)
 17497  	iNdEx := 0
 17498  	for iNdEx < l {
 17499  		preIndex := iNdEx
 17500  		var wire uint64
 17501  		for shift := uint(0); ; shift += 7 {
 17502  			if shift >= 64 {
 17503  				return ErrIntOverflowLogservice
 17504  			}
 17505  			if iNdEx >= l {
 17506  				return io.ErrUnexpectedEOF
 17507  			}
 17508  			b := dAtA[iNdEx]
 17509  			iNdEx++
 17510  			wire |= uint64(b&0x7F) << shift
 17511  			if b < 0x80 {
 17512  				break
 17513  			}
 17514  		}
 17515  		fieldNum := int32(wire >> 3)
 17516  		wireType := int(wire & 0x7)
 17517  		if wireType == 4 {
 17518  			return fmt.Errorf("proto: TNStoreInfo: wiretype end group for non-group")
 17519  		}
 17520  		if fieldNum <= 0 {
 17521  			return fmt.Errorf("proto: TNStoreInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 17522  		}
 17523  		switch fieldNum {
 17524  		case 1:
 17525  			if wireType != 0 {
 17526  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 17527  			}
 17528  			m.Tick = 0
 17529  			for shift := uint(0); ; shift += 7 {
 17530  				if shift >= 64 {
 17531  					return ErrIntOverflowLogservice
 17532  				}
 17533  				if iNdEx >= l {
 17534  					return io.ErrUnexpectedEOF
 17535  				}
 17536  				b := dAtA[iNdEx]
 17537  				iNdEx++
 17538  				m.Tick |= uint64(b&0x7F) << shift
 17539  				if b < 0x80 {
 17540  					break
 17541  				}
 17542  			}
 17543  		case 2:
 17544  			if wireType != 2 {
 17545  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 17546  			}
 17547  			var stringLen uint64
 17548  			for shift := uint(0); ; shift += 7 {
 17549  				if shift >= 64 {
 17550  					return ErrIntOverflowLogservice
 17551  				}
 17552  				if iNdEx >= l {
 17553  					return io.ErrUnexpectedEOF
 17554  				}
 17555  				b := dAtA[iNdEx]
 17556  				iNdEx++
 17557  				stringLen |= uint64(b&0x7F) << shift
 17558  				if b < 0x80 {
 17559  					break
 17560  				}
 17561  			}
 17562  			intStringLen := int(stringLen)
 17563  			if intStringLen < 0 {
 17564  				return ErrInvalidLengthLogservice
 17565  			}
 17566  			postIndex := iNdEx + intStringLen
 17567  			if postIndex < 0 {
 17568  				return ErrInvalidLengthLogservice
 17569  			}
 17570  			if postIndex > l {
 17571  				return io.ErrUnexpectedEOF
 17572  			}
 17573  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 17574  			iNdEx = postIndex
 17575  		case 3:
 17576  			if wireType != 2 {
 17577  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
 17578  			}
 17579  			var msglen int
 17580  			for shift := uint(0); ; shift += 7 {
 17581  				if shift >= 64 {
 17582  					return ErrIntOverflowLogservice
 17583  				}
 17584  				if iNdEx >= l {
 17585  					return io.ErrUnexpectedEOF
 17586  				}
 17587  				b := dAtA[iNdEx]
 17588  				iNdEx++
 17589  				msglen |= int(b&0x7F) << shift
 17590  				if b < 0x80 {
 17591  					break
 17592  				}
 17593  			}
 17594  			if msglen < 0 {
 17595  				return ErrInvalidLengthLogservice
 17596  			}
 17597  			postIndex := iNdEx + msglen
 17598  			if postIndex < 0 {
 17599  				return ErrInvalidLengthLogservice
 17600  			}
 17601  			if postIndex > l {
 17602  				return io.ErrUnexpectedEOF
 17603  			}
 17604  			m.Shards = append(m.Shards, TNShardInfo{})
 17605  			if err := m.Shards[len(m.Shards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17606  				return err
 17607  			}
 17608  			iNdEx = postIndex
 17609  		case 4:
 17610  			if wireType != 0 {
 17611  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 17612  			}
 17613  			var v int
 17614  			for shift := uint(0); ; shift += 7 {
 17615  				if shift >= 64 {
 17616  					return ErrIntOverflowLogservice
 17617  				}
 17618  				if iNdEx >= l {
 17619  					return io.ErrUnexpectedEOF
 17620  				}
 17621  				b := dAtA[iNdEx]
 17622  				iNdEx++
 17623  				v |= int(b&0x7F) << shift
 17624  				if b < 0x80 {
 17625  					break
 17626  				}
 17627  			}
 17628  			m.TaskServiceCreated = bool(v != 0)
 17629  		case 5:
 17630  			if wireType != 2 {
 17631  				return fmt.Errorf("proto: wrong wireType = %d for field LogtailServerAddress", wireType)
 17632  			}
 17633  			var stringLen uint64
 17634  			for shift := uint(0); ; shift += 7 {
 17635  				if shift >= 64 {
 17636  					return ErrIntOverflowLogservice
 17637  				}
 17638  				if iNdEx >= l {
 17639  					return io.ErrUnexpectedEOF
 17640  				}
 17641  				b := dAtA[iNdEx]
 17642  				iNdEx++
 17643  				stringLen |= uint64(b&0x7F) << shift
 17644  				if b < 0x80 {
 17645  					break
 17646  				}
 17647  			}
 17648  			intStringLen := int(stringLen)
 17649  			if intStringLen < 0 {
 17650  				return ErrInvalidLengthLogservice
 17651  			}
 17652  			postIndex := iNdEx + intStringLen
 17653  			if postIndex < 0 {
 17654  				return ErrInvalidLengthLogservice
 17655  			}
 17656  			if postIndex > l {
 17657  				return io.ErrUnexpectedEOF
 17658  			}
 17659  			m.LogtailServerAddress = string(dAtA[iNdEx:postIndex])
 17660  			iNdEx = postIndex
 17661  		case 6:
 17662  			if wireType != 2 {
 17663  				return fmt.Errorf("proto: wrong wireType = %d for field LockServiceAddress", wireType)
 17664  			}
 17665  			var stringLen uint64
 17666  			for shift := uint(0); ; shift += 7 {
 17667  				if shift >= 64 {
 17668  					return ErrIntOverflowLogservice
 17669  				}
 17670  				if iNdEx >= l {
 17671  					return io.ErrUnexpectedEOF
 17672  				}
 17673  				b := dAtA[iNdEx]
 17674  				iNdEx++
 17675  				stringLen |= uint64(b&0x7F) << shift
 17676  				if b < 0x80 {
 17677  					break
 17678  				}
 17679  			}
 17680  			intStringLen := int(stringLen)
 17681  			if intStringLen < 0 {
 17682  				return ErrInvalidLengthLogservice
 17683  			}
 17684  			postIndex := iNdEx + intStringLen
 17685  			if postIndex < 0 {
 17686  				return ErrInvalidLengthLogservice
 17687  			}
 17688  			if postIndex > l {
 17689  				return io.ErrUnexpectedEOF
 17690  			}
 17691  			m.LockServiceAddress = string(dAtA[iNdEx:postIndex])
 17692  			iNdEx = postIndex
 17693  		case 8:
 17694  			if wireType != 2 {
 17695  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 17696  			}
 17697  			var msglen int
 17698  			for shift := uint(0); ; shift += 7 {
 17699  				if shift >= 64 {
 17700  					return ErrIntOverflowLogservice
 17701  				}
 17702  				if iNdEx >= l {
 17703  					return io.ErrUnexpectedEOF
 17704  				}
 17705  				b := dAtA[iNdEx]
 17706  				iNdEx++
 17707  				msglen |= int(b&0x7F) << shift
 17708  				if b < 0x80 {
 17709  					break
 17710  				}
 17711  			}
 17712  			if msglen < 0 {
 17713  				return ErrInvalidLengthLogservice
 17714  			}
 17715  			postIndex := iNdEx + msglen
 17716  			if postIndex < 0 {
 17717  				return ErrInvalidLengthLogservice
 17718  			}
 17719  			if postIndex > l {
 17720  				return io.ErrUnexpectedEOF
 17721  			}
 17722  			if m.ConfigData == nil {
 17723  				m.ConfigData = &ConfigData{}
 17724  			}
 17725  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17726  				return err
 17727  			}
 17728  			iNdEx = postIndex
 17729  		case 9:
 17730  			if wireType != 2 {
 17731  				return fmt.Errorf("proto: wrong wireType = %d for field QueryAddress", wireType)
 17732  			}
 17733  			var stringLen uint64
 17734  			for shift := uint(0); ; shift += 7 {
 17735  				if shift >= 64 {
 17736  					return ErrIntOverflowLogservice
 17737  				}
 17738  				if iNdEx >= l {
 17739  					return io.ErrUnexpectedEOF
 17740  				}
 17741  				b := dAtA[iNdEx]
 17742  				iNdEx++
 17743  				stringLen |= uint64(b&0x7F) << shift
 17744  				if b < 0x80 {
 17745  					break
 17746  				}
 17747  			}
 17748  			intStringLen := int(stringLen)
 17749  			if intStringLen < 0 {
 17750  				return ErrInvalidLengthLogservice
 17751  			}
 17752  			postIndex := iNdEx + intStringLen
 17753  			if postIndex < 0 {
 17754  				return ErrInvalidLengthLogservice
 17755  			}
 17756  			if postIndex > l {
 17757  				return io.ErrUnexpectedEOF
 17758  			}
 17759  			m.QueryAddress = string(dAtA[iNdEx:postIndex])
 17760  			iNdEx = postIndex
 17761  		default:
 17762  			iNdEx = preIndex
 17763  			skippy, err := skipLogservice(dAtA[iNdEx:])
 17764  			if err != nil {
 17765  				return err
 17766  			}
 17767  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 17768  				return ErrInvalidLengthLogservice
 17769  			}
 17770  			if (iNdEx + skippy) > l {
 17771  				return io.ErrUnexpectedEOF
 17772  			}
 17773  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17774  			iNdEx += skippy
 17775  		}
 17776  	}
 17777  
 17778  	if iNdEx > l {
 17779  		return io.ErrUnexpectedEOF
 17780  	}
 17781  	return nil
 17782  }
 17783  func (m *TNState) Unmarshal(dAtA []byte) error {
 17784  	l := len(dAtA)
 17785  	iNdEx := 0
 17786  	for iNdEx < l {
 17787  		preIndex := iNdEx
 17788  		var wire uint64
 17789  		for shift := uint(0); ; shift += 7 {
 17790  			if shift >= 64 {
 17791  				return ErrIntOverflowLogservice
 17792  			}
 17793  			if iNdEx >= l {
 17794  				return io.ErrUnexpectedEOF
 17795  			}
 17796  			b := dAtA[iNdEx]
 17797  			iNdEx++
 17798  			wire |= uint64(b&0x7F) << shift
 17799  			if b < 0x80 {
 17800  				break
 17801  			}
 17802  		}
 17803  		fieldNum := int32(wire >> 3)
 17804  		wireType := int(wire & 0x7)
 17805  		if wireType == 4 {
 17806  			return fmt.Errorf("proto: TNState: wiretype end group for non-group")
 17807  		}
 17808  		if fieldNum <= 0 {
 17809  			return fmt.Errorf("proto: TNState: illegal tag %d (wire type %d)", fieldNum, wire)
 17810  		}
 17811  		switch fieldNum {
 17812  		case 1:
 17813  			if wireType != 2 {
 17814  				return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType)
 17815  			}
 17816  			var msglen int
 17817  			for shift := uint(0); ; shift += 7 {
 17818  				if shift >= 64 {
 17819  					return ErrIntOverflowLogservice
 17820  				}
 17821  				if iNdEx >= l {
 17822  					return io.ErrUnexpectedEOF
 17823  				}
 17824  				b := dAtA[iNdEx]
 17825  				iNdEx++
 17826  				msglen |= int(b&0x7F) << shift
 17827  				if b < 0x80 {
 17828  					break
 17829  				}
 17830  			}
 17831  			if msglen < 0 {
 17832  				return ErrInvalidLengthLogservice
 17833  			}
 17834  			postIndex := iNdEx + msglen
 17835  			if postIndex < 0 {
 17836  				return ErrInvalidLengthLogservice
 17837  			}
 17838  			if postIndex > l {
 17839  				return io.ErrUnexpectedEOF
 17840  			}
 17841  			if m.Stores == nil {
 17842  				m.Stores = make(map[string]TNStoreInfo)
 17843  			}
 17844  			var mapkey string
 17845  			mapvalue := &TNStoreInfo{}
 17846  			for iNdEx < postIndex {
 17847  				entryPreIndex := iNdEx
 17848  				var wire uint64
 17849  				for shift := uint(0); ; shift += 7 {
 17850  					if shift >= 64 {
 17851  						return ErrIntOverflowLogservice
 17852  					}
 17853  					if iNdEx >= l {
 17854  						return io.ErrUnexpectedEOF
 17855  					}
 17856  					b := dAtA[iNdEx]
 17857  					iNdEx++
 17858  					wire |= uint64(b&0x7F) << shift
 17859  					if b < 0x80 {
 17860  						break
 17861  					}
 17862  				}
 17863  				fieldNum := int32(wire >> 3)
 17864  				if fieldNum == 1 {
 17865  					var stringLenmapkey uint64
 17866  					for shift := uint(0); ; shift += 7 {
 17867  						if shift >= 64 {
 17868  							return ErrIntOverflowLogservice
 17869  						}
 17870  						if iNdEx >= l {
 17871  							return io.ErrUnexpectedEOF
 17872  						}
 17873  						b := dAtA[iNdEx]
 17874  						iNdEx++
 17875  						stringLenmapkey |= uint64(b&0x7F) << shift
 17876  						if b < 0x80 {
 17877  							break
 17878  						}
 17879  					}
 17880  					intStringLenmapkey := int(stringLenmapkey)
 17881  					if intStringLenmapkey < 0 {
 17882  						return ErrInvalidLengthLogservice
 17883  					}
 17884  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 17885  					if postStringIndexmapkey < 0 {
 17886  						return ErrInvalidLengthLogservice
 17887  					}
 17888  					if postStringIndexmapkey > l {
 17889  						return io.ErrUnexpectedEOF
 17890  					}
 17891  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 17892  					iNdEx = postStringIndexmapkey
 17893  				} else if fieldNum == 2 {
 17894  					var mapmsglen int
 17895  					for shift := uint(0); ; shift += 7 {
 17896  						if shift >= 64 {
 17897  							return ErrIntOverflowLogservice
 17898  						}
 17899  						if iNdEx >= l {
 17900  							return io.ErrUnexpectedEOF
 17901  						}
 17902  						b := dAtA[iNdEx]
 17903  						iNdEx++
 17904  						mapmsglen |= int(b&0x7F) << shift
 17905  						if b < 0x80 {
 17906  							break
 17907  						}
 17908  					}
 17909  					if mapmsglen < 0 {
 17910  						return ErrInvalidLengthLogservice
 17911  					}
 17912  					postmsgIndex := iNdEx + mapmsglen
 17913  					if postmsgIndex < 0 {
 17914  						return ErrInvalidLengthLogservice
 17915  					}
 17916  					if postmsgIndex > l {
 17917  						return io.ErrUnexpectedEOF
 17918  					}
 17919  					mapvalue = &TNStoreInfo{}
 17920  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 17921  						return err
 17922  					}
 17923  					iNdEx = postmsgIndex
 17924  				} else {
 17925  					iNdEx = entryPreIndex
 17926  					skippy, err := skipLogservice(dAtA[iNdEx:])
 17927  					if err != nil {
 17928  						return err
 17929  					}
 17930  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 17931  						return ErrInvalidLengthLogservice
 17932  					}
 17933  					if (iNdEx + skippy) > postIndex {
 17934  						return io.ErrUnexpectedEOF
 17935  					}
 17936  					iNdEx += skippy
 17937  				}
 17938  			}
 17939  			m.Stores[mapkey] = *mapvalue
 17940  			iNdEx = postIndex
 17941  		default:
 17942  			iNdEx = preIndex
 17943  			skippy, err := skipLogservice(dAtA[iNdEx:])
 17944  			if err != nil {
 17945  				return err
 17946  			}
 17947  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 17948  				return ErrInvalidLengthLogservice
 17949  			}
 17950  			if (iNdEx + skippy) > l {
 17951  				return io.ErrUnexpectedEOF
 17952  			}
 17953  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17954  			iNdEx += skippy
 17955  		}
 17956  	}
 17957  
 17958  	if iNdEx > l {
 17959  		return io.ErrUnexpectedEOF
 17960  	}
 17961  	return nil
 17962  }
 17963  func (m *ProxyStore) Unmarshal(dAtA []byte) error {
 17964  	l := len(dAtA)
 17965  	iNdEx := 0
 17966  	for iNdEx < l {
 17967  		preIndex := iNdEx
 17968  		var wire uint64
 17969  		for shift := uint(0); ; shift += 7 {
 17970  			if shift >= 64 {
 17971  				return ErrIntOverflowLogservice
 17972  			}
 17973  			if iNdEx >= l {
 17974  				return io.ErrUnexpectedEOF
 17975  			}
 17976  			b := dAtA[iNdEx]
 17977  			iNdEx++
 17978  			wire |= uint64(b&0x7F) << shift
 17979  			if b < 0x80 {
 17980  				break
 17981  			}
 17982  		}
 17983  		fieldNum := int32(wire >> 3)
 17984  		wireType := int(wire & 0x7)
 17985  		if wireType == 4 {
 17986  			return fmt.Errorf("proto: ProxyStore: wiretype end group for non-group")
 17987  		}
 17988  		if fieldNum <= 0 {
 17989  			return fmt.Errorf("proto: ProxyStore: illegal tag %d (wire type %d)", fieldNum, wire)
 17990  		}
 17991  		switch fieldNum {
 17992  		case 1:
 17993  			if wireType != 2 {
 17994  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 17995  			}
 17996  			var stringLen uint64
 17997  			for shift := uint(0); ; shift += 7 {
 17998  				if shift >= 64 {
 17999  					return ErrIntOverflowLogservice
 18000  				}
 18001  				if iNdEx >= l {
 18002  					return io.ErrUnexpectedEOF
 18003  				}
 18004  				b := dAtA[iNdEx]
 18005  				iNdEx++
 18006  				stringLen |= uint64(b&0x7F) << shift
 18007  				if b < 0x80 {
 18008  					break
 18009  				}
 18010  			}
 18011  			intStringLen := int(stringLen)
 18012  			if intStringLen < 0 {
 18013  				return ErrInvalidLengthLogservice
 18014  			}
 18015  			postIndex := iNdEx + intStringLen
 18016  			if postIndex < 0 {
 18017  				return ErrInvalidLengthLogservice
 18018  			}
 18019  			if postIndex > l {
 18020  				return io.ErrUnexpectedEOF
 18021  			}
 18022  			m.UUID = string(dAtA[iNdEx:postIndex])
 18023  			iNdEx = postIndex
 18024  		case 2:
 18025  			if wireType != 0 {
 18026  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 18027  			}
 18028  			m.Tick = 0
 18029  			for shift := uint(0); ; shift += 7 {
 18030  				if shift >= 64 {
 18031  					return ErrIntOverflowLogservice
 18032  				}
 18033  				if iNdEx >= l {
 18034  					return io.ErrUnexpectedEOF
 18035  				}
 18036  				b := dAtA[iNdEx]
 18037  				iNdEx++
 18038  				m.Tick |= uint64(b&0x7F) << shift
 18039  				if b < 0x80 {
 18040  					break
 18041  				}
 18042  			}
 18043  		case 3:
 18044  			if wireType != 2 {
 18045  				return fmt.Errorf("proto: wrong wireType = %d for field ListenAddress", wireType)
 18046  			}
 18047  			var stringLen uint64
 18048  			for shift := uint(0); ; shift += 7 {
 18049  				if shift >= 64 {
 18050  					return ErrIntOverflowLogservice
 18051  				}
 18052  				if iNdEx >= l {
 18053  					return io.ErrUnexpectedEOF
 18054  				}
 18055  				b := dAtA[iNdEx]
 18056  				iNdEx++
 18057  				stringLen |= uint64(b&0x7F) << shift
 18058  				if b < 0x80 {
 18059  					break
 18060  				}
 18061  			}
 18062  			intStringLen := int(stringLen)
 18063  			if intStringLen < 0 {
 18064  				return ErrInvalidLengthLogservice
 18065  			}
 18066  			postIndex := iNdEx + intStringLen
 18067  			if postIndex < 0 {
 18068  				return ErrInvalidLengthLogservice
 18069  			}
 18070  			if postIndex > l {
 18071  				return io.ErrUnexpectedEOF
 18072  			}
 18073  			m.ListenAddress = string(dAtA[iNdEx:postIndex])
 18074  			iNdEx = postIndex
 18075  		case 4:
 18076  			if wireType != 2 {
 18077  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 18078  			}
 18079  			var msglen int
 18080  			for shift := uint(0); ; shift += 7 {
 18081  				if shift >= 64 {
 18082  					return ErrIntOverflowLogservice
 18083  				}
 18084  				if iNdEx >= l {
 18085  					return io.ErrUnexpectedEOF
 18086  				}
 18087  				b := dAtA[iNdEx]
 18088  				iNdEx++
 18089  				msglen |= int(b&0x7F) << shift
 18090  				if b < 0x80 {
 18091  					break
 18092  				}
 18093  			}
 18094  			if msglen < 0 {
 18095  				return ErrInvalidLengthLogservice
 18096  			}
 18097  			postIndex := iNdEx + msglen
 18098  			if postIndex < 0 {
 18099  				return ErrInvalidLengthLogservice
 18100  			}
 18101  			if postIndex > l {
 18102  				return io.ErrUnexpectedEOF
 18103  			}
 18104  			if m.ConfigData == nil {
 18105  				m.ConfigData = &ConfigData{}
 18106  			}
 18107  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18108  				return err
 18109  			}
 18110  			iNdEx = postIndex
 18111  		default:
 18112  			iNdEx = preIndex
 18113  			skippy, err := skipLogservice(dAtA[iNdEx:])
 18114  			if err != nil {
 18115  				return err
 18116  			}
 18117  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 18118  				return ErrInvalidLengthLogservice
 18119  			}
 18120  			if (iNdEx + skippy) > l {
 18121  				return io.ErrUnexpectedEOF
 18122  			}
 18123  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18124  			iNdEx += skippy
 18125  		}
 18126  	}
 18127  
 18128  	if iNdEx > l {
 18129  		return io.ErrUnexpectedEOF
 18130  	}
 18131  	return nil
 18132  }
 18133  func (m *ProxyState) Unmarshal(dAtA []byte) error {
 18134  	l := len(dAtA)
 18135  	iNdEx := 0
 18136  	for iNdEx < l {
 18137  		preIndex := iNdEx
 18138  		var wire uint64
 18139  		for shift := uint(0); ; shift += 7 {
 18140  			if shift >= 64 {
 18141  				return ErrIntOverflowLogservice
 18142  			}
 18143  			if iNdEx >= l {
 18144  				return io.ErrUnexpectedEOF
 18145  			}
 18146  			b := dAtA[iNdEx]
 18147  			iNdEx++
 18148  			wire |= uint64(b&0x7F) << shift
 18149  			if b < 0x80 {
 18150  				break
 18151  			}
 18152  		}
 18153  		fieldNum := int32(wire >> 3)
 18154  		wireType := int(wire & 0x7)
 18155  		if wireType == 4 {
 18156  			return fmt.Errorf("proto: ProxyState: wiretype end group for non-group")
 18157  		}
 18158  		if fieldNum <= 0 {
 18159  			return fmt.Errorf("proto: ProxyState: illegal tag %d (wire type %d)", fieldNum, wire)
 18160  		}
 18161  		switch fieldNum {
 18162  		case 1:
 18163  			if wireType != 2 {
 18164  				return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType)
 18165  			}
 18166  			var msglen int
 18167  			for shift := uint(0); ; shift += 7 {
 18168  				if shift >= 64 {
 18169  					return ErrIntOverflowLogservice
 18170  				}
 18171  				if iNdEx >= l {
 18172  					return io.ErrUnexpectedEOF
 18173  				}
 18174  				b := dAtA[iNdEx]
 18175  				iNdEx++
 18176  				msglen |= int(b&0x7F) << shift
 18177  				if b < 0x80 {
 18178  					break
 18179  				}
 18180  			}
 18181  			if msglen < 0 {
 18182  				return ErrInvalidLengthLogservice
 18183  			}
 18184  			postIndex := iNdEx + msglen
 18185  			if postIndex < 0 {
 18186  				return ErrInvalidLengthLogservice
 18187  			}
 18188  			if postIndex > l {
 18189  				return io.ErrUnexpectedEOF
 18190  			}
 18191  			if m.Stores == nil {
 18192  				m.Stores = make(map[string]ProxyStore)
 18193  			}
 18194  			var mapkey string
 18195  			mapvalue := &ProxyStore{}
 18196  			for iNdEx < postIndex {
 18197  				entryPreIndex := iNdEx
 18198  				var wire uint64
 18199  				for shift := uint(0); ; shift += 7 {
 18200  					if shift >= 64 {
 18201  						return ErrIntOverflowLogservice
 18202  					}
 18203  					if iNdEx >= l {
 18204  						return io.ErrUnexpectedEOF
 18205  					}
 18206  					b := dAtA[iNdEx]
 18207  					iNdEx++
 18208  					wire |= uint64(b&0x7F) << shift
 18209  					if b < 0x80 {
 18210  						break
 18211  					}
 18212  				}
 18213  				fieldNum := int32(wire >> 3)
 18214  				if fieldNum == 1 {
 18215  					var stringLenmapkey uint64
 18216  					for shift := uint(0); ; shift += 7 {
 18217  						if shift >= 64 {
 18218  							return ErrIntOverflowLogservice
 18219  						}
 18220  						if iNdEx >= l {
 18221  							return io.ErrUnexpectedEOF
 18222  						}
 18223  						b := dAtA[iNdEx]
 18224  						iNdEx++
 18225  						stringLenmapkey |= uint64(b&0x7F) << shift
 18226  						if b < 0x80 {
 18227  							break
 18228  						}
 18229  					}
 18230  					intStringLenmapkey := int(stringLenmapkey)
 18231  					if intStringLenmapkey < 0 {
 18232  						return ErrInvalidLengthLogservice
 18233  					}
 18234  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 18235  					if postStringIndexmapkey < 0 {
 18236  						return ErrInvalidLengthLogservice
 18237  					}
 18238  					if postStringIndexmapkey > l {
 18239  						return io.ErrUnexpectedEOF
 18240  					}
 18241  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 18242  					iNdEx = postStringIndexmapkey
 18243  				} else if fieldNum == 2 {
 18244  					var mapmsglen int
 18245  					for shift := uint(0); ; shift += 7 {
 18246  						if shift >= 64 {
 18247  							return ErrIntOverflowLogservice
 18248  						}
 18249  						if iNdEx >= l {
 18250  							return io.ErrUnexpectedEOF
 18251  						}
 18252  						b := dAtA[iNdEx]
 18253  						iNdEx++
 18254  						mapmsglen |= int(b&0x7F) << shift
 18255  						if b < 0x80 {
 18256  							break
 18257  						}
 18258  					}
 18259  					if mapmsglen < 0 {
 18260  						return ErrInvalidLengthLogservice
 18261  					}
 18262  					postmsgIndex := iNdEx + mapmsglen
 18263  					if postmsgIndex < 0 {
 18264  						return ErrInvalidLengthLogservice
 18265  					}
 18266  					if postmsgIndex > l {
 18267  						return io.ErrUnexpectedEOF
 18268  					}
 18269  					mapvalue = &ProxyStore{}
 18270  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 18271  						return err
 18272  					}
 18273  					iNdEx = postmsgIndex
 18274  				} else {
 18275  					iNdEx = entryPreIndex
 18276  					skippy, err := skipLogservice(dAtA[iNdEx:])
 18277  					if err != nil {
 18278  						return err
 18279  					}
 18280  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 18281  						return ErrInvalidLengthLogservice
 18282  					}
 18283  					if (iNdEx + skippy) > postIndex {
 18284  						return io.ErrUnexpectedEOF
 18285  					}
 18286  					iNdEx += skippy
 18287  				}
 18288  			}
 18289  			m.Stores[mapkey] = *mapvalue
 18290  			iNdEx = postIndex
 18291  		default:
 18292  			iNdEx = preIndex
 18293  			skippy, err := skipLogservice(dAtA[iNdEx:])
 18294  			if err != nil {
 18295  				return err
 18296  			}
 18297  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 18298  				return ErrInvalidLengthLogservice
 18299  			}
 18300  			if (iNdEx + skippy) > l {
 18301  				return io.ErrUnexpectedEOF
 18302  			}
 18303  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18304  			iNdEx += skippy
 18305  		}
 18306  	}
 18307  
 18308  	if iNdEx > l {
 18309  		return io.ErrUnexpectedEOF
 18310  	}
 18311  	return nil
 18312  }
 18313  func (m *ProxyHeartbeat) Unmarshal(dAtA []byte) error {
 18314  	l := len(dAtA)
 18315  	iNdEx := 0
 18316  	for iNdEx < l {
 18317  		preIndex := iNdEx
 18318  		var wire uint64
 18319  		for shift := uint(0); ; shift += 7 {
 18320  			if shift >= 64 {
 18321  				return ErrIntOverflowLogservice
 18322  			}
 18323  			if iNdEx >= l {
 18324  				return io.ErrUnexpectedEOF
 18325  			}
 18326  			b := dAtA[iNdEx]
 18327  			iNdEx++
 18328  			wire |= uint64(b&0x7F) << shift
 18329  			if b < 0x80 {
 18330  				break
 18331  			}
 18332  		}
 18333  		fieldNum := int32(wire >> 3)
 18334  		wireType := int(wire & 0x7)
 18335  		if wireType == 4 {
 18336  			return fmt.Errorf("proto: ProxyHeartbeat: wiretype end group for non-group")
 18337  		}
 18338  		if fieldNum <= 0 {
 18339  			return fmt.Errorf("proto: ProxyHeartbeat: illegal tag %d (wire type %d)", fieldNum, wire)
 18340  		}
 18341  		switch fieldNum {
 18342  		case 1:
 18343  			if wireType != 2 {
 18344  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 18345  			}
 18346  			var stringLen uint64
 18347  			for shift := uint(0); ; shift += 7 {
 18348  				if shift >= 64 {
 18349  					return ErrIntOverflowLogservice
 18350  				}
 18351  				if iNdEx >= l {
 18352  					return io.ErrUnexpectedEOF
 18353  				}
 18354  				b := dAtA[iNdEx]
 18355  				iNdEx++
 18356  				stringLen |= uint64(b&0x7F) << shift
 18357  				if b < 0x80 {
 18358  					break
 18359  				}
 18360  			}
 18361  			intStringLen := int(stringLen)
 18362  			if intStringLen < 0 {
 18363  				return ErrInvalidLengthLogservice
 18364  			}
 18365  			postIndex := iNdEx + intStringLen
 18366  			if postIndex < 0 {
 18367  				return ErrInvalidLengthLogservice
 18368  			}
 18369  			if postIndex > l {
 18370  				return io.ErrUnexpectedEOF
 18371  			}
 18372  			m.UUID = string(dAtA[iNdEx:postIndex])
 18373  			iNdEx = postIndex
 18374  		case 2:
 18375  			if wireType != 2 {
 18376  				return fmt.Errorf("proto: wrong wireType = %d for field ListenAddress", wireType)
 18377  			}
 18378  			var stringLen uint64
 18379  			for shift := uint(0); ; shift += 7 {
 18380  				if shift >= 64 {
 18381  					return ErrIntOverflowLogservice
 18382  				}
 18383  				if iNdEx >= l {
 18384  					return io.ErrUnexpectedEOF
 18385  				}
 18386  				b := dAtA[iNdEx]
 18387  				iNdEx++
 18388  				stringLen |= uint64(b&0x7F) << shift
 18389  				if b < 0x80 {
 18390  					break
 18391  				}
 18392  			}
 18393  			intStringLen := int(stringLen)
 18394  			if intStringLen < 0 {
 18395  				return ErrInvalidLengthLogservice
 18396  			}
 18397  			postIndex := iNdEx + intStringLen
 18398  			if postIndex < 0 {
 18399  				return ErrInvalidLengthLogservice
 18400  			}
 18401  			if postIndex > l {
 18402  				return io.ErrUnexpectedEOF
 18403  			}
 18404  			m.ListenAddress = string(dAtA[iNdEx:postIndex])
 18405  			iNdEx = postIndex
 18406  		case 3:
 18407  			if wireType != 2 {
 18408  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 18409  			}
 18410  			var msglen int
 18411  			for shift := uint(0); ; shift += 7 {
 18412  				if shift >= 64 {
 18413  					return ErrIntOverflowLogservice
 18414  				}
 18415  				if iNdEx >= l {
 18416  					return io.ErrUnexpectedEOF
 18417  				}
 18418  				b := dAtA[iNdEx]
 18419  				iNdEx++
 18420  				msglen |= int(b&0x7F) << shift
 18421  				if b < 0x80 {
 18422  					break
 18423  				}
 18424  			}
 18425  			if msglen < 0 {
 18426  				return ErrInvalidLengthLogservice
 18427  			}
 18428  			postIndex := iNdEx + msglen
 18429  			if postIndex < 0 {
 18430  				return ErrInvalidLengthLogservice
 18431  			}
 18432  			if postIndex > l {
 18433  				return io.ErrUnexpectedEOF
 18434  			}
 18435  			if m.ConfigData == nil {
 18436  				m.ConfigData = &ConfigData{}
 18437  			}
 18438  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18439  				return err
 18440  			}
 18441  			iNdEx = postIndex
 18442  		default:
 18443  			iNdEx = preIndex
 18444  			skippy, err := skipLogservice(dAtA[iNdEx:])
 18445  			if err != nil {
 18446  				return err
 18447  			}
 18448  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 18449  				return ErrInvalidLengthLogservice
 18450  			}
 18451  			if (iNdEx + skippy) > l {
 18452  				return io.ErrUnexpectedEOF
 18453  			}
 18454  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18455  			iNdEx += skippy
 18456  		}
 18457  	}
 18458  
 18459  	if iNdEx > l {
 18460  		return io.ErrUnexpectedEOF
 18461  	}
 18462  	return nil
 18463  }
 18464  func (m *ClusterDetails) Unmarshal(dAtA []byte) error {
 18465  	l := len(dAtA)
 18466  	iNdEx := 0
 18467  	for iNdEx < l {
 18468  		preIndex := iNdEx
 18469  		var wire uint64
 18470  		for shift := uint(0); ; shift += 7 {
 18471  			if shift >= 64 {
 18472  				return ErrIntOverflowLogservice
 18473  			}
 18474  			if iNdEx >= l {
 18475  				return io.ErrUnexpectedEOF
 18476  			}
 18477  			b := dAtA[iNdEx]
 18478  			iNdEx++
 18479  			wire |= uint64(b&0x7F) << shift
 18480  			if b < 0x80 {
 18481  				break
 18482  			}
 18483  		}
 18484  		fieldNum := int32(wire >> 3)
 18485  		wireType := int(wire & 0x7)
 18486  		if wireType == 4 {
 18487  			return fmt.Errorf("proto: ClusterDetails: wiretype end group for non-group")
 18488  		}
 18489  		if fieldNum <= 0 {
 18490  			return fmt.Errorf("proto: ClusterDetails: illegal tag %d (wire type %d)", fieldNum, wire)
 18491  		}
 18492  		switch fieldNum {
 18493  		case 1:
 18494  			if wireType != 2 {
 18495  				return fmt.Errorf("proto: wrong wireType = %d for field TNStores", wireType)
 18496  			}
 18497  			var msglen int
 18498  			for shift := uint(0); ; shift += 7 {
 18499  				if shift >= 64 {
 18500  					return ErrIntOverflowLogservice
 18501  				}
 18502  				if iNdEx >= l {
 18503  					return io.ErrUnexpectedEOF
 18504  				}
 18505  				b := dAtA[iNdEx]
 18506  				iNdEx++
 18507  				msglen |= int(b&0x7F) << shift
 18508  				if b < 0x80 {
 18509  					break
 18510  				}
 18511  			}
 18512  			if msglen < 0 {
 18513  				return ErrInvalidLengthLogservice
 18514  			}
 18515  			postIndex := iNdEx + msglen
 18516  			if postIndex < 0 {
 18517  				return ErrInvalidLengthLogservice
 18518  			}
 18519  			if postIndex > l {
 18520  				return io.ErrUnexpectedEOF
 18521  			}
 18522  			m.TNStores = append(m.TNStores, TNStore{})
 18523  			if err := m.TNStores[len(m.TNStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18524  				return err
 18525  			}
 18526  			iNdEx = postIndex
 18527  		case 2:
 18528  			if wireType != 2 {
 18529  				return fmt.Errorf("proto: wrong wireType = %d for field CNStores", wireType)
 18530  			}
 18531  			var msglen int
 18532  			for shift := uint(0); ; shift += 7 {
 18533  				if shift >= 64 {
 18534  					return ErrIntOverflowLogservice
 18535  				}
 18536  				if iNdEx >= l {
 18537  					return io.ErrUnexpectedEOF
 18538  				}
 18539  				b := dAtA[iNdEx]
 18540  				iNdEx++
 18541  				msglen |= int(b&0x7F) << shift
 18542  				if b < 0x80 {
 18543  					break
 18544  				}
 18545  			}
 18546  			if msglen < 0 {
 18547  				return ErrInvalidLengthLogservice
 18548  			}
 18549  			postIndex := iNdEx + msglen
 18550  			if postIndex < 0 {
 18551  				return ErrInvalidLengthLogservice
 18552  			}
 18553  			if postIndex > l {
 18554  				return io.ErrUnexpectedEOF
 18555  			}
 18556  			m.CNStores = append(m.CNStores, CNStore{})
 18557  			if err := m.CNStores[len(m.CNStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18558  				return err
 18559  			}
 18560  			iNdEx = postIndex
 18561  		case 3:
 18562  			if wireType != 2 {
 18563  				return fmt.Errorf("proto: wrong wireType = %d for field LogStores", wireType)
 18564  			}
 18565  			var msglen int
 18566  			for shift := uint(0); ; shift += 7 {
 18567  				if shift >= 64 {
 18568  					return ErrIntOverflowLogservice
 18569  				}
 18570  				if iNdEx >= l {
 18571  					return io.ErrUnexpectedEOF
 18572  				}
 18573  				b := dAtA[iNdEx]
 18574  				iNdEx++
 18575  				msglen |= int(b&0x7F) << shift
 18576  				if b < 0x80 {
 18577  					break
 18578  				}
 18579  			}
 18580  			if msglen < 0 {
 18581  				return ErrInvalidLengthLogservice
 18582  			}
 18583  			postIndex := iNdEx + msglen
 18584  			if postIndex < 0 {
 18585  				return ErrInvalidLengthLogservice
 18586  			}
 18587  			if postIndex > l {
 18588  				return io.ErrUnexpectedEOF
 18589  			}
 18590  			m.LogStores = append(m.LogStores, LogStore{})
 18591  			if err := m.LogStores[len(m.LogStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18592  				return err
 18593  			}
 18594  			iNdEx = postIndex
 18595  		case 4:
 18596  			if wireType != 2 {
 18597  				return fmt.Errorf("proto: wrong wireType = %d for field ProxyStores", wireType)
 18598  			}
 18599  			var msglen int
 18600  			for shift := uint(0); ; shift += 7 {
 18601  				if shift >= 64 {
 18602  					return ErrIntOverflowLogservice
 18603  				}
 18604  				if iNdEx >= l {
 18605  					return io.ErrUnexpectedEOF
 18606  				}
 18607  				b := dAtA[iNdEx]
 18608  				iNdEx++
 18609  				msglen |= int(b&0x7F) << shift
 18610  				if b < 0x80 {
 18611  					break
 18612  				}
 18613  			}
 18614  			if msglen < 0 {
 18615  				return ErrInvalidLengthLogservice
 18616  			}
 18617  			postIndex := iNdEx + msglen
 18618  			if postIndex < 0 {
 18619  				return ErrInvalidLengthLogservice
 18620  			}
 18621  			if postIndex > l {
 18622  				return io.ErrUnexpectedEOF
 18623  			}
 18624  			m.ProxyStores = append(m.ProxyStores, ProxyStore{})
 18625  			if err := m.ProxyStores[len(m.ProxyStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18626  				return err
 18627  			}
 18628  			iNdEx = postIndex
 18629  		case 5:
 18630  			if wireType != 2 {
 18631  				return fmt.Errorf("proto: wrong wireType = %d for field DeletedStores", wireType)
 18632  			}
 18633  			var msglen int
 18634  			for shift := uint(0); ; shift += 7 {
 18635  				if shift >= 64 {
 18636  					return ErrIntOverflowLogservice
 18637  				}
 18638  				if iNdEx >= l {
 18639  					return io.ErrUnexpectedEOF
 18640  				}
 18641  				b := dAtA[iNdEx]
 18642  				iNdEx++
 18643  				msglen |= int(b&0x7F) << shift
 18644  				if b < 0x80 {
 18645  					break
 18646  				}
 18647  			}
 18648  			if msglen < 0 {
 18649  				return ErrInvalidLengthLogservice
 18650  			}
 18651  			postIndex := iNdEx + msglen
 18652  			if postIndex < 0 {
 18653  				return ErrInvalidLengthLogservice
 18654  			}
 18655  			if postIndex > l {
 18656  				return io.ErrUnexpectedEOF
 18657  			}
 18658  			m.DeletedStores = append(m.DeletedStores, DeletedStore{})
 18659  			if err := m.DeletedStores[len(m.DeletedStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18660  				return err
 18661  			}
 18662  			iNdEx = postIndex
 18663  		default:
 18664  			iNdEx = preIndex
 18665  			skippy, err := skipLogservice(dAtA[iNdEx:])
 18666  			if err != nil {
 18667  				return err
 18668  			}
 18669  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 18670  				return ErrInvalidLengthLogservice
 18671  			}
 18672  			if (iNdEx + skippy) > l {
 18673  				return io.ErrUnexpectedEOF
 18674  			}
 18675  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18676  			iNdEx += skippy
 18677  		}
 18678  	}
 18679  
 18680  	if iNdEx > l {
 18681  		return io.ErrUnexpectedEOF
 18682  	}
 18683  	return nil
 18684  }
 18685  func (m *ClusterInfo) Unmarshal(dAtA []byte) error {
 18686  	l := len(dAtA)
 18687  	iNdEx := 0
 18688  	for iNdEx < l {
 18689  		preIndex := iNdEx
 18690  		var wire uint64
 18691  		for shift := uint(0); ; shift += 7 {
 18692  			if shift >= 64 {
 18693  				return ErrIntOverflowLogservice
 18694  			}
 18695  			if iNdEx >= l {
 18696  				return io.ErrUnexpectedEOF
 18697  			}
 18698  			b := dAtA[iNdEx]
 18699  			iNdEx++
 18700  			wire |= uint64(b&0x7F) << shift
 18701  			if b < 0x80 {
 18702  				break
 18703  			}
 18704  		}
 18705  		fieldNum := int32(wire >> 3)
 18706  		wireType := int(wire & 0x7)
 18707  		if wireType == 4 {
 18708  			return fmt.Errorf("proto: ClusterInfo: wiretype end group for non-group")
 18709  		}
 18710  		if fieldNum <= 0 {
 18711  			return fmt.Errorf("proto: ClusterInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 18712  		}
 18713  		switch fieldNum {
 18714  		case 1:
 18715  			if wireType != 2 {
 18716  				return fmt.Errorf("proto: wrong wireType = %d for field TNShards", wireType)
 18717  			}
 18718  			var msglen int
 18719  			for shift := uint(0); ; shift += 7 {
 18720  				if shift >= 64 {
 18721  					return ErrIntOverflowLogservice
 18722  				}
 18723  				if iNdEx >= l {
 18724  					return io.ErrUnexpectedEOF
 18725  				}
 18726  				b := dAtA[iNdEx]
 18727  				iNdEx++
 18728  				msglen |= int(b&0x7F) << shift
 18729  				if b < 0x80 {
 18730  					break
 18731  				}
 18732  			}
 18733  			if msglen < 0 {
 18734  				return ErrInvalidLengthLogservice
 18735  			}
 18736  			postIndex := iNdEx + msglen
 18737  			if postIndex < 0 {
 18738  				return ErrInvalidLengthLogservice
 18739  			}
 18740  			if postIndex > l {
 18741  				return io.ErrUnexpectedEOF
 18742  			}
 18743  			m.TNShards = append(m.TNShards, metadata.TNShardRecord{})
 18744  			if err := m.TNShards[len(m.TNShards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18745  				return err
 18746  			}
 18747  			iNdEx = postIndex
 18748  		case 2:
 18749  			if wireType != 2 {
 18750  				return fmt.Errorf("proto: wrong wireType = %d for field LogShards", wireType)
 18751  			}
 18752  			var msglen int
 18753  			for shift := uint(0); ; shift += 7 {
 18754  				if shift >= 64 {
 18755  					return ErrIntOverflowLogservice
 18756  				}
 18757  				if iNdEx >= l {
 18758  					return io.ErrUnexpectedEOF
 18759  				}
 18760  				b := dAtA[iNdEx]
 18761  				iNdEx++
 18762  				msglen |= int(b&0x7F) << shift
 18763  				if b < 0x80 {
 18764  					break
 18765  				}
 18766  			}
 18767  			if msglen < 0 {
 18768  				return ErrInvalidLengthLogservice
 18769  			}
 18770  			postIndex := iNdEx + msglen
 18771  			if postIndex < 0 {
 18772  				return ErrInvalidLengthLogservice
 18773  			}
 18774  			if postIndex > l {
 18775  				return io.ErrUnexpectedEOF
 18776  			}
 18777  			m.LogShards = append(m.LogShards, metadata.LogShardRecord{})
 18778  			if err := m.LogShards[len(m.LogShards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18779  				return err
 18780  			}
 18781  			iNdEx = postIndex
 18782  		default:
 18783  			iNdEx = preIndex
 18784  			skippy, err := skipLogservice(dAtA[iNdEx:])
 18785  			if err != nil {
 18786  				return err
 18787  			}
 18788  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 18789  				return ErrInvalidLengthLogservice
 18790  			}
 18791  			if (iNdEx + skippy) > l {
 18792  				return io.ErrUnexpectedEOF
 18793  			}
 18794  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18795  			iNdEx += skippy
 18796  		}
 18797  	}
 18798  
 18799  	if iNdEx > l {
 18800  		return io.ErrUnexpectedEOF
 18801  	}
 18802  	return nil
 18803  }
 18804  func (m *InitialClusterRequest) Unmarshal(dAtA []byte) error {
 18805  	l := len(dAtA)
 18806  	iNdEx := 0
 18807  	for iNdEx < l {
 18808  		preIndex := iNdEx
 18809  		var wire uint64
 18810  		for shift := uint(0); ; shift += 7 {
 18811  			if shift >= 64 {
 18812  				return ErrIntOverflowLogservice
 18813  			}
 18814  			if iNdEx >= l {
 18815  				return io.ErrUnexpectedEOF
 18816  			}
 18817  			b := dAtA[iNdEx]
 18818  			iNdEx++
 18819  			wire |= uint64(b&0x7F) << shift
 18820  			if b < 0x80 {
 18821  				break
 18822  			}
 18823  		}
 18824  		fieldNum := int32(wire >> 3)
 18825  		wireType := int(wire & 0x7)
 18826  		if wireType == 4 {
 18827  			return fmt.Errorf("proto: InitialClusterRequest: wiretype end group for non-group")
 18828  		}
 18829  		if fieldNum <= 0 {
 18830  			return fmt.Errorf("proto: InitialClusterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 18831  		}
 18832  		switch fieldNum {
 18833  		case 1:
 18834  			if wireType != 0 {
 18835  				return fmt.Errorf("proto: wrong wireType = %d for field NumOfLogShards", wireType)
 18836  			}
 18837  			m.NumOfLogShards = 0
 18838  			for shift := uint(0); ; shift += 7 {
 18839  				if shift >= 64 {
 18840  					return ErrIntOverflowLogservice
 18841  				}
 18842  				if iNdEx >= l {
 18843  					return io.ErrUnexpectedEOF
 18844  				}
 18845  				b := dAtA[iNdEx]
 18846  				iNdEx++
 18847  				m.NumOfLogShards |= uint64(b&0x7F) << shift
 18848  				if b < 0x80 {
 18849  					break
 18850  				}
 18851  			}
 18852  		case 2:
 18853  			if wireType != 0 {
 18854  				return fmt.Errorf("proto: wrong wireType = %d for field NumOfTNShards", wireType)
 18855  			}
 18856  			m.NumOfTNShards = 0
 18857  			for shift := uint(0); ; shift += 7 {
 18858  				if shift >= 64 {
 18859  					return ErrIntOverflowLogservice
 18860  				}
 18861  				if iNdEx >= l {
 18862  					return io.ErrUnexpectedEOF
 18863  				}
 18864  				b := dAtA[iNdEx]
 18865  				iNdEx++
 18866  				m.NumOfTNShards |= uint64(b&0x7F) << shift
 18867  				if b < 0x80 {
 18868  					break
 18869  				}
 18870  			}
 18871  		case 3:
 18872  			if wireType != 0 {
 18873  				return fmt.Errorf("proto: wrong wireType = %d for field NumOfLogReplicas", wireType)
 18874  			}
 18875  			m.NumOfLogReplicas = 0
 18876  			for shift := uint(0); ; shift += 7 {
 18877  				if shift >= 64 {
 18878  					return ErrIntOverflowLogservice
 18879  				}
 18880  				if iNdEx >= l {
 18881  					return io.ErrUnexpectedEOF
 18882  				}
 18883  				b := dAtA[iNdEx]
 18884  				iNdEx++
 18885  				m.NumOfLogReplicas |= uint64(b&0x7F) << shift
 18886  				if b < 0x80 {
 18887  					break
 18888  				}
 18889  			}
 18890  		case 4:
 18891  			if wireType != 0 {
 18892  				return fmt.Errorf("proto: wrong wireType = %d for field NextID", wireType)
 18893  			}
 18894  			m.NextID = 0
 18895  			for shift := uint(0); ; shift += 7 {
 18896  				if shift >= 64 {
 18897  					return ErrIntOverflowLogservice
 18898  				}
 18899  				if iNdEx >= l {
 18900  					return io.ErrUnexpectedEOF
 18901  				}
 18902  				b := dAtA[iNdEx]
 18903  				iNdEx++
 18904  				m.NextID |= uint64(b&0x7F) << shift
 18905  				if b < 0x80 {
 18906  					break
 18907  				}
 18908  			}
 18909  		case 5:
 18910  			if wireType != 2 {
 18911  				return fmt.Errorf("proto: wrong wireType = %d for field NextIDByKey", wireType)
 18912  			}
 18913  			var msglen int
 18914  			for shift := uint(0); ; shift += 7 {
 18915  				if shift >= 64 {
 18916  					return ErrIntOverflowLogservice
 18917  				}
 18918  				if iNdEx >= l {
 18919  					return io.ErrUnexpectedEOF
 18920  				}
 18921  				b := dAtA[iNdEx]
 18922  				iNdEx++
 18923  				msglen |= int(b&0x7F) << shift
 18924  				if b < 0x80 {
 18925  					break
 18926  				}
 18927  			}
 18928  			if msglen < 0 {
 18929  				return ErrInvalidLengthLogservice
 18930  			}
 18931  			postIndex := iNdEx + msglen
 18932  			if postIndex < 0 {
 18933  				return ErrInvalidLengthLogservice
 18934  			}
 18935  			if postIndex > l {
 18936  				return io.ErrUnexpectedEOF
 18937  			}
 18938  			if m.NextIDByKey == nil {
 18939  				m.NextIDByKey = make(map[string]uint64)
 18940  			}
 18941  			var mapkey string
 18942  			var mapvalue uint64
 18943  			for iNdEx < postIndex {
 18944  				entryPreIndex := iNdEx
 18945  				var wire uint64
 18946  				for shift := uint(0); ; shift += 7 {
 18947  					if shift >= 64 {
 18948  						return ErrIntOverflowLogservice
 18949  					}
 18950  					if iNdEx >= l {
 18951  						return io.ErrUnexpectedEOF
 18952  					}
 18953  					b := dAtA[iNdEx]
 18954  					iNdEx++
 18955  					wire |= uint64(b&0x7F) << shift
 18956  					if b < 0x80 {
 18957  						break
 18958  					}
 18959  				}
 18960  				fieldNum := int32(wire >> 3)
 18961  				if fieldNum == 1 {
 18962  					var stringLenmapkey uint64
 18963  					for shift := uint(0); ; shift += 7 {
 18964  						if shift >= 64 {
 18965  							return ErrIntOverflowLogservice
 18966  						}
 18967  						if iNdEx >= l {
 18968  							return io.ErrUnexpectedEOF
 18969  						}
 18970  						b := dAtA[iNdEx]
 18971  						iNdEx++
 18972  						stringLenmapkey |= uint64(b&0x7F) << shift
 18973  						if b < 0x80 {
 18974  							break
 18975  						}
 18976  					}
 18977  					intStringLenmapkey := int(stringLenmapkey)
 18978  					if intStringLenmapkey < 0 {
 18979  						return ErrInvalidLengthLogservice
 18980  					}
 18981  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 18982  					if postStringIndexmapkey < 0 {
 18983  						return ErrInvalidLengthLogservice
 18984  					}
 18985  					if postStringIndexmapkey > l {
 18986  						return io.ErrUnexpectedEOF
 18987  					}
 18988  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 18989  					iNdEx = postStringIndexmapkey
 18990  				} else if fieldNum == 2 {
 18991  					for shift := uint(0); ; shift += 7 {
 18992  						if shift >= 64 {
 18993  							return ErrIntOverflowLogservice
 18994  						}
 18995  						if iNdEx >= l {
 18996  							return io.ErrUnexpectedEOF
 18997  						}
 18998  						b := dAtA[iNdEx]
 18999  						iNdEx++
 19000  						mapvalue |= uint64(b&0x7F) << shift
 19001  						if b < 0x80 {
 19002  							break
 19003  						}
 19004  					}
 19005  				} else {
 19006  					iNdEx = entryPreIndex
 19007  					skippy, err := skipLogservice(dAtA[iNdEx:])
 19008  					if err != nil {
 19009  						return err
 19010  					}
 19011  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 19012  						return ErrInvalidLengthLogservice
 19013  					}
 19014  					if (iNdEx + skippy) > postIndex {
 19015  						return io.ErrUnexpectedEOF
 19016  					}
 19017  					iNdEx += skippy
 19018  				}
 19019  			}
 19020  			m.NextIDByKey[mapkey] = mapvalue
 19021  			iNdEx = postIndex
 19022  		default:
 19023  			iNdEx = preIndex
 19024  			skippy, err := skipLogservice(dAtA[iNdEx:])
 19025  			if err != nil {
 19026  				return err
 19027  			}
 19028  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 19029  				return ErrInvalidLengthLogservice
 19030  			}
 19031  			if (iNdEx + skippy) > l {
 19032  				return io.ErrUnexpectedEOF
 19033  			}
 19034  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19035  			iNdEx += skippy
 19036  		}
 19037  	}
 19038  
 19039  	if iNdEx > l {
 19040  		return io.ErrUnexpectedEOF
 19041  	}
 19042  	return nil
 19043  }
 19044  func (m *LogStoreInfo) Unmarshal(dAtA []byte) error {
 19045  	l := len(dAtA)
 19046  	iNdEx := 0
 19047  	for iNdEx < l {
 19048  		preIndex := iNdEx
 19049  		var wire uint64
 19050  		for shift := uint(0); ; shift += 7 {
 19051  			if shift >= 64 {
 19052  				return ErrIntOverflowLogservice
 19053  			}
 19054  			if iNdEx >= l {
 19055  				return io.ErrUnexpectedEOF
 19056  			}
 19057  			b := dAtA[iNdEx]
 19058  			iNdEx++
 19059  			wire |= uint64(b&0x7F) << shift
 19060  			if b < 0x80 {
 19061  				break
 19062  			}
 19063  		}
 19064  		fieldNum := int32(wire >> 3)
 19065  		wireType := int(wire & 0x7)
 19066  		if wireType == 4 {
 19067  			return fmt.Errorf("proto: LogStoreInfo: wiretype end group for non-group")
 19068  		}
 19069  		if fieldNum <= 0 {
 19070  			return fmt.Errorf("proto: LogStoreInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 19071  		}
 19072  		switch fieldNum {
 19073  		case 1:
 19074  			if wireType != 0 {
 19075  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 19076  			}
 19077  			m.Tick = 0
 19078  			for shift := uint(0); ; shift += 7 {
 19079  				if shift >= 64 {
 19080  					return ErrIntOverflowLogservice
 19081  				}
 19082  				if iNdEx >= l {
 19083  					return io.ErrUnexpectedEOF
 19084  				}
 19085  				b := dAtA[iNdEx]
 19086  				iNdEx++
 19087  				m.Tick |= uint64(b&0x7F) << shift
 19088  				if b < 0x80 {
 19089  					break
 19090  				}
 19091  			}
 19092  		case 2:
 19093  			if wireType != 2 {
 19094  				return fmt.Errorf("proto: wrong wireType = %d for field RaftAddress", wireType)
 19095  			}
 19096  			var stringLen uint64
 19097  			for shift := uint(0); ; shift += 7 {
 19098  				if shift >= 64 {
 19099  					return ErrIntOverflowLogservice
 19100  				}
 19101  				if iNdEx >= l {
 19102  					return io.ErrUnexpectedEOF
 19103  				}
 19104  				b := dAtA[iNdEx]
 19105  				iNdEx++
 19106  				stringLen |= uint64(b&0x7F) << shift
 19107  				if b < 0x80 {
 19108  					break
 19109  				}
 19110  			}
 19111  			intStringLen := int(stringLen)
 19112  			if intStringLen < 0 {
 19113  				return ErrInvalidLengthLogservice
 19114  			}
 19115  			postIndex := iNdEx + intStringLen
 19116  			if postIndex < 0 {
 19117  				return ErrInvalidLengthLogservice
 19118  			}
 19119  			if postIndex > l {
 19120  				return io.ErrUnexpectedEOF
 19121  			}
 19122  			m.RaftAddress = string(dAtA[iNdEx:postIndex])
 19123  			iNdEx = postIndex
 19124  		case 3:
 19125  			if wireType != 2 {
 19126  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 19127  			}
 19128  			var stringLen uint64
 19129  			for shift := uint(0); ; shift += 7 {
 19130  				if shift >= 64 {
 19131  					return ErrIntOverflowLogservice
 19132  				}
 19133  				if iNdEx >= l {
 19134  					return io.ErrUnexpectedEOF
 19135  				}
 19136  				b := dAtA[iNdEx]
 19137  				iNdEx++
 19138  				stringLen |= uint64(b&0x7F) << shift
 19139  				if b < 0x80 {
 19140  					break
 19141  				}
 19142  			}
 19143  			intStringLen := int(stringLen)
 19144  			if intStringLen < 0 {
 19145  				return ErrInvalidLengthLogservice
 19146  			}
 19147  			postIndex := iNdEx + intStringLen
 19148  			if postIndex < 0 {
 19149  				return ErrInvalidLengthLogservice
 19150  			}
 19151  			if postIndex > l {
 19152  				return io.ErrUnexpectedEOF
 19153  			}
 19154  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 19155  			iNdEx = postIndex
 19156  		case 4:
 19157  			if wireType != 2 {
 19158  				return fmt.Errorf("proto: wrong wireType = %d for field GossipAddress", wireType)
 19159  			}
 19160  			var stringLen uint64
 19161  			for shift := uint(0); ; shift += 7 {
 19162  				if shift >= 64 {
 19163  					return ErrIntOverflowLogservice
 19164  				}
 19165  				if iNdEx >= l {
 19166  					return io.ErrUnexpectedEOF
 19167  				}
 19168  				b := dAtA[iNdEx]
 19169  				iNdEx++
 19170  				stringLen |= uint64(b&0x7F) << shift
 19171  				if b < 0x80 {
 19172  					break
 19173  				}
 19174  			}
 19175  			intStringLen := int(stringLen)
 19176  			if intStringLen < 0 {
 19177  				return ErrInvalidLengthLogservice
 19178  			}
 19179  			postIndex := iNdEx + intStringLen
 19180  			if postIndex < 0 {
 19181  				return ErrInvalidLengthLogservice
 19182  			}
 19183  			if postIndex > l {
 19184  				return io.ErrUnexpectedEOF
 19185  			}
 19186  			m.GossipAddress = string(dAtA[iNdEx:postIndex])
 19187  			iNdEx = postIndex
 19188  		case 5:
 19189  			if wireType != 2 {
 19190  				return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
 19191  			}
 19192  			var msglen int
 19193  			for shift := uint(0); ; shift += 7 {
 19194  				if shift >= 64 {
 19195  					return ErrIntOverflowLogservice
 19196  				}
 19197  				if iNdEx >= l {
 19198  					return io.ErrUnexpectedEOF
 19199  				}
 19200  				b := dAtA[iNdEx]
 19201  				iNdEx++
 19202  				msglen |= int(b&0x7F) << shift
 19203  				if b < 0x80 {
 19204  					break
 19205  				}
 19206  			}
 19207  			if msglen < 0 {
 19208  				return ErrInvalidLengthLogservice
 19209  			}
 19210  			postIndex := iNdEx + msglen
 19211  			if postIndex < 0 {
 19212  				return ErrInvalidLengthLogservice
 19213  			}
 19214  			if postIndex > l {
 19215  				return io.ErrUnexpectedEOF
 19216  			}
 19217  			m.Replicas = append(m.Replicas, LogReplicaInfo{})
 19218  			if err := m.Replicas[len(m.Replicas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19219  				return err
 19220  			}
 19221  			iNdEx = postIndex
 19222  		case 6:
 19223  			if wireType != 0 {
 19224  				return fmt.Errorf("proto: wrong wireType = %d for field TaskServiceCreated", wireType)
 19225  			}
 19226  			var v int
 19227  			for shift := uint(0); ; shift += 7 {
 19228  				if shift >= 64 {
 19229  					return ErrIntOverflowLogservice
 19230  				}
 19231  				if iNdEx >= l {
 19232  					return io.ErrUnexpectedEOF
 19233  				}
 19234  				b := dAtA[iNdEx]
 19235  				iNdEx++
 19236  				v |= int(b&0x7F) << shift
 19237  				if b < 0x80 {
 19238  					break
 19239  				}
 19240  			}
 19241  			m.TaskServiceCreated = bool(v != 0)
 19242  		case 7:
 19243  			if wireType != 2 {
 19244  				return fmt.Errorf("proto: wrong wireType = %d for field ConfigData", wireType)
 19245  			}
 19246  			var msglen int
 19247  			for shift := uint(0); ; shift += 7 {
 19248  				if shift >= 64 {
 19249  					return ErrIntOverflowLogservice
 19250  				}
 19251  				if iNdEx >= l {
 19252  					return io.ErrUnexpectedEOF
 19253  				}
 19254  				b := dAtA[iNdEx]
 19255  				iNdEx++
 19256  				msglen |= int(b&0x7F) << shift
 19257  				if b < 0x80 {
 19258  					break
 19259  				}
 19260  			}
 19261  			if msglen < 0 {
 19262  				return ErrInvalidLengthLogservice
 19263  			}
 19264  			postIndex := iNdEx + msglen
 19265  			if postIndex < 0 {
 19266  				return ErrInvalidLengthLogservice
 19267  			}
 19268  			if postIndex > l {
 19269  				return io.ErrUnexpectedEOF
 19270  			}
 19271  			if m.ConfigData == nil {
 19272  				m.ConfigData = &ConfigData{}
 19273  			}
 19274  			if err := m.ConfigData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19275  				return err
 19276  			}
 19277  			iNdEx = postIndex
 19278  		default:
 19279  			iNdEx = preIndex
 19280  			skippy, err := skipLogservice(dAtA[iNdEx:])
 19281  			if err != nil {
 19282  				return err
 19283  			}
 19284  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 19285  				return ErrInvalidLengthLogservice
 19286  			}
 19287  			if (iNdEx + skippy) > l {
 19288  				return io.ErrUnexpectedEOF
 19289  			}
 19290  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19291  			iNdEx += skippy
 19292  		}
 19293  	}
 19294  
 19295  	if iNdEx > l {
 19296  		return io.ErrUnexpectedEOF
 19297  	}
 19298  	return nil
 19299  }
 19300  func (m *LogState) Unmarshal(dAtA []byte) error {
 19301  	l := len(dAtA)
 19302  	iNdEx := 0
 19303  	for iNdEx < l {
 19304  		preIndex := iNdEx
 19305  		var wire uint64
 19306  		for shift := uint(0); ; shift += 7 {
 19307  			if shift >= 64 {
 19308  				return ErrIntOverflowLogservice
 19309  			}
 19310  			if iNdEx >= l {
 19311  				return io.ErrUnexpectedEOF
 19312  			}
 19313  			b := dAtA[iNdEx]
 19314  			iNdEx++
 19315  			wire |= uint64(b&0x7F) << shift
 19316  			if b < 0x80 {
 19317  				break
 19318  			}
 19319  		}
 19320  		fieldNum := int32(wire >> 3)
 19321  		wireType := int(wire & 0x7)
 19322  		if wireType == 4 {
 19323  			return fmt.Errorf("proto: LogState: wiretype end group for non-group")
 19324  		}
 19325  		if fieldNum <= 0 {
 19326  			return fmt.Errorf("proto: LogState: illegal tag %d (wire type %d)", fieldNum, wire)
 19327  		}
 19328  		switch fieldNum {
 19329  		case 1:
 19330  			if wireType != 2 {
 19331  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
 19332  			}
 19333  			var msglen int
 19334  			for shift := uint(0); ; shift += 7 {
 19335  				if shift >= 64 {
 19336  					return ErrIntOverflowLogservice
 19337  				}
 19338  				if iNdEx >= l {
 19339  					return io.ErrUnexpectedEOF
 19340  				}
 19341  				b := dAtA[iNdEx]
 19342  				iNdEx++
 19343  				msglen |= int(b&0x7F) << shift
 19344  				if b < 0x80 {
 19345  					break
 19346  				}
 19347  			}
 19348  			if msglen < 0 {
 19349  				return ErrInvalidLengthLogservice
 19350  			}
 19351  			postIndex := iNdEx + msglen
 19352  			if postIndex < 0 {
 19353  				return ErrInvalidLengthLogservice
 19354  			}
 19355  			if postIndex > l {
 19356  				return io.ErrUnexpectedEOF
 19357  			}
 19358  			if m.Shards == nil {
 19359  				m.Shards = make(map[uint64]LogShardInfo)
 19360  			}
 19361  			var mapkey uint64
 19362  			mapvalue := &LogShardInfo{}
 19363  			for iNdEx < postIndex {
 19364  				entryPreIndex := iNdEx
 19365  				var wire uint64
 19366  				for shift := uint(0); ; shift += 7 {
 19367  					if shift >= 64 {
 19368  						return ErrIntOverflowLogservice
 19369  					}
 19370  					if iNdEx >= l {
 19371  						return io.ErrUnexpectedEOF
 19372  					}
 19373  					b := dAtA[iNdEx]
 19374  					iNdEx++
 19375  					wire |= uint64(b&0x7F) << shift
 19376  					if b < 0x80 {
 19377  						break
 19378  					}
 19379  				}
 19380  				fieldNum := int32(wire >> 3)
 19381  				if fieldNum == 1 {
 19382  					for shift := uint(0); ; shift += 7 {
 19383  						if shift >= 64 {
 19384  							return ErrIntOverflowLogservice
 19385  						}
 19386  						if iNdEx >= l {
 19387  							return io.ErrUnexpectedEOF
 19388  						}
 19389  						b := dAtA[iNdEx]
 19390  						iNdEx++
 19391  						mapkey |= uint64(b&0x7F) << shift
 19392  						if b < 0x80 {
 19393  							break
 19394  						}
 19395  					}
 19396  				} else if fieldNum == 2 {
 19397  					var mapmsglen int
 19398  					for shift := uint(0); ; shift += 7 {
 19399  						if shift >= 64 {
 19400  							return ErrIntOverflowLogservice
 19401  						}
 19402  						if iNdEx >= l {
 19403  							return io.ErrUnexpectedEOF
 19404  						}
 19405  						b := dAtA[iNdEx]
 19406  						iNdEx++
 19407  						mapmsglen |= int(b&0x7F) << shift
 19408  						if b < 0x80 {
 19409  							break
 19410  						}
 19411  					}
 19412  					if mapmsglen < 0 {
 19413  						return ErrInvalidLengthLogservice
 19414  					}
 19415  					postmsgIndex := iNdEx + mapmsglen
 19416  					if postmsgIndex < 0 {
 19417  						return ErrInvalidLengthLogservice
 19418  					}
 19419  					if postmsgIndex > l {
 19420  						return io.ErrUnexpectedEOF
 19421  					}
 19422  					mapvalue = &LogShardInfo{}
 19423  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 19424  						return err
 19425  					}
 19426  					iNdEx = postmsgIndex
 19427  				} else {
 19428  					iNdEx = entryPreIndex
 19429  					skippy, err := skipLogservice(dAtA[iNdEx:])
 19430  					if err != nil {
 19431  						return err
 19432  					}
 19433  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 19434  						return ErrInvalidLengthLogservice
 19435  					}
 19436  					if (iNdEx + skippy) > postIndex {
 19437  						return io.ErrUnexpectedEOF
 19438  					}
 19439  					iNdEx += skippy
 19440  				}
 19441  			}
 19442  			m.Shards[mapkey] = *mapvalue
 19443  			iNdEx = postIndex
 19444  		case 2:
 19445  			if wireType != 2 {
 19446  				return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType)
 19447  			}
 19448  			var msglen int
 19449  			for shift := uint(0); ; shift += 7 {
 19450  				if shift >= 64 {
 19451  					return ErrIntOverflowLogservice
 19452  				}
 19453  				if iNdEx >= l {
 19454  					return io.ErrUnexpectedEOF
 19455  				}
 19456  				b := dAtA[iNdEx]
 19457  				iNdEx++
 19458  				msglen |= int(b&0x7F) << shift
 19459  				if b < 0x80 {
 19460  					break
 19461  				}
 19462  			}
 19463  			if msglen < 0 {
 19464  				return ErrInvalidLengthLogservice
 19465  			}
 19466  			postIndex := iNdEx + msglen
 19467  			if postIndex < 0 {
 19468  				return ErrInvalidLengthLogservice
 19469  			}
 19470  			if postIndex > l {
 19471  				return io.ErrUnexpectedEOF
 19472  			}
 19473  			if m.Stores == nil {
 19474  				m.Stores = make(map[string]LogStoreInfo)
 19475  			}
 19476  			var mapkey string
 19477  			mapvalue := &LogStoreInfo{}
 19478  			for iNdEx < postIndex {
 19479  				entryPreIndex := iNdEx
 19480  				var wire uint64
 19481  				for shift := uint(0); ; shift += 7 {
 19482  					if shift >= 64 {
 19483  						return ErrIntOverflowLogservice
 19484  					}
 19485  					if iNdEx >= l {
 19486  						return io.ErrUnexpectedEOF
 19487  					}
 19488  					b := dAtA[iNdEx]
 19489  					iNdEx++
 19490  					wire |= uint64(b&0x7F) << shift
 19491  					if b < 0x80 {
 19492  						break
 19493  					}
 19494  				}
 19495  				fieldNum := int32(wire >> 3)
 19496  				if fieldNum == 1 {
 19497  					var stringLenmapkey uint64
 19498  					for shift := uint(0); ; shift += 7 {
 19499  						if shift >= 64 {
 19500  							return ErrIntOverflowLogservice
 19501  						}
 19502  						if iNdEx >= l {
 19503  							return io.ErrUnexpectedEOF
 19504  						}
 19505  						b := dAtA[iNdEx]
 19506  						iNdEx++
 19507  						stringLenmapkey |= uint64(b&0x7F) << shift
 19508  						if b < 0x80 {
 19509  							break
 19510  						}
 19511  					}
 19512  					intStringLenmapkey := int(stringLenmapkey)
 19513  					if intStringLenmapkey < 0 {
 19514  						return ErrInvalidLengthLogservice
 19515  					}
 19516  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 19517  					if postStringIndexmapkey < 0 {
 19518  						return ErrInvalidLengthLogservice
 19519  					}
 19520  					if postStringIndexmapkey > l {
 19521  						return io.ErrUnexpectedEOF
 19522  					}
 19523  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 19524  					iNdEx = postStringIndexmapkey
 19525  				} else if fieldNum == 2 {
 19526  					var mapmsglen int
 19527  					for shift := uint(0); ; shift += 7 {
 19528  						if shift >= 64 {
 19529  							return ErrIntOverflowLogservice
 19530  						}
 19531  						if iNdEx >= l {
 19532  							return io.ErrUnexpectedEOF
 19533  						}
 19534  						b := dAtA[iNdEx]
 19535  						iNdEx++
 19536  						mapmsglen |= int(b&0x7F) << shift
 19537  						if b < 0x80 {
 19538  							break
 19539  						}
 19540  					}
 19541  					if mapmsglen < 0 {
 19542  						return ErrInvalidLengthLogservice
 19543  					}
 19544  					postmsgIndex := iNdEx + mapmsglen
 19545  					if postmsgIndex < 0 {
 19546  						return ErrInvalidLengthLogservice
 19547  					}
 19548  					if postmsgIndex > l {
 19549  						return io.ErrUnexpectedEOF
 19550  					}
 19551  					mapvalue = &LogStoreInfo{}
 19552  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 19553  						return err
 19554  					}
 19555  					iNdEx = postmsgIndex
 19556  				} else {
 19557  					iNdEx = entryPreIndex
 19558  					skippy, err := skipLogservice(dAtA[iNdEx:])
 19559  					if err != nil {
 19560  						return err
 19561  					}
 19562  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 19563  						return ErrInvalidLengthLogservice
 19564  					}
 19565  					if (iNdEx + skippy) > postIndex {
 19566  						return io.ErrUnexpectedEOF
 19567  					}
 19568  					iNdEx += skippy
 19569  				}
 19570  			}
 19571  			m.Stores[mapkey] = *mapvalue
 19572  			iNdEx = postIndex
 19573  		default:
 19574  			iNdEx = preIndex
 19575  			skippy, err := skipLogservice(dAtA[iNdEx:])
 19576  			if err != nil {
 19577  				return err
 19578  			}
 19579  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 19580  				return ErrInvalidLengthLogservice
 19581  			}
 19582  			if (iNdEx + skippy) > l {
 19583  				return io.ErrUnexpectedEOF
 19584  			}
 19585  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19586  			iNdEx += skippy
 19587  		}
 19588  	}
 19589  
 19590  	if iNdEx > l {
 19591  		return io.ErrUnexpectedEOF
 19592  	}
 19593  	return nil
 19594  }
 19595  func (m *CheckerState) Unmarshal(dAtA []byte) error {
 19596  	l := len(dAtA)
 19597  	iNdEx := 0
 19598  	for iNdEx < l {
 19599  		preIndex := iNdEx
 19600  		var wire uint64
 19601  		for shift := uint(0); ; shift += 7 {
 19602  			if shift >= 64 {
 19603  				return ErrIntOverflowLogservice
 19604  			}
 19605  			if iNdEx >= l {
 19606  				return io.ErrUnexpectedEOF
 19607  			}
 19608  			b := dAtA[iNdEx]
 19609  			iNdEx++
 19610  			wire |= uint64(b&0x7F) << shift
 19611  			if b < 0x80 {
 19612  				break
 19613  			}
 19614  		}
 19615  		fieldNum := int32(wire >> 3)
 19616  		wireType := int(wire & 0x7)
 19617  		if wireType == 4 {
 19618  			return fmt.Errorf("proto: CheckerState: wiretype end group for non-group")
 19619  		}
 19620  		if fieldNum <= 0 {
 19621  			return fmt.Errorf("proto: CheckerState: illegal tag %d (wire type %d)", fieldNum, wire)
 19622  		}
 19623  		switch fieldNum {
 19624  		case 1:
 19625  			if wireType != 0 {
 19626  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 19627  			}
 19628  			m.Tick = 0
 19629  			for shift := uint(0); ; shift += 7 {
 19630  				if shift >= 64 {
 19631  					return ErrIntOverflowLogservice
 19632  				}
 19633  				if iNdEx >= l {
 19634  					return io.ErrUnexpectedEOF
 19635  				}
 19636  				b := dAtA[iNdEx]
 19637  				iNdEx++
 19638  				m.Tick |= uint64(b&0x7F) << shift
 19639  				if b < 0x80 {
 19640  					break
 19641  				}
 19642  			}
 19643  		case 2:
 19644  			if wireType != 2 {
 19645  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterInfo", wireType)
 19646  			}
 19647  			var msglen int
 19648  			for shift := uint(0); ; shift += 7 {
 19649  				if shift >= 64 {
 19650  					return ErrIntOverflowLogservice
 19651  				}
 19652  				if iNdEx >= l {
 19653  					return io.ErrUnexpectedEOF
 19654  				}
 19655  				b := dAtA[iNdEx]
 19656  				iNdEx++
 19657  				msglen |= int(b&0x7F) << shift
 19658  				if b < 0x80 {
 19659  					break
 19660  				}
 19661  			}
 19662  			if msglen < 0 {
 19663  				return ErrInvalidLengthLogservice
 19664  			}
 19665  			postIndex := iNdEx + msglen
 19666  			if postIndex < 0 {
 19667  				return ErrInvalidLengthLogservice
 19668  			}
 19669  			if postIndex > l {
 19670  				return io.ErrUnexpectedEOF
 19671  			}
 19672  			if err := m.ClusterInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19673  				return err
 19674  			}
 19675  			iNdEx = postIndex
 19676  		case 3:
 19677  			if wireType != 2 {
 19678  				return fmt.Errorf("proto: wrong wireType = %d for field TNState", wireType)
 19679  			}
 19680  			var msglen int
 19681  			for shift := uint(0); ; shift += 7 {
 19682  				if shift >= 64 {
 19683  					return ErrIntOverflowLogservice
 19684  				}
 19685  				if iNdEx >= l {
 19686  					return io.ErrUnexpectedEOF
 19687  				}
 19688  				b := dAtA[iNdEx]
 19689  				iNdEx++
 19690  				msglen |= int(b&0x7F) << shift
 19691  				if b < 0x80 {
 19692  					break
 19693  				}
 19694  			}
 19695  			if msglen < 0 {
 19696  				return ErrInvalidLengthLogservice
 19697  			}
 19698  			postIndex := iNdEx + msglen
 19699  			if postIndex < 0 {
 19700  				return ErrInvalidLengthLogservice
 19701  			}
 19702  			if postIndex > l {
 19703  				return io.ErrUnexpectedEOF
 19704  			}
 19705  			if err := m.TNState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19706  				return err
 19707  			}
 19708  			iNdEx = postIndex
 19709  		case 4:
 19710  			if wireType != 2 {
 19711  				return fmt.Errorf("proto: wrong wireType = %d for field LogState", wireType)
 19712  			}
 19713  			var msglen int
 19714  			for shift := uint(0); ; shift += 7 {
 19715  				if shift >= 64 {
 19716  					return ErrIntOverflowLogservice
 19717  				}
 19718  				if iNdEx >= l {
 19719  					return io.ErrUnexpectedEOF
 19720  				}
 19721  				b := dAtA[iNdEx]
 19722  				iNdEx++
 19723  				msglen |= int(b&0x7F) << shift
 19724  				if b < 0x80 {
 19725  					break
 19726  				}
 19727  			}
 19728  			if msglen < 0 {
 19729  				return ErrInvalidLengthLogservice
 19730  			}
 19731  			postIndex := iNdEx + msglen
 19732  			if postIndex < 0 {
 19733  				return ErrInvalidLengthLogservice
 19734  			}
 19735  			if postIndex > l {
 19736  				return io.ErrUnexpectedEOF
 19737  			}
 19738  			if err := m.LogState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19739  				return err
 19740  			}
 19741  			iNdEx = postIndex
 19742  		case 5:
 19743  			if wireType != 2 {
 19744  				return fmt.Errorf("proto: wrong wireType = %d for field CNState", wireType)
 19745  			}
 19746  			var msglen int
 19747  			for shift := uint(0); ; shift += 7 {
 19748  				if shift >= 64 {
 19749  					return ErrIntOverflowLogservice
 19750  				}
 19751  				if iNdEx >= l {
 19752  					return io.ErrUnexpectedEOF
 19753  				}
 19754  				b := dAtA[iNdEx]
 19755  				iNdEx++
 19756  				msglen |= int(b&0x7F) << shift
 19757  				if b < 0x80 {
 19758  					break
 19759  				}
 19760  			}
 19761  			if msglen < 0 {
 19762  				return ErrInvalidLengthLogservice
 19763  			}
 19764  			postIndex := iNdEx + msglen
 19765  			if postIndex < 0 {
 19766  				return ErrInvalidLengthLogservice
 19767  			}
 19768  			if postIndex > l {
 19769  				return io.ErrUnexpectedEOF
 19770  			}
 19771  			if err := m.CNState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19772  				return err
 19773  			}
 19774  			iNdEx = postIndex
 19775  		case 6:
 19776  			if wireType != 0 {
 19777  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 19778  			}
 19779  			m.State = 0
 19780  			for shift := uint(0); ; shift += 7 {
 19781  				if shift >= 64 {
 19782  					return ErrIntOverflowLogservice
 19783  				}
 19784  				if iNdEx >= l {
 19785  					return io.ErrUnexpectedEOF
 19786  				}
 19787  				b := dAtA[iNdEx]
 19788  				iNdEx++
 19789  				m.State |= HAKeeperState(b&0x7F) << shift
 19790  				if b < 0x80 {
 19791  					break
 19792  				}
 19793  			}
 19794  		case 7:
 19795  			if wireType != 0 {
 19796  				return fmt.Errorf("proto: wrong wireType = %d for field TaskSchedulerState", wireType)
 19797  			}
 19798  			m.TaskSchedulerState = 0
 19799  			for shift := uint(0); ; shift += 7 {
 19800  				if shift >= 64 {
 19801  					return ErrIntOverflowLogservice
 19802  				}
 19803  				if iNdEx >= l {
 19804  					return io.ErrUnexpectedEOF
 19805  				}
 19806  				b := dAtA[iNdEx]
 19807  				iNdEx++
 19808  				m.TaskSchedulerState |= TaskSchedulerState(b&0x7F) << shift
 19809  				if b < 0x80 {
 19810  					break
 19811  				}
 19812  			}
 19813  		case 8:
 19814  			if wireType != 2 {
 19815  				return fmt.Errorf("proto: wrong wireType = %d for field TaskTableUser", wireType)
 19816  			}
 19817  			var msglen int
 19818  			for shift := uint(0); ; shift += 7 {
 19819  				if shift >= 64 {
 19820  					return ErrIntOverflowLogservice
 19821  				}
 19822  				if iNdEx >= l {
 19823  					return io.ErrUnexpectedEOF
 19824  				}
 19825  				b := dAtA[iNdEx]
 19826  				iNdEx++
 19827  				msglen |= int(b&0x7F) << shift
 19828  				if b < 0x80 {
 19829  					break
 19830  				}
 19831  			}
 19832  			if msglen < 0 {
 19833  				return ErrInvalidLengthLogservice
 19834  			}
 19835  			postIndex := iNdEx + msglen
 19836  			if postIndex < 0 {
 19837  				return ErrInvalidLengthLogservice
 19838  			}
 19839  			if postIndex > l {
 19840  				return io.ErrUnexpectedEOF
 19841  			}
 19842  			if err := m.TaskTableUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19843  				return err
 19844  			}
 19845  			iNdEx = postIndex
 19846  		case 9:
 19847  			if wireType != 0 {
 19848  				return fmt.Errorf("proto: wrong wireType = %d for field NextId", wireType)
 19849  			}
 19850  			m.NextId = 0
 19851  			for shift := uint(0); ; shift += 7 {
 19852  				if shift >= 64 {
 19853  					return ErrIntOverflowLogservice
 19854  				}
 19855  				if iNdEx >= l {
 19856  					return io.ErrUnexpectedEOF
 19857  				}
 19858  				b := dAtA[iNdEx]
 19859  				iNdEx++
 19860  				m.NextId |= uint64(b&0x7F) << shift
 19861  				if b < 0x80 {
 19862  					break
 19863  				}
 19864  			}
 19865  		case 10:
 19866  			if wireType != 2 {
 19867  				return fmt.Errorf("proto: wrong wireType = %d for field NextIDByKey", wireType)
 19868  			}
 19869  			var msglen int
 19870  			for shift := uint(0); ; shift += 7 {
 19871  				if shift >= 64 {
 19872  					return ErrIntOverflowLogservice
 19873  				}
 19874  				if iNdEx >= l {
 19875  					return io.ErrUnexpectedEOF
 19876  				}
 19877  				b := dAtA[iNdEx]
 19878  				iNdEx++
 19879  				msglen |= int(b&0x7F) << shift
 19880  				if b < 0x80 {
 19881  					break
 19882  				}
 19883  			}
 19884  			if msglen < 0 {
 19885  				return ErrInvalidLengthLogservice
 19886  			}
 19887  			postIndex := iNdEx + msglen
 19888  			if postIndex < 0 {
 19889  				return ErrInvalidLengthLogservice
 19890  			}
 19891  			if postIndex > l {
 19892  				return io.ErrUnexpectedEOF
 19893  			}
 19894  			if m.NextIDByKey == nil {
 19895  				m.NextIDByKey = make(map[string]uint64)
 19896  			}
 19897  			var mapkey string
 19898  			var mapvalue uint64
 19899  			for iNdEx < postIndex {
 19900  				entryPreIndex := iNdEx
 19901  				var wire uint64
 19902  				for shift := uint(0); ; shift += 7 {
 19903  					if shift >= 64 {
 19904  						return ErrIntOverflowLogservice
 19905  					}
 19906  					if iNdEx >= l {
 19907  						return io.ErrUnexpectedEOF
 19908  					}
 19909  					b := dAtA[iNdEx]
 19910  					iNdEx++
 19911  					wire |= uint64(b&0x7F) << shift
 19912  					if b < 0x80 {
 19913  						break
 19914  					}
 19915  				}
 19916  				fieldNum := int32(wire >> 3)
 19917  				if fieldNum == 1 {
 19918  					var stringLenmapkey uint64
 19919  					for shift := uint(0); ; shift += 7 {
 19920  						if shift >= 64 {
 19921  							return ErrIntOverflowLogservice
 19922  						}
 19923  						if iNdEx >= l {
 19924  							return io.ErrUnexpectedEOF
 19925  						}
 19926  						b := dAtA[iNdEx]
 19927  						iNdEx++
 19928  						stringLenmapkey |= uint64(b&0x7F) << shift
 19929  						if b < 0x80 {
 19930  							break
 19931  						}
 19932  					}
 19933  					intStringLenmapkey := int(stringLenmapkey)
 19934  					if intStringLenmapkey < 0 {
 19935  						return ErrInvalidLengthLogservice
 19936  					}
 19937  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 19938  					if postStringIndexmapkey < 0 {
 19939  						return ErrInvalidLengthLogservice
 19940  					}
 19941  					if postStringIndexmapkey > l {
 19942  						return io.ErrUnexpectedEOF
 19943  					}
 19944  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 19945  					iNdEx = postStringIndexmapkey
 19946  				} else if fieldNum == 2 {
 19947  					for shift := uint(0); ; shift += 7 {
 19948  						if shift >= 64 {
 19949  							return ErrIntOverflowLogservice
 19950  						}
 19951  						if iNdEx >= l {
 19952  							return io.ErrUnexpectedEOF
 19953  						}
 19954  						b := dAtA[iNdEx]
 19955  						iNdEx++
 19956  						mapvalue |= uint64(b&0x7F) << shift
 19957  						if b < 0x80 {
 19958  							break
 19959  						}
 19960  					}
 19961  				} else {
 19962  					iNdEx = entryPreIndex
 19963  					skippy, err := skipLogservice(dAtA[iNdEx:])
 19964  					if err != nil {
 19965  						return err
 19966  					}
 19967  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 19968  						return ErrInvalidLengthLogservice
 19969  					}
 19970  					if (iNdEx + skippy) > postIndex {
 19971  						return io.ErrUnexpectedEOF
 19972  					}
 19973  					iNdEx += skippy
 19974  				}
 19975  			}
 19976  			m.NextIDByKey[mapkey] = mapvalue
 19977  			iNdEx = postIndex
 19978  		case 11:
 19979  			if wireType != 2 {
 19980  				return fmt.Errorf("proto: wrong wireType = %d for field ProxyState", wireType)
 19981  			}
 19982  			var msglen int
 19983  			for shift := uint(0); ; shift += 7 {
 19984  				if shift >= 64 {
 19985  					return ErrIntOverflowLogservice
 19986  				}
 19987  				if iNdEx >= l {
 19988  					return io.ErrUnexpectedEOF
 19989  				}
 19990  				b := dAtA[iNdEx]
 19991  				iNdEx++
 19992  				msglen |= int(b&0x7F) << shift
 19993  				if b < 0x80 {
 19994  					break
 19995  				}
 19996  			}
 19997  			if msglen < 0 {
 19998  				return ErrInvalidLengthLogservice
 19999  			}
 20000  			postIndex := iNdEx + msglen
 20001  			if postIndex < 0 {
 20002  				return ErrInvalidLengthLogservice
 20003  			}
 20004  			if postIndex > l {
 20005  				return io.ErrUnexpectedEOF
 20006  			}
 20007  			if err := m.ProxyState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20008  				return err
 20009  			}
 20010  			iNdEx = postIndex
 20011  		case 12:
 20012  			if wireType != 2 {
 20013  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
 20014  			}
 20015  			var msglen int
 20016  			for shift := uint(0); ; shift += 7 {
 20017  				if shift >= 64 {
 20018  					return ErrIntOverflowLogservice
 20019  				}
 20020  				if iNdEx >= l {
 20021  					return io.ErrUnexpectedEOF
 20022  				}
 20023  				b := dAtA[iNdEx]
 20024  				iNdEx++
 20025  				msglen |= int(b&0x7F) << shift
 20026  				if b < 0x80 {
 20027  					break
 20028  				}
 20029  			}
 20030  			if msglen < 0 {
 20031  				return ErrInvalidLengthLogservice
 20032  			}
 20033  			postIndex := iNdEx + msglen
 20034  			if postIndex < 0 {
 20035  				return ErrInvalidLengthLogservice
 20036  			}
 20037  			if postIndex > l {
 20038  				return io.ErrUnexpectedEOF
 20039  			}
 20040  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20041  				return err
 20042  			}
 20043  			iNdEx = postIndex
 20044  		default:
 20045  			iNdEx = preIndex
 20046  			skippy, err := skipLogservice(dAtA[iNdEx:])
 20047  			if err != nil {
 20048  				return err
 20049  			}
 20050  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 20051  				return ErrInvalidLengthLogservice
 20052  			}
 20053  			if (iNdEx + skippy) > l {
 20054  				return io.ErrUnexpectedEOF
 20055  			}
 20056  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 20057  			iNdEx += skippy
 20058  		}
 20059  	}
 20060  
 20061  	if iNdEx > l {
 20062  		return io.ErrUnexpectedEOF
 20063  	}
 20064  	return nil
 20065  }
 20066  func (m *DeletedStore) Unmarshal(dAtA []byte) error {
 20067  	l := len(dAtA)
 20068  	iNdEx := 0
 20069  	for iNdEx < l {
 20070  		preIndex := iNdEx
 20071  		var wire uint64
 20072  		for shift := uint(0); ; shift += 7 {
 20073  			if shift >= 64 {
 20074  				return ErrIntOverflowLogservice
 20075  			}
 20076  			if iNdEx >= l {
 20077  				return io.ErrUnexpectedEOF
 20078  			}
 20079  			b := dAtA[iNdEx]
 20080  			iNdEx++
 20081  			wire |= uint64(b&0x7F) << shift
 20082  			if b < 0x80 {
 20083  				break
 20084  			}
 20085  		}
 20086  		fieldNum := int32(wire >> 3)
 20087  		wireType := int(wire & 0x7)
 20088  		if wireType == 4 {
 20089  			return fmt.Errorf("proto: DeletedStore: wiretype end group for non-group")
 20090  		}
 20091  		if fieldNum <= 0 {
 20092  			return fmt.Errorf("proto: DeletedStore: illegal tag %d (wire type %d)", fieldNum, wire)
 20093  		}
 20094  		switch fieldNum {
 20095  		case 1:
 20096  			if wireType != 2 {
 20097  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 20098  			}
 20099  			var stringLen uint64
 20100  			for shift := uint(0); ; shift += 7 {
 20101  				if shift >= 64 {
 20102  					return ErrIntOverflowLogservice
 20103  				}
 20104  				if iNdEx >= l {
 20105  					return io.ErrUnexpectedEOF
 20106  				}
 20107  				b := dAtA[iNdEx]
 20108  				iNdEx++
 20109  				stringLen |= uint64(b&0x7F) << shift
 20110  				if b < 0x80 {
 20111  					break
 20112  				}
 20113  			}
 20114  			intStringLen := int(stringLen)
 20115  			if intStringLen < 0 {
 20116  				return ErrInvalidLengthLogservice
 20117  			}
 20118  			postIndex := iNdEx + intStringLen
 20119  			if postIndex < 0 {
 20120  				return ErrInvalidLengthLogservice
 20121  			}
 20122  			if postIndex > l {
 20123  				return io.ErrUnexpectedEOF
 20124  			}
 20125  			m.UUID = string(dAtA[iNdEx:postIndex])
 20126  			iNdEx = postIndex
 20127  		case 2:
 20128  			if wireType != 2 {
 20129  				return fmt.Errorf("proto: wrong wireType = %d for field StoreType", wireType)
 20130  			}
 20131  			var stringLen uint64
 20132  			for shift := uint(0); ; shift += 7 {
 20133  				if shift >= 64 {
 20134  					return ErrIntOverflowLogservice
 20135  				}
 20136  				if iNdEx >= l {
 20137  					return io.ErrUnexpectedEOF
 20138  				}
 20139  				b := dAtA[iNdEx]
 20140  				iNdEx++
 20141  				stringLen |= uint64(b&0x7F) << shift
 20142  				if b < 0x80 {
 20143  					break
 20144  				}
 20145  			}
 20146  			intStringLen := int(stringLen)
 20147  			if intStringLen < 0 {
 20148  				return ErrInvalidLengthLogservice
 20149  			}
 20150  			postIndex := iNdEx + intStringLen
 20151  			if postIndex < 0 {
 20152  				return ErrInvalidLengthLogservice
 20153  			}
 20154  			if postIndex > l {
 20155  				return io.ErrUnexpectedEOF
 20156  			}
 20157  			m.StoreType = string(dAtA[iNdEx:postIndex])
 20158  			iNdEx = postIndex
 20159  		case 3:
 20160  			if wireType != 2 {
 20161  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
 20162  			}
 20163  			var stringLen uint64
 20164  			for shift := uint(0); ; shift += 7 {
 20165  				if shift >= 64 {
 20166  					return ErrIntOverflowLogservice
 20167  				}
 20168  				if iNdEx >= l {
 20169  					return io.ErrUnexpectedEOF
 20170  				}
 20171  				b := dAtA[iNdEx]
 20172  				iNdEx++
 20173  				stringLen |= uint64(b&0x7F) << shift
 20174  				if b < 0x80 {
 20175  					break
 20176  				}
 20177  			}
 20178  			intStringLen := int(stringLen)
 20179  			if intStringLen < 0 {
 20180  				return ErrInvalidLengthLogservice
 20181  			}
 20182  			postIndex := iNdEx + intStringLen
 20183  			if postIndex < 0 {
 20184  				return ErrInvalidLengthLogservice
 20185  			}
 20186  			if postIndex > l {
 20187  				return io.ErrUnexpectedEOF
 20188  			}
 20189  			m.Address = string(dAtA[iNdEx:postIndex])
 20190  			iNdEx = postIndex
 20191  		case 4:
 20192  			if wireType != 0 {
 20193  				return fmt.Errorf("proto: wrong wireType = %d for field UpTime", wireType)
 20194  			}
 20195  			m.UpTime = 0
 20196  			for shift := uint(0); ; shift += 7 {
 20197  				if shift >= 64 {
 20198  					return ErrIntOverflowLogservice
 20199  				}
 20200  				if iNdEx >= l {
 20201  					return io.ErrUnexpectedEOF
 20202  				}
 20203  				b := dAtA[iNdEx]
 20204  				iNdEx++
 20205  				m.UpTime |= int64(b&0x7F) << shift
 20206  				if b < 0x80 {
 20207  					break
 20208  				}
 20209  			}
 20210  		case 5:
 20211  			if wireType != 0 {
 20212  				return fmt.Errorf("proto: wrong wireType = %d for field DownTime", wireType)
 20213  			}
 20214  			m.DownTime = 0
 20215  			for shift := uint(0); ; shift += 7 {
 20216  				if shift >= 64 {
 20217  					return ErrIntOverflowLogservice
 20218  				}
 20219  				if iNdEx >= l {
 20220  					return io.ErrUnexpectedEOF
 20221  				}
 20222  				b := dAtA[iNdEx]
 20223  				iNdEx++
 20224  				m.DownTime |= int64(b&0x7F) << shift
 20225  				if b < 0x80 {
 20226  					break
 20227  				}
 20228  			}
 20229  		default:
 20230  			iNdEx = preIndex
 20231  			skippy, err := skipLogservice(dAtA[iNdEx:])
 20232  			if err != nil {
 20233  				return err
 20234  			}
 20235  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 20236  				return ErrInvalidLengthLogservice
 20237  			}
 20238  			if (iNdEx + skippy) > l {
 20239  				return io.ErrUnexpectedEOF
 20240  			}
 20241  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 20242  			iNdEx += skippy
 20243  		}
 20244  	}
 20245  
 20246  	if iNdEx > l {
 20247  		return io.ErrUnexpectedEOF
 20248  	}
 20249  	return nil
 20250  }
 20251  func (m *HAKeeperRSMState) Unmarshal(dAtA []byte) error {
 20252  	l := len(dAtA)
 20253  	iNdEx := 0
 20254  	for iNdEx < l {
 20255  		preIndex := iNdEx
 20256  		var wire uint64
 20257  		for shift := uint(0); ; shift += 7 {
 20258  			if shift >= 64 {
 20259  				return ErrIntOverflowLogservice
 20260  			}
 20261  			if iNdEx >= l {
 20262  				return io.ErrUnexpectedEOF
 20263  			}
 20264  			b := dAtA[iNdEx]
 20265  			iNdEx++
 20266  			wire |= uint64(b&0x7F) << shift
 20267  			if b < 0x80 {
 20268  				break
 20269  			}
 20270  		}
 20271  		fieldNum := int32(wire >> 3)
 20272  		wireType := int(wire & 0x7)
 20273  		if wireType == 4 {
 20274  			return fmt.Errorf("proto: HAKeeperRSMState: wiretype end group for non-group")
 20275  		}
 20276  		if fieldNum <= 0 {
 20277  			return fmt.Errorf("proto: HAKeeperRSMState: illegal tag %d (wire type %d)", fieldNum, wire)
 20278  		}
 20279  		switch fieldNum {
 20280  		case 1:
 20281  			if wireType != 0 {
 20282  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 20283  			}
 20284  			m.Index = 0
 20285  			for shift := uint(0); ; shift += 7 {
 20286  				if shift >= 64 {
 20287  					return ErrIntOverflowLogservice
 20288  				}
 20289  				if iNdEx >= l {
 20290  					return io.ErrUnexpectedEOF
 20291  				}
 20292  				b := dAtA[iNdEx]
 20293  				iNdEx++
 20294  				m.Index |= uint64(b&0x7F) << shift
 20295  				if b < 0x80 {
 20296  					break
 20297  				}
 20298  			}
 20299  		case 2:
 20300  			if wireType != 0 {
 20301  				return fmt.Errorf("proto: wrong wireType = %d for field Tick", wireType)
 20302  			}
 20303  			m.Tick = 0
 20304  			for shift := uint(0); ; shift += 7 {
 20305  				if shift >= 64 {
 20306  					return ErrIntOverflowLogservice
 20307  				}
 20308  				if iNdEx >= l {
 20309  					return io.ErrUnexpectedEOF
 20310  				}
 20311  				b := dAtA[iNdEx]
 20312  				iNdEx++
 20313  				m.Tick |= uint64(b&0x7F) << shift
 20314  				if b < 0x80 {
 20315  					break
 20316  				}
 20317  			}
 20318  		case 3:
 20319  			if wireType != 0 {
 20320  				return fmt.Errorf("proto: wrong wireType = %d for field NextID", wireType)
 20321  			}
 20322  			m.NextID = 0
 20323  			for shift := uint(0); ; shift += 7 {
 20324  				if shift >= 64 {
 20325  					return ErrIntOverflowLogservice
 20326  				}
 20327  				if iNdEx >= l {
 20328  					return io.ErrUnexpectedEOF
 20329  				}
 20330  				b := dAtA[iNdEx]
 20331  				iNdEx++
 20332  				m.NextID |= uint64(b&0x7F) << shift
 20333  				if b < 0x80 {
 20334  					break
 20335  				}
 20336  			}
 20337  		case 4:
 20338  			if wireType != 2 {
 20339  				return fmt.Errorf("proto: wrong wireType = %d for field NextIDByKey", wireType)
 20340  			}
 20341  			var msglen int
 20342  			for shift := uint(0); ; shift += 7 {
 20343  				if shift >= 64 {
 20344  					return ErrIntOverflowLogservice
 20345  				}
 20346  				if iNdEx >= l {
 20347  					return io.ErrUnexpectedEOF
 20348  				}
 20349  				b := dAtA[iNdEx]
 20350  				iNdEx++
 20351  				msglen |= int(b&0x7F) << shift
 20352  				if b < 0x80 {
 20353  					break
 20354  				}
 20355  			}
 20356  			if msglen < 0 {
 20357  				return ErrInvalidLengthLogservice
 20358  			}
 20359  			postIndex := iNdEx + msglen
 20360  			if postIndex < 0 {
 20361  				return ErrInvalidLengthLogservice
 20362  			}
 20363  			if postIndex > l {
 20364  				return io.ErrUnexpectedEOF
 20365  			}
 20366  			if m.NextIDByKey == nil {
 20367  				m.NextIDByKey = make(map[string]uint64)
 20368  			}
 20369  			var mapkey string
 20370  			var mapvalue uint64
 20371  			for iNdEx < postIndex {
 20372  				entryPreIndex := iNdEx
 20373  				var wire uint64
 20374  				for shift := uint(0); ; shift += 7 {
 20375  					if shift >= 64 {
 20376  						return ErrIntOverflowLogservice
 20377  					}
 20378  					if iNdEx >= l {
 20379  						return io.ErrUnexpectedEOF
 20380  					}
 20381  					b := dAtA[iNdEx]
 20382  					iNdEx++
 20383  					wire |= uint64(b&0x7F) << shift
 20384  					if b < 0x80 {
 20385  						break
 20386  					}
 20387  				}
 20388  				fieldNum := int32(wire >> 3)
 20389  				if fieldNum == 1 {
 20390  					var stringLenmapkey uint64
 20391  					for shift := uint(0); ; shift += 7 {
 20392  						if shift >= 64 {
 20393  							return ErrIntOverflowLogservice
 20394  						}
 20395  						if iNdEx >= l {
 20396  							return io.ErrUnexpectedEOF
 20397  						}
 20398  						b := dAtA[iNdEx]
 20399  						iNdEx++
 20400  						stringLenmapkey |= uint64(b&0x7F) << shift
 20401  						if b < 0x80 {
 20402  							break
 20403  						}
 20404  					}
 20405  					intStringLenmapkey := int(stringLenmapkey)
 20406  					if intStringLenmapkey < 0 {
 20407  						return ErrInvalidLengthLogservice
 20408  					}
 20409  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 20410  					if postStringIndexmapkey < 0 {
 20411  						return ErrInvalidLengthLogservice
 20412  					}
 20413  					if postStringIndexmapkey > l {
 20414  						return io.ErrUnexpectedEOF
 20415  					}
 20416  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 20417  					iNdEx = postStringIndexmapkey
 20418  				} else if fieldNum == 2 {
 20419  					for shift := uint(0); ; shift += 7 {
 20420  						if shift >= 64 {
 20421  							return ErrIntOverflowLogservice
 20422  						}
 20423  						if iNdEx >= l {
 20424  							return io.ErrUnexpectedEOF
 20425  						}
 20426  						b := dAtA[iNdEx]
 20427  						iNdEx++
 20428  						mapvalue |= uint64(b&0x7F) << shift
 20429  						if b < 0x80 {
 20430  							break
 20431  						}
 20432  					}
 20433  				} else {
 20434  					iNdEx = entryPreIndex
 20435  					skippy, err := skipLogservice(dAtA[iNdEx:])
 20436  					if err != nil {
 20437  						return err
 20438  					}
 20439  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 20440  						return ErrInvalidLengthLogservice
 20441  					}
 20442  					if (iNdEx + skippy) > postIndex {
 20443  						return io.ErrUnexpectedEOF
 20444  					}
 20445  					iNdEx += skippy
 20446  				}
 20447  			}
 20448  			m.NextIDByKey[mapkey] = mapvalue
 20449  			iNdEx = postIndex
 20450  		case 5:
 20451  			if wireType != 0 {
 20452  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
 20453  			}
 20454  			m.Term = 0
 20455  			for shift := uint(0); ; shift += 7 {
 20456  				if shift >= 64 {
 20457  					return ErrIntOverflowLogservice
 20458  				}
 20459  				if iNdEx >= l {
 20460  					return io.ErrUnexpectedEOF
 20461  				}
 20462  				b := dAtA[iNdEx]
 20463  				iNdEx++
 20464  				m.Term |= uint64(b&0x7F) << shift
 20465  				if b < 0x80 {
 20466  					break
 20467  				}
 20468  			}
 20469  		case 6:
 20470  			if wireType != 0 {
 20471  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 20472  			}
 20473  			m.State = 0
 20474  			for shift := uint(0); ; shift += 7 {
 20475  				if shift >= 64 {
 20476  					return ErrIntOverflowLogservice
 20477  				}
 20478  				if iNdEx >= l {
 20479  					return io.ErrUnexpectedEOF
 20480  				}
 20481  				b := dAtA[iNdEx]
 20482  				iNdEx++
 20483  				m.State |= HAKeeperState(b&0x7F) << shift
 20484  				if b < 0x80 {
 20485  					break
 20486  				}
 20487  			}
 20488  		case 7:
 20489  			if wireType != 0 {
 20490  				return fmt.Errorf("proto: wrong wireType = %d for field TaskSchedulerState", wireType)
 20491  			}
 20492  			m.TaskSchedulerState = 0
 20493  			for shift := uint(0); ; shift += 7 {
 20494  				if shift >= 64 {
 20495  					return ErrIntOverflowLogservice
 20496  				}
 20497  				if iNdEx >= l {
 20498  					return io.ErrUnexpectedEOF
 20499  				}
 20500  				b := dAtA[iNdEx]
 20501  				iNdEx++
 20502  				m.TaskSchedulerState |= TaskSchedulerState(b&0x7F) << shift
 20503  				if b < 0x80 {
 20504  					break
 20505  				}
 20506  			}
 20507  		case 8:
 20508  			if wireType != 2 {
 20509  				return fmt.Errorf("proto: wrong wireType = %d for field ScheduleCommands", wireType)
 20510  			}
 20511  			var msglen int
 20512  			for shift := uint(0); ; shift += 7 {
 20513  				if shift >= 64 {
 20514  					return ErrIntOverflowLogservice
 20515  				}
 20516  				if iNdEx >= l {
 20517  					return io.ErrUnexpectedEOF
 20518  				}
 20519  				b := dAtA[iNdEx]
 20520  				iNdEx++
 20521  				msglen |= int(b&0x7F) << shift
 20522  				if b < 0x80 {
 20523  					break
 20524  				}
 20525  			}
 20526  			if msglen < 0 {
 20527  				return ErrInvalidLengthLogservice
 20528  			}
 20529  			postIndex := iNdEx + msglen
 20530  			if postIndex < 0 {
 20531  				return ErrInvalidLengthLogservice
 20532  			}
 20533  			if postIndex > l {
 20534  				return io.ErrUnexpectedEOF
 20535  			}
 20536  			if m.ScheduleCommands == nil {
 20537  				m.ScheduleCommands = make(map[string]CommandBatch)
 20538  			}
 20539  			var mapkey string
 20540  			mapvalue := &CommandBatch{}
 20541  			for iNdEx < postIndex {
 20542  				entryPreIndex := iNdEx
 20543  				var wire uint64
 20544  				for shift := uint(0); ; shift += 7 {
 20545  					if shift >= 64 {
 20546  						return ErrIntOverflowLogservice
 20547  					}
 20548  					if iNdEx >= l {
 20549  						return io.ErrUnexpectedEOF
 20550  					}
 20551  					b := dAtA[iNdEx]
 20552  					iNdEx++
 20553  					wire |= uint64(b&0x7F) << shift
 20554  					if b < 0x80 {
 20555  						break
 20556  					}
 20557  				}
 20558  				fieldNum := int32(wire >> 3)
 20559  				if fieldNum == 1 {
 20560  					var stringLenmapkey uint64
 20561  					for shift := uint(0); ; shift += 7 {
 20562  						if shift >= 64 {
 20563  							return ErrIntOverflowLogservice
 20564  						}
 20565  						if iNdEx >= l {
 20566  							return io.ErrUnexpectedEOF
 20567  						}
 20568  						b := dAtA[iNdEx]
 20569  						iNdEx++
 20570  						stringLenmapkey |= uint64(b&0x7F) << shift
 20571  						if b < 0x80 {
 20572  							break
 20573  						}
 20574  					}
 20575  					intStringLenmapkey := int(stringLenmapkey)
 20576  					if intStringLenmapkey < 0 {
 20577  						return ErrInvalidLengthLogservice
 20578  					}
 20579  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 20580  					if postStringIndexmapkey < 0 {
 20581  						return ErrInvalidLengthLogservice
 20582  					}
 20583  					if postStringIndexmapkey > l {
 20584  						return io.ErrUnexpectedEOF
 20585  					}
 20586  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 20587  					iNdEx = postStringIndexmapkey
 20588  				} else if fieldNum == 2 {
 20589  					var mapmsglen int
 20590  					for shift := uint(0); ; shift += 7 {
 20591  						if shift >= 64 {
 20592  							return ErrIntOverflowLogservice
 20593  						}
 20594  						if iNdEx >= l {
 20595  							return io.ErrUnexpectedEOF
 20596  						}
 20597  						b := dAtA[iNdEx]
 20598  						iNdEx++
 20599  						mapmsglen |= int(b&0x7F) << shift
 20600  						if b < 0x80 {
 20601  							break
 20602  						}
 20603  					}
 20604  					if mapmsglen < 0 {
 20605  						return ErrInvalidLengthLogservice
 20606  					}
 20607  					postmsgIndex := iNdEx + mapmsglen
 20608  					if postmsgIndex < 0 {
 20609  						return ErrInvalidLengthLogservice
 20610  					}
 20611  					if postmsgIndex > l {
 20612  						return io.ErrUnexpectedEOF
 20613  					}
 20614  					mapvalue = &CommandBatch{}
 20615  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 20616  						return err
 20617  					}
 20618  					iNdEx = postmsgIndex
 20619  				} else {
 20620  					iNdEx = entryPreIndex
 20621  					skippy, err := skipLogservice(dAtA[iNdEx:])
 20622  					if err != nil {
 20623  						return err
 20624  					}
 20625  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 20626  						return ErrInvalidLengthLogservice
 20627  					}
 20628  					if (iNdEx + skippy) > postIndex {
 20629  						return io.ErrUnexpectedEOF
 20630  					}
 20631  					iNdEx += skippy
 20632  				}
 20633  			}
 20634  			m.ScheduleCommands[mapkey] = *mapvalue
 20635  			iNdEx = postIndex
 20636  		case 9:
 20637  			if wireType != 2 {
 20638  				return fmt.Errorf("proto: wrong wireType = %d for field LogShards", wireType)
 20639  			}
 20640  			var msglen int
 20641  			for shift := uint(0); ; shift += 7 {
 20642  				if shift >= 64 {
 20643  					return ErrIntOverflowLogservice
 20644  				}
 20645  				if iNdEx >= l {
 20646  					return io.ErrUnexpectedEOF
 20647  				}
 20648  				b := dAtA[iNdEx]
 20649  				iNdEx++
 20650  				msglen |= int(b&0x7F) << shift
 20651  				if b < 0x80 {
 20652  					break
 20653  				}
 20654  			}
 20655  			if msglen < 0 {
 20656  				return ErrInvalidLengthLogservice
 20657  			}
 20658  			postIndex := iNdEx + msglen
 20659  			if postIndex < 0 {
 20660  				return ErrInvalidLengthLogservice
 20661  			}
 20662  			if postIndex > l {
 20663  				return io.ErrUnexpectedEOF
 20664  			}
 20665  			if m.LogShards == nil {
 20666  				m.LogShards = make(map[string]uint64)
 20667  			}
 20668  			var mapkey string
 20669  			var mapvalue uint64
 20670  			for iNdEx < postIndex {
 20671  				entryPreIndex := iNdEx
 20672  				var wire uint64
 20673  				for shift := uint(0); ; shift += 7 {
 20674  					if shift >= 64 {
 20675  						return ErrIntOverflowLogservice
 20676  					}
 20677  					if iNdEx >= l {
 20678  						return io.ErrUnexpectedEOF
 20679  					}
 20680  					b := dAtA[iNdEx]
 20681  					iNdEx++
 20682  					wire |= uint64(b&0x7F) << shift
 20683  					if b < 0x80 {
 20684  						break
 20685  					}
 20686  				}
 20687  				fieldNum := int32(wire >> 3)
 20688  				if fieldNum == 1 {
 20689  					var stringLenmapkey uint64
 20690  					for shift := uint(0); ; shift += 7 {
 20691  						if shift >= 64 {
 20692  							return ErrIntOverflowLogservice
 20693  						}
 20694  						if iNdEx >= l {
 20695  							return io.ErrUnexpectedEOF
 20696  						}
 20697  						b := dAtA[iNdEx]
 20698  						iNdEx++
 20699  						stringLenmapkey |= uint64(b&0x7F) << shift
 20700  						if b < 0x80 {
 20701  							break
 20702  						}
 20703  					}
 20704  					intStringLenmapkey := int(stringLenmapkey)
 20705  					if intStringLenmapkey < 0 {
 20706  						return ErrInvalidLengthLogservice
 20707  					}
 20708  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 20709  					if postStringIndexmapkey < 0 {
 20710  						return ErrInvalidLengthLogservice
 20711  					}
 20712  					if postStringIndexmapkey > l {
 20713  						return io.ErrUnexpectedEOF
 20714  					}
 20715  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 20716  					iNdEx = postStringIndexmapkey
 20717  				} else if fieldNum == 2 {
 20718  					for shift := uint(0); ; shift += 7 {
 20719  						if shift >= 64 {
 20720  							return ErrIntOverflowLogservice
 20721  						}
 20722  						if iNdEx >= l {
 20723  							return io.ErrUnexpectedEOF
 20724  						}
 20725  						b := dAtA[iNdEx]
 20726  						iNdEx++
 20727  						mapvalue |= uint64(b&0x7F) << shift
 20728  						if b < 0x80 {
 20729  							break
 20730  						}
 20731  					}
 20732  				} else {
 20733  					iNdEx = entryPreIndex
 20734  					skippy, err := skipLogservice(dAtA[iNdEx:])
 20735  					if err != nil {
 20736  						return err
 20737  					}
 20738  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 20739  						return ErrInvalidLengthLogservice
 20740  					}
 20741  					if (iNdEx + skippy) > postIndex {
 20742  						return io.ErrUnexpectedEOF
 20743  					}
 20744  					iNdEx += skippy
 20745  				}
 20746  			}
 20747  			m.LogShards[mapkey] = mapvalue
 20748  			iNdEx = postIndex
 20749  		case 10:
 20750  			if wireType != 2 {
 20751  				return fmt.Errorf("proto: wrong wireType = %d for field CNState", wireType)
 20752  			}
 20753  			var msglen int
 20754  			for shift := uint(0); ; shift += 7 {
 20755  				if shift >= 64 {
 20756  					return ErrIntOverflowLogservice
 20757  				}
 20758  				if iNdEx >= l {
 20759  					return io.ErrUnexpectedEOF
 20760  				}
 20761  				b := dAtA[iNdEx]
 20762  				iNdEx++
 20763  				msglen |= int(b&0x7F) << shift
 20764  				if b < 0x80 {
 20765  					break
 20766  				}
 20767  			}
 20768  			if msglen < 0 {
 20769  				return ErrInvalidLengthLogservice
 20770  			}
 20771  			postIndex := iNdEx + msglen
 20772  			if postIndex < 0 {
 20773  				return ErrInvalidLengthLogservice
 20774  			}
 20775  			if postIndex > l {
 20776  				return io.ErrUnexpectedEOF
 20777  			}
 20778  			if err := m.CNState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20779  				return err
 20780  			}
 20781  			iNdEx = postIndex
 20782  		case 11:
 20783  			if wireType != 2 {
 20784  				return fmt.Errorf("proto: wrong wireType = %d for field TNState", wireType)
 20785  			}
 20786  			var msglen int
 20787  			for shift := uint(0); ; shift += 7 {
 20788  				if shift >= 64 {
 20789  					return ErrIntOverflowLogservice
 20790  				}
 20791  				if iNdEx >= l {
 20792  					return io.ErrUnexpectedEOF
 20793  				}
 20794  				b := dAtA[iNdEx]
 20795  				iNdEx++
 20796  				msglen |= int(b&0x7F) << shift
 20797  				if b < 0x80 {
 20798  					break
 20799  				}
 20800  			}
 20801  			if msglen < 0 {
 20802  				return ErrInvalidLengthLogservice
 20803  			}
 20804  			postIndex := iNdEx + msglen
 20805  			if postIndex < 0 {
 20806  				return ErrInvalidLengthLogservice
 20807  			}
 20808  			if postIndex > l {
 20809  				return io.ErrUnexpectedEOF
 20810  			}
 20811  			if err := m.TNState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20812  				return err
 20813  			}
 20814  			iNdEx = postIndex
 20815  		case 12:
 20816  			if wireType != 2 {
 20817  				return fmt.Errorf("proto: wrong wireType = %d for field LogState", wireType)
 20818  			}
 20819  			var msglen int
 20820  			for shift := uint(0); ; shift += 7 {
 20821  				if shift >= 64 {
 20822  					return ErrIntOverflowLogservice
 20823  				}
 20824  				if iNdEx >= l {
 20825  					return io.ErrUnexpectedEOF
 20826  				}
 20827  				b := dAtA[iNdEx]
 20828  				iNdEx++
 20829  				msglen |= int(b&0x7F) << shift
 20830  				if b < 0x80 {
 20831  					break
 20832  				}
 20833  			}
 20834  			if msglen < 0 {
 20835  				return ErrInvalidLengthLogservice
 20836  			}
 20837  			postIndex := iNdEx + msglen
 20838  			if postIndex < 0 {
 20839  				return ErrInvalidLengthLogservice
 20840  			}
 20841  			if postIndex > l {
 20842  				return io.ErrUnexpectedEOF
 20843  			}
 20844  			if err := m.LogState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20845  				return err
 20846  			}
 20847  			iNdEx = postIndex
 20848  		case 13:
 20849  			if wireType != 2 {
 20850  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterInfo", wireType)
 20851  			}
 20852  			var msglen int
 20853  			for shift := uint(0); ; shift += 7 {
 20854  				if shift >= 64 {
 20855  					return ErrIntOverflowLogservice
 20856  				}
 20857  				if iNdEx >= l {
 20858  					return io.ErrUnexpectedEOF
 20859  				}
 20860  				b := dAtA[iNdEx]
 20861  				iNdEx++
 20862  				msglen |= int(b&0x7F) << shift
 20863  				if b < 0x80 {
 20864  					break
 20865  				}
 20866  			}
 20867  			if msglen < 0 {
 20868  				return ErrInvalidLengthLogservice
 20869  			}
 20870  			postIndex := iNdEx + msglen
 20871  			if postIndex < 0 {
 20872  				return ErrInvalidLengthLogservice
 20873  			}
 20874  			if postIndex > l {
 20875  				return io.ErrUnexpectedEOF
 20876  			}
 20877  			if err := m.ClusterInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20878  				return err
 20879  			}
 20880  			iNdEx = postIndex
 20881  		case 14:
 20882  			if wireType != 2 {
 20883  				return fmt.Errorf("proto: wrong wireType = %d for field TaskTableUser", wireType)
 20884  			}
 20885  			var msglen int
 20886  			for shift := uint(0); ; shift += 7 {
 20887  				if shift >= 64 {
 20888  					return ErrIntOverflowLogservice
 20889  				}
 20890  				if iNdEx >= l {
 20891  					return io.ErrUnexpectedEOF
 20892  				}
 20893  				b := dAtA[iNdEx]
 20894  				iNdEx++
 20895  				msglen |= int(b&0x7F) << shift
 20896  				if b < 0x80 {
 20897  					break
 20898  				}
 20899  			}
 20900  			if msglen < 0 {
 20901  				return ErrInvalidLengthLogservice
 20902  			}
 20903  			postIndex := iNdEx + msglen
 20904  			if postIndex < 0 {
 20905  				return ErrInvalidLengthLogservice
 20906  			}
 20907  			if postIndex > l {
 20908  				return io.ErrUnexpectedEOF
 20909  			}
 20910  			if err := m.TaskTableUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20911  				return err
 20912  			}
 20913  			iNdEx = postIndex
 20914  		case 15:
 20915  			if wireType != 2 {
 20916  				return fmt.Errorf("proto: wrong wireType = %d for field ProxyState", wireType)
 20917  			}
 20918  			var msglen int
 20919  			for shift := uint(0); ; shift += 7 {
 20920  				if shift >= 64 {
 20921  					return ErrIntOverflowLogservice
 20922  				}
 20923  				if iNdEx >= l {
 20924  					return io.ErrUnexpectedEOF
 20925  				}
 20926  				b := dAtA[iNdEx]
 20927  				iNdEx++
 20928  				msglen |= int(b&0x7F) << shift
 20929  				if b < 0x80 {
 20930  					break
 20931  				}
 20932  			}
 20933  			if msglen < 0 {
 20934  				return ErrInvalidLengthLogservice
 20935  			}
 20936  			postIndex := iNdEx + msglen
 20937  			if postIndex < 0 {
 20938  				return ErrInvalidLengthLogservice
 20939  			}
 20940  			if postIndex > l {
 20941  				return io.ErrUnexpectedEOF
 20942  			}
 20943  			if err := m.ProxyState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20944  				return err
 20945  			}
 20946  			iNdEx = postIndex
 20947  		case 16:
 20948  			if wireType != 2 {
 20949  				return fmt.Errorf("proto: wrong wireType = %d for field DeletedStores", wireType)
 20950  			}
 20951  			var msglen int
 20952  			for shift := uint(0); ; shift += 7 {
 20953  				if shift >= 64 {
 20954  					return ErrIntOverflowLogservice
 20955  				}
 20956  				if iNdEx >= l {
 20957  					return io.ErrUnexpectedEOF
 20958  				}
 20959  				b := dAtA[iNdEx]
 20960  				iNdEx++
 20961  				msglen |= int(b&0x7F) << shift
 20962  				if b < 0x80 {
 20963  					break
 20964  				}
 20965  			}
 20966  			if msglen < 0 {
 20967  				return ErrInvalidLengthLogservice
 20968  			}
 20969  			postIndex := iNdEx + msglen
 20970  			if postIndex < 0 {
 20971  				return ErrInvalidLengthLogservice
 20972  			}
 20973  			if postIndex > l {
 20974  				return io.ErrUnexpectedEOF
 20975  			}
 20976  			m.DeletedStores = append(m.DeletedStores, DeletedStore{})
 20977  			if err := m.DeletedStores[len(m.DeletedStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 20978  				return err
 20979  			}
 20980  			iNdEx = postIndex
 20981  		default:
 20982  			iNdEx = preIndex
 20983  			skippy, err := skipLogservice(dAtA[iNdEx:])
 20984  			if err != nil {
 20985  				return err
 20986  			}
 20987  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 20988  				return ErrInvalidLengthLogservice
 20989  			}
 20990  			if (iNdEx + skippy) > l {
 20991  				return io.ErrUnexpectedEOF
 20992  			}
 20993  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 20994  			iNdEx += skippy
 20995  		}
 20996  	}
 20997  
 20998  	if iNdEx > l {
 20999  		return io.ErrUnexpectedEOF
 21000  	}
 21001  	return nil
 21002  }
 21003  func (m *ReplicaInfo) Unmarshal(dAtA []byte) error {
 21004  	l := len(dAtA)
 21005  	iNdEx := 0
 21006  	for iNdEx < l {
 21007  		preIndex := iNdEx
 21008  		var wire uint64
 21009  		for shift := uint(0); ; shift += 7 {
 21010  			if shift >= 64 {
 21011  				return ErrIntOverflowLogservice
 21012  			}
 21013  			if iNdEx >= l {
 21014  				return io.ErrUnexpectedEOF
 21015  			}
 21016  			b := dAtA[iNdEx]
 21017  			iNdEx++
 21018  			wire |= uint64(b&0x7F) << shift
 21019  			if b < 0x80 {
 21020  				break
 21021  			}
 21022  		}
 21023  		fieldNum := int32(wire >> 3)
 21024  		wireType := int(wire & 0x7)
 21025  		if wireType == 4 {
 21026  			return fmt.Errorf("proto: ReplicaInfo: wiretype end group for non-group")
 21027  		}
 21028  		if fieldNum <= 0 {
 21029  			return fmt.Errorf("proto: ReplicaInfo: illegal tag %d (wire type %d)", fieldNum, wire)
 21030  		}
 21031  		switch fieldNum {
 21032  		case 1:
 21033  			if wireType != 2 {
 21034  				return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
 21035  			}
 21036  			var stringLen uint64
 21037  			for shift := uint(0); ; shift += 7 {
 21038  				if shift >= 64 {
 21039  					return ErrIntOverflowLogservice
 21040  				}
 21041  				if iNdEx >= l {
 21042  					return io.ErrUnexpectedEOF
 21043  				}
 21044  				b := dAtA[iNdEx]
 21045  				iNdEx++
 21046  				stringLen |= uint64(b&0x7F) << shift
 21047  				if b < 0x80 {
 21048  					break
 21049  				}
 21050  			}
 21051  			intStringLen := int(stringLen)
 21052  			if intStringLen < 0 {
 21053  				return ErrInvalidLengthLogservice
 21054  			}
 21055  			postIndex := iNdEx + intStringLen
 21056  			if postIndex < 0 {
 21057  				return ErrInvalidLengthLogservice
 21058  			}
 21059  			if postIndex > l {
 21060  				return io.ErrUnexpectedEOF
 21061  			}
 21062  			m.UUID = string(dAtA[iNdEx:postIndex])
 21063  			iNdEx = postIndex
 21064  		case 2:
 21065  			if wireType != 2 {
 21066  				return fmt.Errorf("proto: wrong wireType = %d for field ServiceAddress", wireType)
 21067  			}
 21068  			var stringLen uint64
 21069  			for shift := uint(0); ; shift += 7 {
 21070  				if shift >= 64 {
 21071  					return ErrIntOverflowLogservice
 21072  				}
 21073  				if iNdEx >= l {
 21074  					return io.ErrUnexpectedEOF
 21075  				}
 21076  				b := dAtA[iNdEx]
 21077  				iNdEx++
 21078  				stringLen |= uint64(b&0x7F) << shift
 21079  				if b < 0x80 {
 21080  					break
 21081  				}
 21082  			}
 21083  			intStringLen := int(stringLen)
 21084  			if intStringLen < 0 {
 21085  				return ErrInvalidLengthLogservice
 21086  			}
 21087  			postIndex := iNdEx + intStringLen
 21088  			if postIndex < 0 {
 21089  				return ErrInvalidLengthLogservice
 21090  			}
 21091  			if postIndex > l {
 21092  				return io.ErrUnexpectedEOF
 21093  			}
 21094  			m.ServiceAddress = string(dAtA[iNdEx:postIndex])
 21095  			iNdEx = postIndex
 21096  		default:
 21097  			iNdEx = preIndex
 21098  			skippy, err := skipLogservice(dAtA[iNdEx:])
 21099  			if err != nil {
 21100  				return err
 21101  			}
 21102  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 21103  				return ErrInvalidLengthLogservice
 21104  			}
 21105  			if (iNdEx + skippy) > l {
 21106  				return io.ErrUnexpectedEOF
 21107  			}
 21108  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 21109  			iNdEx += skippy
 21110  		}
 21111  	}
 21112  
 21113  	if iNdEx > l {
 21114  		return io.ErrUnexpectedEOF
 21115  	}
 21116  	return nil
 21117  }
 21118  func (m *ShardInfoQueryResult) Unmarshal(dAtA []byte) error {
 21119  	l := len(dAtA)
 21120  	iNdEx := 0
 21121  	for iNdEx < l {
 21122  		preIndex := iNdEx
 21123  		var wire uint64
 21124  		for shift := uint(0); ; shift += 7 {
 21125  			if shift >= 64 {
 21126  				return ErrIntOverflowLogservice
 21127  			}
 21128  			if iNdEx >= l {
 21129  				return io.ErrUnexpectedEOF
 21130  			}
 21131  			b := dAtA[iNdEx]
 21132  			iNdEx++
 21133  			wire |= uint64(b&0x7F) << shift
 21134  			if b < 0x80 {
 21135  				break
 21136  			}
 21137  		}
 21138  		fieldNum := int32(wire >> 3)
 21139  		wireType := int(wire & 0x7)
 21140  		if wireType == 4 {
 21141  			return fmt.Errorf("proto: ShardInfoQueryResult: wiretype end group for non-group")
 21142  		}
 21143  		if fieldNum <= 0 {
 21144  			return fmt.Errorf("proto: ShardInfoQueryResult: illegal tag %d (wire type %d)", fieldNum, wire)
 21145  		}
 21146  		switch fieldNum {
 21147  		case 1:
 21148  			if wireType != 0 {
 21149  				return fmt.Errorf("proto: wrong wireType = %d for field ShardID", wireType)
 21150  			}
 21151  			m.ShardID = 0
 21152  			for shift := uint(0); ; shift += 7 {
 21153  				if shift >= 64 {
 21154  					return ErrIntOverflowLogservice
 21155  				}
 21156  				if iNdEx >= l {
 21157  					return io.ErrUnexpectedEOF
 21158  				}
 21159  				b := dAtA[iNdEx]
 21160  				iNdEx++
 21161  				m.ShardID |= uint64(b&0x7F) << shift
 21162  				if b < 0x80 {
 21163  					break
 21164  				}
 21165  			}
 21166  		case 2:
 21167  			if wireType != 2 {
 21168  				return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
 21169  			}
 21170  			var msglen int
 21171  			for shift := uint(0); ; shift += 7 {
 21172  				if shift >= 64 {
 21173  					return ErrIntOverflowLogservice
 21174  				}
 21175  				if iNdEx >= l {
 21176  					return io.ErrUnexpectedEOF
 21177  				}
 21178  				b := dAtA[iNdEx]
 21179  				iNdEx++
 21180  				msglen |= int(b&0x7F) << shift
 21181  				if b < 0x80 {
 21182  					break
 21183  				}
 21184  			}
 21185  			if msglen < 0 {
 21186  				return ErrInvalidLengthLogservice
 21187  			}
 21188  			postIndex := iNdEx + msglen
 21189  			if postIndex < 0 {
 21190  				return ErrInvalidLengthLogservice
 21191  			}
 21192  			if postIndex > l {
 21193  				return io.ErrUnexpectedEOF
 21194  			}
 21195  			if m.Replicas == nil {
 21196  				m.Replicas = make(map[uint64]ReplicaInfo)
 21197  			}
 21198  			var mapkey uint64
 21199  			mapvalue := &ReplicaInfo{}
 21200  			for iNdEx < postIndex {
 21201  				entryPreIndex := iNdEx
 21202  				var wire uint64
 21203  				for shift := uint(0); ; shift += 7 {
 21204  					if shift >= 64 {
 21205  						return ErrIntOverflowLogservice
 21206  					}
 21207  					if iNdEx >= l {
 21208  						return io.ErrUnexpectedEOF
 21209  					}
 21210  					b := dAtA[iNdEx]
 21211  					iNdEx++
 21212  					wire |= uint64(b&0x7F) << shift
 21213  					if b < 0x80 {
 21214  						break
 21215  					}
 21216  				}
 21217  				fieldNum := int32(wire >> 3)
 21218  				if fieldNum == 1 {
 21219  					for shift := uint(0); ; shift += 7 {
 21220  						if shift >= 64 {
 21221  							return ErrIntOverflowLogservice
 21222  						}
 21223  						if iNdEx >= l {
 21224  							return io.ErrUnexpectedEOF
 21225  						}
 21226  						b := dAtA[iNdEx]
 21227  						iNdEx++
 21228  						mapkey |= uint64(b&0x7F) << shift
 21229  						if b < 0x80 {
 21230  							break
 21231  						}
 21232  					}
 21233  				} else if fieldNum == 2 {
 21234  					var mapmsglen int
 21235  					for shift := uint(0); ; shift += 7 {
 21236  						if shift >= 64 {
 21237  							return ErrIntOverflowLogservice
 21238  						}
 21239  						if iNdEx >= l {
 21240  							return io.ErrUnexpectedEOF
 21241  						}
 21242  						b := dAtA[iNdEx]
 21243  						iNdEx++
 21244  						mapmsglen |= int(b&0x7F) << shift
 21245  						if b < 0x80 {
 21246  							break
 21247  						}
 21248  					}
 21249  					if mapmsglen < 0 {
 21250  						return ErrInvalidLengthLogservice
 21251  					}
 21252  					postmsgIndex := iNdEx + mapmsglen
 21253  					if postmsgIndex < 0 {
 21254  						return ErrInvalidLengthLogservice
 21255  					}
 21256  					if postmsgIndex > l {
 21257  						return io.ErrUnexpectedEOF
 21258  					}
 21259  					mapvalue = &ReplicaInfo{}
 21260  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 21261  						return err
 21262  					}
 21263  					iNdEx = postmsgIndex
 21264  				} else {
 21265  					iNdEx = entryPreIndex
 21266  					skippy, err := skipLogservice(dAtA[iNdEx:])
 21267  					if err != nil {
 21268  						return err
 21269  					}
 21270  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 21271  						return ErrInvalidLengthLogservice
 21272  					}
 21273  					if (iNdEx + skippy) > postIndex {
 21274  						return io.ErrUnexpectedEOF
 21275  					}
 21276  					iNdEx += skippy
 21277  				}
 21278  			}
 21279  			m.Replicas[mapkey] = *mapvalue
 21280  			iNdEx = postIndex
 21281  		case 3:
 21282  			if wireType != 0 {
 21283  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
 21284  			}
 21285  			m.Epoch = 0
 21286  			for shift := uint(0); ; shift += 7 {
 21287  				if shift >= 64 {
 21288  					return ErrIntOverflowLogservice
 21289  				}
 21290  				if iNdEx >= l {
 21291  					return io.ErrUnexpectedEOF
 21292  				}
 21293  				b := dAtA[iNdEx]
 21294  				iNdEx++
 21295  				m.Epoch |= uint64(b&0x7F) << shift
 21296  				if b < 0x80 {
 21297  					break
 21298  				}
 21299  			}
 21300  		case 4:
 21301  			if wireType != 0 {
 21302  				return fmt.Errorf("proto: wrong wireType = %d for field LeaderID", wireType)
 21303  			}
 21304  			m.LeaderID = 0
 21305  			for shift := uint(0); ; shift += 7 {
 21306  				if shift >= 64 {
 21307  					return ErrIntOverflowLogservice
 21308  				}
 21309  				if iNdEx >= l {
 21310  					return io.ErrUnexpectedEOF
 21311  				}
 21312  				b := dAtA[iNdEx]
 21313  				iNdEx++
 21314  				m.LeaderID |= uint64(b&0x7F) << shift
 21315  				if b < 0x80 {
 21316  					break
 21317  				}
 21318  			}
 21319  		case 5:
 21320  			if wireType != 0 {
 21321  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
 21322  			}
 21323  			m.Term = 0
 21324  			for shift := uint(0); ; shift += 7 {
 21325  				if shift >= 64 {
 21326  					return ErrIntOverflowLogservice
 21327  				}
 21328  				if iNdEx >= l {
 21329  					return io.ErrUnexpectedEOF
 21330  				}
 21331  				b := dAtA[iNdEx]
 21332  				iNdEx++
 21333  				m.Term |= uint64(b&0x7F) << shift
 21334  				if b < 0x80 {
 21335  					break
 21336  				}
 21337  			}
 21338  		default:
 21339  			iNdEx = preIndex
 21340  			skippy, err := skipLogservice(dAtA[iNdEx:])
 21341  			if err != nil {
 21342  				return err
 21343  			}
 21344  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 21345  				return ErrInvalidLengthLogservice
 21346  			}
 21347  			if (iNdEx + skippy) > l {
 21348  				return io.ErrUnexpectedEOF
 21349  			}
 21350  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 21351  			iNdEx += skippy
 21352  		}
 21353  	}
 21354  
 21355  	if iNdEx > l {
 21356  		return io.ErrUnexpectedEOF
 21357  	}
 21358  	return nil
 21359  }
 21360  func (m *BackupData) Unmarshal(dAtA []byte) error {
 21361  	l := len(dAtA)
 21362  	iNdEx := 0
 21363  	for iNdEx < l {
 21364  		preIndex := iNdEx
 21365  		var wire uint64
 21366  		for shift := uint(0); ; shift += 7 {
 21367  			if shift >= 64 {
 21368  				return ErrIntOverflowLogservice
 21369  			}
 21370  			if iNdEx >= l {
 21371  				return io.ErrUnexpectedEOF
 21372  			}
 21373  			b := dAtA[iNdEx]
 21374  			iNdEx++
 21375  			wire |= uint64(b&0x7F) << shift
 21376  			if b < 0x80 {
 21377  				break
 21378  			}
 21379  		}
 21380  		fieldNum := int32(wire >> 3)
 21381  		wireType := int(wire & 0x7)
 21382  		if wireType == 4 {
 21383  			return fmt.Errorf("proto: BackupData: wiretype end group for non-group")
 21384  		}
 21385  		if fieldNum <= 0 {
 21386  			return fmt.Errorf("proto: BackupData: illegal tag %d (wire type %d)", fieldNum, wire)
 21387  		}
 21388  		switch fieldNum {
 21389  		case 1:
 21390  			if wireType != 0 {
 21391  				return fmt.Errorf("proto: wrong wireType = %d for field NextID", wireType)
 21392  			}
 21393  			m.NextID = 0
 21394  			for shift := uint(0); ; shift += 7 {
 21395  				if shift >= 64 {
 21396  					return ErrIntOverflowLogservice
 21397  				}
 21398  				if iNdEx >= l {
 21399  					return io.ErrUnexpectedEOF
 21400  				}
 21401  				b := dAtA[iNdEx]
 21402  				iNdEx++
 21403  				m.NextID |= uint64(b&0x7F) << shift
 21404  				if b < 0x80 {
 21405  					break
 21406  				}
 21407  			}
 21408  		case 2:
 21409  			if wireType != 2 {
 21410  				return fmt.Errorf("proto: wrong wireType = %d for field NextIDByKey", wireType)
 21411  			}
 21412  			var msglen int
 21413  			for shift := uint(0); ; shift += 7 {
 21414  				if shift >= 64 {
 21415  					return ErrIntOverflowLogservice
 21416  				}
 21417  				if iNdEx >= l {
 21418  					return io.ErrUnexpectedEOF
 21419  				}
 21420  				b := dAtA[iNdEx]
 21421  				iNdEx++
 21422  				msglen |= int(b&0x7F) << shift
 21423  				if b < 0x80 {
 21424  					break
 21425  				}
 21426  			}
 21427  			if msglen < 0 {
 21428  				return ErrInvalidLengthLogservice
 21429  			}
 21430  			postIndex := iNdEx + msglen
 21431  			if postIndex < 0 {
 21432  				return ErrInvalidLengthLogservice
 21433  			}
 21434  			if postIndex > l {
 21435  				return io.ErrUnexpectedEOF
 21436  			}
 21437  			if m.NextIDByKey == nil {
 21438  				m.NextIDByKey = make(map[string]uint64)
 21439  			}
 21440  			var mapkey string
 21441  			var mapvalue uint64
 21442  			for iNdEx < postIndex {
 21443  				entryPreIndex := iNdEx
 21444  				var wire uint64
 21445  				for shift := uint(0); ; shift += 7 {
 21446  					if shift >= 64 {
 21447  						return ErrIntOverflowLogservice
 21448  					}
 21449  					if iNdEx >= l {
 21450  						return io.ErrUnexpectedEOF
 21451  					}
 21452  					b := dAtA[iNdEx]
 21453  					iNdEx++
 21454  					wire |= uint64(b&0x7F) << shift
 21455  					if b < 0x80 {
 21456  						break
 21457  					}
 21458  				}
 21459  				fieldNum := int32(wire >> 3)
 21460  				if fieldNum == 1 {
 21461  					var stringLenmapkey uint64
 21462  					for shift := uint(0); ; shift += 7 {
 21463  						if shift >= 64 {
 21464  							return ErrIntOverflowLogservice
 21465  						}
 21466  						if iNdEx >= l {
 21467  							return io.ErrUnexpectedEOF
 21468  						}
 21469  						b := dAtA[iNdEx]
 21470  						iNdEx++
 21471  						stringLenmapkey |= uint64(b&0x7F) << shift
 21472  						if b < 0x80 {
 21473  							break
 21474  						}
 21475  					}
 21476  					intStringLenmapkey := int(stringLenmapkey)
 21477  					if intStringLenmapkey < 0 {
 21478  						return ErrInvalidLengthLogservice
 21479  					}
 21480  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 21481  					if postStringIndexmapkey < 0 {
 21482  						return ErrInvalidLengthLogservice
 21483  					}
 21484  					if postStringIndexmapkey > l {
 21485  						return io.ErrUnexpectedEOF
 21486  					}
 21487  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 21488  					iNdEx = postStringIndexmapkey
 21489  				} else if fieldNum == 2 {
 21490  					for shift := uint(0); ; shift += 7 {
 21491  						if shift >= 64 {
 21492  							return ErrIntOverflowLogservice
 21493  						}
 21494  						if iNdEx >= l {
 21495  							return io.ErrUnexpectedEOF
 21496  						}
 21497  						b := dAtA[iNdEx]
 21498  						iNdEx++
 21499  						mapvalue |= uint64(b&0x7F) << shift
 21500  						if b < 0x80 {
 21501  							break
 21502  						}
 21503  					}
 21504  				} else {
 21505  					iNdEx = entryPreIndex
 21506  					skippy, err := skipLogservice(dAtA[iNdEx:])
 21507  					if err != nil {
 21508  						return err
 21509  					}
 21510  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 21511  						return ErrInvalidLengthLogservice
 21512  					}
 21513  					if (iNdEx + skippy) > postIndex {
 21514  						return io.ErrUnexpectedEOF
 21515  					}
 21516  					iNdEx += skippy
 21517  				}
 21518  			}
 21519  			m.NextIDByKey[mapkey] = mapvalue
 21520  			iNdEx = postIndex
 21521  		default:
 21522  			iNdEx = preIndex
 21523  			skippy, err := skipLogservice(dAtA[iNdEx:])
 21524  			if err != nil {
 21525  				return err
 21526  			}
 21527  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 21528  				return ErrInvalidLengthLogservice
 21529  			}
 21530  			if (iNdEx + skippy) > l {
 21531  				return io.ErrUnexpectedEOF
 21532  			}
 21533  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 21534  			iNdEx += skippy
 21535  		}
 21536  	}
 21537  
 21538  	if iNdEx > l {
 21539  		return io.ErrUnexpectedEOF
 21540  	}
 21541  	return nil
 21542  }
 21543  func (m *ConfigItem) Unmarshal(dAtA []byte) error {
 21544  	l := len(dAtA)
 21545  	iNdEx := 0
 21546  	for iNdEx < l {
 21547  		preIndex := iNdEx
 21548  		var wire uint64
 21549  		for shift := uint(0); ; shift += 7 {
 21550  			if shift >= 64 {
 21551  				return ErrIntOverflowLogservice
 21552  			}
 21553  			if iNdEx >= l {
 21554  				return io.ErrUnexpectedEOF
 21555  			}
 21556  			b := dAtA[iNdEx]
 21557  			iNdEx++
 21558  			wire |= uint64(b&0x7F) << shift
 21559  			if b < 0x80 {
 21560  				break
 21561  			}
 21562  		}
 21563  		fieldNum := int32(wire >> 3)
 21564  		wireType := int(wire & 0x7)
 21565  		if wireType == 4 {
 21566  			return fmt.Errorf("proto: ConfigItem: wiretype end group for non-group")
 21567  		}
 21568  		if fieldNum <= 0 {
 21569  			return fmt.Errorf("proto: ConfigItem: illegal tag %d (wire type %d)", fieldNum, wire)
 21570  		}
 21571  		switch fieldNum {
 21572  		case 1:
 21573  			if wireType != 2 {
 21574  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 21575  			}
 21576  			var stringLen uint64
 21577  			for shift := uint(0); ; shift += 7 {
 21578  				if shift >= 64 {
 21579  					return ErrIntOverflowLogservice
 21580  				}
 21581  				if iNdEx >= l {
 21582  					return io.ErrUnexpectedEOF
 21583  				}
 21584  				b := dAtA[iNdEx]
 21585  				iNdEx++
 21586  				stringLen |= uint64(b&0x7F) << shift
 21587  				if b < 0x80 {
 21588  					break
 21589  				}
 21590  			}
 21591  			intStringLen := int(stringLen)
 21592  			if intStringLen < 0 {
 21593  				return ErrInvalidLengthLogservice
 21594  			}
 21595  			postIndex := iNdEx + intStringLen
 21596  			if postIndex < 0 {
 21597  				return ErrInvalidLengthLogservice
 21598  			}
 21599  			if postIndex > l {
 21600  				return io.ErrUnexpectedEOF
 21601  			}
 21602  			m.Name = string(dAtA[iNdEx:postIndex])
 21603  			iNdEx = postIndex
 21604  		case 2:
 21605  			if wireType != 2 {
 21606  				return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType)
 21607  			}
 21608  			var stringLen uint64
 21609  			for shift := uint(0); ; shift += 7 {
 21610  				if shift >= 64 {
 21611  					return ErrIntOverflowLogservice
 21612  				}
 21613  				if iNdEx >= l {
 21614  					return io.ErrUnexpectedEOF
 21615  				}
 21616  				b := dAtA[iNdEx]
 21617  				iNdEx++
 21618  				stringLen |= uint64(b&0x7F) << shift
 21619  				if b < 0x80 {
 21620  					break
 21621  				}
 21622  			}
 21623  			intStringLen := int(stringLen)
 21624  			if intStringLen < 0 {
 21625  				return ErrInvalidLengthLogservice
 21626  			}
 21627  			postIndex := iNdEx + intStringLen
 21628  			if postIndex < 0 {
 21629  				return ErrInvalidLengthLogservice
 21630  			}
 21631  			if postIndex > l {
 21632  				return io.ErrUnexpectedEOF
 21633  			}
 21634  			m.CurrentValue = string(dAtA[iNdEx:postIndex])
 21635  			iNdEx = postIndex
 21636  		case 3:
 21637  			if wireType != 2 {
 21638  				return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType)
 21639  			}
 21640  			var stringLen uint64
 21641  			for shift := uint(0); ; shift += 7 {
 21642  				if shift >= 64 {
 21643  					return ErrIntOverflowLogservice
 21644  				}
 21645  				if iNdEx >= l {
 21646  					return io.ErrUnexpectedEOF
 21647  				}
 21648  				b := dAtA[iNdEx]
 21649  				iNdEx++
 21650  				stringLen |= uint64(b&0x7F) << shift
 21651  				if b < 0x80 {
 21652  					break
 21653  				}
 21654  			}
 21655  			intStringLen := int(stringLen)
 21656  			if intStringLen < 0 {
 21657  				return ErrInvalidLengthLogservice
 21658  			}
 21659  			postIndex := iNdEx + intStringLen
 21660  			if postIndex < 0 {
 21661  				return ErrInvalidLengthLogservice
 21662  			}
 21663  			if postIndex > l {
 21664  				return io.ErrUnexpectedEOF
 21665  			}
 21666  			m.DefaultValue = string(dAtA[iNdEx:postIndex])
 21667  			iNdEx = postIndex
 21668  		case 4:
 21669  			if wireType != 2 {
 21670  				return fmt.Errorf("proto: wrong wireType = %d for field Internal", wireType)
 21671  			}
 21672  			var stringLen uint64
 21673  			for shift := uint(0); ; shift += 7 {
 21674  				if shift >= 64 {
 21675  					return ErrIntOverflowLogservice
 21676  				}
 21677  				if iNdEx >= l {
 21678  					return io.ErrUnexpectedEOF
 21679  				}
 21680  				b := dAtA[iNdEx]
 21681  				iNdEx++
 21682  				stringLen |= uint64(b&0x7F) << shift
 21683  				if b < 0x80 {
 21684  					break
 21685  				}
 21686  			}
 21687  			intStringLen := int(stringLen)
 21688  			if intStringLen < 0 {
 21689  				return ErrInvalidLengthLogservice
 21690  			}
 21691  			postIndex := iNdEx + intStringLen
 21692  			if postIndex < 0 {
 21693  				return ErrInvalidLengthLogservice
 21694  			}
 21695  			if postIndex > l {
 21696  				return io.ErrUnexpectedEOF
 21697  			}
 21698  			m.Internal = string(dAtA[iNdEx:postIndex])
 21699  			iNdEx = postIndex
 21700  		default:
 21701  			iNdEx = preIndex
 21702  			skippy, err := skipLogservice(dAtA[iNdEx:])
 21703  			if err != nil {
 21704  				return err
 21705  			}
 21706  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 21707  				return ErrInvalidLengthLogservice
 21708  			}
 21709  			if (iNdEx + skippy) > l {
 21710  				return io.ErrUnexpectedEOF
 21711  			}
 21712  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 21713  			iNdEx += skippy
 21714  		}
 21715  	}
 21716  
 21717  	if iNdEx > l {
 21718  		return io.ErrUnexpectedEOF
 21719  	}
 21720  	return nil
 21721  }
 21722  func (m *ConfigData) Unmarshal(dAtA []byte) error {
 21723  	l := len(dAtA)
 21724  	iNdEx := 0
 21725  	for iNdEx < l {
 21726  		preIndex := iNdEx
 21727  		var wire uint64
 21728  		for shift := uint(0); ; shift += 7 {
 21729  			if shift >= 64 {
 21730  				return ErrIntOverflowLogservice
 21731  			}
 21732  			if iNdEx >= l {
 21733  				return io.ErrUnexpectedEOF
 21734  			}
 21735  			b := dAtA[iNdEx]
 21736  			iNdEx++
 21737  			wire |= uint64(b&0x7F) << shift
 21738  			if b < 0x80 {
 21739  				break
 21740  			}
 21741  		}
 21742  		fieldNum := int32(wire >> 3)
 21743  		wireType := int(wire & 0x7)
 21744  		if wireType == 4 {
 21745  			return fmt.Errorf("proto: ConfigData: wiretype end group for non-group")
 21746  		}
 21747  		if fieldNum <= 0 {
 21748  			return fmt.Errorf("proto: ConfigData: illegal tag %d (wire type %d)", fieldNum, wire)
 21749  		}
 21750  		switch fieldNum {
 21751  		case 1:
 21752  			if wireType != 2 {
 21753  				return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
 21754  			}
 21755  			var msglen int
 21756  			for shift := uint(0); ; shift += 7 {
 21757  				if shift >= 64 {
 21758  					return ErrIntOverflowLogservice
 21759  				}
 21760  				if iNdEx >= l {
 21761  					return io.ErrUnexpectedEOF
 21762  				}
 21763  				b := dAtA[iNdEx]
 21764  				iNdEx++
 21765  				msglen |= int(b&0x7F) << shift
 21766  				if b < 0x80 {
 21767  					break
 21768  				}
 21769  			}
 21770  			if msglen < 0 {
 21771  				return ErrInvalidLengthLogservice
 21772  			}
 21773  			postIndex := iNdEx + msglen
 21774  			if postIndex < 0 {
 21775  				return ErrInvalidLengthLogservice
 21776  			}
 21777  			if postIndex > l {
 21778  				return io.ErrUnexpectedEOF
 21779  			}
 21780  			if m.Content == nil {
 21781  				m.Content = make(map[string]*ConfigItem)
 21782  			}
 21783  			var mapkey string
 21784  			var mapvalue *ConfigItem
 21785  			for iNdEx < postIndex {
 21786  				entryPreIndex := iNdEx
 21787  				var wire uint64
 21788  				for shift := uint(0); ; shift += 7 {
 21789  					if shift >= 64 {
 21790  						return ErrIntOverflowLogservice
 21791  					}
 21792  					if iNdEx >= l {
 21793  						return io.ErrUnexpectedEOF
 21794  					}
 21795  					b := dAtA[iNdEx]
 21796  					iNdEx++
 21797  					wire |= uint64(b&0x7F) << shift
 21798  					if b < 0x80 {
 21799  						break
 21800  					}
 21801  				}
 21802  				fieldNum := int32(wire >> 3)
 21803  				if fieldNum == 1 {
 21804  					var stringLenmapkey uint64
 21805  					for shift := uint(0); ; shift += 7 {
 21806  						if shift >= 64 {
 21807  							return ErrIntOverflowLogservice
 21808  						}
 21809  						if iNdEx >= l {
 21810  							return io.ErrUnexpectedEOF
 21811  						}
 21812  						b := dAtA[iNdEx]
 21813  						iNdEx++
 21814  						stringLenmapkey |= uint64(b&0x7F) << shift
 21815  						if b < 0x80 {
 21816  							break
 21817  						}
 21818  					}
 21819  					intStringLenmapkey := int(stringLenmapkey)
 21820  					if intStringLenmapkey < 0 {
 21821  						return ErrInvalidLengthLogservice
 21822  					}
 21823  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 21824  					if postStringIndexmapkey < 0 {
 21825  						return ErrInvalidLengthLogservice
 21826  					}
 21827  					if postStringIndexmapkey > l {
 21828  						return io.ErrUnexpectedEOF
 21829  					}
 21830  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 21831  					iNdEx = postStringIndexmapkey
 21832  				} else if fieldNum == 2 {
 21833  					var mapmsglen int
 21834  					for shift := uint(0); ; shift += 7 {
 21835  						if shift >= 64 {
 21836  							return ErrIntOverflowLogservice
 21837  						}
 21838  						if iNdEx >= l {
 21839  							return io.ErrUnexpectedEOF
 21840  						}
 21841  						b := dAtA[iNdEx]
 21842  						iNdEx++
 21843  						mapmsglen |= int(b&0x7F) << shift
 21844  						if b < 0x80 {
 21845  							break
 21846  						}
 21847  					}
 21848  					if mapmsglen < 0 {
 21849  						return ErrInvalidLengthLogservice
 21850  					}
 21851  					postmsgIndex := iNdEx + mapmsglen
 21852  					if postmsgIndex < 0 {
 21853  						return ErrInvalidLengthLogservice
 21854  					}
 21855  					if postmsgIndex > l {
 21856  						return io.ErrUnexpectedEOF
 21857  					}
 21858  					mapvalue = &ConfigItem{}
 21859  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 21860  						return err
 21861  					}
 21862  					iNdEx = postmsgIndex
 21863  				} else {
 21864  					iNdEx = entryPreIndex
 21865  					skippy, err := skipLogservice(dAtA[iNdEx:])
 21866  					if err != nil {
 21867  						return err
 21868  					}
 21869  					if (skippy < 0) || (iNdEx+skippy) < 0 {
 21870  						return ErrInvalidLengthLogservice
 21871  					}
 21872  					if (iNdEx + skippy) > postIndex {
 21873  						return io.ErrUnexpectedEOF
 21874  					}
 21875  					iNdEx += skippy
 21876  				}
 21877  			}
 21878  			m.Content[mapkey] = mapvalue
 21879  			iNdEx = postIndex
 21880  		default:
 21881  			iNdEx = preIndex
 21882  			skippy, err := skipLogservice(dAtA[iNdEx:])
 21883  			if err != nil {
 21884  				return err
 21885  			}
 21886  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 21887  				return ErrInvalidLengthLogservice
 21888  			}
 21889  			if (iNdEx + skippy) > l {
 21890  				return io.ErrUnexpectedEOF
 21891  			}
 21892  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 21893  			iNdEx += skippy
 21894  		}
 21895  	}
 21896  
 21897  	if iNdEx > l {
 21898  		return io.ErrUnexpectedEOF
 21899  	}
 21900  	return nil
 21901  }
 21902  func skipLogservice(dAtA []byte) (n int, err error) {
 21903  	l := len(dAtA)
 21904  	iNdEx := 0
 21905  	depth := 0
 21906  	for iNdEx < l {
 21907  		var wire uint64
 21908  		for shift := uint(0); ; shift += 7 {
 21909  			if shift >= 64 {
 21910  				return 0, ErrIntOverflowLogservice
 21911  			}
 21912  			if iNdEx >= l {
 21913  				return 0, io.ErrUnexpectedEOF
 21914  			}
 21915  			b := dAtA[iNdEx]
 21916  			iNdEx++
 21917  			wire |= (uint64(b) & 0x7F) << shift
 21918  			if b < 0x80 {
 21919  				break
 21920  			}
 21921  		}
 21922  		wireType := int(wire & 0x7)
 21923  		switch wireType {
 21924  		case 0:
 21925  			for shift := uint(0); ; shift += 7 {
 21926  				if shift >= 64 {
 21927  					return 0, ErrIntOverflowLogservice
 21928  				}
 21929  				if iNdEx >= l {
 21930  					return 0, io.ErrUnexpectedEOF
 21931  				}
 21932  				iNdEx++
 21933  				if dAtA[iNdEx-1] < 0x80 {
 21934  					break
 21935  				}
 21936  			}
 21937  		case 1:
 21938  			iNdEx += 8
 21939  		case 2:
 21940  			var length int
 21941  			for shift := uint(0); ; shift += 7 {
 21942  				if shift >= 64 {
 21943  					return 0, ErrIntOverflowLogservice
 21944  				}
 21945  				if iNdEx >= l {
 21946  					return 0, io.ErrUnexpectedEOF
 21947  				}
 21948  				b := dAtA[iNdEx]
 21949  				iNdEx++
 21950  				length |= (int(b) & 0x7F) << shift
 21951  				if b < 0x80 {
 21952  					break
 21953  				}
 21954  			}
 21955  			if length < 0 {
 21956  				return 0, ErrInvalidLengthLogservice
 21957  			}
 21958  			iNdEx += length
 21959  		case 3:
 21960  			depth++
 21961  		case 4:
 21962  			if depth == 0 {
 21963  				return 0, ErrUnexpectedEndOfGroupLogservice
 21964  			}
 21965  			depth--
 21966  		case 5:
 21967  			iNdEx += 4
 21968  		default:
 21969  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 21970  		}
 21971  		if iNdEx < 0 {
 21972  			return 0, ErrInvalidLengthLogservice
 21973  		}
 21974  		if depth == 0 {
 21975  			return iNdEx, nil
 21976  		}
 21977  	}
 21978  	return 0, io.ErrUnexpectedEOF
 21979  }
 21980  
 21981  var (
 21982  	ErrInvalidLengthLogservice        = fmt.Errorf("proto: negative length found during unmarshaling")
 21983  	ErrIntOverflowLogservice          = fmt.Errorf("proto: integer overflow")
 21984  	ErrUnexpectedEndOfGroupLogservice = fmt.Errorf("proto: unexpected end of group")
 21985  )