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

     1  // Code generated by protoc-gen-go.
     2  // source: WAL.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 ScopeType int32
    15  
    16  const (
    17  	ScopeType_REPLICATION_SCOPE_LOCAL  ScopeType = 0
    18  	ScopeType_REPLICATION_SCOPE_GLOBAL ScopeType = 1
    19  )
    20  
    21  var ScopeType_name = map[int32]string{
    22  	0: "REPLICATION_SCOPE_LOCAL",
    23  	1: "REPLICATION_SCOPE_GLOBAL",
    24  }
    25  var ScopeType_value = map[string]int32{
    26  	"REPLICATION_SCOPE_LOCAL":  0,
    27  	"REPLICATION_SCOPE_GLOBAL": 1,
    28  }
    29  
    30  func (x ScopeType) Enum() *ScopeType {
    31  	p := new(ScopeType)
    32  	*p = x
    33  	return p
    34  }
    35  func (x ScopeType) String() string {
    36  	return proto1.EnumName(ScopeType_name, int32(x))
    37  }
    38  func (x *ScopeType) UnmarshalJSON(data []byte) error {
    39  	value, err := proto1.UnmarshalJSONEnum(ScopeType_value, data, "ScopeType")
    40  	if err != nil {
    41  		return err
    42  	}
    43  	*x = ScopeType(value)
    44  	return nil
    45  }
    46  
    47  type WALHeader struct {
    48  	HasCompression    *bool   `protobuf:"varint,1,opt,name=has_compression" json:"has_compression,omitempty"`
    49  	EncryptionKey     []byte  `protobuf:"bytes,2,opt,name=encryption_key" json:"encryption_key,omitempty"`
    50  	HasTagCompression *bool   `protobuf:"varint,3,opt,name=has_tag_compression" json:"has_tag_compression,omitempty"`
    51  	WriterClsName     *string `protobuf:"bytes,4,opt,name=writer_cls_name" json:"writer_cls_name,omitempty"`
    52  	CellCodecClsName  *string `protobuf:"bytes,5,opt,name=cell_codec_cls_name" json:"cell_codec_cls_name,omitempty"`
    53  	XXX_unrecognized  []byte  `json:"-"`
    54  }
    55  
    56  func (m *WALHeader) Reset()         { *m = WALHeader{} }
    57  func (m *WALHeader) String() string { return proto1.CompactTextString(m) }
    58  func (*WALHeader) ProtoMessage()    {}
    59  
    60  func (m *WALHeader) GetHasCompression() bool {
    61  	if m != nil && m.HasCompression != nil {
    62  		return *m.HasCompression
    63  	}
    64  	return false
    65  }
    66  
    67  func (m *WALHeader) GetEncryptionKey() []byte {
    68  	if m != nil {
    69  		return m.EncryptionKey
    70  	}
    71  	return nil
    72  }
    73  
    74  func (m *WALHeader) GetHasTagCompression() bool {
    75  	if m != nil && m.HasTagCompression != nil {
    76  		return *m.HasTagCompression
    77  	}
    78  	return false
    79  }
    80  
    81  func (m *WALHeader) GetWriterClsName() string {
    82  	if m != nil && m.WriterClsName != nil {
    83  		return *m.WriterClsName
    84  	}
    85  	return ""
    86  }
    87  
    88  func (m *WALHeader) GetCellCodecClsName() string {
    89  	if m != nil && m.CellCodecClsName != nil {
    90  		return *m.CellCodecClsName
    91  	}
    92  	return ""
    93  }
    94  
    95  // Protocol buffer version of HLogKey; see HLogKey comment, not really a key but WALEdit header for some KVs
    96  type WALKey struct {
    97  	EncodedRegionName []byte  `protobuf:"bytes,1,req,name=encoded_region_name" json:"encoded_region_name,omitempty"`
    98  	TableName         []byte  `protobuf:"bytes,2,req,name=table_name" json:"table_name,omitempty"`
    99  	LogSequenceNumber *uint64 `protobuf:"varint,3,req,name=log_sequence_number" json:"log_sequence_number,omitempty"`
   100  	WriteTime         *uint64 `protobuf:"varint,4,req,name=write_time" json:"write_time,omitempty"`
   101  	//
   102  	// This parameter is deprecated in favor of clusters which
   103  	// contains the list of clusters that have consumed the change.
   104  	// It is retained so that the log created by earlier releases (0.94)
   105  	// can be read by the newer releases.
   106  	ClusterId        *UUID          `protobuf:"bytes,5,opt,name=cluster_id" json:"cluster_id,omitempty"`
   107  	Scopes           []*FamilyScope `protobuf:"bytes,6,rep,name=scopes" json:"scopes,omitempty"`
   108  	FollowingKvCount *uint32        `protobuf:"varint,7,opt,name=following_kv_count" json:"following_kv_count,omitempty"`
   109  	//
   110  	// This field contains the list of clusters that have
   111  	// consumed the change
   112  	ClusterIds       []*UUID `protobuf:"bytes,8,rep,name=cluster_ids" json:"cluster_ids,omitempty"`
   113  	NonceGroup       *uint64 `protobuf:"varint,9,opt,name=nonceGroup" json:"nonceGroup,omitempty"`
   114  	Nonce            *uint64 `protobuf:"varint,10,opt,name=nonce" json:"nonce,omitempty"`
   115  	XXX_unrecognized []byte  `json:"-"`
   116  }
   117  
   118  func (m *WALKey) Reset()         { *m = WALKey{} }
   119  func (m *WALKey) String() string { return proto1.CompactTextString(m) }
   120  func (*WALKey) ProtoMessage()    {}
   121  
   122  func (m *WALKey) GetEncodedRegionName() []byte {
   123  	if m != nil {
   124  		return m.EncodedRegionName
   125  	}
   126  	return nil
   127  }
   128  
   129  func (m *WALKey) GetTableName() []byte {
   130  	if m != nil {
   131  		return m.TableName
   132  	}
   133  	return nil
   134  }
   135  
   136  func (m *WALKey) GetLogSequenceNumber() uint64 {
   137  	if m != nil && m.LogSequenceNumber != nil {
   138  		return *m.LogSequenceNumber
   139  	}
   140  	return 0
   141  }
   142  
   143  func (m *WALKey) GetWriteTime() uint64 {
   144  	if m != nil && m.WriteTime != nil {
   145  		return *m.WriteTime
   146  	}
   147  	return 0
   148  }
   149  
   150  func (m *WALKey) GetClusterId() *UUID {
   151  	if m != nil {
   152  		return m.ClusterId
   153  	}
   154  	return nil
   155  }
   156  
   157  func (m *WALKey) GetScopes() []*FamilyScope {
   158  	if m != nil {
   159  		return m.Scopes
   160  	}
   161  	return nil
   162  }
   163  
   164  func (m *WALKey) GetFollowingKvCount() uint32 {
   165  	if m != nil && m.FollowingKvCount != nil {
   166  		return *m.FollowingKvCount
   167  	}
   168  	return 0
   169  }
   170  
   171  func (m *WALKey) GetClusterIds() []*UUID {
   172  	if m != nil {
   173  		return m.ClusterIds
   174  	}
   175  	return nil
   176  }
   177  
   178  func (m *WALKey) GetNonceGroup() uint64 {
   179  	if m != nil && m.NonceGroup != nil {
   180  		return *m.NonceGroup
   181  	}
   182  	return 0
   183  }
   184  
   185  func (m *WALKey) GetNonce() uint64 {
   186  	if m != nil && m.Nonce != nil {
   187  		return *m.Nonce
   188  	}
   189  	return 0
   190  }
   191  
   192  type FamilyScope struct {
   193  	Family           []byte     `protobuf:"bytes,1,req,name=family" json:"family,omitempty"`
   194  	ScopeType        *ScopeType `protobuf:"varint,2,req,name=scope_type,enum=proto.ScopeType" json:"scope_type,omitempty"`
   195  	XXX_unrecognized []byte     `json:"-"`
   196  }
   197  
   198  func (m *FamilyScope) Reset()         { *m = FamilyScope{} }
   199  func (m *FamilyScope) String() string { return proto1.CompactTextString(m) }
   200  func (*FamilyScope) ProtoMessage()    {}
   201  
   202  func (m *FamilyScope) GetFamily() []byte {
   203  	if m != nil {
   204  		return m.Family
   205  	}
   206  	return nil
   207  }
   208  
   209  func (m *FamilyScope) GetScopeType() ScopeType {
   210  	if m != nil && m.ScopeType != nil {
   211  		return *m.ScopeType
   212  	}
   213  	return ScopeType_REPLICATION_SCOPE_LOCAL
   214  }
   215  
   216  // *
   217  // Special WAL entry to hold all related to a compaction.
   218  // Written to WAL before completing compaction.  There is
   219  // sufficient info in the below message to complete later
   220  // the * compaction should we fail the WAL write.
   221  type CompactionDescriptor struct {
   222  	TableName         []byte   `protobuf:"bytes,1,req,name=table_name" json:"table_name,omitempty"`
   223  	EncodedRegionName []byte   `protobuf:"bytes,2,req,name=encoded_region_name" json:"encoded_region_name,omitempty"`
   224  	FamilyName        []byte   `protobuf:"bytes,3,req,name=family_name" json:"family_name,omitempty"`
   225  	CompactionInput   []string `protobuf:"bytes,4,rep,name=compaction_input" json:"compaction_input,omitempty"`
   226  	CompactionOutput  []string `protobuf:"bytes,5,rep,name=compaction_output" json:"compaction_output,omitempty"`
   227  	StoreHomeDir      *string  `protobuf:"bytes,6,req,name=store_home_dir" json:"store_home_dir,omitempty"`
   228  	RegionName        []byte   `protobuf:"bytes,7,opt,name=region_name" json:"region_name,omitempty"`
   229  	XXX_unrecognized  []byte   `json:"-"`
   230  }
   231  
   232  func (m *CompactionDescriptor) Reset()         { *m = CompactionDescriptor{} }
   233  func (m *CompactionDescriptor) String() string { return proto1.CompactTextString(m) }
   234  func (*CompactionDescriptor) ProtoMessage()    {}
   235  
   236  func (m *CompactionDescriptor) GetTableName() []byte {
   237  	if m != nil {
   238  		return m.TableName
   239  	}
   240  	return nil
   241  }
   242  
   243  func (m *CompactionDescriptor) GetEncodedRegionName() []byte {
   244  	if m != nil {
   245  		return m.EncodedRegionName
   246  	}
   247  	return nil
   248  }
   249  
   250  func (m *CompactionDescriptor) GetFamilyName() []byte {
   251  	if m != nil {
   252  		return m.FamilyName
   253  	}
   254  	return nil
   255  }
   256  
   257  func (m *CompactionDescriptor) GetCompactionInput() []string {
   258  	if m != nil {
   259  		return m.CompactionInput
   260  	}
   261  	return nil
   262  }
   263  
   264  func (m *CompactionDescriptor) GetCompactionOutput() []string {
   265  	if m != nil {
   266  		return m.CompactionOutput
   267  	}
   268  	return nil
   269  }
   270  
   271  func (m *CompactionDescriptor) GetStoreHomeDir() string {
   272  	if m != nil && m.StoreHomeDir != nil {
   273  		return *m.StoreHomeDir
   274  	}
   275  	return ""
   276  }
   277  
   278  func (m *CompactionDescriptor) GetRegionName() []byte {
   279  	if m != nil {
   280  		return m.RegionName
   281  	}
   282  	return nil
   283  }
   284  
   285  // *
   286  // A trailer that is appended to the end of a properly closed HLog WAL file.
   287  // If missing, this is either a legacy or a corrupted WAL file.
   288  type WALTrailer struct {
   289  	XXX_unrecognized []byte `json:"-"`
   290  }
   291  
   292  func (m *WALTrailer) Reset()         { *m = WALTrailer{} }
   293  func (m *WALTrailer) String() string { return proto1.CompactTextString(m) }
   294  func (*WALTrailer) ProtoMessage()    {}
   295  
   296  func init() {
   297  	proto1.RegisterEnum("proto.ScopeType", ScopeType_name, ScopeType_value)
   298  }