github.com/hoffie/larasync@v0.0.0-20151025221940-0384d2bddcef/repository/odf/defs.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: defs.proto 3 // DO NOT EDIT! 4 5 /* 6 Package odf is a generated protocol buffer package. 7 8 It is generated from these files: 9 defs.proto 10 11 It has these top-level messages: 12 TransactionContainer 13 Transaction 14 NIB 15 Revision 16 Metadata 17 Authorization 18 */ 19 package odf 20 21 import proto "github.com/golang/protobuf/proto" 22 import math "math" 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = math.Inf 27 28 type NodeType int32 29 30 const ( 31 NodeType_Dir NodeType = 0 32 NodeType_File NodeType = 1 33 ) 34 35 var NodeType_name = map[int32]string{ 36 0: "Dir", 37 1: "File", 38 } 39 var NodeType_value = map[string]int32{ 40 "Dir": 0, 41 "File": 1, 42 } 43 44 func (x NodeType) Enum() *NodeType { 45 p := new(NodeType) 46 *p = x 47 return p 48 } 49 func (x NodeType) String() string { 50 return proto.EnumName(NodeType_name, int32(x)) 51 } 52 func (x *NodeType) UnmarshalJSON(data []byte) error { 53 value, err := proto.UnmarshalJSONEnum(NodeType_value, data, "NodeType") 54 if err != nil { 55 return err 56 } 57 *x = NodeType(value) 58 return nil 59 } 60 61 type TransactionContainer struct { 62 UUID *string `protobuf:"bytes,1,req" json:"UUID,omitempty"` 63 Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"` 64 PreviousUUID *string `protobuf:"bytes,3,opt,name=previousUUID" json:"previousUUID,omitempty"` 65 XXX_unrecognized []byte `json:"-"` 66 } 67 68 func (m *TransactionContainer) Reset() { *m = TransactionContainer{} } 69 func (m *TransactionContainer) String() string { return proto.CompactTextString(m) } 70 func (*TransactionContainer) ProtoMessage() {} 71 72 func (m *TransactionContainer) GetUUID() string { 73 if m != nil && m.UUID != nil { 74 return *m.UUID 75 } 76 return "" 77 } 78 79 func (m *TransactionContainer) GetTransactions() []*Transaction { 80 if m != nil { 81 return m.Transactions 82 } 83 return nil 84 } 85 86 func (m *TransactionContainer) GetPreviousUUID() string { 87 if m != nil && m.PreviousUUID != nil { 88 return *m.PreviousUUID 89 } 90 return "" 91 } 92 93 type Transaction struct { 94 ID *int64 `protobuf:"varint,1,req" json:"ID,omitempty"` 95 NIBIDs []string `protobuf:"bytes,2,rep" json:"NIBIDs,omitempty"` 96 PreviousID *int64 `protobuf:"varint,3,opt,name=previousID" json:"previousID,omitempty"` 97 XXX_unrecognized []byte `json:"-"` 98 } 99 100 func (m *Transaction) Reset() { *m = Transaction{} } 101 func (m *Transaction) String() string { return proto.CompactTextString(m) } 102 func (*Transaction) ProtoMessage() {} 103 104 func (m *Transaction) GetID() int64 { 105 if m != nil && m.ID != nil { 106 return *m.ID 107 } 108 return 0 109 } 110 111 func (m *Transaction) GetNIBIDs() []string { 112 if m != nil { 113 return m.NIBIDs 114 } 115 return nil 116 } 117 118 func (m *Transaction) GetPreviousID() int64 { 119 if m != nil && m.PreviousID != nil { 120 return *m.PreviousID 121 } 122 return 0 123 } 124 125 type NIB struct { 126 ID *string `protobuf:"bytes,1,req" json:"ID,omitempty"` 127 Revisions []*Revision `protobuf:"bytes,2,rep" json:"Revisions,omitempty"` 128 HistoryOffset *int64 `protobuf:"varint,3,opt,name=historyOffset" json:"historyOffset,omitempty"` 129 XXX_unrecognized []byte `json:"-"` 130 } 131 132 func (m *NIB) Reset() { *m = NIB{} } 133 func (m *NIB) String() string { return proto.CompactTextString(m) } 134 func (*NIB) ProtoMessage() {} 135 136 func (m *NIB) GetID() string { 137 if m != nil && m.ID != nil { 138 return *m.ID 139 } 140 return "" 141 } 142 143 func (m *NIB) GetRevisions() []*Revision { 144 if m != nil { 145 return m.Revisions 146 } 147 return nil 148 } 149 150 func (m *NIB) GetHistoryOffset() int64 { 151 if m != nil && m.HistoryOffset != nil { 152 return *m.HistoryOffset 153 } 154 return 0 155 } 156 157 type Revision struct { 158 MetadataID *string `protobuf:"bytes,1,req" json:"MetadataID,omitempty"` 159 ContentIDs []string `protobuf:"bytes,2,rep" json:"ContentIDs,omitempty"` 160 UTCTimestamp *int64 `protobuf:"varint,3,opt" json:"UTCTimestamp,omitempty"` 161 DeviceID *string `protobuf:"bytes,4,opt" json:"DeviceID,omitempty"` 162 XXX_unrecognized []byte `json:"-"` 163 } 164 165 func (m *Revision) Reset() { *m = Revision{} } 166 func (m *Revision) String() string { return proto.CompactTextString(m) } 167 func (*Revision) ProtoMessage() {} 168 169 func (m *Revision) GetMetadataID() string { 170 if m != nil && m.MetadataID != nil { 171 return *m.MetadataID 172 } 173 return "" 174 } 175 176 func (m *Revision) GetContentIDs() []string { 177 if m != nil { 178 return m.ContentIDs 179 } 180 return nil 181 } 182 183 func (m *Revision) GetUTCTimestamp() int64 { 184 if m != nil && m.UTCTimestamp != nil { 185 return *m.UTCTimestamp 186 } 187 return 0 188 } 189 190 func (m *Revision) GetDeviceID() string { 191 if m != nil && m.DeviceID != nil { 192 return *m.DeviceID 193 } 194 return "" 195 } 196 197 type Metadata struct { 198 Type *NodeType `protobuf:"varint,1,req,enum=odf.NodeType" json:"Type,omitempty"` 199 RepoRelativePath *string `protobuf:"bytes,2,req" json:"RepoRelativePath,omitempty"` 200 XXX_unrecognized []byte `json:"-"` 201 } 202 203 func (m *Metadata) Reset() { *m = Metadata{} } 204 func (m *Metadata) String() string { return proto.CompactTextString(m) } 205 func (*Metadata) ProtoMessage() {} 206 207 func (m *Metadata) GetType() NodeType { 208 if m != nil && m.Type != nil { 209 return *m.Type 210 } 211 return NodeType_Dir 212 } 213 214 func (m *Metadata) GetRepoRelativePath() string { 215 if m != nil && m.RepoRelativePath != nil { 216 return *m.RepoRelativePath 217 } 218 return "" 219 } 220 221 type Authorization struct { 222 SigningKey []byte `protobuf:"bytes,1,req" json:"SigningKey,omitempty"` 223 EncryptionKey []byte `protobuf:"bytes,2,req" json:"EncryptionKey,omitempty"` 224 HashingKey []byte `protobuf:"bytes,3,req" json:"HashingKey,omitempty"` 225 XXX_unrecognized []byte `json:"-"` 226 } 227 228 func (m *Authorization) Reset() { *m = Authorization{} } 229 func (m *Authorization) String() string { return proto.CompactTextString(m) } 230 func (*Authorization) ProtoMessage() {} 231 232 func (m *Authorization) GetSigningKey() []byte { 233 if m != nil { 234 return m.SigningKey 235 } 236 return nil 237 } 238 239 func (m *Authorization) GetEncryptionKey() []byte { 240 if m != nil { 241 return m.EncryptionKey 242 } 243 return nil 244 } 245 246 func (m *Authorization) GetHashingKey() []byte { 247 if m != nil { 248 return m.HashingKey 249 } 250 return nil 251 } 252 253 func init() { 254 proto.RegisterEnum("odf.NodeType", NodeType_name, NodeType_value) 255 }