1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package sdk
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
31 )
32
33 const (
34
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40
41
42 type Version_VersionState_State int32
43
44 const (
45
46 Version_VersionState_STATE_UNSPECIFIED Version_VersionState_State = 0
47
48 Version_VersionState_CREATION_IN_PROGRESS Version_VersionState_State = 1
49
50 Version_VersionState_CREATION_FAILED Version_VersionState_State = 2
51
52 Version_VersionState_CREATED Version_VersionState_State = 3
53
54 Version_VersionState_REVIEW_IN_PROGRESS Version_VersionState_State = 4
55
56 Version_VersionState_APPROVED Version_VersionState_State = 5
57
58
59 Version_VersionState_CONDITIONALLY_APPROVED Version_VersionState_State = 6
60
61 Version_VersionState_DENIED Version_VersionState_State = 7
62
63
64 Version_VersionState_UNDER_TAKEDOWN Version_VersionState_State = 8
65
66 Version_VersionState_DELETED Version_VersionState_State = 9
67 )
68
69
70 var (
71 Version_VersionState_State_name = map[int32]string{
72 0: "STATE_UNSPECIFIED",
73 1: "CREATION_IN_PROGRESS",
74 2: "CREATION_FAILED",
75 3: "CREATED",
76 4: "REVIEW_IN_PROGRESS",
77 5: "APPROVED",
78 6: "CONDITIONALLY_APPROVED",
79 7: "DENIED",
80 8: "UNDER_TAKEDOWN",
81 9: "DELETED",
82 }
83 Version_VersionState_State_value = map[string]int32{
84 "STATE_UNSPECIFIED": 0,
85 "CREATION_IN_PROGRESS": 1,
86 "CREATION_FAILED": 2,
87 "CREATED": 3,
88 "REVIEW_IN_PROGRESS": 4,
89 "APPROVED": 5,
90 "CONDITIONALLY_APPROVED": 6,
91 "DENIED": 7,
92 "UNDER_TAKEDOWN": 8,
93 "DELETED": 9,
94 }
95 )
96
97 func (x Version_VersionState_State) Enum() *Version_VersionState_State {
98 p := new(Version_VersionState_State)
99 *p = x
100 return p
101 }
102
103 func (x Version_VersionState_State) String() string {
104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
105 }
106
107 func (Version_VersionState_State) Descriptor() protoreflect.EnumDescriptor {
108 return file_google_actions_sdk_v2_version_proto_enumTypes[0].Descriptor()
109 }
110
111 func (Version_VersionState_State) Type() protoreflect.EnumType {
112 return &file_google_actions_sdk_v2_version_proto_enumTypes[0]
113 }
114
115 func (x Version_VersionState_State) Number() protoreflect.EnumNumber {
116 return protoreflect.EnumNumber(x)
117 }
118
119
120 func (Version_VersionState_State) EnumDescriptor() ([]byte, []int) {
121 return file_google_actions_sdk_v2_version_proto_rawDescGZIP(), []int{0, 0, 0}
122 }
123
124
125 type Version struct {
126 state protoimpl.MessageState
127 sizeCache protoimpl.SizeCache
128 unknownFields protoimpl.UnknownFields
129
130
131
132 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
133
134 VersionState *Version_VersionState `protobuf:"bytes,2,opt,name=version_state,json=versionState,proto3" json:"version_state,omitempty"`
135
136 Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
137
138 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
139 }
140
141 func (x *Version) Reset() {
142 *x = Version{}
143 if protoimpl.UnsafeEnabled {
144 mi := &file_google_actions_sdk_v2_version_proto_msgTypes[0]
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 ms.StoreMessageInfo(mi)
147 }
148 }
149
150 func (x *Version) String() string {
151 return protoimpl.X.MessageStringOf(x)
152 }
153
154 func (*Version) ProtoMessage() {}
155
156 func (x *Version) ProtoReflect() protoreflect.Message {
157 mi := &file_google_actions_sdk_v2_version_proto_msgTypes[0]
158 if protoimpl.UnsafeEnabled && x != nil {
159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160 if ms.LoadMessageInfo() == nil {
161 ms.StoreMessageInfo(mi)
162 }
163 return ms
164 }
165 return mi.MessageOf(x)
166 }
167
168
169 func (*Version) Descriptor() ([]byte, []int) {
170 return file_google_actions_sdk_v2_version_proto_rawDescGZIP(), []int{0}
171 }
172
173 func (x *Version) GetName() string {
174 if x != nil {
175 return x.Name
176 }
177 return ""
178 }
179
180 func (x *Version) GetVersionState() *Version_VersionState {
181 if x != nil {
182 return x.VersionState
183 }
184 return nil
185 }
186
187 func (x *Version) GetCreator() string {
188 if x != nil {
189 return x.Creator
190 }
191 return ""
192 }
193
194 func (x *Version) GetUpdateTime() *timestamppb.Timestamp {
195 if x != nil {
196 return x.UpdateTime
197 }
198 return nil
199 }
200
201
202 type Version_VersionState struct {
203 state protoimpl.MessageState
204 sizeCache protoimpl.SizeCache
205 unknownFields protoimpl.UnknownFields
206
207
208 State Version_VersionState_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.actions.sdk.v2.Version_VersionState_State" json:"state,omitempty"`
209
210 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
211 }
212
213 func (x *Version_VersionState) Reset() {
214 *x = Version_VersionState{}
215 if protoimpl.UnsafeEnabled {
216 mi := &file_google_actions_sdk_v2_version_proto_msgTypes[1]
217 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
218 ms.StoreMessageInfo(mi)
219 }
220 }
221
222 func (x *Version_VersionState) String() string {
223 return protoimpl.X.MessageStringOf(x)
224 }
225
226 func (*Version_VersionState) ProtoMessage() {}
227
228 func (x *Version_VersionState) ProtoReflect() protoreflect.Message {
229 mi := &file_google_actions_sdk_v2_version_proto_msgTypes[1]
230 if protoimpl.UnsafeEnabled && x != nil {
231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
232 if ms.LoadMessageInfo() == nil {
233 ms.StoreMessageInfo(mi)
234 }
235 return ms
236 }
237 return mi.MessageOf(x)
238 }
239
240
241 func (*Version_VersionState) Descriptor() ([]byte, []int) {
242 return file_google_actions_sdk_v2_version_proto_rawDescGZIP(), []int{0, 0}
243 }
244
245 func (x *Version_VersionState) GetState() Version_VersionState_State {
246 if x != nil {
247 return x.State
248 }
249 return Version_VersionState_STATE_UNSPECIFIED
250 }
251
252 func (x *Version_VersionState) GetMessage() string {
253 if x != nil {
254 return x.Message
255 }
256 return ""
257 }
258
259 var File_google_actions_sdk_v2_version_proto protoreflect.FileDescriptor
260
261 var file_google_actions_sdk_v2_version_proto_rawDesc = []byte{
262 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
263 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
264 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63,
265 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x67, 0x6f,
266 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
267 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
268 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
269 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x04, 0x0a, 0x07, 0x56, 0x65, 0x72,
270 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
271 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x73,
272 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
273 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
274 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
275 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x76, 0x65,
276 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72,
277 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65,
278 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,
279 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
280 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
281 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
282 0x65, 0x1a, 0xbd, 0x02, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
283 0x74, 0x65, 0x12, 0x47, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
284 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
285 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
286 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53,
287 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
288 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
289 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xc9, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
290 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
291 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49,
292 0x4f, 0x4e, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x01,
293 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49,
294 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44,
295 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x49, 0x4e, 0x5f,
296 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50,
297 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x4e, 0x44,
298 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x4c, 0x59, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56,
299 0x45, 0x44, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x07,
300 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x54, 0x41, 0x4b, 0x45, 0x44, 0x4f,
301 0x57, 0x4e, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10,
302 0x09, 0x3a, 0x4a, 0xea, 0x41, 0x47, 0x0a, 0x1e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
303 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x56,
304 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
305 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69,
306 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x42, 0x65, 0x0a,
307 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
308 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x56, 0x65, 0x72, 0x73,
309 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67,
310 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
311 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
312 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32,
313 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
314 }
315
316 var (
317 file_google_actions_sdk_v2_version_proto_rawDescOnce sync.Once
318 file_google_actions_sdk_v2_version_proto_rawDescData = file_google_actions_sdk_v2_version_proto_rawDesc
319 )
320
321 func file_google_actions_sdk_v2_version_proto_rawDescGZIP() []byte {
322 file_google_actions_sdk_v2_version_proto_rawDescOnce.Do(func() {
323 file_google_actions_sdk_v2_version_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_version_proto_rawDescData)
324 })
325 return file_google_actions_sdk_v2_version_proto_rawDescData
326 }
327
328 var file_google_actions_sdk_v2_version_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
329 var file_google_actions_sdk_v2_version_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
330 var file_google_actions_sdk_v2_version_proto_goTypes = []interface{}{
331 (Version_VersionState_State)(0),
332 (*Version)(nil),
333 (*Version_VersionState)(nil),
334 (*timestamppb.Timestamp)(nil),
335 }
336 var file_google_actions_sdk_v2_version_proto_depIdxs = []int32{
337 2,
338 3,
339 0,
340 3,
341 3,
342 3,
343 3,
344 0,
345 }
346
347 func init() { file_google_actions_sdk_v2_version_proto_init() }
348 func file_google_actions_sdk_v2_version_proto_init() {
349 if File_google_actions_sdk_v2_version_proto != nil {
350 return
351 }
352 if !protoimpl.UnsafeEnabled {
353 file_google_actions_sdk_v2_version_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
354 switch v := v.(*Version); i {
355 case 0:
356 return &v.state
357 case 1:
358 return &v.sizeCache
359 case 2:
360 return &v.unknownFields
361 default:
362 return nil
363 }
364 }
365 file_google_actions_sdk_v2_version_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
366 switch v := v.(*Version_VersionState); i {
367 case 0:
368 return &v.state
369 case 1:
370 return &v.sizeCache
371 case 2:
372 return &v.unknownFields
373 default:
374 return nil
375 }
376 }
377 }
378 type x struct{}
379 out := protoimpl.TypeBuilder{
380 File: protoimpl.DescBuilder{
381 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
382 RawDescriptor: file_google_actions_sdk_v2_version_proto_rawDesc,
383 NumEnums: 1,
384 NumMessages: 2,
385 NumExtensions: 0,
386 NumServices: 0,
387 },
388 GoTypes: file_google_actions_sdk_v2_version_proto_goTypes,
389 DependencyIndexes: file_google_actions_sdk_v2_version_proto_depIdxs,
390 EnumInfos: file_google_actions_sdk_v2_version_proto_enumTypes,
391 MessageInfos: file_google_actions_sdk_v2_version_proto_msgTypes,
392 }.Build()
393 File_google_actions_sdk_v2_version_proto = out.File
394 file_google_actions_sdk_v2_version_proto_rawDesc = nil
395 file_google_actions_sdk_v2_version_proto_goTypes = nil
396 file_google_actions_sdk_v2_version_proto_depIdxs = nil
397 }
398
View as plain text