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

     1  // Code generated by protoc-gen-go.
     2  // source: AccessControl.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package proto is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	AccessControl.proto
    10  	Admin.proto
    11  	Aggregate.proto
    12  	Authentication.proto
    13  	Cell.proto
    14  	Client.proto
    15  	ClusterId.proto
    16  	ClusterStatus.proto
    17  	Comparator.proto
    18  	Encryption.proto
    19  	ErrorHandling.proto
    20  	FS.proto
    21  	Filter.proto
    22  	HBase.proto
    23  	HFile.proto
    24  	LoadBalancer.proto
    25  	MapReduce.proto
    26  	Master.proto
    27  	MultiRowMutation.proto
    28  	RPC.proto
    29  	RegionServerStatus.proto
    30  	RowProcessor.proto
    31  	SecureBulkLoad.proto
    32  	Snapshot.proto
    33  	Themis.proto
    34  	Tracing.proto
    35  	VisibilityLabels.proto
    36  	WAL.proto
    37  	ZooKeeper.proto
    38  
    39  It has these top-level messages:
    40  	Permission
    41  	TablePermission
    42  	NamespacePermission
    43  	GlobalPermission
    44  	UserPermission
    45  	UsersAndPermissions
    46  	GrantRequest
    47  	GrantResponse
    48  	RevokeRequest
    49  	RevokeResponse
    50  	GetUserPermissionsRequest
    51  	GetUserPermissionsResponse
    52  	CheckPermissionsRequest
    53  	CheckPermissionsResponse
    54  */
    55  package proto
    56  
    57  import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto"
    58  import math "math"
    59  
    60  // Reference imports to suppress errors if they are not otherwise used.
    61  var _ = proto1.Marshal
    62  var _ = math.Inf
    63  
    64  type Permission_Action int32
    65  
    66  const (
    67  	Permission_READ   Permission_Action = 0
    68  	Permission_WRITE  Permission_Action = 1
    69  	Permission_EXEC   Permission_Action = 2
    70  	Permission_CREATE Permission_Action = 3
    71  	Permission_ADMIN  Permission_Action = 4
    72  )
    73  
    74  var Permission_Action_name = map[int32]string{
    75  	0: "READ",
    76  	1: "WRITE",
    77  	2: "EXEC",
    78  	3: "CREATE",
    79  	4: "ADMIN",
    80  }
    81  var Permission_Action_value = map[string]int32{
    82  	"READ":   0,
    83  	"WRITE":  1,
    84  	"EXEC":   2,
    85  	"CREATE": 3,
    86  	"ADMIN":  4,
    87  }
    88  
    89  func (x Permission_Action) Enum() *Permission_Action {
    90  	p := new(Permission_Action)
    91  	*p = x
    92  	return p
    93  }
    94  func (x Permission_Action) String() string {
    95  	return proto1.EnumName(Permission_Action_name, int32(x))
    96  }
    97  func (x *Permission_Action) UnmarshalJSON(data []byte) error {
    98  	value, err := proto1.UnmarshalJSONEnum(Permission_Action_value, data, "Permission_Action")
    99  	if err != nil {
   100  		return err
   101  	}
   102  	*x = Permission_Action(value)
   103  	return nil
   104  }
   105  
   106  type Permission_Type int32
   107  
   108  const (
   109  	Permission_Global    Permission_Type = 1
   110  	Permission_Namespace Permission_Type = 2
   111  	Permission_Table     Permission_Type = 3
   112  )
   113  
   114  var Permission_Type_name = map[int32]string{
   115  	1: "Global",
   116  	2: "Namespace",
   117  	3: "Table",
   118  }
   119  var Permission_Type_value = map[string]int32{
   120  	"Global":    1,
   121  	"Namespace": 2,
   122  	"Table":     3,
   123  }
   124  
   125  func (x Permission_Type) Enum() *Permission_Type {
   126  	p := new(Permission_Type)
   127  	*p = x
   128  	return p
   129  }
   130  func (x Permission_Type) String() string {
   131  	return proto1.EnumName(Permission_Type_name, int32(x))
   132  }
   133  func (x *Permission_Type) UnmarshalJSON(data []byte) error {
   134  	value, err := proto1.UnmarshalJSONEnum(Permission_Type_value, data, "Permission_Type")
   135  	if err != nil {
   136  		return err
   137  	}
   138  	*x = Permission_Type(value)
   139  	return nil
   140  }
   141  
   142  type Permission struct {
   143  	Type                *Permission_Type     `protobuf:"varint,1,req,name=type,enum=proto.Permission_Type" json:"type,omitempty"`
   144  	GlobalPermission    *GlobalPermission    `protobuf:"bytes,2,opt,name=global_permission" json:"global_permission,omitempty"`
   145  	NamespacePermission *NamespacePermission `protobuf:"bytes,3,opt,name=namespace_permission" json:"namespace_permission,omitempty"`
   146  	TablePermission     *TablePermission     `protobuf:"bytes,4,opt,name=table_permission" json:"table_permission,omitempty"`
   147  	XXX_unrecognized    []byte               `json:"-"`
   148  }
   149  
   150  func (m *Permission) Reset()         { *m = Permission{} }
   151  func (m *Permission) String() string { return proto1.CompactTextString(m) }
   152  func (*Permission) ProtoMessage()    {}
   153  
   154  func (m *Permission) GetType() Permission_Type {
   155  	if m != nil && m.Type != nil {
   156  		return *m.Type
   157  	}
   158  	return Permission_Global
   159  }
   160  
   161  func (m *Permission) GetGlobalPermission() *GlobalPermission {
   162  	if m != nil {
   163  		return m.GlobalPermission
   164  	}
   165  	return nil
   166  }
   167  
   168  func (m *Permission) GetNamespacePermission() *NamespacePermission {
   169  	if m != nil {
   170  		return m.NamespacePermission
   171  	}
   172  	return nil
   173  }
   174  
   175  func (m *Permission) GetTablePermission() *TablePermission {
   176  	if m != nil {
   177  		return m.TablePermission
   178  	}
   179  	return nil
   180  }
   181  
   182  type TablePermission struct {
   183  	TableName        *TableName          `protobuf:"bytes,1,opt,name=table_name" json:"table_name,omitempty"`
   184  	Family           []byte              `protobuf:"bytes,2,opt,name=family" json:"family,omitempty"`
   185  	Qualifier        []byte              `protobuf:"bytes,3,opt,name=qualifier" json:"qualifier,omitempty"`
   186  	Action           []Permission_Action `protobuf:"varint,4,rep,name=action,enum=proto.Permission_Action" json:"action,omitempty"`
   187  	XXX_unrecognized []byte              `json:"-"`
   188  }
   189  
   190  func (m *TablePermission) Reset()         { *m = TablePermission{} }
   191  func (m *TablePermission) String() string { return proto1.CompactTextString(m) }
   192  func (*TablePermission) ProtoMessage()    {}
   193  
   194  func (m *TablePermission) GetTableName() *TableName {
   195  	if m != nil {
   196  		return m.TableName
   197  	}
   198  	return nil
   199  }
   200  
   201  func (m *TablePermission) GetFamily() []byte {
   202  	if m != nil {
   203  		return m.Family
   204  	}
   205  	return nil
   206  }
   207  
   208  func (m *TablePermission) GetQualifier() []byte {
   209  	if m != nil {
   210  		return m.Qualifier
   211  	}
   212  	return nil
   213  }
   214  
   215  func (m *TablePermission) GetAction() []Permission_Action {
   216  	if m != nil {
   217  		return m.Action
   218  	}
   219  	return nil
   220  }
   221  
   222  type NamespacePermission struct {
   223  	NamespaceName    []byte              `protobuf:"bytes,1,opt,name=namespace_name" json:"namespace_name,omitempty"`
   224  	Action           []Permission_Action `protobuf:"varint,2,rep,name=action,enum=proto.Permission_Action" json:"action,omitempty"`
   225  	XXX_unrecognized []byte              `json:"-"`
   226  }
   227  
   228  func (m *NamespacePermission) Reset()         { *m = NamespacePermission{} }
   229  func (m *NamespacePermission) String() string { return proto1.CompactTextString(m) }
   230  func (*NamespacePermission) ProtoMessage()    {}
   231  
   232  func (m *NamespacePermission) GetNamespaceName() []byte {
   233  	if m != nil {
   234  		return m.NamespaceName
   235  	}
   236  	return nil
   237  }
   238  
   239  func (m *NamespacePermission) GetAction() []Permission_Action {
   240  	if m != nil {
   241  		return m.Action
   242  	}
   243  	return nil
   244  }
   245  
   246  type GlobalPermission struct {
   247  	Action           []Permission_Action `protobuf:"varint,1,rep,name=action,enum=proto.Permission_Action" json:"action,omitempty"`
   248  	XXX_unrecognized []byte              `json:"-"`
   249  }
   250  
   251  func (m *GlobalPermission) Reset()         { *m = GlobalPermission{} }
   252  func (m *GlobalPermission) String() string { return proto1.CompactTextString(m) }
   253  func (*GlobalPermission) ProtoMessage()    {}
   254  
   255  func (m *GlobalPermission) GetAction() []Permission_Action {
   256  	if m != nil {
   257  		return m.Action
   258  	}
   259  	return nil
   260  }
   261  
   262  type UserPermission struct {
   263  	User             []byte      `protobuf:"bytes,1,req,name=user" json:"user,omitempty"`
   264  	Permission       *Permission `protobuf:"bytes,3,req,name=permission" json:"permission,omitempty"`
   265  	XXX_unrecognized []byte      `json:"-"`
   266  }
   267  
   268  func (m *UserPermission) Reset()         { *m = UserPermission{} }
   269  func (m *UserPermission) String() string { return proto1.CompactTextString(m) }
   270  func (*UserPermission) ProtoMessage()    {}
   271  
   272  func (m *UserPermission) GetUser() []byte {
   273  	if m != nil {
   274  		return m.User
   275  	}
   276  	return nil
   277  }
   278  
   279  func (m *UserPermission) GetPermission() *Permission {
   280  	if m != nil {
   281  		return m.Permission
   282  	}
   283  	return nil
   284  }
   285  
   286  // *
   287  // Content of the /hbase/acl/<table or namespace> znode.
   288  type UsersAndPermissions struct {
   289  	UserPermissions  []*UsersAndPermissions_UserPermissions `protobuf:"bytes,1,rep,name=user_permissions" json:"user_permissions,omitempty"`
   290  	XXX_unrecognized []byte                                 `json:"-"`
   291  }
   292  
   293  func (m *UsersAndPermissions) Reset()         { *m = UsersAndPermissions{} }
   294  func (m *UsersAndPermissions) String() string { return proto1.CompactTextString(m) }
   295  func (*UsersAndPermissions) ProtoMessage()    {}
   296  
   297  func (m *UsersAndPermissions) GetUserPermissions() []*UsersAndPermissions_UserPermissions {
   298  	if m != nil {
   299  		return m.UserPermissions
   300  	}
   301  	return nil
   302  }
   303  
   304  type UsersAndPermissions_UserPermissions struct {
   305  	User             []byte        `protobuf:"bytes,1,req,name=user" json:"user,omitempty"`
   306  	Permissions      []*Permission `protobuf:"bytes,2,rep,name=permissions" json:"permissions,omitempty"`
   307  	XXX_unrecognized []byte        `json:"-"`
   308  }
   309  
   310  func (m *UsersAndPermissions_UserPermissions) Reset()         { *m = UsersAndPermissions_UserPermissions{} }
   311  func (m *UsersAndPermissions_UserPermissions) String() string { return proto1.CompactTextString(m) }
   312  func (*UsersAndPermissions_UserPermissions) ProtoMessage()    {}
   313  
   314  func (m *UsersAndPermissions_UserPermissions) GetUser() []byte {
   315  	if m != nil {
   316  		return m.User
   317  	}
   318  	return nil
   319  }
   320  
   321  func (m *UsersAndPermissions_UserPermissions) GetPermissions() []*Permission {
   322  	if m != nil {
   323  		return m.Permissions
   324  	}
   325  	return nil
   326  }
   327  
   328  type GrantRequest struct {
   329  	UserPermission   *UserPermission `protobuf:"bytes,1,req,name=user_permission" json:"user_permission,omitempty"`
   330  	XXX_unrecognized []byte          `json:"-"`
   331  }
   332  
   333  func (m *GrantRequest) Reset()         { *m = GrantRequest{} }
   334  func (m *GrantRequest) String() string { return proto1.CompactTextString(m) }
   335  func (*GrantRequest) ProtoMessage()    {}
   336  
   337  func (m *GrantRequest) GetUserPermission() *UserPermission {
   338  	if m != nil {
   339  		return m.UserPermission
   340  	}
   341  	return nil
   342  }
   343  
   344  type GrantResponse struct {
   345  	XXX_unrecognized []byte `json:"-"`
   346  }
   347  
   348  func (m *GrantResponse) Reset()         { *m = GrantResponse{} }
   349  func (m *GrantResponse) String() string { return proto1.CompactTextString(m) }
   350  func (*GrantResponse) ProtoMessage()    {}
   351  
   352  type RevokeRequest struct {
   353  	UserPermission   *UserPermission `protobuf:"bytes,1,req,name=user_permission" json:"user_permission,omitempty"`
   354  	XXX_unrecognized []byte          `json:"-"`
   355  }
   356  
   357  func (m *RevokeRequest) Reset()         { *m = RevokeRequest{} }
   358  func (m *RevokeRequest) String() string { return proto1.CompactTextString(m) }
   359  func (*RevokeRequest) ProtoMessage()    {}
   360  
   361  func (m *RevokeRequest) GetUserPermission() *UserPermission {
   362  	if m != nil {
   363  		return m.UserPermission
   364  	}
   365  	return nil
   366  }
   367  
   368  type RevokeResponse struct {
   369  	XXX_unrecognized []byte `json:"-"`
   370  }
   371  
   372  func (m *RevokeResponse) Reset()         { *m = RevokeResponse{} }
   373  func (m *RevokeResponse) String() string { return proto1.CompactTextString(m) }
   374  func (*RevokeResponse) ProtoMessage()    {}
   375  
   376  type GetUserPermissionsRequest struct {
   377  	Type             *Permission_Type `protobuf:"varint,1,opt,name=type,enum=proto.Permission_Type" json:"type,omitempty"`
   378  	TableName        *TableName       `protobuf:"bytes,2,opt,name=table_name" json:"table_name,omitempty"`
   379  	NamespaceName    []byte           `protobuf:"bytes,3,opt,name=namespace_name" json:"namespace_name,omitempty"`
   380  	XXX_unrecognized []byte           `json:"-"`
   381  }
   382  
   383  func (m *GetUserPermissionsRequest) Reset()         { *m = GetUserPermissionsRequest{} }
   384  func (m *GetUserPermissionsRequest) String() string { return proto1.CompactTextString(m) }
   385  func (*GetUserPermissionsRequest) ProtoMessage()    {}
   386  
   387  func (m *GetUserPermissionsRequest) GetType() Permission_Type {
   388  	if m != nil && m.Type != nil {
   389  		return *m.Type
   390  	}
   391  	return Permission_Global
   392  }
   393  
   394  func (m *GetUserPermissionsRequest) GetTableName() *TableName {
   395  	if m != nil {
   396  		return m.TableName
   397  	}
   398  	return nil
   399  }
   400  
   401  func (m *GetUserPermissionsRequest) GetNamespaceName() []byte {
   402  	if m != nil {
   403  		return m.NamespaceName
   404  	}
   405  	return nil
   406  }
   407  
   408  type GetUserPermissionsResponse struct {
   409  	UserPermission   []*UserPermission `protobuf:"bytes,1,rep,name=user_permission" json:"user_permission,omitempty"`
   410  	XXX_unrecognized []byte            `json:"-"`
   411  }
   412  
   413  func (m *GetUserPermissionsResponse) Reset()         { *m = GetUserPermissionsResponse{} }
   414  func (m *GetUserPermissionsResponse) String() string { return proto1.CompactTextString(m) }
   415  func (*GetUserPermissionsResponse) ProtoMessage()    {}
   416  
   417  func (m *GetUserPermissionsResponse) GetUserPermission() []*UserPermission {
   418  	if m != nil {
   419  		return m.UserPermission
   420  	}
   421  	return nil
   422  }
   423  
   424  type CheckPermissionsRequest struct {
   425  	Permission       []*Permission `protobuf:"bytes,1,rep,name=permission" json:"permission,omitempty"`
   426  	XXX_unrecognized []byte        `json:"-"`
   427  }
   428  
   429  func (m *CheckPermissionsRequest) Reset()         { *m = CheckPermissionsRequest{} }
   430  func (m *CheckPermissionsRequest) String() string { return proto1.CompactTextString(m) }
   431  func (*CheckPermissionsRequest) ProtoMessage()    {}
   432  
   433  func (m *CheckPermissionsRequest) GetPermission() []*Permission {
   434  	if m != nil {
   435  		return m.Permission
   436  	}
   437  	return nil
   438  }
   439  
   440  type CheckPermissionsResponse struct {
   441  	XXX_unrecognized []byte `json:"-"`
   442  }
   443  
   444  func (m *CheckPermissionsResponse) Reset()         { *m = CheckPermissionsResponse{} }
   445  func (m *CheckPermissionsResponse) String() string { return proto1.CompactTextString(m) }
   446  func (*CheckPermissionsResponse) ProtoMessage()    {}
   447  
   448  func init() {
   449  	proto1.RegisterEnum("proto.Permission_Action", Permission_Action_name, Permission_Action_value)
   450  	proto1.RegisterEnum("proto.Permission_Type", Permission_Type_name, Permission_Type_value)
   451  }