Files
glkvm-cloud/rtty/rtty.pb.go
T
Jianhui Zhao 93f54c2e13 Optimize download file
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-06-14 16:36:59 +08:00

391 lines
13 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: rtty.proto
/*
Package rtty is a generated protocol buffer package.
It is generated from these files:
rtty.proto
It has these top-level messages:
RttyMessage
*/
package rtty
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type RttyMessage_Type int32
const (
RttyMessage_UNKNOWN RttyMessage_Type = 0
RttyMessage_LOGIN RttyMessage_Type = 1
RttyMessage_LOGINACK RttyMessage_Type = 2
RttyMessage_LOGOUT RttyMessage_Type = 3
RttyMessage_TTY RttyMessage_Type = 4
RttyMessage_UPFILE RttyMessage_Type = 5
RttyMessage_DOWNFILE RttyMessage_Type = 6
RttyMessage_COMMAND RttyMessage_Type = 7
)
var RttyMessage_Type_name = map[int32]string{
0: "UNKNOWN",
1: "LOGIN",
2: "LOGINACK",
3: "LOGOUT",
4: "TTY",
5: "UPFILE",
6: "DOWNFILE",
7: "COMMAND",
}
var RttyMessage_Type_value = map[string]int32{
"UNKNOWN": 0,
"LOGIN": 1,
"LOGINACK": 2,
"LOGOUT": 3,
"TTY": 4,
"UPFILE": 5,
"DOWNFILE": 6,
"COMMAND": 7,
}
func (x RttyMessage_Type) String() string {
return proto.EnumName(RttyMessage_Type_name, int32(x))
}
func (RttyMessage_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type RttyMessage_LoginCode int32
const (
RttyMessage_OK RttyMessage_LoginCode = 0
RttyMessage_OFFLINE RttyMessage_LoginCode = 1
)
var RttyMessage_LoginCode_name = map[int32]string{
0: "OK",
1: "OFFLINE",
}
var RttyMessage_LoginCode_value = map[string]int32{
"OK": 0,
"OFFLINE": 1,
}
func (x RttyMessage_LoginCode) String() string {
return proto.EnumName(RttyMessage_LoginCode_name, int32(x))
}
func (RttyMessage_LoginCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
type RttyMessage_FileCode int32
const (
RttyMessage_START RttyMessage_FileCode = 0
RttyMessage_RATELIMIT RttyMessage_FileCode = 1
RttyMessage_FILEDATA RttyMessage_FileCode = 2
RttyMessage_CANCELED RttyMessage_FileCode = 3
RttyMessage_END RttyMessage_FileCode = 4
)
var RttyMessage_FileCode_name = map[int32]string{
0: "START",
1: "RATELIMIT",
2: "FILEDATA",
3: "CANCELED",
4: "END",
}
var RttyMessage_FileCode_value = map[string]int32{
"START": 0,
"RATELIMIT": 1,
"FILEDATA": 2,
"CANCELED": 3,
"END": 4,
}
func (x RttyMessage_FileCode) String() string {
return proto.EnumName(RttyMessage_FileCode_name, int32(x))
}
func (RttyMessage_FileCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
type RttyMessage_CommandErr int32
const (
RttyMessage_NONE RttyMessage_CommandErr = 0
RttyMessage_TIMEOUT RttyMessage_CommandErr = 1
RttyMessage_NOTFOUND RttyMessage_CommandErr = 2
RttyMessage_READ RttyMessage_CommandErr = 3
RttyMessage_PERMISSION RttyMessage_CommandErr = 4
RttyMessage_SYSCALL RttyMessage_CommandErr = 5
RttyMessage_DEV_OFFLINE RttyMessage_CommandErr = 6
RttyMessage_CMD_REQUIRED RttyMessage_CommandErr = 7
RttyMessage_DEVID_REQUIRED RttyMessage_CommandErr = 8
)
var RttyMessage_CommandErr_name = map[int32]string{
0: "NONE",
1: "TIMEOUT",
2: "NOTFOUND",
3: "READ",
4: "PERMISSION",
5: "SYSCALL",
6: "DEV_OFFLINE",
7: "CMD_REQUIRED",
8: "DEVID_REQUIRED",
}
var RttyMessage_CommandErr_value = map[string]int32{
"NONE": 0,
"TIMEOUT": 1,
"NOTFOUND": 2,
"READ": 3,
"PERMISSION": 4,
"SYSCALL": 5,
"DEV_OFFLINE": 6,
"CMD_REQUIRED": 7,
"DEVID_REQUIRED": 8,
}
func (x RttyMessage_CommandErr) String() string {
return proto.EnumName(RttyMessage_CommandErr_name, int32(x))
}
func (RttyMessage_CommandErr) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
type RttyMessage struct {
Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
Type RttyMessage_Type `protobuf:"varint,2,opt,name=type,enum=RttyMessage_Type" json:"type,omitempty"`
Sid string `protobuf:"bytes,3,opt,name=sid" json:"sid,omitempty"`
Code int32 `protobuf:"varint,4,opt,name=code" json:"code,omitempty"`
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
Name string `protobuf:"bytes,6,opt,name=name" json:"name,omitempty"`
Size uint32 `protobuf:"varint,7,opt,name=size" json:"size,omitempty"`
Id uint32 `protobuf:"varint,8,opt,name=id" json:"id,omitempty"`
Err int32 `protobuf:"varint,9,opt,name=err" json:"err,omitempty"`
Username string `protobuf:"bytes,10,opt,name=username" json:"username,omitempty"`
Password string `protobuf:"bytes,11,opt,name=password" json:"password,omitempty"`
StdOut string `protobuf:"bytes,12,opt,name=std_out,json=stdOut" json:"std_out,omitempty"`
StdErr string `protobuf:"bytes,13,opt,name=std_err,json=stdErr" json:"std_err,omitempty"`
Params []string `protobuf:"bytes,14,rep,name=params" json:"params,omitempty"`
Env map[string]string `protobuf:"bytes,15,rep,name=env" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Filelist []*RttyMessage_File `protobuf:"bytes,16,rep,name=filelist" json:"filelist,omitempty"`
}
func (m *RttyMessage) Reset() { *m = RttyMessage{} }
func (m *RttyMessage) String() string { return proto.CompactTextString(m) }
func (*RttyMessage) ProtoMessage() {}
func (*RttyMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RttyMessage) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *RttyMessage) GetType() RttyMessage_Type {
if m != nil {
return m.Type
}
return RttyMessage_UNKNOWN
}
func (m *RttyMessage) GetSid() string {
if m != nil {
return m.Sid
}
return ""
}
func (m *RttyMessage) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *RttyMessage) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *RttyMessage) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *RttyMessage) GetSize() uint32 {
if m != nil {
return m.Size
}
return 0
}
func (m *RttyMessage) GetId() uint32 {
if m != nil {
return m.Id
}
return 0
}
func (m *RttyMessage) GetErr() int32 {
if m != nil {
return m.Err
}
return 0
}
func (m *RttyMessage) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *RttyMessage) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *RttyMessage) GetStdOut() string {
if m != nil {
return m.StdOut
}
return ""
}
func (m *RttyMessage) GetStdErr() string {
if m != nil {
return m.StdErr
}
return ""
}
func (m *RttyMessage) GetParams() []string {
if m != nil {
return m.Params
}
return nil
}
func (m *RttyMessage) GetEnv() map[string]string {
if m != nil {
return m.Env
}
return nil
}
func (m *RttyMessage) GetFilelist() []*RttyMessage_File {
if m != nil {
return m.Filelist
}
return nil
}
type RttyMessage_File struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Dir bool `protobuf:"varint,2,opt,name=dir" json:"dir,omitempty"`
Mtime uint64 `protobuf:"varint,3,opt,name=mtime" json:"mtime,omitempty"`
Size uint64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
}
func (m *RttyMessage_File) Reset() { *m = RttyMessage_File{} }
func (m *RttyMessage_File) String() string { return proto.CompactTextString(m) }
func (*RttyMessage_File) ProtoMessage() {}
func (*RttyMessage_File) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (m *RttyMessage_File) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *RttyMessage_File) GetDir() bool {
if m != nil {
return m.Dir
}
return false
}
func (m *RttyMessage_File) GetMtime() uint64 {
if m != nil {
return m.Mtime
}
return 0
}
func (m *RttyMessage_File) GetSize() uint64 {
if m != nil {
return m.Size
}
return 0
}
func init() {
proto.RegisterType((*RttyMessage)(nil), "rtty_message")
proto.RegisterType((*RttyMessage_File)(nil), "rtty_message.File")
proto.RegisterEnum("RttyMessage_Type", RttyMessage_Type_name, RttyMessage_Type_value)
proto.RegisterEnum("RttyMessage_LoginCode", RttyMessage_LoginCode_name, RttyMessage_LoginCode_value)
proto.RegisterEnum("RttyMessage_FileCode", RttyMessage_FileCode_name, RttyMessage_FileCode_value)
proto.RegisterEnum("RttyMessage_CommandErr", RttyMessage_CommandErr_name, RttyMessage_CommandErr_value)
}
func init() { proto.RegisterFile("rtty.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 612 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x53, 0x4f, 0x6f, 0xda, 0x4e,
0x10, 0x8d, 0xff, 0x60, 0x9b, 0x81, 0x90, 0xd5, 0xea, 0xa7, 0xfc, 0x56, 0x39, 0x59, 0x1c, 0x2a,
0x4e, 0x1c, 0x52, 0xa9, 0xaa, 0x7a, 0xb3, 0xec, 0x25, 0xb2, 0x62, 0xd6, 0xe9, 0x62, 0x12, 0xe5,
0x84, 0xdc, 0x7a, 0x9b, 0x5a, 0x05, 0x8c, 0x6c, 0x43, 0x45, 0xbf, 0x44, 0x3f, 0x47, 0xbf, 0x65,
0x35, 0xeb, 0x82, 0xd2, 0xde, 0xde, 0x7b, 0xf3, 0xf6, 0xcd, 0x30, 0x83, 0x01, 0xea, 0xb6, 0x3d,
0x4e, 0x77, 0x75, 0xd5, 0x56, 0xe3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