github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/ZooKeeper.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: ZooKeeper.proto
     3  // DO NOT EDIT!
     4  
     5  package proto
     6  
     7  import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto1.Marshal
    12  var _ = math.Inf
    13  
    14  type SplitLogTask_State int32
    15  
    16  const (
    17  	SplitLogTask_UNASSIGNED SplitLogTask_State = 0
    18  	SplitLogTask_OWNED      SplitLogTask_State = 1
    19  	SplitLogTask_RESIGNED   SplitLogTask_State = 2
    20  	SplitLogTask_DONE       SplitLogTask_State = 3
    21  	SplitLogTask_ERR        SplitLogTask_State = 4
    22  )
    23  
    24  var SplitLogTask_State_name = map[int32]string{
    25  	0: "UNASSIGNED",
    26  	1: "OWNED",
    27  	2: "RESIGNED",
    28  	3: "DONE",
    29  	4: "ERR",
    30  }
    31  var SplitLogTask_State_value = map[string]int32{
    32  	"UNASSIGNED": 0,
    33  	"OWNED":      1,
    34  	"RESIGNED":   2,
    35  	"DONE":       3,
    36  	"ERR":        4,
    37  }
    38  
    39  func (x SplitLogTask_State) Enum() *SplitLogTask_State {
    40  	p := new(SplitLogTask_State)
    41  	*p = x
    42  	return p
    43  }
    44  func (x SplitLogTask_State) String() string {
    45  	return proto1.EnumName(SplitLogTask_State_name, int32(x))
    46  }
    47  func (x *SplitLogTask_State) UnmarshalJSON(data []byte) error {
    48  	value, err := proto1.UnmarshalJSONEnum(SplitLogTask_State_value, data, "SplitLogTask_State")
    49  	if err != nil {
    50  		return err
    51  	}
    52  	*x = SplitLogTask_State(value)
    53  	return nil
    54  }
    55  
    56  type SplitLogTask_RecoveryMode int32
    57  
    58  const (
    59  	SplitLogTask_UNKNOWN       SplitLogTask_RecoveryMode = 0
    60  	SplitLogTask_LOG_SPLITTING SplitLogTask_RecoveryMode = 1
    61  	SplitLogTask_LOG_REPLAY    SplitLogTask_RecoveryMode = 2
    62  )
    63  
    64  var SplitLogTask_RecoveryMode_name = map[int32]string{
    65  	0: "UNKNOWN",
    66  	1: "LOG_SPLITTING",
    67  	2: "LOG_REPLAY",
    68  }
    69  var SplitLogTask_RecoveryMode_value = map[string]int32{
    70  	"UNKNOWN":       0,
    71  	"LOG_SPLITTING": 1,
    72  	"LOG_REPLAY":    2,
    73  }
    74  
    75  func (x SplitLogTask_RecoveryMode) Enum() *SplitLogTask_RecoveryMode {
    76  	p := new(SplitLogTask_RecoveryMode)
    77  	*p = x
    78  	return p
    79  }
    80  func (x SplitLogTask_RecoveryMode) String() string {
    81  	return proto1.EnumName(SplitLogTask_RecoveryMode_name, int32(x))
    82  }
    83  func (x *SplitLogTask_RecoveryMode) UnmarshalJSON(data []byte) error {
    84  	value, err := proto1.UnmarshalJSONEnum(SplitLogTask_RecoveryMode_value, data, "SplitLogTask_RecoveryMode")
    85  	if err != nil {
    86  		return err
    87  	}
    88  	*x = SplitLogTask_RecoveryMode(value)
    89  	return nil
    90  }
    91  
    92  // Table's current state
    93  type Table_State int32
    94  
    95  const (
    96  	Table_ENABLED   Table_State = 0
    97  	Table_DISABLED  Table_State = 1
    98  	Table_DISABLING Table_State = 2
    99  	Table_ENABLING  Table_State = 3
   100  )
   101  
   102  var Table_State_name = map[int32]string{
   103  	0: "ENABLED",
   104  	1: "DISABLED",
   105  	2: "DISABLING",
   106  	3: "ENABLING",
   107  }
   108  var Table_State_value = map[string]int32{
   109  	"ENABLED":   0,
   110  	"DISABLED":  1,
   111  	"DISABLING": 2,
   112  	"ENABLING":  3,
   113  }
   114  
   115  func (x Table_State) Enum() *Table_State {
   116  	p := new(Table_State)
   117  	*p = x
   118  	return p
   119  }
   120  func (x Table_State) String() string {
   121  	return proto1.EnumName(Table_State_name, int32(x))
   122  }
   123  func (x *Table_State) UnmarshalJSON(data []byte) error {
   124  	value, err := proto1.UnmarshalJSONEnum(Table_State_value, data, "Table_State")
   125  	if err != nil {
   126  		return err
   127  	}
   128  	*x = Table_State(value)
   129  	return nil
   130  }
   131  
   132  type ReplicationState_State int32
   133  
   134  const (
   135  	ReplicationState_ENABLED  ReplicationState_State = 0
   136  	ReplicationState_DISABLED ReplicationState_State = 1
   137  )
   138  
   139  var ReplicationState_State_name = map[int32]string{
   140  	0: "ENABLED",
   141  	1: "DISABLED",
   142  }
   143  var ReplicationState_State_value = map[string]int32{
   144  	"ENABLED":  0,
   145  	"DISABLED": 1,
   146  }
   147  
   148  func (x ReplicationState_State) Enum() *ReplicationState_State {
   149  	p := new(ReplicationState_State)
   150  	*p = x
   151  	return p
   152  }
   153  func (x ReplicationState_State) String() string {
   154  	return proto1.EnumName(ReplicationState_State_name, int32(x))
   155  }
   156  func (x *ReplicationState_State) UnmarshalJSON(data []byte) error {
   157  	value, err := proto1.UnmarshalJSONEnum(ReplicationState_State_value, data, "ReplicationState_State")
   158  	if err != nil {
   159  		return err
   160  	}
   161  	*x = ReplicationState_State(value)
   162  	return nil
   163  }
   164  
   165  // *
   166  // Content of the meta-region-server znode.
   167  type MetaRegionServer struct {
   168  	// The ServerName hosting the meta region currently.
   169  	Server *ServerName `protobuf:"bytes,1,req,name=server" json:"server,omitempty"`
   170  	// The major version of the rpc the server speaks.  This is used so that
   171  	// clients connecting to the cluster can have prior knowledge of what version
   172  	// to send to a RegionServer.  AsyncHBase will use this to detect versions.
   173  	RpcVersion *uint32 `protobuf:"varint,2,opt,name=rpc_version" json:"rpc_version,omitempty"`
   174  	// State of the region transition. OPEN means fully operational 'hbase:meta'
   175  	State            *RegionState_State `protobuf:"varint,3,opt,name=state,enum=proto.RegionState_State" json:"state,omitempty"`
   176  	XXX_unrecognized []byte             `json:"-"`
   177  }
   178  
   179  func (m *MetaRegionServer) Reset()         { *m = MetaRegionServer{} }
   180  func (m *MetaRegionServer) String() string { return proto1.CompactTextString(m) }
   181  func (*MetaRegionServer) ProtoMessage()    {}
   182  
   183  func (m *MetaRegionServer) GetServer() *ServerName {
   184  	if m != nil {
   185  		return m.Server
   186  	}
   187  	return nil
   188  }
   189  
   190  func (m *MetaRegionServer) GetRpcVersion() uint32 {
   191  	if m != nil && m.RpcVersion != nil {
   192  		return *m.RpcVersion
   193  	}
   194  	return 0
   195  }
   196  
   197  func (m *MetaRegionServer) GetState() RegionState_State {
   198  	if m != nil && m.State != nil {
   199  		return *m.State
   200  	}
   201  	return RegionState_OFFLINE
   202  }
   203  
   204  // *
   205  // Content of the master znode.
   206  type Master struct {
   207  	// The ServerName of the current Master
   208  	Master *ServerName `protobuf:"bytes,1,req,name=master" json:"master,omitempty"`
   209  	// Major RPC version so that clients can know what version the master can accept.
   210  	RpcVersion       *uint32 `protobuf:"varint,2,opt,name=rpc_version" json:"rpc_version,omitempty"`
   211  	XXX_unrecognized []byte  `json:"-"`
   212  }
   213  
   214  func (m *Master) Reset()         { *m = Master{} }
   215  func (m *Master) String() string { return proto1.CompactTextString(m) }
   216  func (*Master) ProtoMessage()    {}
   217  
   218  func (m *Master) GetMaster() *ServerName {
   219  	if m != nil {
   220  		return m.Master
   221  	}
   222  	return nil
   223  }
   224  
   225  func (m *Master) GetRpcVersion() uint32 {
   226  	if m != nil && m.RpcVersion != nil {
   227  		return *m.RpcVersion
   228  	}
   229  	return 0
   230  }
   231  
   232  // *
   233  // Content of the '/hbase/running', cluster state, znode.
   234  type ClusterUp struct {
   235  	// If this znode is present, cluster is up.  Currently
   236  	// the data is cluster start_date.
   237  	StartDate        *string `protobuf:"bytes,1,req,name=start_date" json:"start_date,omitempty"`
   238  	XXX_unrecognized []byte  `json:"-"`
   239  }
   240  
   241  func (m *ClusterUp) Reset()         { *m = ClusterUp{} }
   242  func (m *ClusterUp) String() string { return proto1.CompactTextString(m) }
   243  func (*ClusterUp) ProtoMessage()    {}
   244  
   245  func (m *ClusterUp) GetStartDate() string {
   246  	if m != nil && m.StartDate != nil {
   247  		return *m.StartDate
   248  	}
   249  	return ""
   250  }
   251  
   252  // *
   253  // What we write under unassigned up in zookeeper as a region moves through
   254  // open/close, etc., regions.  Details a region in transition.
   255  type RegionTransition struct {
   256  	// Code for EventType gotten by doing o.a.h.h.EventHandler.EventType.getCode()
   257  	EventTypeCode *uint32 `protobuf:"varint,1,req,name=event_type_code" json:"event_type_code,omitempty"`
   258  	// Full regionname in bytes
   259  	RegionName []byte  `protobuf:"bytes,2,req,name=region_name" json:"region_name,omitempty"`
   260  	CreateTime *uint64 `protobuf:"varint,3,req,name=create_time" json:"create_time,omitempty"`
   261  	// The region server where the transition will happen or is happening
   262  	ServerName       *ServerName `protobuf:"bytes,4,req,name=server_name" json:"server_name,omitempty"`
   263  	Payload          []byte      `protobuf:"bytes,5,opt,name=payload" json:"payload,omitempty"`
   264  	XXX_unrecognized []byte      `json:"-"`
   265  }
   266  
   267  func (m *RegionTransition) Reset()         { *m = RegionTransition{} }
   268  func (m *RegionTransition) String() string { return proto1.CompactTextString(m) }
   269  func (*RegionTransition) ProtoMessage()    {}
   270  
   271  func (m *RegionTransition) GetEventTypeCode() uint32 {
   272  	if m != nil && m.EventTypeCode != nil {
   273  		return *m.EventTypeCode
   274  	}
   275  	return 0
   276  }
   277  
   278  func (m *RegionTransition) GetRegionName() []byte {
   279  	if m != nil {
   280  		return m.RegionName
   281  	}
   282  	return nil
   283  }
   284  
   285  func (m *RegionTransition) GetCreateTime() uint64 {
   286  	if m != nil && m.CreateTime != nil {
   287  		return *m.CreateTime
   288  	}
   289  	return 0
   290  }
   291  
   292  func (m *RegionTransition) GetServerName() *ServerName {
   293  	if m != nil {
   294  		return m.ServerName
   295  	}
   296  	return nil
   297  }
   298  
   299  func (m *RegionTransition) GetPayload() []byte {
   300  	if m != nil {
   301  		return m.Payload
   302  	}
   303  	return nil
   304  }
   305  
   306  // *
   307  // WAL SplitLog directory znodes have this for content.  Used doing distributed
   308  // WAL splitting.  Holds current state and name of server that originated split.
   309  type SplitLogTask struct {
   310  	State            *SplitLogTask_State        `protobuf:"varint,1,req,name=state,enum=proto.SplitLogTask_State" json:"state,omitempty"`
   311  	ServerName       *ServerName                `protobuf:"bytes,2,req,name=server_name" json:"server_name,omitempty"`
   312  	Mode             *SplitLogTask_RecoveryMode `protobuf:"varint,3,opt,name=mode,enum=proto.SplitLogTask_RecoveryMode,def=0" json:"mode,omitempty"`
   313  	XXX_unrecognized []byte                     `json:"-"`
   314  }
   315  
   316  func (m *SplitLogTask) Reset()         { *m = SplitLogTask{} }
   317  func (m *SplitLogTask) String() string { return proto1.CompactTextString(m) }
   318  func (*SplitLogTask) ProtoMessage()    {}
   319  
   320  const Default_SplitLogTask_Mode SplitLogTask_RecoveryMode = SplitLogTask_UNKNOWN
   321  
   322  func (m *SplitLogTask) GetState() SplitLogTask_State {
   323  	if m != nil && m.State != nil {
   324  		return *m.State
   325  	}
   326  	return SplitLogTask_UNASSIGNED
   327  }
   328  
   329  func (m *SplitLogTask) GetServerName() *ServerName {
   330  	if m != nil {
   331  		return m.ServerName
   332  	}
   333  	return nil
   334  }
   335  
   336  func (m *SplitLogTask) GetMode() SplitLogTask_RecoveryMode {
   337  	if m != nil && m.Mode != nil {
   338  		return *m.Mode
   339  	}
   340  	return Default_SplitLogTask_Mode
   341  }
   342  
   343  // *
   344  // The znode that holds state of table.
   345  type Table struct {
   346  	// This is the table's state.  If no znode for a table,
   347  	// its state is presumed enabled.  See o.a.h.h.zookeeper.ZKTable class
   348  	// for more.
   349  	State            *Table_State `protobuf:"varint,1,req,name=state,enum=proto.Table_State,def=0" json:"state,omitempty"`
   350  	XXX_unrecognized []byte       `json:"-"`
   351  }
   352  
   353  func (m *Table) Reset()         { *m = Table{} }
   354  func (m *Table) String() string { return proto1.CompactTextString(m) }
   355  func (*Table) ProtoMessage()    {}
   356  
   357  const Default_Table_State Table_State = Table_ENABLED
   358  
   359  func (m *Table) GetState() Table_State {
   360  	if m != nil && m.State != nil {
   361  		return *m.State
   362  	}
   363  	return Default_Table_State
   364  }
   365  
   366  // *
   367  // Used by replication. Holds a replication peer key.
   368  type ReplicationPeer struct {
   369  	// clusterkey is the concatenation of the slave cluster's
   370  	// hbase.zookeeper.quorum:hbase.zookeeper.property.clientPort:zookeeper.znode.parent
   371  	Clusterkey              *string           `protobuf:"bytes,1,req,name=clusterkey" json:"clusterkey,omitempty"`
   372  	ReplicationEndpointImpl *string           `protobuf:"bytes,2,opt,name=replicationEndpointImpl" json:"replicationEndpointImpl,omitempty"`
   373  	Data                    []*BytesBytesPair `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"`
   374  	Configuration           []*NameStringPair `protobuf:"bytes,4,rep,name=configuration" json:"configuration,omitempty"`
   375  	XXX_unrecognized        []byte            `json:"-"`
   376  }
   377  
   378  func (m *ReplicationPeer) Reset()         { *m = ReplicationPeer{} }
   379  func (m *ReplicationPeer) String() string { return proto1.CompactTextString(m) }
   380  func (*ReplicationPeer) ProtoMessage()    {}
   381  
   382  func (m *ReplicationPeer) GetClusterkey() string {
   383  	if m != nil && m.Clusterkey != nil {
   384  		return *m.Clusterkey
   385  	}
   386  	return ""
   387  }
   388  
   389  func (m *ReplicationPeer) GetReplicationEndpointImpl() string {
   390  	if m != nil && m.ReplicationEndpointImpl != nil {
   391  		return *m.ReplicationEndpointImpl
   392  	}
   393  	return ""
   394  }
   395  
   396  func (m *ReplicationPeer) GetData() []*BytesBytesPair {
   397  	if m != nil {
   398  		return m.Data
   399  	}
   400  	return nil
   401  }
   402  
   403  func (m *ReplicationPeer) GetConfiguration() []*NameStringPair {
   404  	if m != nil {
   405  		return m.Configuration
   406  	}
   407  	return nil
   408  }
   409  
   410  // *
   411  // Used by replication. Holds whether enabled or disabled
   412  type ReplicationState struct {
   413  	State            *ReplicationState_State `protobuf:"varint,1,req,name=state,enum=proto.ReplicationState_State" json:"state,omitempty"`
   414  	XXX_unrecognized []byte                  `json:"-"`
   415  }
   416  
   417  func (m *ReplicationState) Reset()         { *m = ReplicationState{} }
   418  func (m *ReplicationState) String() string { return proto1.CompactTextString(m) }
   419  func (*ReplicationState) ProtoMessage()    {}
   420  
   421  func (m *ReplicationState) GetState() ReplicationState_State {
   422  	if m != nil && m.State != nil {
   423  		return *m.State
   424  	}
   425  	return ReplicationState_ENABLED
   426  }
   427  
   428  // *
   429  // Used by replication. Holds the current position in an HLog file.
   430  type ReplicationHLogPosition struct {
   431  	Position         *int64 `protobuf:"varint,1,req,name=position" json:"position,omitempty"`
   432  	XXX_unrecognized []byte `json:"-"`
   433  }
   434  
   435  func (m *ReplicationHLogPosition) Reset()         { *m = ReplicationHLogPosition{} }
   436  func (m *ReplicationHLogPosition) String() string { return proto1.CompactTextString(m) }
   437  func (*ReplicationHLogPosition) ProtoMessage()    {}
   438  
   439  func (m *ReplicationHLogPosition) GetPosition() int64 {
   440  	if m != nil && m.Position != nil {
   441  		return *m.Position
   442  	}
   443  	return 0
   444  }
   445  
   446  // *
   447  // Used by replication. Used to lock a region server during failover.
   448  type ReplicationLock struct {
   449  	LockOwner        *string `protobuf:"bytes,1,req,name=lock_owner" json:"lock_owner,omitempty"`
   450  	XXX_unrecognized []byte  `json:"-"`
   451  }
   452  
   453  func (m *ReplicationLock) Reset()         { *m = ReplicationLock{} }
   454  func (m *ReplicationLock) String() string { return proto1.CompactTextString(m) }
   455  func (*ReplicationLock) ProtoMessage()    {}
   456  
   457  func (m *ReplicationLock) GetLockOwner() string {
   458  	if m != nil && m.LockOwner != nil {
   459  		return *m.LockOwner
   460  	}
   461  	return ""
   462  }
   463  
   464  // *
   465  // Metadata associated with a table lock in zookeeper
   466  type TableLock struct {
   467  	TableName        *TableName  `protobuf:"bytes,1,opt,name=table_name" json:"table_name,omitempty"`
   468  	LockOwner        *ServerName `protobuf:"bytes,2,opt,name=lock_owner" json:"lock_owner,omitempty"`
   469  	ThreadId         *int64      `protobuf:"varint,3,opt,name=thread_id" json:"thread_id,omitempty"`
   470  	IsShared         *bool       `protobuf:"varint,4,opt,name=is_shared" json:"is_shared,omitempty"`
   471  	Purpose          *string     `protobuf:"bytes,5,opt,name=purpose" json:"purpose,omitempty"`
   472  	CreateTime       *int64      `protobuf:"varint,6,opt,name=create_time" json:"create_time,omitempty"`
   473  	XXX_unrecognized []byte      `json:"-"`
   474  }
   475  
   476  func (m *TableLock) Reset()         { *m = TableLock{} }
   477  func (m *TableLock) String() string { return proto1.CompactTextString(m) }
   478  func (*TableLock) ProtoMessage()    {}
   479  
   480  func (m *TableLock) GetTableName() *TableName {
   481  	if m != nil {
   482  		return m.TableName
   483  	}
   484  	return nil
   485  }
   486  
   487  func (m *TableLock) GetLockOwner() *ServerName {
   488  	if m != nil {
   489  		return m.LockOwner
   490  	}
   491  	return nil
   492  }
   493  
   494  func (m *TableLock) GetThreadId() int64 {
   495  	if m != nil && m.ThreadId != nil {
   496  		return *m.ThreadId
   497  	}
   498  	return 0
   499  }
   500  
   501  func (m *TableLock) GetIsShared() bool {
   502  	if m != nil && m.IsShared != nil {
   503  		return *m.IsShared
   504  	}
   505  	return false
   506  }
   507  
   508  func (m *TableLock) GetPurpose() string {
   509  	if m != nil && m.Purpose != nil {
   510  		return *m.Purpose
   511  	}
   512  	return ""
   513  }
   514  
   515  func (m *TableLock) GetCreateTime() int64 {
   516  	if m != nil && m.CreateTime != nil {
   517  		return *m.CreateTime
   518  	}
   519  	return 0
   520  }
   521  
   522  // *
   523  // sequence Id of a store
   524  type StoreSequenceId struct {
   525  	FamilyName       []byte  `protobuf:"bytes,1,req,name=family_name" json:"family_name,omitempty"`
   526  	SequenceId       *uint64 `protobuf:"varint,2,req,name=sequence_id" json:"sequence_id,omitempty"`
   527  	XXX_unrecognized []byte  `json:"-"`
   528  }
   529  
   530  func (m *StoreSequenceId) Reset()         { *m = StoreSequenceId{} }
   531  func (m *StoreSequenceId) String() string { return proto1.CompactTextString(m) }
   532  func (*StoreSequenceId) ProtoMessage()    {}
   533  
   534  func (m *StoreSequenceId) GetFamilyName() []byte {
   535  	if m != nil {
   536  		return m.FamilyName
   537  	}
   538  	return nil
   539  }
   540  
   541  func (m *StoreSequenceId) GetSequenceId() uint64 {
   542  	if m != nil && m.SequenceId != nil {
   543  		return *m.SequenceId
   544  	}
   545  	return 0
   546  }
   547  
   548  // *
   549  // contains a sequence id of a region which should be the minimum of its store sequence ids and
   550  // list sequence ids of the region's stores
   551  type RegionStoreSequenceIds struct {
   552  	LastFlushedSequenceId *uint64            `protobuf:"varint,1,req,name=last_flushed_sequence_id" json:"last_flushed_sequence_id,omitempty"`
   553  	StoreSequenceId       []*StoreSequenceId `protobuf:"bytes,2,rep,name=store_sequence_id" json:"store_sequence_id,omitempty"`
   554  	XXX_unrecognized      []byte             `json:"-"`
   555  }
   556  
   557  func (m *RegionStoreSequenceIds) Reset()         { *m = RegionStoreSequenceIds{} }
   558  func (m *RegionStoreSequenceIds) String() string { return proto1.CompactTextString(m) }
   559  func (*RegionStoreSequenceIds) ProtoMessage()    {}
   560  
   561  func (m *RegionStoreSequenceIds) GetLastFlushedSequenceId() uint64 {
   562  	if m != nil && m.LastFlushedSequenceId != nil {
   563  		return *m.LastFlushedSequenceId
   564  	}
   565  	return 0
   566  }
   567  
   568  func (m *RegionStoreSequenceIds) GetStoreSequenceId() []*StoreSequenceId {
   569  	if m != nil {
   570  		return m.StoreSequenceId
   571  	}
   572  	return nil
   573  }
   574  
   575  func init() {
   576  	proto1.RegisterEnum("proto.SplitLogTask_State", SplitLogTask_State_name, SplitLogTask_State_value)
   577  	proto1.RegisterEnum("proto.SplitLogTask_RecoveryMode", SplitLogTask_RecoveryMode_name, SplitLogTask_RecoveryMode_value)
   578  	proto1.RegisterEnum("proto.Table_State", Table_State_name, Table_State_value)
   579  	proto1.RegisterEnum("proto.ReplicationState_State", ReplicationState_State_name, ReplicationState_State_value)
   580  }