forked from pydio/cells
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.pb.go
120 lines (103 loc) · 4.05 KB
/
common.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common.proto
package rest
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
// Generic Message
type DeleteResponse struct {
// If delete was successfull
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
// Number of records deleted during operation
NumRows int64 `protobuf:"varint,2,opt,name=NumRows" json:"NumRows,omitempty"`
}
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteResponse) ProtoMessage() {}
func (*DeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *DeleteResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
func (m *DeleteResponse) GetNumRows() int64 {
if m != nil {
return m.NumRows
}
return 0
}
// Generic error message
type Error struct {
// Unique ID of the error
Code string `protobuf:"bytes,2,opt,name=Code" json:"Code,omitempty"`
// Human-readable, short label
Title string `protobuf:"bytes,3,opt,name=Title" json:"Title,omitempty"`
// Human-readable, longer description
Detail string `protobuf:"bytes,4,opt,name=Detail" json:"Detail,omitempty"`
// Cells service name or other quickly useful info
Source string `protobuf:"bytes,5,opt,name=Source" json:"Source,omitempty"`
// Additional Metadata
Meta map[string]string `protobuf:"bytes,6,rep,name=Meta" json:"Meta,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *Error) Reset() { *m = Error{} }
func (m *Error) String() string { return proto.CompactTextString(m) }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *Error) GetCode() string {
if m != nil {
return m.Code
}
return ""
}
func (m *Error) GetTitle() string {
if m != nil {
return m.Title
}
return ""
}
func (m *Error) GetDetail() string {
if m != nil {
return m.Detail
}
return ""
}
func (m *Error) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *Error) GetMeta() map[string]string {
if m != nil {
return m.Meta
}
return nil
}
func init() {
proto.RegisterType((*DeleteResponse)(nil), "rest.DeleteResponse")
proto.RegisterType((*Error)(nil), "rest.Error")
}
func init() { proto.RegisterFile("common.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 229 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xbb, 0x4e, 0xc4, 0x30,
0x10, 0x45, 0xe5, 0xcd, 0x03, 0x32, 0x20, 0x84, 0x46, 0x80, 0x2c, 0xaa, 0x68, 0xab, 0xd0, 0xa4,
0x80, 0x02, 0x44, 0x4b, 0xb6, 0x84, 0xc2, 0xcb, 0x0f, 0x84, 0x30, 0xc5, 0x8a, 0x24, 0xb3, 0xf2,
0x03, 0xb4, 0x1f, 0xc8, 0x7f, 0x21, 0x8f, 0xc9, 0x76, 0xf7, 0x1c, 0x5f, 0xc9, 0xd7, 0x86, 0xf3,
0x81, 0xa7, 0x89, 0xe7, 0x76, 0x6f, 0xd9, 0x33, 0xe6, 0x96, 0x9c, 0x5f, 0x77, 0x70, 0xd1, 0xd1,
0x48, 0x9e, 0x0c, 0xb9, 0x3d, 0xcf, 0x8e, 0x50, 0xc3, 0xc9, 0x36, 0x0c, 0x03, 0x39, 0xa7,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