-
Notifications
You must be signed in to change notification settings - Fork 143
/
gen_script.go
179 lines (138 loc) · 4.47 KB
/
gen_script.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
// Code generated DO NOT EDIT
package cmds
import "strconv"
type AiScriptdel Incomplete
func (b Builder) AiScriptdel() (c AiScriptdel) {
c = AiScriptdel{cs: get(), ks: b.ks}
c.cs.s = append(c.cs.s, "AI.SCRIPTDEL")
return c
}
func (c AiScriptdel) Key(key string) AiScriptdelKey {
if c.ks&NoSlot == NoSlot {
c.ks = NoSlot | slot(key)
} else {
c.ks = check(c.ks, slot(key))
}
c.cs.s = append(c.cs.s, key)
return (AiScriptdelKey)(c)
}
type AiScriptdelKey Incomplete
func (c AiScriptdelKey) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiScriptget Incomplete
func (b Builder) AiScriptget() (c AiScriptget) {
c = AiScriptget{cs: get(), ks: b.ks, cf: int16(readonly)}
c.cs.s = append(c.cs.s, "AI.SCRIPTGET")
return c
}
func (c AiScriptget) Key(key string) AiScriptgetKey {
if c.ks&NoSlot == NoSlot {
c.ks = NoSlot | slot(key)
} else {
c.ks = check(c.ks, slot(key))
}
c.cs.s = append(c.cs.s, key)
return (AiScriptgetKey)(c)
}
type AiScriptgetKey Incomplete
func (c AiScriptgetKey) Meta() AiScriptgetMeta {
c.cs.s = append(c.cs.s, "META")
return (AiScriptgetMeta)(c)
}
func (c AiScriptgetKey) Source() AiScriptgetSource {
c.cs.s = append(c.cs.s, "SOURCE")
return (AiScriptgetSource)(c)
}
func (c AiScriptgetKey) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiScriptgetKey) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiScriptgetMeta Incomplete
func (c AiScriptgetMeta) Source() AiScriptgetSource {
c.cs.s = append(c.cs.s, "SOURCE")
return (AiScriptgetSource)(c)
}
func (c AiScriptgetMeta) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiScriptgetMeta) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiScriptgetSource Incomplete
func (c AiScriptgetSource) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiScriptgetSource) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiScriptstore Incomplete
func (b Builder) AiScriptstore() (c AiScriptstore) {
c = AiScriptstore{cs: get(), ks: b.ks}
c.cs.s = append(c.cs.s, "AI.SCRIPTSTORE")
return c
}
func (c AiScriptstore) Key(key string) AiScriptstoreKey {
if c.ks&NoSlot == NoSlot {
c.ks = NoSlot | slot(key)
} else {
c.ks = check(c.ks, slot(key))
}
c.cs.s = append(c.cs.s, key)
return (AiScriptstoreKey)(c)
}
type AiScriptstoreDeviceCpu Incomplete
func (c AiScriptstoreDeviceCpu) Tag(tag string) AiScriptstoreTag {
c.cs.s = append(c.cs.s, "TAG", tag)
return (AiScriptstoreTag)(c)
}
func (c AiScriptstoreDeviceCpu) EntryPoints(entryPointCount int64) AiScriptstoreEntryPointsEntryPoints {
c.cs.s = append(c.cs.s, "ENTRY_POINTS", strconv.FormatInt(entryPointCount, 10))
return (AiScriptstoreEntryPointsEntryPoints)(c)
}
type AiScriptstoreDeviceGpu Incomplete
func (c AiScriptstoreDeviceGpu) Tag(tag string) AiScriptstoreTag {
c.cs.s = append(c.cs.s, "TAG", tag)
return (AiScriptstoreTag)(c)
}
func (c AiScriptstoreDeviceGpu) EntryPoints(entryPointCount int64) AiScriptstoreEntryPointsEntryPoints {
c.cs.s = append(c.cs.s, "ENTRY_POINTS", strconv.FormatInt(entryPointCount, 10))
return (AiScriptstoreEntryPointsEntryPoints)(c)
}
type AiScriptstoreEntryPointsEntryPoint Incomplete
func (c AiScriptstoreEntryPointsEntryPoint) EntryPoint(entryPoint ...string) AiScriptstoreEntryPointsEntryPoint {
c.cs.s = append(c.cs.s, entryPoint...)
return c
}
func (c AiScriptstoreEntryPointsEntryPoint) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiScriptstoreEntryPointsEntryPoints Incomplete
func (c AiScriptstoreEntryPointsEntryPoints) EntryPoint(entryPoint ...string) AiScriptstoreEntryPointsEntryPoint {
c.cs.s = append(c.cs.s, entryPoint...)
return (AiScriptstoreEntryPointsEntryPoint)(c)
}
type AiScriptstoreKey Incomplete
func (c AiScriptstoreKey) Cpu() AiScriptstoreDeviceCpu {
c.cs.s = append(c.cs.s, "CPU")
return (AiScriptstoreDeviceCpu)(c)
}
func (c AiScriptstoreKey) Gpu() AiScriptstoreDeviceGpu {
c.cs.s = append(c.cs.s, "GPU")
return (AiScriptstoreDeviceGpu)(c)
}
type AiScriptstoreTag Incomplete
func (c AiScriptstoreTag) EntryPoints(entryPointCount int64) AiScriptstoreEntryPointsEntryPoints {
c.cs.s = append(c.cs.s, "ENTRY_POINTS", strconv.FormatInt(entryPointCount, 10))
return (AiScriptstoreEntryPointsEntryPoints)(c)
}