github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/RPC.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: RPC.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 // User Information proto. Included in ConnectionHeader on connection setup 15 type UserInformation struct { 16 EffectiveUser *string `protobuf:"bytes,1,req,name=effective_user" json:"effective_user,omitempty"` 17 RealUser *string `protobuf:"bytes,2,opt,name=real_user" json:"real_user,omitempty"` 18 XXX_unrecognized []byte `json:"-"` 19 } 20 21 func (m *UserInformation) Reset() { *m = UserInformation{} } 22 func (m *UserInformation) String() string { return proto1.CompactTextString(m) } 23 func (*UserInformation) ProtoMessage() {} 24 25 func (m *UserInformation) GetEffectiveUser() string { 26 if m != nil && m.EffectiveUser != nil { 27 return *m.EffectiveUser 28 } 29 return "" 30 } 31 32 func (m *UserInformation) GetRealUser() string { 33 if m != nil && m.RealUser != nil { 34 return *m.RealUser 35 } 36 return "" 37 } 38 39 // Rpc client version info proto. Included in ConnectionHeader on connection setup 40 type VersionInfo struct { 41 Version *string `protobuf:"bytes,1,req,name=version" json:"version,omitempty"` 42 Url *string `protobuf:"bytes,2,req,name=url" json:"url,omitempty"` 43 Revision *string `protobuf:"bytes,3,req,name=revision" json:"revision,omitempty"` 44 User *string `protobuf:"bytes,4,req,name=user" json:"user,omitempty"` 45 Date *string `protobuf:"bytes,5,req,name=date" json:"date,omitempty"` 46 SrcChecksum *string `protobuf:"bytes,6,req,name=src_checksum" json:"src_checksum,omitempty"` 47 XXX_unrecognized []byte `json:"-"` 48 } 49 50 func (m *VersionInfo) Reset() { *m = VersionInfo{} } 51 func (m *VersionInfo) String() string { return proto1.CompactTextString(m) } 52 func (*VersionInfo) ProtoMessage() {} 53 54 func (m *VersionInfo) GetVersion() string { 55 if m != nil && m.Version != nil { 56 return *m.Version 57 } 58 return "" 59 } 60 61 func (m *VersionInfo) GetUrl() string { 62 if m != nil && m.Url != nil { 63 return *m.Url 64 } 65 return "" 66 } 67 68 func (m *VersionInfo) GetRevision() string { 69 if m != nil && m.Revision != nil { 70 return *m.Revision 71 } 72 return "" 73 } 74 75 func (m *VersionInfo) GetUser() string { 76 if m != nil && m.User != nil { 77 return *m.User 78 } 79 return "" 80 } 81 82 func (m *VersionInfo) GetDate() string { 83 if m != nil && m.Date != nil { 84 return *m.Date 85 } 86 return "" 87 } 88 89 func (m *VersionInfo) GetSrcChecksum() string { 90 if m != nil && m.SrcChecksum != nil { 91 return *m.SrcChecksum 92 } 93 return "" 94 } 95 96 // This is sent on connection setup after the connection preamble is sent. 97 type ConnectionHeader struct { 98 UserInfo *UserInformation `protobuf:"bytes,1,opt,name=user_info" json:"user_info,omitempty"` 99 ServiceName *string `protobuf:"bytes,2,opt,name=service_name" json:"service_name,omitempty"` 100 // Cell block codec we will use sending over optional cell blocks. Server throws exception 101 // if cannot deal. Null means no codec'ing going on so we are pb all the time (SLOW!!!) 102 CellBlockCodecClass *string `protobuf:"bytes,3,opt,name=cell_block_codec_class" json:"cell_block_codec_class,omitempty"` 103 // Compressor we will use if cell block is compressed. Server will throw exception if not supported. 104 // Class must implement hadoop's CompressionCodec Interface. Can't compress if no codec. 105 CellBlockCompressorClass *string `protobuf:"bytes,4,opt,name=cell_block_compressor_class" json:"cell_block_compressor_class,omitempty"` 106 VersionInfo *VersionInfo `protobuf:"bytes,5,opt,name=version_info" json:"version_info,omitempty"` 107 XXX_unrecognized []byte `json:"-"` 108 } 109 110 func (m *ConnectionHeader) Reset() { *m = ConnectionHeader{} } 111 func (m *ConnectionHeader) String() string { return proto1.CompactTextString(m) } 112 func (*ConnectionHeader) ProtoMessage() {} 113 114 func (m *ConnectionHeader) GetUserInfo() *UserInformation { 115 if m != nil { 116 return m.UserInfo 117 } 118 return nil 119 } 120 121 func (m *ConnectionHeader) GetServiceName() string { 122 if m != nil && m.ServiceName != nil { 123 return *m.ServiceName 124 } 125 return "" 126 } 127 128 func (m *ConnectionHeader) GetCellBlockCodecClass() string { 129 if m != nil && m.CellBlockCodecClass != nil { 130 return *m.CellBlockCodecClass 131 } 132 return "" 133 } 134 135 func (m *ConnectionHeader) GetCellBlockCompressorClass() string { 136 if m != nil && m.CellBlockCompressorClass != nil { 137 return *m.CellBlockCompressorClass 138 } 139 return "" 140 } 141 142 func (m *ConnectionHeader) GetVersionInfo() *VersionInfo { 143 if m != nil { 144 return m.VersionInfo 145 } 146 return nil 147 } 148 149 // Optional Cell block Message. Included in client RequestHeader 150 type CellBlockMeta struct { 151 // Length of the following cell block. Could calculate it but convenient having it too hand. 152 Length *uint32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"` 153 XXX_unrecognized []byte `json:"-"` 154 } 155 156 func (m *CellBlockMeta) Reset() { *m = CellBlockMeta{} } 157 func (m *CellBlockMeta) String() string { return proto1.CompactTextString(m) } 158 func (*CellBlockMeta) ProtoMessage() {} 159 160 func (m *CellBlockMeta) GetLength() uint32 { 161 if m != nil && m.Length != nil { 162 return *m.Length 163 } 164 return 0 165 } 166 167 // At the RPC layer, this message is used to carry 168 // the server side exception to the RPC client. 169 type ExceptionResponse struct { 170 // Class name of the exception thrown from the server 171 ExceptionClassName *string `protobuf:"bytes,1,opt,name=exception_class_name" json:"exception_class_name,omitempty"` 172 // Exception stack trace from the server side 173 StackTrace *string `protobuf:"bytes,2,opt,name=stack_trace" json:"stack_trace,omitempty"` 174 // Optional hostname. Filled in for some exceptions such as region moved 175 // where exception gives clue on where the region may have moved. 176 Hostname *string `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"` 177 Port *int32 `protobuf:"varint,4,opt,name=port" json:"port,omitempty"` 178 // Set if we are NOT to retry on receipt of this exception 179 DoNotRetry *bool `protobuf:"varint,5,opt,name=do_not_retry" json:"do_not_retry,omitempty"` 180 XXX_unrecognized []byte `json:"-"` 181 } 182 183 func (m *ExceptionResponse) Reset() { *m = ExceptionResponse{} } 184 func (m *ExceptionResponse) String() string { return proto1.CompactTextString(m) } 185 func (*ExceptionResponse) ProtoMessage() {} 186 187 func (m *ExceptionResponse) GetExceptionClassName() string { 188 if m != nil && m.ExceptionClassName != nil { 189 return *m.ExceptionClassName 190 } 191 return "" 192 } 193 194 func (m *ExceptionResponse) GetStackTrace() string { 195 if m != nil && m.StackTrace != nil { 196 return *m.StackTrace 197 } 198 return "" 199 } 200 201 func (m *ExceptionResponse) GetHostname() string { 202 if m != nil && m.Hostname != nil { 203 return *m.Hostname 204 } 205 return "" 206 } 207 208 func (m *ExceptionResponse) GetPort() int32 { 209 if m != nil && m.Port != nil { 210 return *m.Port 211 } 212 return 0 213 } 214 215 func (m *ExceptionResponse) GetDoNotRetry() bool { 216 if m != nil && m.DoNotRetry != nil { 217 return *m.DoNotRetry 218 } 219 return false 220 } 221 222 // Header sent making a request. 223 type RequestHeader struct { 224 // Monotonically increasing call_id to keep track of RPC requests and their response 225 CallId *uint32 `protobuf:"varint,1,opt,name=call_id" json:"call_id,omitempty"` 226 TraceInfo *RPCTInfo `protobuf:"bytes,2,opt,name=trace_info" json:"trace_info,omitempty"` 227 MethodName *string `protobuf:"bytes,3,opt,name=method_name" json:"method_name,omitempty"` 228 // If true, then a pb Message param follows. 229 RequestParam *bool `protobuf:"varint,4,opt,name=request_param" json:"request_param,omitempty"` 230 // If present, then an encoded data block follows. 231 CellBlockMeta *CellBlockMeta `protobuf:"bytes,5,opt,name=cell_block_meta" json:"cell_block_meta,omitempty"` 232 // 0 is NORMAL priority. 100 is HIGH. If no priority, treat it as NORMAL. 233 // See HConstants. 234 Priority *uint32 `protobuf:"varint,6,opt,name=priority" json:"priority,omitempty"` 235 XXX_unrecognized []byte `json:"-"` 236 } 237 238 func (m *RequestHeader) Reset() { *m = RequestHeader{} } 239 func (m *RequestHeader) String() string { return proto1.CompactTextString(m) } 240 func (*RequestHeader) ProtoMessage() {} 241 242 func (m *RequestHeader) GetCallId() uint32 { 243 if m != nil && m.CallId != nil { 244 return *m.CallId 245 } 246 return 0 247 } 248 249 func (m *RequestHeader) GetTraceInfo() *RPCTInfo { 250 if m != nil { 251 return m.TraceInfo 252 } 253 return nil 254 } 255 256 func (m *RequestHeader) GetMethodName() string { 257 if m != nil && m.MethodName != nil { 258 return *m.MethodName 259 } 260 return "" 261 } 262 263 func (m *RequestHeader) GetRequestParam() bool { 264 if m != nil && m.RequestParam != nil { 265 return *m.RequestParam 266 } 267 return false 268 } 269 270 func (m *RequestHeader) GetCellBlockMeta() *CellBlockMeta { 271 if m != nil { 272 return m.CellBlockMeta 273 } 274 return nil 275 } 276 277 func (m *RequestHeader) GetPriority() uint32 { 278 if m != nil && m.Priority != nil { 279 return *m.Priority 280 } 281 return 0 282 } 283 284 type ResponseHeader struct { 285 CallId *uint32 `protobuf:"varint,1,opt,name=call_id" json:"call_id,omitempty"` 286 // If present, then request threw an exception and no response message (else we presume one) 287 Exception *ExceptionResponse `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` 288 // If present, then an encoded data block follows. 289 CellBlockMeta *CellBlockMeta `protobuf:"bytes,3,opt,name=cell_block_meta" json:"cell_block_meta,omitempty"` 290 XXX_unrecognized []byte `json:"-"` 291 } 292 293 func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } 294 func (m *ResponseHeader) String() string { return proto1.CompactTextString(m) } 295 func (*ResponseHeader) ProtoMessage() {} 296 297 func (m *ResponseHeader) GetCallId() uint32 { 298 if m != nil && m.CallId != nil { 299 return *m.CallId 300 } 301 return 0 302 } 303 304 func (m *ResponseHeader) GetException() *ExceptionResponse { 305 if m != nil { 306 return m.Exception 307 } 308 return nil 309 } 310 311 func (m *ResponseHeader) GetCellBlockMeta() *CellBlockMeta { 312 if m != nil { 313 return m.CellBlockMeta 314 } 315 return nil 316 } 317 318 func init() { 319 }