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

     1  // Code generated by protoc-gen-go.
     2  // source: Authentication.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 TokenIdentifier_Kind int32
    15  
    16  const (
    17  	TokenIdentifier_HBASE_AUTH_TOKEN TokenIdentifier_Kind = 0
    18  )
    19  
    20  var TokenIdentifier_Kind_name = map[int32]string{
    21  	0: "HBASE_AUTH_TOKEN",
    22  }
    23  var TokenIdentifier_Kind_value = map[string]int32{
    24  	"HBASE_AUTH_TOKEN": 0,
    25  }
    26  
    27  func (x TokenIdentifier_Kind) Enum() *TokenIdentifier_Kind {
    28  	p := new(TokenIdentifier_Kind)
    29  	*p = x
    30  	return p
    31  }
    32  func (x TokenIdentifier_Kind) String() string {
    33  	return proto1.EnumName(TokenIdentifier_Kind_name, int32(x))
    34  }
    35  func (x *TokenIdentifier_Kind) UnmarshalJSON(data []byte) error {
    36  	value, err := proto1.UnmarshalJSONEnum(TokenIdentifier_Kind_value, data, "TokenIdentifier_Kind")
    37  	if err != nil {
    38  		return err
    39  	}
    40  	*x = TokenIdentifier_Kind(value)
    41  	return nil
    42  }
    43  
    44  type AuthenticationKey struct {
    45  	Id               *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
    46  	ExpirationDate   *int64 `protobuf:"varint,2,req,name=expiration_date" json:"expiration_date,omitempty"`
    47  	Key              []byte `protobuf:"bytes,3,req,name=key" json:"key,omitempty"`
    48  	XXX_unrecognized []byte `json:"-"`
    49  }
    50  
    51  func (m *AuthenticationKey) Reset()         { *m = AuthenticationKey{} }
    52  func (m *AuthenticationKey) String() string { return proto1.CompactTextString(m) }
    53  func (*AuthenticationKey) ProtoMessage()    {}
    54  
    55  func (m *AuthenticationKey) GetId() int32 {
    56  	if m != nil && m.Id != nil {
    57  		return *m.Id
    58  	}
    59  	return 0
    60  }
    61  
    62  func (m *AuthenticationKey) GetExpirationDate() int64 {
    63  	if m != nil && m.ExpirationDate != nil {
    64  		return *m.ExpirationDate
    65  	}
    66  	return 0
    67  }
    68  
    69  func (m *AuthenticationKey) GetKey() []byte {
    70  	if m != nil {
    71  		return m.Key
    72  	}
    73  	return nil
    74  }
    75  
    76  type TokenIdentifier struct {
    77  	Kind             *TokenIdentifier_Kind `protobuf:"varint,1,req,name=kind,enum=proto.TokenIdentifier_Kind" json:"kind,omitempty"`
    78  	Username         []byte                `protobuf:"bytes,2,req,name=username" json:"username,omitempty"`
    79  	KeyId            *int32                `protobuf:"varint,3,req,name=key_id" json:"key_id,omitempty"`
    80  	IssueDate        *int64                `protobuf:"varint,4,opt,name=issue_date" json:"issue_date,omitempty"`
    81  	ExpirationDate   *int64                `protobuf:"varint,5,opt,name=expiration_date" json:"expiration_date,omitempty"`
    82  	SequenceNumber   *int64                `protobuf:"varint,6,opt,name=sequence_number" json:"sequence_number,omitempty"`
    83  	XXX_unrecognized []byte                `json:"-"`
    84  }
    85  
    86  func (m *TokenIdentifier) Reset()         { *m = TokenIdentifier{} }
    87  func (m *TokenIdentifier) String() string { return proto1.CompactTextString(m) }
    88  func (*TokenIdentifier) ProtoMessage()    {}
    89  
    90  func (m *TokenIdentifier) GetKind() TokenIdentifier_Kind {
    91  	if m != nil && m.Kind != nil {
    92  		return *m.Kind
    93  	}
    94  	return TokenIdentifier_HBASE_AUTH_TOKEN
    95  }
    96  
    97  func (m *TokenIdentifier) GetUsername() []byte {
    98  	if m != nil {
    99  		return m.Username
   100  	}
   101  	return nil
   102  }
   103  
   104  func (m *TokenIdentifier) GetKeyId() int32 {
   105  	if m != nil && m.KeyId != nil {
   106  		return *m.KeyId
   107  	}
   108  	return 0
   109  }
   110  
   111  func (m *TokenIdentifier) GetIssueDate() int64 {
   112  	if m != nil && m.IssueDate != nil {
   113  		return *m.IssueDate
   114  	}
   115  	return 0
   116  }
   117  
   118  func (m *TokenIdentifier) GetExpirationDate() int64 {
   119  	if m != nil && m.ExpirationDate != nil {
   120  		return *m.ExpirationDate
   121  	}
   122  	return 0
   123  }
   124  
   125  func (m *TokenIdentifier) GetSequenceNumber() int64 {
   126  	if m != nil && m.SequenceNumber != nil {
   127  		return *m.SequenceNumber
   128  	}
   129  	return 0
   130  }
   131  
   132  // Serialization of the org.apache.hadoop.security.token.Token class
   133  // Note that this is a Hadoop class, so fields may change!
   134  type Token struct {
   135  	// the TokenIdentifier in serialized form
   136  	// Note: we can't use the protobuf directly because the Hadoop Token class
   137  	// only stores the serialized bytes
   138  	Identifier       []byte `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"`
   139  	Password         []byte `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
   140  	Service          []byte `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
   141  	XXX_unrecognized []byte `json:"-"`
   142  }
   143  
   144  func (m *Token) Reset()         { *m = Token{} }
   145  func (m *Token) String() string { return proto1.CompactTextString(m) }
   146  func (*Token) ProtoMessage()    {}
   147  
   148  func (m *Token) GetIdentifier() []byte {
   149  	if m != nil {
   150  		return m.Identifier
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *Token) GetPassword() []byte {
   156  	if m != nil {
   157  		return m.Password
   158  	}
   159  	return nil
   160  }
   161  
   162  func (m *Token) GetService() []byte {
   163  	if m != nil {
   164  		return m.Service
   165  	}
   166  	return nil
   167  }
   168  
   169  // RPC request & response messages
   170  type GetAuthenticationTokenRequest struct {
   171  	XXX_unrecognized []byte `json:"-"`
   172  }
   173  
   174  func (m *GetAuthenticationTokenRequest) Reset()         { *m = GetAuthenticationTokenRequest{} }
   175  func (m *GetAuthenticationTokenRequest) String() string { return proto1.CompactTextString(m) }
   176  func (*GetAuthenticationTokenRequest) ProtoMessage()    {}
   177  
   178  type GetAuthenticationTokenResponse struct {
   179  	Token            *Token `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
   180  	XXX_unrecognized []byte `json:"-"`
   181  }
   182  
   183  func (m *GetAuthenticationTokenResponse) Reset()         { *m = GetAuthenticationTokenResponse{} }
   184  func (m *GetAuthenticationTokenResponse) String() string { return proto1.CompactTextString(m) }
   185  func (*GetAuthenticationTokenResponse) ProtoMessage()    {}
   186  
   187  func (m *GetAuthenticationTokenResponse) GetToken() *Token {
   188  	if m != nil {
   189  		return m.Token
   190  	}
   191  	return nil
   192  }
   193  
   194  type WhoAmIRequest struct {
   195  	XXX_unrecognized []byte `json:"-"`
   196  }
   197  
   198  func (m *WhoAmIRequest) Reset()         { *m = WhoAmIRequest{} }
   199  func (m *WhoAmIRequest) String() string { return proto1.CompactTextString(m) }
   200  func (*WhoAmIRequest) ProtoMessage()    {}
   201  
   202  type WhoAmIResponse struct {
   203  	Username         *string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
   204  	AuthMethod       *string `protobuf:"bytes,2,opt,name=auth_method" json:"auth_method,omitempty"`
   205  	XXX_unrecognized []byte  `json:"-"`
   206  }
   207  
   208  func (m *WhoAmIResponse) Reset()         { *m = WhoAmIResponse{} }
   209  func (m *WhoAmIResponse) String() string { return proto1.CompactTextString(m) }
   210  func (*WhoAmIResponse) ProtoMessage()    {}
   211  
   212  func (m *WhoAmIResponse) GetUsername() string {
   213  	if m != nil && m.Username != nil {
   214  		return *m.Username
   215  	}
   216  	return ""
   217  }
   218  
   219  func (m *WhoAmIResponse) GetAuthMethod() string {
   220  	if m != nil && m.AuthMethod != nil {
   221  		return *m.AuthMethod
   222  	}
   223  	return ""
   224  }
   225  
   226  func init() {
   227  	proto1.RegisterEnum("proto.TokenIdentifier_Kind", TokenIdentifier_Kind_name, TokenIdentifier_Kind_value)
   228  }