forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemantic.pb.go
253 lines (225 loc) · 10.1 KB
/
semantic.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: semantic.proto
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
semantic.proto
It has these top-level messages:
SemanticDescriptor
SemanticMessageDescriptor
*/
package proto
import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.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 _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
type SemanticDescriptor_Labels int32
const (
SemanticDescriptor_ADVANCED SemanticDescriptor_Labels = 1
// only.
SemanticDescriptor_HIDDEN SemanticDescriptor_Labels = 2
)
var SemanticDescriptor_Labels_name = map[int32]string{
1: "ADVANCED",
2: "HIDDEN",
}
var SemanticDescriptor_Labels_value = map[string]int32{
"ADVANCED": 1,
"HIDDEN": 2,
}
func (x SemanticDescriptor_Labels) Enum() *SemanticDescriptor_Labels {
p := new(SemanticDescriptor_Labels)
*p = x
return p
}
func (x SemanticDescriptor_Labels) String() string {
return proto1.EnumName(SemanticDescriptor_Labels_name, int32(x))
}
func (x *SemanticDescriptor_Labels) UnmarshalJSON(data []byte) error {
value, err := proto1.UnmarshalJSONEnum(SemanticDescriptor_Labels_value, data, "SemanticDescriptor_Labels")
if err != nil {
return err
}
*x = SemanticDescriptor_Labels(value)
return nil
}
func (SemanticDescriptor_Labels) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type SemanticDescriptor struct {
// The semantic name of the SemanticValue contained in this field.
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// The type of this field can be specified dynamically. This is the name of
// the attribute to use to retrieve the SemanticValue class to be used for
// parsing this field.
DynamicType *string `protobuf:"bytes,5,opt,name=dynamic_type,json=dynamicType" json:"dynamic_type,omitempty"`
Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Label []SemanticDescriptor_Labels `protobuf:"varint,3,rep,name=label,enum=proto.SemanticDescriptor_Labels" json:"label,omitempty"`
// A friendly name for this field - to be used in GUIs etc.
FriendlyName *string `protobuf:"bytes,4,opt,name=friendly_name,json=friendlyName" json:"friendly_name,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SemanticDescriptor) Reset() { *m = SemanticDescriptor{} }
func (m *SemanticDescriptor) String() string { return proto1.CompactTextString(m) }
func (*SemanticDescriptor) ProtoMessage() {}
func (*SemanticDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SemanticDescriptor) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
func (m *SemanticDescriptor) GetDynamicType() string {
if m != nil && m.DynamicType != nil {
return *m.DynamicType
}
return ""
}
func (m *SemanticDescriptor) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
func (m *SemanticDescriptor) GetLabel() []SemanticDescriptor_Labels {
if m != nil {
return m.Label
}
return nil
}
func (m *SemanticDescriptor) GetFriendlyName() string {
if m != nil && m.FriendlyName != nil {
return *m.FriendlyName
}
return ""
}
type SemanticMessageDescriptor struct {
// Describe the purpose of this protobuf.
Description *string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
// Certain RDFValues have union-like semantics. I.e. they are essentially
// selectors of a number of other predefined RDFValues. They have a single
// field that identifies the type of the selected "subvalue" and
// nested fields corresponding to different selections. For examples:
//
// message FileFinderFilter {
// option (semantic) = {
// union_field: "filter_type"
// };
// enum Type {
// MODIFICATION_TIME = 0 [(description) = "Modification time"];
// ACCESS_TIME = 1 [(description) = "Access time"];
// }
//
// optional Type filter_type = 1;
// optional FileFinderModificationTimeFilter modification_time = 2;
// optional FileFinderAccessTimeFilter access_time = 3;
// }
//
// Field specified in union_field is used to determine which nested fields is
// actually used. Field identified by union_field has to be Enum.
// Corresponding nested values have to have names equal to enum values names,
// but in lower case.
//
// At the moment setting union_field attribute on an RDFValue only affects the
// UI rendering. RDFValues with union_field set are rendered with a select
// box that allows users to switch between different available types.
//
// TODO(user): Suggestion from bgalehouse: We can just have "is_union"
// boolean attribute instead of a string "union_field", because for
// union-like structures we can understand the type of the structure by
// inspecting its data fields.
UnionField *string `protobuf:"bytes,2,opt,name=union_field,json=unionField" json:"union_field,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SemanticMessageDescriptor) Reset() { *m = SemanticMessageDescriptor{} }
func (m *SemanticMessageDescriptor) String() string { return proto1.CompactTextString(m) }
func (*SemanticMessageDescriptor) ProtoMessage() {}
func (*SemanticMessageDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *SemanticMessageDescriptor) GetDescription() string {
if m != nil && m.Description != nil {
return *m.Description
}
return ""
}
func (m *SemanticMessageDescriptor) GetUnionField() string {
if m != nil && m.UnionField != nil {
return *m.UnionField
}
return ""
}
var E_SemType = &proto1.ExtensionDesc{
ExtendedType: (*google_protobuf.FieldOptions)(nil),
ExtensionType: (*SemanticDescriptor)(nil),
Field: 51584972,
Name: "proto.sem_type",
Tag: "bytes,51584972,opt,name=sem_type,json=semType",
Filename: "semantic.proto",
}
var E_Semantic = &proto1.ExtensionDesc{
ExtendedType: (*google_protobuf.MessageOptions)(nil),
ExtensionType: (*SemanticMessageDescriptor)(nil),
Field: 51584971,
Name: "proto.semantic",
Tag: "bytes,51584971,opt,name=semantic",
Filename: "semantic.proto",
}
var E_Description = &proto1.ExtensionDesc{
ExtendedType: (*google_protobuf.EnumValueOptions)(nil),
ExtensionType: (*string)(nil),
Field: 48651165,
Name: "proto.description",
Tag: "bytes,48651165,opt,name=description",
Filename: "semantic.proto",
}
var E_Label = &proto1.ExtensionDesc{
ExtendedType: (*google_protobuf.EnumValueOptions)(nil),
ExtensionType: ([]SemanticDescriptor_Labels)(nil),
Field: 48651166,
Name: "proto.label",
Tag: "varint,48651166,rep,name=label,enum=proto.SemanticDescriptor_Labels",
Filename: "semantic.proto",
}
func init() {
proto1.RegisterType((*SemanticDescriptor)(nil), "proto.SemanticDescriptor")
proto1.RegisterType((*SemanticMessageDescriptor)(nil), "proto.SemanticMessageDescriptor")
proto1.RegisterEnum("proto.SemanticDescriptor_Labels", SemanticDescriptor_Labels_name, SemanticDescriptor_Labels_value)
proto1.RegisterExtension(E_SemType)
proto1.RegisterExtension(E_Semantic)
proto1.RegisterExtension(E_Description)
proto1.RegisterExtension(E_Label)
}
func init() { proto1.RegisterFile("semantic.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 376 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x4e, 0xf2, 0x40,
0x14, 0xc5, 0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