github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/common/messages.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: messages.proto 3 // DO NOT EDIT! 4 5 /* 6 Package simpleexample_messages is a generated protocol buffer package. 7 8 It is generated from these files: 9 messages.proto 10 11 It has these top-level messages: 12 SimpleMessage 13 RsaPrivateKeyMessage 14 EcPrivateKeyMessage 15 PrivateKeyMessage 16 */ 17 package simpleexample_messages 18 19 import proto "github.com/golang/protobuf/proto" 20 import fmt "fmt" 21 import math "math" 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 33 34 type MessageType int32 35 36 const ( 37 MessageType_REQUEST MessageType = 1 38 MessageType_RESPONSE MessageType = 2 39 ) 40 41 var MessageType_name = map[int32]string{ 42 1: "REQUEST", 43 2: "RESPONSE", 44 } 45 var MessageType_value = map[string]int32{ 46 "REQUEST": 1, 47 "RESPONSE": 2, 48 } 49 50 func (x MessageType) Enum() *MessageType { 51 p := new(MessageType) 52 *p = x 53 return p 54 } 55 func (x MessageType) String() string { 56 return proto.EnumName(MessageType_name, int32(x)) 57 } 58 func (x *MessageType) UnmarshalJSON(data []byte) error { 59 value, err := proto.UnmarshalJSONEnum(MessageType_value, data, "MessageType") 60 if err != nil { 61 return err 62 } 63 *x = MessageType(value) 64 return nil 65 } 66 func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 67 68 type SimpleMessage struct { 69 MessageType *int32 `protobuf:"varint,1,req,name=message_type,json=messageType" json:"message_type,omitempty"` 70 RequestType *string `protobuf:"bytes,2,req,name=request_type,json=requestType" json:"request_type,omitempty"` 71 Err *string `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"` 72 Data [][]byte `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` 73 XXX_unrecognized []byte `json:"-"` 74 } 75 76 func (m *SimpleMessage) Reset() { *m = SimpleMessage{} } 77 func (m *SimpleMessage) String() string { return proto.CompactTextString(m) } 78 func (*SimpleMessage) ProtoMessage() {} 79 func (*SimpleMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 80 81 func (m *SimpleMessage) GetMessageType() int32 { 82 if m != nil && m.MessageType != nil { 83 return *m.MessageType 84 } 85 return 0 86 } 87 88 func (m *SimpleMessage) GetRequestType() string { 89 if m != nil && m.RequestType != nil { 90 return *m.RequestType 91 } 92 return "" 93 } 94 95 func (m *SimpleMessage) GetErr() string { 96 if m != nil && m.Err != nil { 97 return *m.Err 98 } 99 return "" 100 } 101 102 func (m *SimpleMessage) GetData() [][]byte { 103 if m != nil { 104 return m.Data 105 } 106 return nil 107 } 108 109 type RsaPrivateKeyMessage struct { 110 M []byte `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` 111 E []byte `protobuf:"bytes,2,opt,name=e" json:"e,omitempty"` 112 D []byte `protobuf:"bytes,3,opt,name=d" json:"d,omitempty"` 113 P []byte `protobuf:"bytes,4,opt,name=p" json:"p,omitempty"` 114 Q []byte `protobuf:"bytes,5,opt,name=q" json:"q,omitempty"` 115 XXX_unrecognized []byte `json:"-"` 116 } 117 118 func (m *RsaPrivateKeyMessage) Reset() { *m = RsaPrivateKeyMessage{} } 119 func (m *RsaPrivateKeyMessage) String() string { return proto.CompactTextString(m) } 120 func (*RsaPrivateKeyMessage) ProtoMessage() {} 121 func (*RsaPrivateKeyMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 122 123 func (m *RsaPrivateKeyMessage) GetM() []byte { 124 if m != nil { 125 return m.M 126 } 127 return nil 128 } 129 130 func (m *RsaPrivateKeyMessage) GetE() []byte { 131 if m != nil { 132 return m.E 133 } 134 return nil 135 } 136 137 func (m *RsaPrivateKeyMessage) GetD() []byte { 138 if m != nil { 139 return m.D 140 } 141 return nil 142 } 143 144 func (m *RsaPrivateKeyMessage) GetP() []byte { 145 if m != nil { 146 return m.P 147 } 148 return nil 149 } 150 151 func (m *RsaPrivateKeyMessage) GetQ() []byte { 152 if m != nil { 153 return m.Q 154 } 155 return nil 156 } 157 158 // The cheap way 159 type EcPrivateKeyMessage struct { 160 DerBlob []byte `protobuf:"bytes,1,opt,name=der_blob,json=derBlob" json:"der_blob,omitempty"` 161 XXX_unrecognized []byte `json:"-"` 162 } 163 164 func (m *EcPrivateKeyMessage) Reset() { *m = EcPrivateKeyMessage{} } 165 func (m *EcPrivateKeyMessage) String() string { return proto.CompactTextString(m) } 166 func (*EcPrivateKeyMessage) ProtoMessage() {} 167 func (*EcPrivateKeyMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } 168 169 func (m *EcPrivateKeyMessage) GetDerBlob() []byte { 170 if m != nil { 171 return m.DerBlob 172 } 173 return nil 174 } 175 176 type PrivateKeyMessage struct { 177 KeyType *string `protobuf:"bytes,1,req,name=key_type,json=keyType" json:"key_type,omitempty"` 178 RsaKey *RsaPrivateKeyMessage `protobuf:"bytes,2,opt,name=rsa_key,json=rsaKey" json:"rsa_key,omitempty"` 179 EcKey *EcPrivateKeyMessage `protobuf:"bytes,3,opt,name=ec_key,json=ecKey" json:"ec_key,omitempty"` 180 XXX_unrecognized []byte `json:"-"` 181 } 182 183 func (m *PrivateKeyMessage) Reset() { *m = PrivateKeyMessage{} } 184 func (m *PrivateKeyMessage) String() string { return proto.CompactTextString(m) } 185 func (*PrivateKeyMessage) ProtoMessage() {} 186 func (*PrivateKeyMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } 187 188 func (m *PrivateKeyMessage) GetKeyType() string { 189 if m != nil && m.KeyType != nil { 190 return *m.KeyType 191 } 192 return "" 193 } 194 195 func (m *PrivateKeyMessage) GetRsaKey() *RsaPrivateKeyMessage { 196 if m != nil { 197 return m.RsaKey 198 } 199 return nil 200 } 201 202 func (m *PrivateKeyMessage) GetEcKey() *EcPrivateKeyMessage { 203 if m != nil { 204 return m.EcKey 205 } 206 return nil 207 } 208 209 func init() { 210 proto.RegisterType((*SimpleMessage)(nil), "simpleexample_messages.SimpleMessage") 211 proto.RegisterType((*RsaPrivateKeyMessage)(nil), "simpleexample_messages.RsaPrivateKeyMessage") 212 proto.RegisterType((*EcPrivateKeyMessage)(nil), "simpleexample_messages.EcPrivateKeyMessage") 213 proto.RegisterType((*PrivateKeyMessage)(nil), "simpleexample_messages.PrivateKeyMessage") 214 proto.RegisterEnum("simpleexample_messages.MessageType", MessageType_name, MessageType_value) 215 } 216 217 func init() { proto.RegisterFile("messages.proto", fileDescriptor0) } 218 219 var fileDescriptor0 = []byte{ 220 // 314 bytes of a gzipped FileDescriptorProto 221 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0xd1, 0x4a, 0xf3, 0x40, 222 0x10, 0x85, 0xd9, 0xa6, 0x6d, 0xda, 0x49, 0xff, 0x9f, 0x1a, 0x45, 0xe2, 0x5d, 0xcd, 0x55, 0x51, 223 0x29, 0xe2, 0x23, 0x14, 0xf6, 0x4a, 0xaa, 0x75, 0x53, 0xef, 0x84, 0xb0, 0x4d, 0x06, 0x29, 0x36, 224 0x24, 0xd9, 0x8d, 0x62, 0xf0, 0xc9, 0x7c, 0x3b, 0x67, 0x37, 0x29, 0x0a, 0xc6, 0xab, 0xec, 0x37, 225 0xe7, 0xec, 0x99, 0x9d, 0x09, 0xfc, 0xcf, 0x50, 0x6b, 0xf9, 0x8c, 0x7a, 0x51, 0xa8, 0xbc, 0xca, 226 0xfd, 0x53, 0xbd, 0xcb, 0x8a, 0x3d, 0xe2, 0xbb, 0x34, 0x9f, 0xf8, 0xa0, 0x86, 0x1f, 0xf0, 0x2f, 227 0xb2, 0xca, 0xaa, 0xa9, 0xf8, 0xe7, 0x30, 0x69, 0xc5, 0xb8, 0xaa, 0x0b, 0x0c, 0xd8, 0xac, 0x37, 228 0x1f, 0x08, 0xaf, 0xad, 0x6d, 0xa8, 0x64, 0x2c, 0x0a, 0xcb, 0x57, 0xd4, 0x55, 0x63, 0xe9, 0x91, 229 0x65, 0x2c, 0xbc, 0xb6, 0x66, 0x2d, 0x53, 0x70, 0x50, 0xa9, 0xc0, 0x99, 0x31, 0x52, 0xcc, 0xd1, 230 0xf7, 0xa1, 0x9f, 0xca, 0x4a, 0x06, 0xfd, 0x99, 0x33, 0x9f, 0x08, 0x7b, 0x0e, 0x9f, 0xe0, 0x44, 231 0x68, 0xb9, 0x56, 0xbb, 0x37, 0x59, 0xe1, 0x2d, 0xd6, 0x87, 0x37, 0x4c, 0x80, 0x65, 0xd4, 0x98, 232 0x91, 0x91, 0x65, 0x86, 0x4c, 0x0f, 0x4b, 0x56, 0x4b, 0x6d, 0x2e, 0x51, 0x6a, 0xa8, 0xa0, 0x48, 233 0x4b, 0x85, 0xa1, 0x32, 0x18, 0x34, 0x54, 0x86, 0xd7, 0x70, 0xcc, 0x93, 0xdf, 0xe1, 0x67, 0x30, 234 0x4a, 0x51, 0xc5, 0xdb, 0x7d, 0xbe, 0x6d, 0x7b, 0xb8, 0xc4, 0x4b, 0xc2, 0xf0, 0x93, 0xc1, 0x51, 235 0xe7, 0x85, 0x17, 0xac, 0xbf, 0xb7, 0x31, 0x16, 0x2e, 0xb1, 0x1d, 0x93, 0x83, 0xab, 0xb4, 0x8c, 236 0x09, 0xed, 0x03, 0xbd, 0x9b, 0xab, 0x45, 0xf7, 0x9e, 0x17, 0x5d, 0x73, 0x8a, 0x21, 0x5d, 0x26, 237 0xf4, 0x97, 0x30, 0xc4, 0xc4, 0xa6, 0x38, 0x36, 0xe5, 0xf2, 0xaf, 0x94, 0x8e, 0x79, 0xc4, 0x00, 238 0x13, 0xa2, 0x8b, 0x39, 0x78, 0xab, 0x1f, 0xff, 0xc8, 0x03, 0x57, 0xf0, 0x87, 0x47, 0x1e, 0x6d, 239 0xa6, 0x8c, 0xf6, 0x32, 0x12, 0x3c, 0x5a, 0xdf, 0xdf, 0x45, 0x7c, 0xda, 0xfb, 0x0a, 0x00, 0x00, 240 0xff, 0xff, 0x51, 0xf5, 0x69, 0x44, 0x1b, 0x02, 0x00, 0x00, 241 }