Debian Codegraph @

osconfig/apiv1/osconfigpb/os_policy.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/osconfig/v1/os_policy.proto
20
21 package osconfigpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Policy mode
39 type OSPolicy_Mode int32
40
41 const (
42 // Invalid mode
43 OSPolicy_MODE_UNSPECIFIED OSPolicy_Mode = 0
44 // This mode checks if the configuration resources in the policy are in
45 // their desired state. No actions are performed if they are not in the
46 // desired state. This mode is used for reporting purposes.
47 OSPolicy_VALIDATION OSPolicy_Mode = 1
48 // This mode checks if the configuration resources in the policy are in
49 // their desired state, and if not, enforces the desired state.
50 OSPolicy_ENFORCEMENT OSPolicy_Mode = 2
51 )
52
53 // Enum value maps for OSPolicy_Mode.
54 var (
55 OSPolicy_Mode_name = map[int32]string{
56 0: "MODE_UNSPECIFIED",
57 1: "VALIDATION",
58 2: "ENFORCEMENT",
59 }
60 OSPolicy_Mode_value = map[string]int32{
61 "MODE_UNSPECIFIED": 0,
62 "VALIDATION": 1,
63 "ENFORCEMENT": 2,
64 }
65 )
66
67 func (x OSPolicy_Mode) Enum() *OSPolicy_Mode {
68 p := new(OSPolicy_Mode)
69 *p = x
70 return p
71 }
72
73 func (x OSPolicy_Mode) String() string {
74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
75 }
76
77 func (OSPolicy_Mode) Descriptor() protoreflect.EnumDescriptor {
78 return file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[0].Descriptor()
79 }
80
81 func (OSPolicy_Mode) Type() protoreflect.EnumType {
82 return &file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[0]
83 }
84
85 func (x OSPolicy_Mode) Number() protoreflect.EnumNumber {
86 return protoreflect.EnumNumber(x)
87 }
88
89 // Deprecated: Use OSPolicy_Mode.Descriptor instead.
90 func (OSPolicy_Mode) EnumDescriptor() ([]byte, []int) {
91 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 0}
92 }
93
94 // The desired state that the OS Config agent maintains on the VM.
95 type OSPolicy_Resource_PackageResource_DesiredState int32
96
97 const (
98 // Unspecified is invalid.
99 OSPolicy_Resource_PackageResource_DESIRED_STATE_UNSPECIFIED OSPolicy_Resource_PackageResource_DesiredState = 0
100 // Ensure that the package is installed.
101 OSPolicy_Resource_PackageResource_INSTALLED OSPolicy_Resource_PackageResource_DesiredState = 1
102 // The agent ensures that the package is not installed and
103 // uninstalls it if detected.
104 OSPolicy_Resource_PackageResource_REMOVED OSPolicy_Resource_PackageResource_DesiredState = 2
105 )
106
107 // Enum value maps for OSPolicy_Resource_PackageResource_DesiredState.
108 var (
109 OSPolicy_Resource_PackageResource_DesiredState_name = map[int32]string{
110 0: "DESIRED_STATE_UNSPECIFIED",
111 1: "INSTALLED",
112 2: "REMOVED",
113 }
114 OSPolicy_Resource_PackageResource_DesiredState_value = map[string]int32{
115 "DESIRED_STATE_UNSPECIFIED": 0,
116 "INSTALLED": 1,
117 "REMOVED": 2,
118 }
119 )
120
121 func (x OSPolicy_Resource_PackageResource_DesiredState) Enum() *OSPolicy_Resource_PackageResource_DesiredState {
122 p := new(OSPolicy_Resource_PackageResource_DesiredState)
123 *p = x
124 return p
125 }
126
127 func (x OSPolicy_Resource_PackageResource_DesiredState) String() string {
128 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
129 }
130
131 func (OSPolicy_Resource_PackageResource_DesiredState) Descriptor() protoreflect.EnumDescriptor {
132 return file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[1].Descriptor()
133 }
134
135 func (OSPolicy_Resource_PackageResource_DesiredState) Type() protoreflect.EnumType {
136 return &file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[1]
137 }
138
139 func (x OSPolicy_Resource_PackageResource_DesiredState) Number() protoreflect.EnumNumber {
140 return protoreflect.EnumNumber(x)
141 }
142
143 // Deprecated: Use OSPolicy_Resource_PackageResource_DesiredState.Descriptor instead.
144 func (OSPolicy_Resource_PackageResource_DesiredState) EnumDescriptor() ([]byte, []int) {
145 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 0}
146 }
147
148 // Type of archive.
149 type OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType int32
150
151 const (
152 // Unspecified is invalid.
153 OSPolicy_Resource_RepositoryResource_AptRepository_ARCHIVE_TYPE_UNSPECIFIED OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType = 0
154 // Deb indicates that the archive contains binary files.
155 OSPolicy_Resource_RepositoryResource_AptRepository_DEB OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType = 1
156 // Deb-src indicates that the archive contains source files.
157 OSPolicy_Resource_RepositoryResource_AptRepository_DEB_SRC OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType = 2
158 )
159
160 // Enum value maps for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType.
161 var (
162 OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType_name = map[int32]string{
163 0: "ARCHIVE_TYPE_UNSPECIFIED",
164 1: "DEB",
165 2: "DEB_SRC",
166 }
167 OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType_value = map[string]int32{
168 "ARCHIVE_TYPE_UNSPECIFIED": 0,
169 "DEB": 1,
170 "DEB_SRC": 2,
171 }
172 )
173
174 func (x OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) Enum() *OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType {
175 p := new(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType)
176 *p = x
177 return p
178 }
179
180 func (x OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) String() string {
181 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
182 }
183
184 func (OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) Descriptor() protoreflect.EnumDescriptor {
185 return file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[2].Descriptor()
186 }
187
188 func (OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) Type() protoreflect.EnumType {
189 return &file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[2]
190 }
191
192 func (x OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) Number() protoreflect.EnumNumber {
193 return protoreflect.EnumNumber(x)
194 }
195
196 // Deprecated: Use OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType.Descriptor instead.
197 func (OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) EnumDescriptor() ([]byte, []int) {
198 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2, 0, 0}
199 }
200
201 // The interpreter to use.
202 type OSPolicy_Resource_ExecResource_Exec_Interpreter int32
203
204 const (
205 // Invalid value, the request will return validation error.
206 OSPolicy_Resource_ExecResource_Exec_INTERPRETER_UNSPECIFIED OSPolicy_Resource_ExecResource_Exec_Interpreter = 0
207 // If an interpreter is not specified, the
208 // source is executed directly. This execution, without an
209 // interpreter, only succeeds for executables and scripts that have <a
210 // href="https://en.wikipedia.org/wiki/Shebang_(Unix)"
211 // class="external">shebang lines</a>.
212 OSPolicy_Resource_ExecResource_Exec_NONE OSPolicy_Resource_ExecResource_Exec_Interpreter = 1
213 // Indicates that the script runs with `/bin/sh` on Linux and
214 // `cmd.exe` on Windows.
215 OSPolicy_Resource_ExecResource_Exec_SHELL OSPolicy_Resource_ExecResource_Exec_Interpreter = 2
216 // Indicates that the script runs with PowerShell.
217 OSPolicy_Resource_ExecResource_Exec_POWERSHELL OSPolicy_Resource_ExecResource_Exec_Interpreter = 3
218 )
219
220 // Enum value maps for OSPolicy_Resource_ExecResource_Exec_Interpreter.
221 var (
222 OSPolicy_Resource_ExecResource_Exec_Interpreter_name = map[int32]string{
223 0: "INTERPRETER_UNSPECIFIED",
224 1: "NONE",
225 2: "SHELL",
226 3: "POWERSHELL",
227 }
228 OSPolicy_Resource_ExecResource_Exec_Interpreter_value = map[string]int32{
229 "INTERPRETER_UNSPECIFIED": 0,
230 "NONE": 1,
231 "SHELL": 2,
232 "POWERSHELL": 3,
233 }
234 )
235
236 func (x OSPolicy_Resource_ExecResource_Exec_Interpreter) Enum() *OSPolicy_Resource_ExecResource_Exec_Interpreter {
237 p := new(OSPolicy_Resource_ExecResource_Exec_Interpreter)
238 *p = x
239 return p
240 }
241
242 func (x OSPolicy_Resource_ExecResource_Exec_Interpreter) String() string {
243 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
244 }
245
246 func (OSPolicy_Resource_ExecResource_Exec_Interpreter) Descriptor() protoreflect.EnumDescriptor {
247 return file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[3].Descriptor()
248 }
249
250 func (OSPolicy_Resource_ExecResource_Exec_Interpreter) Type() protoreflect.EnumType {
251 return &file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[3]
252 }
253
254 func (x OSPolicy_Resource_ExecResource_Exec_Interpreter) Number() protoreflect.EnumNumber {
255 return protoreflect.EnumNumber(x)
256 }
257
258 // Deprecated: Use OSPolicy_Resource_ExecResource_Exec_Interpreter.Descriptor instead.
259 func (OSPolicy_Resource_ExecResource_Exec_Interpreter) EnumDescriptor() ([]byte, []int) {
260 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 3, 0, 0}
261 }
262
263 // Desired state of the file.
264 type OSPolicy_Resource_FileResource_DesiredState int32
265
266 const (
267 // Unspecified is invalid.
268 OSPolicy_Resource_FileResource_DESIRED_STATE_UNSPECIFIED OSPolicy_Resource_FileResource_DesiredState = 0
269 // Ensure file at path is present.
270 OSPolicy_Resource_FileResource_PRESENT OSPolicy_Resource_FileResource_DesiredState = 1
271 // Ensure file at path is absent.
272 OSPolicy_Resource_FileResource_ABSENT OSPolicy_Resource_FileResource_DesiredState = 2
273 // Ensure the contents of the file at path matches. If the file does
274 // not exist it will be created.
275 OSPolicy_Resource_FileResource_CONTENTS_MATCH OSPolicy_Resource_FileResource_DesiredState = 3
276 )
277
278 // Enum value maps for OSPolicy_Resource_FileResource_DesiredState.
279 var (
280 OSPolicy_Resource_FileResource_DesiredState_name = map[int32]string{
281 0: "DESIRED_STATE_UNSPECIFIED",
282 1: "PRESENT",
283 2: "ABSENT",
284 3: "CONTENTS_MATCH",
285 }
286 OSPolicy_Resource_FileResource_DesiredState_value = map[string]int32{
287 "DESIRED_STATE_UNSPECIFIED": 0,
288 "PRESENT": 1,
289 "ABSENT": 2,
290 "CONTENTS_MATCH": 3,
291 }
292 )
293
294 func (x OSPolicy_Resource_FileResource_DesiredState) Enum() *OSPolicy_Resource_FileResource_DesiredState {
295 p := new(OSPolicy_Resource_FileResource_DesiredState)
296 *p = x
297 return p
298 }
299
300 func (x OSPolicy_Resource_FileResource_DesiredState) String() string {
301 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
302 }
303
304 func (OSPolicy_Resource_FileResource_DesiredState) Descriptor() protoreflect.EnumDescriptor {
305 return file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[4].Descriptor()
306 }
307
308 func (OSPolicy_Resource_FileResource_DesiredState) Type() protoreflect.EnumType {
309 return &file_google_cloud_osconfig_v1_os_policy_proto_enumTypes[4]
310 }
311
312 func (x OSPolicy_Resource_FileResource_DesiredState) Number() protoreflect.EnumNumber {
313 return protoreflect.EnumNumber(x)
314 }
315
316 // Deprecated: Use OSPolicy_Resource_FileResource_DesiredState.Descriptor instead.
317 func (OSPolicy_Resource_FileResource_DesiredState) EnumDescriptor() ([]byte, []int) {
318 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 4, 0}
319 }
320
321 // An OS policy defines the desired state configuration for a VM.
322 type OSPolicy struct {
323 state protoimpl.MessageState
324 sizeCache protoimpl.SizeCache
325 unknownFields protoimpl.UnknownFields
326
327 // Required. The id of the OS policy with the following restrictions:
328 //
329 // * Must contain only lowercase letters, numbers, and hyphens.
330 // * Must start with a letter.
331 // * Must be between 1-63 characters.
332 // * Must end with a number or a letter.
333 // * Must be unique within the assignment.
334 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
335 // Policy description.
336 // Length of the description is limited to 1024 characters.
337 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
338 // Required. Policy mode
339 Mode OSPolicy_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=google.cloud.osconfig.v1.OSPolicy_Mode" json:"mode,omitempty"`
340 // Required. List of resource groups for the policy.
341 // For a particular VM, resource groups are evaluated in the order specified
342 // and the first resource group that is applicable is selected and the rest
343 // are ignored.
344 //
345 // If none of the resource groups are applicable for a VM, the VM is
346 // considered to be non-compliant w.r.t this policy. This behavior can be
347 // toggled by the flag `allow_no_resource_group_match`
348 ResourceGroups []*OSPolicy_ResourceGroup `protobuf:"bytes,4,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"`
349 // This flag determines the OS policy compliance status when none of the
350 // resource groups within the policy are applicable for a VM. Set this value
351 // to `true` if the policy needs to be reported as compliant even if the
352 // policy has nothing to validate or enforce.
353 AllowNoResourceGroupMatch bool `protobuf:"varint,5,opt,name=allow_no_resource_group_match,json=allowNoResourceGroupMatch,proto3" json:"allow_no_resource_group_match,omitempty"`
354 }
355
356 func (x *OSPolicy) Reset() {
357 *x = OSPolicy{}
358 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[0]
359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360 ms.StoreMessageInfo(mi)
361 }
362
363 func (x *OSPolicy) String() string {
364 return protoimpl.X.MessageStringOf(x)
365 }
366
367 func (*OSPolicy) ProtoMessage() {}
368
369 func (x *OSPolicy) ProtoReflect() protoreflect.Message {
370 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[0]
371 if x != nil {
372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
373 if ms.LoadMessageInfo() == nil {
374 ms.StoreMessageInfo(mi)
375 }
376 return ms
377 }
378 return mi.MessageOf(x)
379 }
380
381 // Deprecated: Use OSPolicy.ProtoReflect.Descriptor instead.
382 func (*OSPolicy) Descriptor() ([]byte, []int) {
383 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0}
384 }
385
386 func (x *OSPolicy) GetId() string {
387 if x != nil {
388 return x.Id
389 }
390 return ""
391 }
392
393 func (x *OSPolicy) GetDescription() string {
394 if x != nil {
395 return x.Description
396 }
397 return ""
398 }
399
400 func (x *OSPolicy) GetMode() OSPolicy_Mode {
401 if x != nil {
402 return x.Mode
403 }
404 return OSPolicy_MODE_UNSPECIFIED
405 }
406
407 func (x *OSPolicy) GetResourceGroups() []*OSPolicy_ResourceGroup {
408 if x != nil {
409 return x.ResourceGroups
410 }
411 return nil
412 }
413
414 func (x *OSPolicy) GetAllowNoResourceGroupMatch() bool {
415 if x != nil {
416 return x.AllowNoResourceGroupMatch
417 }
418 return false
419 }
420
421 // Filtering criteria to select VMs based on inventory details.
422 type OSPolicy_InventoryFilter struct {
423 state protoimpl.MessageState
424 sizeCache protoimpl.SizeCache
425 unknownFields protoimpl.UnknownFields
426
427 // Required. The OS short name
428 OsShortName string `protobuf:"bytes,1,opt,name=os_short_name,json=osShortName,proto3" json:"os_short_name,omitempty"`
429 // The OS version
430 //
431 // Prefix matches are supported if asterisk(*) is provided as the
432 // last character. For example, to match all versions with a major
433 // version of `7`, specify the following value for this field `7.*`
434 //
435 // An empty string matches all OS versions.
436 OsVersion string `protobuf:"bytes,2,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
437 }
438
439 func (x *OSPolicy_InventoryFilter) Reset() {
440 *x = OSPolicy_InventoryFilter{}
441 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[1]
442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
443 ms.StoreMessageInfo(mi)
444 }
445
446 func (x *OSPolicy_InventoryFilter) String() string {
447 return protoimpl.X.MessageStringOf(x)
448 }
449
450 func (*OSPolicy_InventoryFilter) ProtoMessage() {}
451
452 func (x *OSPolicy_InventoryFilter) ProtoReflect() protoreflect.Message {
453 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[1]
454 if x != nil {
455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
456 if ms.LoadMessageInfo() == nil {
457 ms.StoreMessageInfo(mi)
458 }
459 return ms
460 }
461 return mi.MessageOf(x)
462 }
463
464 // Deprecated: Use OSPolicy_InventoryFilter.ProtoReflect.Descriptor instead.
465 func (*OSPolicy_InventoryFilter) Descriptor() ([]byte, []int) {
466 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 0}
467 }
468
469 func (x *OSPolicy_InventoryFilter) GetOsShortName() string {
470 if x != nil {
471 return x.OsShortName
472 }
473 return ""
474 }
475
476 func (x *OSPolicy_InventoryFilter) GetOsVersion() string {
477 if x != nil {
478 return x.OsVersion
479 }
480 return ""
481 }
482
483 // An OS policy resource is used to define the desired state configuration
484 // and provides a specific functionality like installing/removing packages,
485 // executing a script etc.
486 //
487 // The system ensures that resources are always in their desired state by
488 // taking necessary actions if they have drifted from their desired state.
489 type OSPolicy_Resource struct {
490 state protoimpl.MessageState
491 sizeCache protoimpl.SizeCache
492 unknownFields protoimpl.UnknownFields
493
494 // Required. The id of the resource with the following restrictions:
495 //
496 // * Must contain only lowercase letters, numbers, and hyphens.
497 // * Must start with a letter.
498 // * Must be between 1-63 characters.
499 // * Must end with a number or a letter.
500 // * Must be unique within the OS policy.
501 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
502 // Resource type.
503 //
504 // Types that are assignable to ResourceType:
505 //
506 // *OSPolicy_Resource_Pkg
507 // *OSPolicy_Resource_Repository
508 // *OSPolicy_Resource_Exec
509 // *OSPolicy_Resource_File_
510 ResourceType isOSPolicy_Resource_ResourceType `protobuf_oneof:"resource_type"`
511 }
512
513 func (x *OSPolicy_Resource) Reset() {
514 *x = OSPolicy_Resource{}
515 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[2]
516 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
517 ms.StoreMessageInfo(mi)
518 }
519
520 func (x *OSPolicy_Resource) String() string {
521 return protoimpl.X.MessageStringOf(x)
522 }
523
524 func (*OSPolicy_Resource) ProtoMessage() {}
525
526 func (x *OSPolicy_Resource) ProtoReflect() protoreflect.Message {
527 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[2]
528 if x != nil {
529 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
530 if ms.LoadMessageInfo() == nil {
531 ms.StoreMessageInfo(mi)
532 }
533 return ms
534 }
535 return mi.MessageOf(x)
536 }
537
538 // Deprecated: Use OSPolicy_Resource.ProtoReflect.Descriptor instead.
539 func (*OSPolicy_Resource) Descriptor() ([]byte, []int) {
540 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1}
541 }
542
543 func (x *OSPolicy_Resource) GetId() string {
544 if x != nil {
545 return x.Id
546 }
547 return ""
548 }
549
550 func (m *OSPolicy_Resource) GetResourceType() isOSPolicy_Resource_ResourceType {
551 if m != nil {
552 return m.ResourceType
553 }
554 return nil
555 }
556
557 func (x *OSPolicy_Resource) GetPkg() *OSPolicy_Resource_PackageResource {
558 if x, ok := x.GetResourceType().(*OSPolicy_Resource_Pkg); ok {
559 return x.Pkg
560 }
561 return nil
562 }
563
564 func (x *OSPolicy_Resource) GetRepository() *OSPolicy_Resource_RepositoryResource {
565 if x, ok := x.GetResourceType().(*OSPolicy_Resource_Repository); ok {
566 return x.Repository
567 }
568 return nil
569 }
570
571 func (x *OSPolicy_Resource) GetExec() *OSPolicy_Resource_ExecResource {
572 if x, ok := x.GetResourceType().(*OSPolicy_Resource_Exec); ok {
573 return x.Exec
574 }
575 return nil
576 }
577
578 func (x *OSPolicy_Resource) GetFile() *OSPolicy_Resource_FileResource {
579 if x, ok := x.GetResourceType().(*OSPolicy_Resource_File_); ok {
580 return x.File
581 }
582 return nil
583 }
584
585 type isOSPolicy_Resource_ResourceType interface {
586 isOSPolicy_Resource_ResourceType()
587 }
588
589 type OSPolicy_Resource_Pkg struct {
590 // Package resource
591 Pkg *OSPolicy_Resource_PackageResource `protobuf:"bytes,2,opt,name=pkg,proto3,oneof"`
592 }
593
594 type OSPolicy_Resource_Repository struct {
595 // Package repository resource
596 Repository *OSPolicy_Resource_RepositoryResource `protobuf:"bytes,3,opt,name=repository,proto3,oneof"`
597 }
598
599 type OSPolicy_Resource_Exec struct {
600 // Exec resource
601 Exec *OSPolicy_Resource_ExecResource `protobuf:"bytes,4,opt,name=exec,proto3,oneof"`
602 }
603
604 type OSPolicy_Resource_File_ struct {
605 // File resource
606 File *OSPolicy_Resource_FileResource `protobuf:"bytes,5,opt,name=file,proto3,oneof"`
607 }
608
609 func (*OSPolicy_Resource_Pkg) isOSPolicy_Resource_ResourceType() {}
610
611 func (*OSPolicy_Resource_Repository) isOSPolicy_Resource_ResourceType() {}
612
613 func (*OSPolicy_Resource_Exec) isOSPolicy_Resource_ResourceType() {}
614
615 func (*OSPolicy_Resource_File_) isOSPolicy_Resource_ResourceType() {}
616
617 // Resource groups provide a mechanism to group OS policy resources.
618 //
619 // Resource groups enable OS policy authors to create a single OS policy
620 // to be applied to VMs running different operating Systems.
621 //
622 // When the OS policy is applied to a target VM, the appropriate resource
623 // group within the OS policy is selected based on the `OSFilter` specified
624 // within the resource group.
625 type OSPolicy_ResourceGroup struct {
626 state protoimpl.MessageState
627 sizeCache protoimpl.SizeCache
628 unknownFields protoimpl.UnknownFields
629
630 // List of inventory filters for the resource group.
631 //
632 // The resources in this resource group are applied to the target VM if it
633 // satisfies at least one of the following inventory filters.
634 //
635 // For example, to apply this resource group to VMs running either `RHEL` or
636 // `CentOS` operating systems, specify 2 items for the list with following
637 // values:
638 // inventory_filters[0].os_short_name='rhel' and
639 // inventory_filters[1].os_short_name='centos'
640 //
641 // If the list is empty, this resource group will be applied to the target
642 // VM unconditionally.
643 InventoryFilters []*OSPolicy_InventoryFilter `protobuf:"bytes,1,rep,name=inventory_filters,json=inventoryFilters,proto3" json:"inventory_filters,omitempty"`
644 // Required. List of resources configured for this resource group.
645 // The resources are executed in the exact order specified here.
646 Resources []*OSPolicy_Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
647 }
648
649 func (x *OSPolicy_ResourceGroup) Reset() {
650 *x = OSPolicy_ResourceGroup{}
651 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[3]
652 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
653 ms.StoreMessageInfo(mi)
654 }
655
656 func (x *OSPolicy_ResourceGroup) String() string {
657 return protoimpl.X.MessageStringOf(x)
658 }
659
660 func (*OSPolicy_ResourceGroup) ProtoMessage() {}
661
662 func (x *OSPolicy_ResourceGroup) ProtoReflect() protoreflect.Message {
663 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[3]
664 if x != nil {
665 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
666 if ms.LoadMessageInfo() == nil {
667 ms.StoreMessageInfo(mi)
668 }
669 return ms
670 }
671 return mi.MessageOf(x)
672 }
673
674 // Deprecated: Use OSPolicy_ResourceGroup.ProtoReflect.Descriptor instead.
675 func (*OSPolicy_ResourceGroup) Descriptor() ([]byte, []int) {
676 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 2}
677 }
678
679 func (x *OSPolicy_ResourceGroup) GetInventoryFilters() []*OSPolicy_InventoryFilter {
680 if x != nil {
681 return x.InventoryFilters
682 }
683 return nil
684 }
685
686 func (x *OSPolicy_ResourceGroup) GetResources() []*OSPolicy_Resource {
687 if x != nil {
688 return x.Resources
689 }
690 return nil
691 }
692
693 // A remote or local file.
694 type OSPolicy_Resource_File struct {
695 state protoimpl.MessageState
696 sizeCache protoimpl.SizeCache
697 unknownFields protoimpl.UnknownFields
698
699 // A specific type of file.
700 //
701 // Types that are assignable to Type:
702 //
703 // *OSPolicy_Resource_File_Remote_
704 // *OSPolicy_Resource_File_Gcs_
705 // *OSPolicy_Resource_File_LocalPath
706 Type isOSPolicy_Resource_File_Type `protobuf_oneof:"type"`
707 // Defaults to false. When false, files are subject to validations
708 // based on the file type:
709 //
710 // Remote: A checksum must be specified.
711 // Cloud Storage: An object generation number must be specified.
712 AllowInsecure bool `protobuf:"varint,4,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
713 }
714
715 func (x *OSPolicy_Resource_File) Reset() {
716 *x = OSPolicy_Resource_File{}
717 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[4]
718 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
719 ms.StoreMessageInfo(mi)
720 }
721
722 func (x *OSPolicy_Resource_File) String() string {
723 return protoimpl.X.MessageStringOf(x)
724 }
725
726 func (*OSPolicy_Resource_File) ProtoMessage() {}
727
728 func (x *OSPolicy_Resource_File) ProtoReflect() protoreflect.Message {
729 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[4]
730 if x != nil {
731 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
732 if ms.LoadMessageInfo() == nil {
733 ms.StoreMessageInfo(mi)
734 }
735 return ms
736 }
737 return mi.MessageOf(x)
738 }
739
740 // Deprecated: Use OSPolicy_Resource_File.ProtoReflect.Descriptor instead.
741 func (*OSPolicy_Resource_File) Descriptor() ([]byte, []int) {
742 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 0}
743 }
744
745 func (m *OSPolicy_Resource_File) GetType() isOSPolicy_Resource_File_Type {
746 if m != nil {
747 return m.Type
748 }
749 return nil
750 }
751
752 func (x *OSPolicy_Resource_File) GetRemote() *OSPolicy_Resource_File_Remote {
753 if x, ok := x.GetType().(*OSPolicy_Resource_File_Remote_); ok {
754 return x.Remote
755 }
756 return nil
757 }
758
759 func (x *OSPolicy_Resource_File) GetGcs() *OSPolicy_Resource_File_Gcs {
760 if x, ok := x.GetType().(*OSPolicy_Resource_File_Gcs_); ok {
761 return x.Gcs
762 }
763 return nil
764 }
765
766 func (x *OSPolicy_Resource_File) GetLocalPath() string {
767 if x, ok := x.GetType().(*OSPolicy_Resource_File_LocalPath); ok {
768 return x.LocalPath
769 }
770 return ""
771 }
772
773 func (x *OSPolicy_Resource_File) GetAllowInsecure() bool {
774 if x != nil {
775 return x.AllowInsecure
776 }
777 return false
778 }
779
780 type isOSPolicy_Resource_File_Type interface {
781 isOSPolicy_Resource_File_Type()
782 }
783
784 type OSPolicy_Resource_File_Remote_ struct {
785 // A generic remote file.
786 Remote *OSPolicy_Resource_File_Remote `protobuf:"bytes,1,opt,name=remote,proto3,oneof"`
787 }
788
789 type OSPolicy_Resource_File_Gcs_ struct {
790 // A Cloud Storage object.
791 Gcs *OSPolicy_Resource_File_Gcs `protobuf:"bytes,2,opt,name=gcs,proto3,oneof"`
792 }
793
794 type OSPolicy_Resource_File_LocalPath struct {
795 // A local path within the VM to use.
796 LocalPath string `protobuf:"bytes,3,opt,name=local_path,json=localPath,proto3,oneof"`
797 }
798
799 func (*OSPolicy_Resource_File_Remote_) isOSPolicy_Resource_File_Type() {}
800
801 func (*OSPolicy_Resource_File_Gcs_) isOSPolicy_Resource_File_Type() {}
802
803 func (*OSPolicy_Resource_File_LocalPath) isOSPolicy_Resource_File_Type() {}
804
805 // A resource that manages a system package.
806 type OSPolicy_Resource_PackageResource struct {
807 state protoimpl.MessageState
808 sizeCache protoimpl.SizeCache
809 unknownFields protoimpl.UnknownFields
810
811 // Required. The desired state the agent should maintain for this package.
812 DesiredState OSPolicy_Resource_PackageResource_DesiredState `protobuf:"varint,1,opt,name=desired_state,json=desiredState,proto3,enum=google.cloud.osconfig.v1.OSPolicy_Resource_PackageResource_DesiredState" json:"desired_state,omitempty"`
813 // A system package.
814 //
815 // Types that are assignable to SystemPackage:
816 //
817 // *OSPolicy_Resource_PackageResource_Apt
818 // *OSPolicy_Resource_PackageResource_Deb_
819 // *OSPolicy_Resource_PackageResource_Yum
820 // *OSPolicy_Resource_PackageResource_Zypper_
821 // *OSPolicy_Resource_PackageResource_Rpm
822 // *OSPolicy_Resource_PackageResource_Googet
823 // *OSPolicy_Resource_PackageResource_Msi
824 SystemPackage isOSPolicy_Resource_PackageResource_SystemPackage `protobuf_oneof:"system_package"`
825 }
826
827 func (x *OSPolicy_Resource_PackageResource) Reset() {
828 *x = OSPolicy_Resource_PackageResource{}
829 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[5]
830 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
831 ms.StoreMessageInfo(mi)
832 }
833
834 func (x *OSPolicy_Resource_PackageResource) String() string {
835 return protoimpl.X.MessageStringOf(x)
836 }
837
838 func (*OSPolicy_Resource_PackageResource) ProtoMessage() {}
839
840 func (x *OSPolicy_Resource_PackageResource) ProtoReflect() protoreflect.Message {
841 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[5]
842 if x != nil {
843 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
844 if ms.LoadMessageInfo() == nil {
845 ms.StoreMessageInfo(mi)
846 }
847 return ms
848 }
849 return mi.MessageOf(x)
850 }
851
852 // Deprecated: Use OSPolicy_Resource_PackageResource.ProtoReflect.Descriptor instead.
853 func (*OSPolicy_Resource_PackageResource) Descriptor() ([]byte, []int) {
854 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1}
855 }
856
857 func (x *OSPolicy_Resource_PackageResource) GetDesiredState() OSPolicy_Resource_PackageResource_DesiredState {
858 if x != nil {
859 return x.DesiredState
860 }
861 return OSPolicy_Resource_PackageResource_DESIRED_STATE_UNSPECIFIED
862 }
863
864 func (m *OSPolicy_Resource_PackageResource) GetSystemPackage() isOSPolicy_Resource_PackageResource_SystemPackage {
865 if m != nil {
866 return m.SystemPackage
867 }
868 return nil
869 }
870
871 func (x *OSPolicy_Resource_PackageResource) GetApt() *OSPolicy_Resource_PackageResource_APT {
872 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Apt); ok {
873 return x.Apt
874 }
875 return nil
876 }
877
878 func (x *OSPolicy_Resource_PackageResource) GetDeb() *OSPolicy_Resource_PackageResource_Deb {
879 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Deb_); ok {
880 return x.Deb
881 }
882 return nil
883 }
884
885 func (x *OSPolicy_Resource_PackageResource) GetYum() *OSPolicy_Resource_PackageResource_YUM {
886 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Yum); ok {
887 return x.Yum
888 }
889 return nil
890 }
891
892 func (x *OSPolicy_Resource_PackageResource) GetZypper() *OSPolicy_Resource_PackageResource_Zypper {
893 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Zypper_); ok {
894 return x.Zypper
895 }
896 return nil
897 }
898
899 func (x *OSPolicy_Resource_PackageResource) GetRpm() *OSPolicy_Resource_PackageResource_RPM {
900 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Rpm); ok {
901 return x.Rpm
902 }
903 return nil
904 }
905
906 func (x *OSPolicy_Resource_PackageResource) GetGooget() *OSPolicy_Resource_PackageResource_GooGet {
907 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Googet); ok {
908 return x.Googet
909 }
910 return nil
911 }
912
913 func (x *OSPolicy_Resource_PackageResource) GetMsi() *OSPolicy_Resource_PackageResource_MSI {
914 if x, ok := x.GetSystemPackage().(*OSPolicy_Resource_PackageResource_Msi); ok {
915 return x.Msi
916 }
917 return nil
918 }
919
920 type isOSPolicy_Resource_PackageResource_SystemPackage interface {
921 isOSPolicy_Resource_PackageResource_SystemPackage()
922 }
923
924 type OSPolicy_Resource_PackageResource_Apt struct {
925 // A package managed by Apt.
926 Apt *OSPolicy_Resource_PackageResource_APT `protobuf:"bytes,2,opt,name=apt,proto3,oneof"`
927 }
928
929 type OSPolicy_Resource_PackageResource_Deb_ struct {
930 // A deb package file.
931 Deb *OSPolicy_Resource_PackageResource_Deb `protobuf:"bytes,3,opt,name=deb,proto3,oneof"`
932 }
933
934 type OSPolicy_Resource_PackageResource_Yum struct {
935 // A package managed by YUM.
936 Yum *OSPolicy_Resource_PackageResource_YUM `protobuf:"bytes,4,opt,name=yum,proto3,oneof"`
937 }
938
939 type OSPolicy_Resource_PackageResource_Zypper_ struct {
940 // A package managed by Zypper.
941 Zypper *OSPolicy_Resource_PackageResource_Zypper `protobuf:"bytes,5,opt,name=zypper,proto3,oneof"`
942 }
943
944 type OSPolicy_Resource_PackageResource_Rpm struct {
945 // An rpm package file.
946 Rpm *OSPolicy_Resource_PackageResource_RPM `protobuf:"bytes,6,opt,name=rpm,proto3,oneof"`
947 }
948
949 type OSPolicy_Resource_PackageResource_Googet struct {
950 // A package managed by GooGet.
951 Googet *OSPolicy_Resource_PackageResource_GooGet `protobuf:"bytes,7,opt,name=googet,proto3,oneof"`
952 }
953
954 type OSPolicy_Resource_PackageResource_Msi struct {
955 // An MSI package.
956 Msi *OSPolicy_Resource_PackageResource_MSI `protobuf:"bytes,8,opt,name=msi,proto3,oneof"`
957 }
958
959 func (*OSPolicy_Resource_PackageResource_Apt) isOSPolicy_Resource_PackageResource_SystemPackage() {}
960
961 func (*OSPolicy_Resource_PackageResource_Deb_) isOSPolicy_Resource_PackageResource_SystemPackage() {}
962
963 func (*OSPolicy_Resource_PackageResource_Yum) isOSPolicy_Resource_PackageResource_SystemPackage() {}
964
965 func (*OSPolicy_Resource_PackageResource_Zypper_) isOSPolicy_Resource_PackageResource_SystemPackage() {
966 }
967
968 func (*OSPolicy_Resource_PackageResource_Rpm) isOSPolicy_Resource_PackageResource_SystemPackage() {}
969
970 func (*OSPolicy_Resource_PackageResource_Googet) isOSPolicy_Resource_PackageResource_SystemPackage() {
971 }
972
973 func (*OSPolicy_Resource_PackageResource_Msi) isOSPolicy_Resource_PackageResource_SystemPackage() {}
974
975 // A resource that manages a package repository.
976 type OSPolicy_Resource_RepositoryResource struct {
977 state protoimpl.MessageState
978 sizeCache protoimpl.SizeCache
979 unknownFields protoimpl.UnknownFields
980
981 // A specific type of repository.
982 //
983 // Types that are assignable to Repository:
984 //
985 // *OSPolicy_Resource_RepositoryResource_Apt
986 // *OSPolicy_Resource_RepositoryResource_Yum
987 // *OSPolicy_Resource_RepositoryResource_Zypper
988 // *OSPolicy_Resource_RepositoryResource_Goo
989 Repository isOSPolicy_Resource_RepositoryResource_Repository `protobuf_oneof:"repository"`
990 }
991
992 func (x *OSPolicy_Resource_RepositoryResource) Reset() {
993 *x = OSPolicy_Resource_RepositoryResource{}
994 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[6]
995 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
996 ms.StoreMessageInfo(mi)
997 }
998
999 func (x *OSPolicy_Resource_RepositoryResource) String() string {
1000 return protoimpl.X.MessageStringOf(x)
1001 }
1002
1003 func (*OSPolicy_Resource_RepositoryResource) ProtoMessage() {}
1004
1005 func (x *OSPolicy_Resource_RepositoryResource) ProtoReflect() protoreflect.Message {
1006 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[6]
1007 if x != nil {
1008 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1009 if ms.LoadMessageInfo() == nil {
1010 ms.StoreMessageInfo(mi)
1011 }
1012 return ms
1013 }
1014 return mi.MessageOf(x)
1015 }
1016
1017 // Deprecated: Use OSPolicy_Resource_RepositoryResource.ProtoReflect.Descriptor instead.
1018 func (*OSPolicy_Resource_RepositoryResource) Descriptor() ([]byte, []int) {
1019 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2}
1020 }
1021
1022 func (m *OSPolicy_Resource_RepositoryResource) GetRepository() isOSPolicy_Resource_RepositoryResource_Repository {
1023 if m != nil {
1024 return m.Repository
1025 }
1026 return nil
1027 }
1028
1029 func (x *OSPolicy_Resource_RepositoryResource) GetApt() *OSPolicy_Resource_RepositoryResource_AptRepository {
1030 if x, ok := x.GetRepository().(*OSPolicy_Resource_RepositoryResource_Apt); ok {
1031 return x.Apt
1032 }
1033 return nil
1034 }
1035
1036 func (x *OSPolicy_Resource_RepositoryResource) GetYum() *OSPolicy_Resource_RepositoryResource_YumRepository {
1037 if x, ok := x.GetRepository().(*OSPolicy_Resource_RepositoryResource_Yum); ok {
1038 return x.Yum
1039 }
1040 return nil
1041 }
1042
1043 func (x *OSPolicy_Resource_RepositoryResource) GetZypper() *OSPolicy_Resource_RepositoryResource_ZypperRepository {
1044 if x, ok := x.GetRepository().(*OSPolicy_Resource_RepositoryResource_Zypper); ok {
1045 return x.Zypper
1046 }
1047 return nil
1048 }
1049
1050 func (x *OSPolicy_Resource_RepositoryResource) GetGoo() *OSPolicy_Resource_RepositoryResource_GooRepository {
1051 if x, ok := x.GetRepository().(*OSPolicy_Resource_RepositoryResource_Goo); ok {
1052 return x.Goo
1053 }
1054 return nil
1055 }
1056
1057 type isOSPolicy_Resource_RepositoryResource_Repository interface {
1058 isOSPolicy_Resource_RepositoryResource_Repository()
1059 }
1060
1061 type OSPolicy_Resource_RepositoryResource_Apt struct {
1062 // An Apt Repository.
1063 Apt *OSPolicy_Resource_RepositoryResource_AptRepository `protobuf:"bytes,1,opt,name=apt,proto3,oneof"`
1064 }
1065
1066 type OSPolicy_Resource_RepositoryResource_Yum struct {
1067 // A Yum Repository.
1068 Yum *OSPolicy_Resource_RepositoryResource_YumRepository `protobuf:"bytes,2,opt,name=yum,proto3,oneof"`
1069 }
1070
1071 type OSPolicy_Resource_RepositoryResource_Zypper struct {
1072 // A Zypper Repository.
1073 Zypper *OSPolicy_Resource_RepositoryResource_ZypperRepository `protobuf:"bytes,3,opt,name=zypper,proto3,oneof"`
1074 }
1075
1076 type OSPolicy_Resource_RepositoryResource_Goo struct {
1077 // A Goo Repository.
1078 Goo *OSPolicy_Resource_RepositoryResource_GooRepository `protobuf:"bytes,4,opt,name=goo,proto3,oneof"`
1079 }
1080
1081 func (*OSPolicy_Resource_RepositoryResource_Apt) isOSPolicy_Resource_RepositoryResource_Repository() {
1082 }
1083
1084 func (*OSPolicy_Resource_RepositoryResource_Yum) isOSPolicy_Resource_RepositoryResource_Repository() {
1085 }
1086
1087 func (*OSPolicy_Resource_RepositoryResource_Zypper) isOSPolicy_Resource_RepositoryResource_Repository() {
1088 }
1089
1090 func (*OSPolicy_Resource_RepositoryResource_Goo) isOSPolicy_Resource_RepositoryResource_Repository() {
1091 }
1092
1093 // A resource that allows executing scripts on the VM.
1094 //
1095 // The `ExecResource` has 2 stages: `validate` and `enforce` and both stages
1096 // accept a script as an argument to execute.
1097 //
1098 // When the `ExecResource` is applied by the agent, it first executes the
1099 // script in the `validate` stage. The `validate` stage can signal that the
1100 // `ExecResource` is already in the desired state by returning an exit code
1101 // of `100`. If the `ExecResource` is not in the desired state, it should
1102 // return an exit code of `101`. Any other exit code returned by this stage
1103 // is considered an error.
1104 //
1105 // If the `ExecResource` is not in the desired state based on the exit code
1106 // from the `validate` stage, the agent proceeds to execute the script from
1107 // the `enforce` stage. If the `ExecResource` is already in the desired
1108 // state, the `enforce` stage will not be run.
1109 // Similar to `validate` stage, the `enforce` stage should return an exit
1110 // code of `100` to indicate that the resource in now in its desired state.
1111 // Any other exit code is considered an error.
1112 //
1113 // NOTE: An exit code of `100` was chosen over `0` (and `101` vs `1`) to
1114 // have an explicit indicator of `in desired state`, `not in desired state`
1115 // and errors. Because, for example, Powershell will always return an exit
1116 // code of `0` unless an `exit` statement is provided in the script. So, for
1117 // reasons of consistency and being explicit, exit codes `100` and `101`
1118 // were chosen.
1119 type OSPolicy_Resource_ExecResource struct {
1120 state protoimpl.MessageState
1121 sizeCache protoimpl.SizeCache
1122 unknownFields protoimpl.UnknownFields
1123
1124 // Required. What to run to validate this resource is in the desired
1125 // state. An exit code of 100 indicates "in desired state", and exit code
1126 // of 101 indicates "not in desired state". Any other exit code indicates
1127 // a failure running validate.
1128 Validate *OSPolicy_Resource_ExecResource_Exec `protobuf:"bytes,1,opt,name=validate,proto3" json:"validate,omitempty"`
1129 // What to run to bring this resource into the desired state.
1130 // An exit code of 100 indicates "success", any other exit code indicates
1131 // a failure running enforce.
1132 Enforce *OSPolicy_Resource_ExecResource_Exec `protobuf:"bytes,2,opt,name=enforce,proto3" json:"enforce,omitempty"`
1133 }
1134
1135 func (x *OSPolicy_Resource_ExecResource) Reset() {
1136 *x = OSPolicy_Resource_ExecResource{}
1137 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[7]
1138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1139 ms.StoreMessageInfo(mi)
1140 }
1141
1142 func (x *OSPolicy_Resource_ExecResource) String() string {
1143 return protoimpl.X.MessageStringOf(x)
1144 }
1145
1146 func (*OSPolicy_Resource_ExecResource) ProtoMessage() {}
1147
1148 func (x *OSPolicy_Resource_ExecResource) ProtoReflect() protoreflect.Message {
1149 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[7]
1150 if x != nil {
1151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1152 if ms.LoadMessageInfo() == nil {
1153 ms.StoreMessageInfo(mi)
1154 }
1155 return ms
1156 }
1157 return mi.MessageOf(x)
1158 }
1159
1160 // Deprecated: Use OSPolicy_Resource_ExecResource.ProtoReflect.Descriptor instead.
1161 func (*OSPolicy_Resource_ExecResource) Descriptor() ([]byte, []int) {
1162 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 3}
1163 }
1164
1165 func (x *OSPolicy_Resource_ExecResource) GetValidate() *OSPolicy_Resource_ExecResource_Exec {
1166 if x != nil {
1167 return x.Validate
1168 }
1169 return nil
1170 }
1171
1172 func (x *OSPolicy_Resource_ExecResource) GetEnforce() *OSPolicy_Resource_ExecResource_Exec {
1173 if x != nil {
1174 return x.Enforce
1175 }
1176 return nil
1177 }
1178
1179 // A resource that manages the state of a file.
1180 type OSPolicy_Resource_FileResource struct {
1181 state protoimpl.MessageState
1182 sizeCache protoimpl.SizeCache
1183 unknownFields protoimpl.UnknownFields
1184
1185 // The source for the contents of the file.
1186 //
1187 // Types that are assignable to Source:
1188 //
1189 // *OSPolicy_Resource_FileResource_File
1190 // *OSPolicy_Resource_FileResource_Content
1191 Source isOSPolicy_Resource_FileResource_Source `protobuf_oneof:"source"`
1192 // Required. The absolute path of the file within the VM.
1193 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
1194 // Required. Desired state of the file.
1195 State OSPolicy_Resource_FileResource_DesiredState `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.osconfig.v1.OSPolicy_Resource_FileResource_DesiredState" json:"state,omitempty"`
1196 // Consists of three octal digits which represent, in
1197 // order, the permissions of the owner, group, and other users for the
1198 // file (similarly to the numeric mode used in the linux chmod
1199 // utility). Each digit represents a three bit number with the 4 bit
1200 // corresponding to the read permissions, the 2 bit corresponds to the
1201 // write bit, and the one bit corresponds to the execute permission.
1202 // Default behavior is 755.
1203 //
1204 // Below are some examples of permissions and their associated values:
1205 // read, write, and execute: 7
1206 // read and execute: 5
1207 // read and write: 6
1208 // read only: 4
1209 Permissions string `protobuf:"bytes,5,opt,name=permissions,proto3" json:"permissions,omitempty"`
1210 }
1211
1212 func (x *OSPolicy_Resource_FileResource) Reset() {
1213 *x = OSPolicy_Resource_FileResource{}
1214 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[8]
1215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1216 ms.StoreMessageInfo(mi)
1217 }
1218
1219 func (x *OSPolicy_Resource_FileResource) String() string {
1220 return protoimpl.X.MessageStringOf(x)
1221 }
1222
1223 func (*OSPolicy_Resource_FileResource) ProtoMessage() {}
1224
1225 func (x *OSPolicy_Resource_FileResource) ProtoReflect() protoreflect.Message {
1226 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[8]
1227 if x != nil {
1228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1229 if ms.LoadMessageInfo() == nil {
1230 ms.StoreMessageInfo(mi)
1231 }
1232 return ms
1233 }
1234 return mi.MessageOf(x)
1235 }
1236
1237 // Deprecated: Use OSPolicy_Resource_FileResource.ProtoReflect.Descriptor instead.
1238 func (*OSPolicy_Resource_FileResource) Descriptor() ([]byte, []int) {
1239 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 4}
1240 }
1241
1242 func (m *OSPolicy_Resource_FileResource) GetSource() isOSPolicy_Resource_FileResource_Source {
1243 if m != nil {
1244 return m.Source
1245 }
1246 return nil
1247 }
1248
1249 func (x *OSPolicy_Resource_FileResource) GetFile() *OSPolicy_Resource_File {
1250 if x, ok := x.GetSource().(*OSPolicy_Resource_FileResource_File); ok {
1251 return x.File
1252 }
1253 return nil
1254 }
1255
1256 func (x *OSPolicy_Resource_FileResource) GetContent() string {
1257 if x, ok := x.GetSource().(*OSPolicy_Resource_FileResource_Content); ok {
1258 return x.Content
1259 }
1260 return ""
1261 }
1262
1263 func (x *OSPolicy_Resource_FileResource) GetPath() string {
1264 if x != nil {
1265 return x.Path
1266 }
1267 return ""
1268 }
1269
1270 func (x *OSPolicy_Resource_FileResource) GetState() OSPolicy_Resource_FileResource_DesiredState {
1271 if x != nil {
1272 return x.State
1273 }
1274 return OSPolicy_Resource_FileResource_DESIRED_STATE_UNSPECIFIED
1275 }
1276
1277 func (x *OSPolicy_Resource_FileResource) GetPermissions() string {
1278 if x != nil {
1279 return x.Permissions
1280 }
1281 return ""
1282 }
1283
1284 type isOSPolicy_Resource_FileResource_Source interface {
1285 isOSPolicy_Resource_FileResource_Source()
1286 }
1287
1288 type OSPolicy_Resource_FileResource_File struct {
1289 // A remote or local source.
1290 File *OSPolicy_Resource_File `protobuf:"bytes,1,opt,name=file,proto3,oneof"`
1291 }
1292
1293 type OSPolicy_Resource_FileResource_Content struct {
1294 // A a file with this content.
1295 // The size of the content is limited to 1024 characters.
1296 Content string `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
1297 }
1298
1299 func (*OSPolicy_Resource_FileResource_File) isOSPolicy_Resource_FileResource_Source() {}
1300
1301 func (*OSPolicy_Resource_FileResource_Content) isOSPolicy_Resource_FileResource_Source() {}
1302
1303 // Specifies a file available via some URI.
1304 type OSPolicy_Resource_File_Remote struct {
1305 state protoimpl.MessageState
1306 sizeCache protoimpl.SizeCache
1307 unknownFields protoimpl.UnknownFields
1308
1309 // Required. URI from which to fetch the object. It should contain both
1310 // the protocol and path following the format `{protocol}://{location}`.
1311 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
1312 // SHA256 checksum of the remote file.
1313 Sha256Checksum string `protobuf:"bytes,2,opt,name=sha256_checksum,json=sha256Checksum,proto3" json:"sha256_checksum,omitempty"`
1314 }
1315
1316 func (x *OSPolicy_Resource_File_Remote) Reset() {
1317 *x = OSPolicy_Resource_File_Remote{}
1318 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[9]
1319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1320 ms.StoreMessageInfo(mi)
1321 }
1322
1323 func (x *OSPolicy_Resource_File_Remote) String() string {
1324 return protoimpl.X.MessageStringOf(x)
1325 }
1326
1327 func (*OSPolicy_Resource_File_Remote) ProtoMessage() {}
1328
1329 func (x *OSPolicy_Resource_File_Remote) ProtoReflect() protoreflect.Message {
1330 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[9]
1331 if x != nil {
1332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1333 if ms.LoadMessageInfo() == nil {
1334 ms.StoreMessageInfo(mi)
1335 }
1336 return ms
1337 }
1338 return mi.MessageOf(x)
1339 }
1340
1341 // Deprecated: Use OSPolicy_Resource_File_Remote.ProtoReflect.Descriptor instead.
1342 func (*OSPolicy_Resource_File_Remote) Descriptor() ([]byte, []int) {
1343 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 0, 0}
1344 }
1345
1346 func (x *OSPolicy_Resource_File_Remote) GetUri() string {
1347 if x != nil {
1348 return x.Uri
1349 }
1350 return ""
1351 }
1352
1353 func (x *OSPolicy_Resource_File_Remote) GetSha256Checksum() string {
1354 if x != nil {
1355 return x.Sha256Checksum
1356 }
1357 return ""
1358 }
1359
1360 // Specifies a file available as a Cloud Storage Object.
1361 type OSPolicy_Resource_File_Gcs struct {
1362 state protoimpl.MessageState
1363 sizeCache protoimpl.SizeCache
1364 unknownFields protoimpl.UnknownFields
1365
1366 // Required. Bucket of the Cloud Storage object.
1367 Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
1368 // Required. Name of the Cloud Storage object.
1369 Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
1370 // Generation number of the Cloud Storage object.
1371 Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
1372 }
1373
1374 func (x *OSPolicy_Resource_File_Gcs) Reset() {
1375 *x = OSPolicy_Resource_File_Gcs{}
1376 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[10]
1377 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1378 ms.StoreMessageInfo(mi)
1379 }
1380
1381 func (x *OSPolicy_Resource_File_Gcs) String() string {
1382 return protoimpl.X.MessageStringOf(x)
1383 }
1384
1385 func (*OSPolicy_Resource_File_Gcs) ProtoMessage() {}
1386
1387 func (x *OSPolicy_Resource_File_Gcs) ProtoReflect() protoreflect.Message {
1388 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[10]
1389 if x != nil {
1390 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1391 if ms.LoadMessageInfo() == nil {
1392 ms.StoreMessageInfo(mi)
1393 }
1394 return ms
1395 }
1396 return mi.MessageOf(x)
1397 }
1398
1399 // Deprecated: Use OSPolicy_Resource_File_Gcs.ProtoReflect.Descriptor instead.
1400 func (*OSPolicy_Resource_File_Gcs) Descriptor() ([]byte, []int) {
1401 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 0, 1}
1402 }
1403
1404 func (x *OSPolicy_Resource_File_Gcs) GetBucket() string {
1405 if x != nil {
1406 return x.Bucket
1407 }
1408 return ""
1409 }
1410
1411 func (x *OSPolicy_Resource_File_Gcs) GetObject() string {
1412 if x != nil {
1413 return x.Object
1414 }
1415 return ""
1416 }
1417
1418 func (x *OSPolicy_Resource_File_Gcs) GetGeneration() int64 {
1419 if x != nil {
1420 return x.Generation
1421 }
1422 return 0
1423 }
1424
1425 // A deb package file. dpkg packages only support INSTALLED state.
1426 type OSPolicy_Resource_PackageResource_Deb struct {
1427 state protoimpl.MessageState
1428 sizeCache protoimpl.SizeCache
1429 unknownFields protoimpl.UnknownFields
1430
1431 // Required. A deb package.
1432 Source *OSPolicy_Resource_File `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
1433 // Whether dependencies should also be installed.
1434 // - install when false: `dpkg -i package`
1435 // - install when true: `apt-get update && apt-get -y install
1436 // package.deb`
1437 PullDeps bool `protobuf:"varint,2,opt,name=pull_deps,json=pullDeps,proto3" json:"pull_deps,omitempty"`
1438 }
1439
1440 func (x *OSPolicy_Resource_PackageResource_Deb) Reset() {
1441 *x = OSPolicy_Resource_PackageResource_Deb{}
1442 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[11]
1443 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1444 ms.StoreMessageInfo(mi)
1445 }
1446
1447 func (x *OSPolicy_Resource_PackageResource_Deb) String() string {
1448 return protoimpl.X.MessageStringOf(x)
1449 }
1450
1451 func (*OSPolicy_Resource_PackageResource_Deb) ProtoMessage() {}
1452
1453 func (x *OSPolicy_Resource_PackageResource_Deb) ProtoReflect() protoreflect.Message {
1454 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[11]
1455 if x != nil {
1456 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1457 if ms.LoadMessageInfo() == nil {
1458 ms.StoreMessageInfo(mi)
1459 }
1460 return ms
1461 }
1462 return mi.MessageOf(x)
1463 }
1464
1465 // Deprecated: Use OSPolicy_Resource_PackageResource_Deb.ProtoReflect.Descriptor instead.
1466 func (*OSPolicy_Resource_PackageResource_Deb) Descriptor() ([]byte, []int) {
1467 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 0}
1468 }
1469
1470 func (x *OSPolicy_Resource_PackageResource_Deb) GetSource() *OSPolicy_Resource_File {
1471 if x != nil {
1472 return x.Source
1473 }
1474 return nil
1475 }
1476
1477 func (x *OSPolicy_Resource_PackageResource_Deb) GetPullDeps() bool {
1478 if x != nil {
1479 return x.PullDeps
1480 }
1481 return false
1482 }
1483
1484 // A package managed by APT.
1485 // - install: `apt-get update && apt-get -y install [name]`
1486 // - remove: `apt-get -y remove [name]`
1487 type OSPolicy_Resource_PackageResource_APT struct {
1488 state protoimpl.MessageState
1489 sizeCache protoimpl.SizeCache
1490 unknownFields protoimpl.UnknownFields
1491
1492 // Required. Package name.
1493 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1494 }
1495
1496 func (x *OSPolicy_Resource_PackageResource_APT) Reset() {
1497 *x = OSPolicy_Resource_PackageResource_APT{}
1498 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[12]
1499 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1500 ms.StoreMessageInfo(mi)
1501 }
1502
1503 func (x *OSPolicy_Resource_PackageResource_APT) String() string {
1504 return protoimpl.X.MessageStringOf(x)
1505 }
1506
1507 func (*OSPolicy_Resource_PackageResource_APT) ProtoMessage() {}
1508
1509 func (x *OSPolicy_Resource_PackageResource_APT) ProtoReflect() protoreflect.Message {
1510 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[12]
1511 if x != nil {
1512 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1513 if ms.LoadMessageInfo() == nil {
1514 ms.StoreMessageInfo(mi)
1515 }
1516 return ms
1517 }
1518 return mi.MessageOf(x)
1519 }
1520
1521 // Deprecated: Use OSPolicy_Resource_PackageResource_APT.ProtoReflect.Descriptor instead.
1522 func (*OSPolicy_Resource_PackageResource_APT) Descriptor() ([]byte, []int) {
1523 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 1}
1524 }
1525
1526 func (x *OSPolicy_Resource_PackageResource_APT) GetName() string {
1527 if x != nil {
1528 return x.Name
1529 }
1530 return ""
1531 }
1532
1533 // An RPM package file. RPM packages only support INSTALLED state.
1534 type OSPolicy_Resource_PackageResource_RPM struct {
1535 state protoimpl.MessageState
1536 sizeCache protoimpl.SizeCache
1537 unknownFields protoimpl.UnknownFields
1538
1539 // Required. An rpm package.
1540 Source *OSPolicy_Resource_File `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
1541 // Whether dependencies should also be installed.
1542 // - install when false: `rpm --upgrade --replacepkgs package.rpm`
1543 // - install when true: `yum -y install package.rpm` or
1544 // `zypper -y install package.rpm`
1545 PullDeps bool `protobuf:"varint,2,opt,name=pull_deps,json=pullDeps,proto3" json:"pull_deps,omitempty"`
1546 }
1547
1548 func (x *OSPolicy_Resource_PackageResource_RPM) Reset() {
1549 *x = OSPolicy_Resource_PackageResource_RPM{}
1550 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[13]
1551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1552 ms.StoreMessageInfo(mi)
1553 }
1554
1555 func (x *OSPolicy_Resource_PackageResource_RPM) String() string {
1556 return protoimpl.X.MessageStringOf(x)
1557 }
1558
1559 func (*OSPolicy_Resource_PackageResource_RPM) ProtoMessage() {}
1560
1561 func (x *OSPolicy_Resource_PackageResource_RPM) ProtoReflect() protoreflect.Message {
1562 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[13]
1563 if x != nil {
1564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1565 if ms.LoadMessageInfo() == nil {
1566 ms.StoreMessageInfo(mi)
1567 }
1568 return ms
1569 }
1570 return mi.MessageOf(x)
1571 }
1572
1573 // Deprecated: Use OSPolicy_Resource_PackageResource_RPM.ProtoReflect.Descriptor instead.
1574 func (*OSPolicy_Resource_PackageResource_RPM) Descriptor() ([]byte, []int) {
1575 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 2}
1576 }
1577
1578 func (x *OSPolicy_Resource_PackageResource_RPM) GetSource() *OSPolicy_Resource_File {
1579 if x != nil {
1580 return x.Source
1581 }
1582 return nil
1583 }
1584
1585 func (x *OSPolicy_Resource_PackageResource_RPM) GetPullDeps() bool {
1586 if x != nil {
1587 return x.PullDeps
1588 }
1589 return false
1590 }
1591
1592 // A package managed by YUM.
1593 // - install: `yum -y install package`
1594 // - remove: `yum -y remove package`
1595 type OSPolicy_Resource_PackageResource_YUM struct {
1596 state protoimpl.MessageState
1597 sizeCache protoimpl.SizeCache
1598 unknownFields protoimpl.UnknownFields
1599
1600 // Required. Package name.
1601 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1602 }
1603
1604 func (x *OSPolicy_Resource_PackageResource_YUM) Reset() {
1605 *x = OSPolicy_Resource_PackageResource_YUM{}
1606 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[14]
1607 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1608 ms.StoreMessageInfo(mi)
1609 }
1610
1611 func (x *OSPolicy_Resource_PackageResource_YUM) String() string {
1612 return protoimpl.X.MessageStringOf(x)
1613 }
1614
1615 func (*OSPolicy_Resource_PackageResource_YUM) ProtoMessage() {}
1616
1617 func (x *OSPolicy_Resource_PackageResource_YUM) ProtoReflect() protoreflect.Message {
1618 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[14]
1619 if x != nil {
1620 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1621 if ms.LoadMessageInfo() == nil {
1622 ms.StoreMessageInfo(mi)
1623 }
1624 return ms
1625 }
1626 return mi.MessageOf(x)
1627 }
1628
1629 // Deprecated: Use OSPolicy_Resource_PackageResource_YUM.ProtoReflect.Descriptor instead.
1630 func (*OSPolicy_Resource_PackageResource_YUM) Descriptor() ([]byte, []int) {
1631 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 3}
1632 }
1633
1634 func (x *OSPolicy_Resource_PackageResource_YUM) GetName() string {
1635 if x != nil {
1636 return x.Name
1637 }
1638 return ""
1639 }
1640
1641 // A package managed by Zypper.
1642 // - install: `zypper -y install package`
1643 // - remove: `zypper -y rm package`
1644 type OSPolicy_Resource_PackageResource_Zypper struct {
1645 state protoimpl.MessageState
1646 sizeCache protoimpl.SizeCache
1647 unknownFields protoimpl.UnknownFields
1648
1649 // Required. Package name.
1650 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1651 }
1652
1653 func (x *OSPolicy_Resource_PackageResource_Zypper) Reset() {
1654 *x = OSPolicy_Resource_PackageResource_Zypper{}
1655 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[15]
1656 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1657 ms.StoreMessageInfo(mi)
1658 }
1659
1660 func (x *OSPolicy_Resource_PackageResource_Zypper) String() string {
1661 return protoimpl.X.MessageStringOf(x)
1662 }
1663
1664 func (*OSPolicy_Resource_PackageResource_Zypper) ProtoMessage() {}
1665
1666 func (x *OSPolicy_Resource_PackageResource_Zypper) ProtoReflect() protoreflect.Message {
1667 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[15]
1668 if x != nil {
1669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1670 if ms.LoadMessageInfo() == nil {
1671 ms.StoreMessageInfo(mi)
1672 }
1673 return ms
1674 }
1675 return mi.MessageOf(x)
1676 }
1677
1678 // Deprecated: Use OSPolicy_Resource_PackageResource_Zypper.ProtoReflect.Descriptor instead.
1679 func (*OSPolicy_Resource_PackageResource_Zypper) Descriptor() ([]byte, []int) {
1680 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 4}
1681 }
1682
1683 func (x *OSPolicy_Resource_PackageResource_Zypper) GetName() string {
1684 if x != nil {
1685 return x.Name
1686 }
1687 return ""
1688 }
1689
1690 // A package managed by GooGet.
1691 // - install: `googet -noconfirm install package`
1692 // - remove: `googet -noconfirm remove package`
1693 type OSPolicy_Resource_PackageResource_GooGet struct {
1694 state protoimpl.MessageState
1695 sizeCache protoimpl.SizeCache
1696 unknownFields protoimpl.UnknownFields
1697
1698 // Required. Package name.
1699 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1700 }
1701
1702 func (x *OSPolicy_Resource_PackageResource_GooGet) Reset() {
1703 *x = OSPolicy_Resource_PackageResource_GooGet{}
1704 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[16]
1705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1706 ms.StoreMessageInfo(mi)
1707 }
1708
1709 func (x *OSPolicy_Resource_PackageResource_GooGet) String() string {
1710 return protoimpl.X.MessageStringOf(x)
1711 }
1712
1713 func (*OSPolicy_Resource_PackageResource_GooGet) ProtoMessage() {}
1714
1715 func (x *OSPolicy_Resource_PackageResource_GooGet) ProtoReflect() protoreflect.Message {
1716 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[16]
1717 if x != nil {
1718 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1719 if ms.LoadMessageInfo() == nil {
1720 ms.StoreMessageInfo(mi)
1721 }
1722 return ms
1723 }
1724 return mi.MessageOf(x)
1725 }
1726
1727 // Deprecated: Use OSPolicy_Resource_PackageResource_GooGet.ProtoReflect.Descriptor instead.
1728 func (*OSPolicy_Resource_PackageResource_GooGet) Descriptor() ([]byte, []int) {
1729 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 5}
1730 }
1731
1732 func (x *OSPolicy_Resource_PackageResource_GooGet) GetName() string {
1733 if x != nil {
1734 return x.Name
1735 }
1736 return ""
1737 }
1738
1739 // An MSI package. MSI packages only support INSTALLED state.
1740 type OSPolicy_Resource_PackageResource_MSI struct {
1741 state protoimpl.MessageState
1742 sizeCache protoimpl.SizeCache
1743 unknownFields protoimpl.UnknownFields
1744
1745 // Required. The MSI package.
1746 Source *OSPolicy_Resource_File `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
1747 // Additional properties to use during installation.
1748 // This should be in the format of Property=Setting.
1749 // Appended to the defaults of `ACTION=INSTALL
1750 // REBOOT=ReallySuppress`.
1751 Properties []string `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
1752 }
1753
1754 func (x *OSPolicy_Resource_PackageResource_MSI) Reset() {
1755 *x = OSPolicy_Resource_PackageResource_MSI{}
1756 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[17]
1757 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1758 ms.StoreMessageInfo(mi)
1759 }
1760
1761 func (x *OSPolicy_Resource_PackageResource_MSI) String() string {
1762 return protoimpl.X.MessageStringOf(x)
1763 }
1764
1765 func (*OSPolicy_Resource_PackageResource_MSI) ProtoMessage() {}
1766
1767 func (x *OSPolicy_Resource_PackageResource_MSI) ProtoReflect() protoreflect.Message {
1768 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[17]
1769 if x != nil {
1770 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1771 if ms.LoadMessageInfo() == nil {
1772 ms.StoreMessageInfo(mi)
1773 }
1774 return ms
1775 }
1776 return mi.MessageOf(x)
1777 }
1778
1779 // Deprecated: Use OSPolicy_Resource_PackageResource_MSI.ProtoReflect.Descriptor instead.
1780 func (*OSPolicy_Resource_PackageResource_MSI) Descriptor() ([]byte, []int) {
1781 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 1, 6}
1782 }
1783
1784 func (x *OSPolicy_Resource_PackageResource_MSI) GetSource() *OSPolicy_Resource_File {
1785 if x != nil {
1786 return x.Source
1787 }
1788 return nil
1789 }
1790
1791 func (x *OSPolicy_Resource_PackageResource_MSI) GetProperties() []string {
1792 if x != nil {
1793 return x.Properties
1794 }
1795 return nil
1796 }
1797
1798 // Represents a single apt package repository. These will be added to
1799 // a repo file that will be managed at
1800 // `/etc/apt/sources.list.d/google_osconfig.list`.
1801 type OSPolicy_Resource_RepositoryResource_AptRepository struct {
1802 state protoimpl.MessageState
1803 sizeCache protoimpl.SizeCache
1804 unknownFields protoimpl.UnknownFields
1805
1806 // Required. Type of archive files in this repository.
1807 ArchiveType OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType `protobuf:"varint,1,opt,name=archive_type,json=archiveType,proto3,enum=google.cloud.osconfig.v1.OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType" json:"archive_type,omitempty"`
1808 // Required. URI for this repository.
1809 Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
1810 // Required. Distribution of this repository.
1811 Distribution string `protobuf:"bytes,3,opt,name=distribution,proto3" json:"distribution,omitempty"`
1812 // Required. List of components for this repository. Must contain at
1813 // least one item.
1814 Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
1815 // URI of the key file for this repository. The agent maintains a
1816 // keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
1817 GpgKey string `protobuf:"bytes,5,opt,name=gpg_key,json=gpgKey,proto3" json:"gpg_key,omitempty"`
1818 }
1819
1820 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) Reset() {
1821 *x = OSPolicy_Resource_RepositoryResource_AptRepository{}
1822 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[18]
1823 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1824 ms.StoreMessageInfo(mi)
1825 }
1826
1827 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) String() string {
1828 return protoimpl.X.MessageStringOf(x)
1829 }
1830
1831 func (*OSPolicy_Resource_RepositoryResource_AptRepository) ProtoMessage() {}
1832
1833 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) ProtoReflect() protoreflect.Message {
1834 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[18]
1835 if x != nil {
1836 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1837 if ms.LoadMessageInfo() == nil {
1838 ms.StoreMessageInfo(mi)
1839 }
1840 return ms
1841 }
1842 return mi.MessageOf(x)
1843 }
1844
1845 // Deprecated: Use OSPolicy_Resource_RepositoryResource_AptRepository.ProtoReflect.Descriptor instead.
1846 func (*OSPolicy_Resource_RepositoryResource_AptRepository) Descriptor() ([]byte, []int) {
1847 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2, 0}
1848 }
1849
1850 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) GetArchiveType() OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType {
1851 if x != nil {
1852 return x.ArchiveType
1853 }
1854 return OSPolicy_Resource_RepositoryResource_AptRepository_ARCHIVE_TYPE_UNSPECIFIED
1855 }
1856
1857 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) GetUri() string {
1858 if x != nil {
1859 return x.Uri
1860 }
1861 return ""
1862 }
1863
1864 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) GetDistribution() string {
1865 if x != nil {
1866 return x.Distribution
1867 }
1868 return ""
1869 }
1870
1871 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) GetComponents() []string {
1872 if x != nil {
1873 return x.Components
1874 }
1875 return nil
1876 }
1877
1878 func (x *OSPolicy_Resource_RepositoryResource_AptRepository) GetGpgKey() string {
1879 if x != nil {
1880 return x.GpgKey
1881 }
1882 return ""
1883 }
1884
1885 // Represents a single yum package repository. These are added to a
1886 // repo file that is managed at
1887 // `/etc/yum.repos.d/google_osconfig.repo`.
1888 type OSPolicy_Resource_RepositoryResource_YumRepository struct {
1889 state protoimpl.MessageState
1890 sizeCache protoimpl.SizeCache
1891 unknownFields protoimpl.UnknownFields
1892
1893 // Required. A one word, unique name for this repository. This is the
1894 // `repo id` in the yum config file and also the `display_name` if
1895 // `display_name` is omitted. This id is also used as the unique
1896 // identifier when checking for resource conflicts.
1897 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1898 // The display name of the repository.
1899 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
1900 // Required. The location of the repository directory.
1901 BaseUrl string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
1902 // URIs of GPG keys.
1903 GpgKeys []string `protobuf:"bytes,4,rep,name=gpg_keys,json=gpgKeys,proto3" json:"gpg_keys,omitempty"`
1904 }
1905
1906 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) Reset() {
1907 *x = OSPolicy_Resource_RepositoryResource_YumRepository{}
1908 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[19]
1909 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1910 ms.StoreMessageInfo(mi)
1911 }
1912
1913 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) String() string {
1914 return protoimpl.X.MessageStringOf(x)
1915 }
1916
1917 func (*OSPolicy_Resource_RepositoryResource_YumRepository) ProtoMessage() {}
1918
1919 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) ProtoReflect() protoreflect.Message {
1920 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[19]
1921 if x != nil {
1922 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1923 if ms.LoadMessageInfo() == nil {
1924 ms.StoreMessageInfo(mi)
1925 }
1926 return ms
1927 }
1928 return mi.MessageOf(x)
1929 }
1930
1931 // Deprecated: Use OSPolicy_Resource_RepositoryResource_YumRepository.ProtoReflect.Descriptor instead.
1932 func (*OSPolicy_Resource_RepositoryResource_YumRepository) Descriptor() ([]byte, []int) {
1933 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2, 1}
1934 }
1935
1936 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) GetId() string {
1937 if x != nil {
1938 return x.Id
1939 }
1940 return ""
1941 }
1942
1943 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) GetDisplayName() string {
1944 if x != nil {
1945 return x.DisplayName
1946 }
1947 return ""
1948 }
1949
1950 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) GetBaseUrl() string {
1951 if x != nil {
1952 return x.BaseUrl
1953 }
1954 return ""
1955 }
1956
1957 func (x *OSPolicy_Resource_RepositoryResource_YumRepository) GetGpgKeys() []string {
1958 if x != nil {
1959 return x.GpgKeys
1960 }
1961 return nil
1962 }
1963
1964 // Represents a single zypper package repository. These are added to a
1965 // repo file that is managed at
1966 // `/etc/zypp/repos.d/google_osconfig.repo`.
1967 type OSPolicy_Resource_RepositoryResource_ZypperRepository struct {
1968 state protoimpl.MessageState
1969 sizeCache protoimpl.SizeCache
1970 unknownFields protoimpl.UnknownFields
1971
1972 // Required. A one word, unique name for this repository. This is the
1973 // `repo id` in the zypper config file and also the `display_name` if
1974 // `display_name` is omitted. This id is also used as the unique
1975 // identifier when checking for GuestPolicy conflicts.
1976 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1977 // The display name of the repository.
1978 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
1979 // Required. The location of the repository directory.
1980 BaseUrl string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
1981 // URIs of GPG keys.
1982 GpgKeys []string `protobuf:"bytes,4,rep,name=gpg_keys,json=gpgKeys,proto3" json:"gpg_keys,omitempty"`
1983 }
1984
1985 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) Reset() {
1986 *x = OSPolicy_Resource_RepositoryResource_ZypperRepository{}
1987 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[20]
1988 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1989 ms.StoreMessageInfo(mi)
1990 }
1991
1992 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) String() string {
1993 return protoimpl.X.MessageStringOf(x)
1994 }
1995
1996 func (*OSPolicy_Resource_RepositoryResource_ZypperRepository) ProtoMessage() {}
1997
1998 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) ProtoReflect() protoreflect.Message {
1999 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[20]
2000 if x != nil {
2001 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2002 if ms.LoadMessageInfo() == nil {
2003 ms.StoreMessageInfo(mi)
2004 }
2005 return ms
2006 }
2007 return mi.MessageOf(x)
2008 }
2009
2010 // Deprecated: Use OSPolicy_Resource_RepositoryResource_ZypperRepository.ProtoReflect.Descriptor instead.
2011 func (*OSPolicy_Resource_RepositoryResource_ZypperRepository) Descriptor() ([]byte, []int) {
2012 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2, 2}
2013 }
2014
2015 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) GetId() string {
2016 if x != nil {
2017 return x.Id
2018 }
2019 return ""
2020 }
2021
2022 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) GetDisplayName() string {
2023 if x != nil {
2024 return x.DisplayName
2025 }
2026 return ""
2027 }
2028
2029 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) GetBaseUrl() string {
2030 if x != nil {
2031 return x.BaseUrl
2032 }
2033 return ""
2034 }
2035
2036 func (x *OSPolicy_Resource_RepositoryResource_ZypperRepository) GetGpgKeys() []string {
2037 if x != nil {
2038 return x.GpgKeys
2039 }
2040 return nil
2041 }
2042
2043 // Represents a Goo package repository. These are added to a repo file
2044 // that is managed at
2045 // `C:/ProgramData/GooGet/repos/google_osconfig.repo`.
2046 type OSPolicy_Resource_RepositoryResource_GooRepository struct {
2047 state protoimpl.MessageState
2048 sizeCache protoimpl.SizeCache
2049 unknownFields protoimpl.UnknownFields
2050
2051 // Required. The name of the repository.
2052 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
2053 // Required. The url of the repository.
2054 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
2055 }
2056
2057 func (x *OSPolicy_Resource_RepositoryResource_GooRepository) Reset() {
2058 *x = OSPolicy_Resource_RepositoryResource_GooRepository{}
2059 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[21]
2060 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2061 ms.StoreMessageInfo(mi)
2062 }
2063
2064 func (x *OSPolicy_Resource_RepositoryResource_GooRepository) String() string {
2065 return protoimpl.X.MessageStringOf(x)
2066 }
2067
2068 func (*OSPolicy_Resource_RepositoryResource_GooRepository) ProtoMessage() {}
2069
2070 func (x *OSPolicy_Resource_RepositoryResource_GooRepository) ProtoReflect() protoreflect.Message {
2071 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[21]
2072 if x != nil {
2073 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2074 if ms.LoadMessageInfo() == nil {
2075 ms.StoreMessageInfo(mi)
2076 }
2077 return ms
2078 }
2079 return mi.MessageOf(x)
2080 }
2081
2082 // Deprecated: Use OSPolicy_Resource_RepositoryResource_GooRepository.ProtoReflect.Descriptor instead.
2083 func (*OSPolicy_Resource_RepositoryResource_GooRepository) Descriptor() ([]byte, []int) {
2084 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 2, 3}
2085 }
2086
2087 func (x *OSPolicy_Resource_RepositoryResource_GooRepository) GetName() string {
2088 if x != nil {
2089 return x.Name
2090 }
2091 return ""
2092 }
2093
2094 func (x *OSPolicy_Resource_RepositoryResource_GooRepository) GetUrl() string {
2095 if x != nil {
2096 return x.Url
2097 }
2098 return ""
2099 }
2100
2101 // A file or script to execute.
2102 type OSPolicy_Resource_ExecResource_Exec struct {
2103 state protoimpl.MessageState
2104 sizeCache protoimpl.SizeCache
2105 unknownFields protoimpl.UnknownFields
2106
2107 // What to execute.
2108 //
2109 // Types that are assignable to Source:
2110 //
2111 // *OSPolicy_Resource_ExecResource_Exec_File
2112 // *OSPolicy_Resource_ExecResource_Exec_Script
2113 Source isOSPolicy_Resource_ExecResource_Exec_Source `protobuf_oneof:"source"`
2114 // Optional arguments to pass to the source during execution.
2115 Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
2116 // Required. The script interpreter to use.
2117 Interpreter OSPolicy_Resource_ExecResource_Exec_Interpreter `protobuf:"varint,4,opt,name=interpreter,proto3,enum=google.cloud.osconfig.v1.OSPolicy_Resource_ExecResource_Exec_Interpreter" json:"interpreter,omitempty"`
2118 // Only recorded for enforce Exec.
2119 // Path to an output file (that is created by this Exec) whose
2120 // content will be recorded in OSPolicyResourceCompliance after a
2121 // successful run. Absence or failure to read this file will result in
2122 // this ExecResource being non-compliant. Output file size is limited to
2123 // 100K bytes.
2124 OutputFilePath string `protobuf:"bytes,5,opt,name=output_file_path,json=outputFilePath,proto3" json:"output_file_path,omitempty"`
2125 }
2126
2127 func (x *OSPolicy_Resource_ExecResource_Exec) Reset() {
2128 *x = OSPolicy_Resource_ExecResource_Exec{}
2129 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[22]
2130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2131 ms.StoreMessageInfo(mi)
2132 }
2133
2134 func (x *OSPolicy_Resource_ExecResource_Exec) String() string {
2135 return protoimpl.X.MessageStringOf(x)
2136 }
2137
2138 func (*OSPolicy_Resource_ExecResource_Exec) ProtoMessage() {}
2139
2140 func (x *OSPolicy_Resource_ExecResource_Exec) ProtoReflect() protoreflect.Message {
2141 mi := &file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[22]
2142 if x != nil {
2143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2144 if ms.LoadMessageInfo() == nil {
2145 ms.StoreMessageInfo(mi)
2146 }
2147 return ms
2148 }
2149 return mi.MessageOf(x)
2150 }
2151
2152 // Deprecated: Use OSPolicy_Resource_ExecResource_Exec.ProtoReflect.Descriptor instead.
2153 func (*OSPolicy_Resource_ExecResource_Exec) Descriptor() ([]byte, []int) {
2154 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP(), []int{0, 1, 3, 0}
2155 }
2156
2157 func (m *OSPolicy_Resource_ExecResource_Exec) GetSource() isOSPolicy_Resource_ExecResource_Exec_Source {
2158 if m != nil {
2159 return m.Source
2160 }
2161 return nil
2162 }
2163
2164 func (x *OSPolicy_Resource_ExecResource_Exec) GetFile() *OSPolicy_Resource_File {
2165 if x, ok := x.GetSource().(*OSPolicy_Resource_ExecResource_Exec_File); ok {
2166 return x.File
2167 }
2168 return nil
2169 }
2170
2171 func (x *OSPolicy_Resource_ExecResource_Exec) GetScript() string {
2172 if x, ok := x.GetSource().(*OSPolicy_Resource_ExecResource_Exec_Script); ok {
2173 return x.Script
2174 }
2175 return ""
2176 }
2177
2178 func (x *OSPolicy_Resource_ExecResource_Exec) GetArgs() []string {
2179 if x != nil {
2180 return x.Args
2181 }
2182 return nil
2183 }
2184
2185 func (x *OSPolicy_Resource_ExecResource_Exec) GetInterpreter() OSPolicy_Resource_ExecResource_Exec_Interpreter {
2186 if x != nil {
2187 return x.Interpreter
2188 }
2189 return OSPolicy_Resource_ExecResource_Exec_INTERPRETER_UNSPECIFIED
2190 }
2191
2192 func (x *OSPolicy_Resource_ExecResource_Exec) GetOutputFilePath() string {
2193 if x != nil {
2194 return x.OutputFilePath
2195 }
2196 return ""
2197 }
2198
2199 type isOSPolicy_Resource_ExecResource_Exec_Source interface {
2200 isOSPolicy_Resource_ExecResource_Exec_Source()
2201 }
2202
2203 type OSPolicy_Resource_ExecResource_Exec_File struct {
2204 // A remote or local file.
2205 File *OSPolicy_Resource_File `protobuf:"bytes,1,opt,name=file,proto3,oneof"`
2206 }
2207
2208 type OSPolicy_Resource_ExecResource_Exec_Script struct {
2209 // An inline script.
2210 // The size of the script is limited to 1024 characters.
2211 Script string `protobuf:"bytes,2,opt,name=script,proto3,oneof"`
2212 }
2213
2214 func (*OSPolicy_Resource_ExecResource_Exec_File) isOSPolicy_Resource_ExecResource_Exec_Source() {}
2215
2216 func (*OSPolicy_Resource_ExecResource_Exec_Script) isOSPolicy_Resource_ExecResource_Exec_Source() {}
2217
2218 var File_google_cloud_osconfig_v1_os_policy_proto protoreflect.FileDescriptor
2219
2220 var file_google_cloud_osconfig_v1_os_policy_proto_rawDesc = []byte{
2221 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f,
2222 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x73, 0x5f, 0x70, 0x6f,
2223 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67,
2224 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69,
2225 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
2226 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
2227 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, 0x25, 0x0a, 0x08, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69,
2228 0x63, 0x79, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
2229 0xe0, 0x41, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
2230 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
2231 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x04, 0x6d, 0x6f, 0x64,
2232 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
2233 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
2234 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 0x6f, 0x64, 0x65,
2235 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x5e, 0x0a, 0x0f, 0x72,
2236 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x04,
2237 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
2238 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e,
2239 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
2240 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x72, 0x65, 0x73,
2241 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x40, 0x0a, 0x1d, 0x61,
2242 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2243 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01,
2244 0x28, 0x08, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75,
2245 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x59, 0x0a,
2246 0x0f, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
2247 0x12, 0x27, 0x0a, 0x0d, 0x6f, 0x73, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d,
2248 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6f, 0x73,
2249 0x53, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x73, 0x5f,
2250 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f,
2251 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xe2, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73,
2252 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
2253 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4f, 0x0a, 0x03, 0x70, 0x6b,
2254 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
2255 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
2256 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f,
2257 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f,
2258 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x03, 0x70, 0x6b, 0x67, 0x12, 0x60, 0x0a, 0x0a, 0x72,
2259 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
2260 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f,
2261 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c,
2262 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70,
2263 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48,
2264 0x00, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x4e, 0x0a,
2265 0x04, 0x65, 0x78, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f,
2266 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e,
2267 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
2268 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73,
2269 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, 0x65, 0x63, 0x12, 0x4e, 0x0a,
2270 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f,
2271 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e,
2272 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
2273 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73,
2274 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x9e, 0x03,
2275 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65,
2276 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
2277 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76,
2278 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
2279 0x72, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x48,
2280 0x00, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x48, 0x0a, 0x03, 0x67, 0x63, 0x73,
2281 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
2282 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76,
2283 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
2284 0x72, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x47, 0x63, 0x73, 0x48, 0x00, 0x52, 0x03,
2285 0x67, 0x63, 0x73, 0x12, 0x1f, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74,
2286 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
2287 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e,
2288 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c,
2289 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x1a, 0x48, 0x0a, 0x06, 0x52,
2290 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01,
2291 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x27, 0x0a, 0x0f,
2292 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18,
2293 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x43, 0x68, 0x65,
2294 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x1a, 0x5f, 0x0a, 0x03, 0x47, 0x63, 0x73, 0x12, 0x1b, 0x0a, 0x06,
2295 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
2296 0x02, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x62, 0x6a,
2297 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
2298 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
2299 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65,
2300 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0xa9,
2301 0x0a, 0x0a, 0x0f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2302 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x73, 0x74,
2303 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
2304 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69,
2305 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65,
2306 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65,
2307 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x53, 0x74,
2308 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65,
2309 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x53, 0x0a, 0x03, 0x61, 0x70, 0x74, 0x18, 0x02, 0x20,
2310 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
2311 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f,
2312 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2313 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2314 0x2e, 0x41, 0x50, 0x54, 0x48, 0x00, 0x52, 0x03, 0x61, 0x70, 0x74, 0x12, 0x53, 0x0a, 0x03, 0x64,
2315 0x65, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
2316 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
2317 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73,
2318 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73,
2319 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x62, 0x48, 0x00, 0x52, 0x03, 0x64, 0x65, 0x62,
2320 0x12, 0x53, 0x0a, 0x03, 0x79, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e,
2321 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63,
2322 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63,
2323 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61,
2324 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x59, 0x55, 0x4d, 0x48, 0x00,
2325 0x52, 0x03, 0x79, 0x75, 0x6d, 0x12, 0x5c, 0x0a, 0x06, 0x7a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x18,
2326 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
2327 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31,
2328 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2329 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2330 0x63, 0x65, 0x2e, 0x5a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x7a, 0x79, 0x70,
2331 0x70, 0x65, 0x72, 0x12, 0x53, 0x0a, 0x03, 0x72, 0x70, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
2332 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
2333 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f,
2334 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61,
2335 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x50,
2336 0x4d, 0x48, 0x00, 0x52, 0x03, 0x72, 0x70, 0x6d, 0x12, 0x5c, 0x0a, 0x06, 0x67, 0x6f, 0x6f, 0x67,
2337 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
2338 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
2339 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73,
2340 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73,
2341 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x47, 0x6f, 0x6f, 0x47, 0x65, 0x74, 0x48, 0x00, 0x52, 0x06,
2342 0x67, 0x6f, 0x6f, 0x67, 0x65, 0x74, 0x12, 0x53, 0x0a, 0x03, 0x6d, 0x73, 0x69, 0x18, 0x08, 0x20,
2343 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
2344 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f,
2345 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2346 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2347 0x2e, 0x4d, 0x53, 0x49, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x73, 0x69, 0x1a, 0x71, 0x0a, 0x03, 0x44,
2348 0x65, 0x62, 0x12, 0x4d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
2349 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
2350 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53,
2351 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
2352 0x46, 0x69, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
2353 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x73, 0x18, 0x02,
2354 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x70, 0x75, 0x6c, 0x6c, 0x44, 0x65, 0x70, 0x73, 0x1a, 0x1e,
2355 0x0a, 0x03, 0x41, 0x50, 0x54, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
2356 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x71,
2357 0x0a, 0x03, 0x52, 0x50, 0x4d, 0x12, 0x4d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
2358 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
2359 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31,
2360 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2361 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f,
2362 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x64, 0x65, 0x70,
2363 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x70, 0x75, 0x6c, 0x6c, 0x44, 0x65, 0x70,
2364 0x73, 0x1a, 0x1e, 0x0a, 0x03, 0x59, 0x55, 0x4d, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
2365 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,
2366 0x65, 0x1a, 0x21, 0x0a, 0x06, 0x5a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e,
2367 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,
2368 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x21, 0x0a, 0x06, 0x47, 0x6f, 0x6f, 0x47, 0x65, 0x74, 0x12, 0x17,
2369 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
2370 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x74, 0x0a, 0x03, 0x4d, 0x53, 0x49, 0x12, 0x4d,
2371 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30,
2372 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73,
2373 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69,
2374 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65,
2375 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1e, 0x0a,
2376 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
2377 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x49, 0x0a,
2378 0x0c, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a,
2379 0x19, 0x44, 0x45, 0x53, 0x49, 0x52, 0x45, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,
2380 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09,
2381 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52,
2382 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x42, 0x10, 0x0a, 0x0e, 0x73, 0x79, 0x73, 0x74,
2383 0x65, 0x6d, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x1a, 0xd7, 0x08, 0x0a, 0x12, 0x52,
2384 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
2385 0x65, 0x12, 0x60, 0x0a, 0x03, 0x61, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c,
2386 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73,
2387 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69,
2388 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f,
2389 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x41,
2390 0x70, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x00, 0x52, 0x03,
2391 0x61, 0x70, 0x74, 0x12, 0x60, 0x0a, 0x03, 0x79, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
2392 0x32, 0x4c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
2393 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f,
2394 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65,
2395 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2396 0x2e, 0x59, 0x75, 0x6d, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x00,
2397 0x52, 0x03, 0x79, 0x75, 0x6d, 0x12, 0x69, 0x0a, 0x06, 0x7a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x18,
2398 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
2399 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31,
2400 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2401 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73,
2402 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x5a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f,
2403 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x00, 0x52, 0x06, 0x7a, 0x79, 0x70, 0x70, 0x65, 0x72,
2404 0x12, 0x60, 0x0a, 0x03, 0x67, 0x6f, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c, 0x2e,
2405 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63,
2406 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63,
2407 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73,
2408 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x47, 0x6f,
2409 0x6f, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x00, 0x52, 0x03, 0x67,
2410 0x6f, 0x6f, 0x1a, 0xd3, 0x02, 0x0a, 0x0d, 0x41, 0x70, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69,
2411 0x74, 0x6f, 0x72, 0x79, 0x12, 0x80, 0x01, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,
2412 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x58, 0x2e, 0x67, 0x6f,
2413 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e,
2414 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
2415 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
2416 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x41, 0x70, 0x74, 0x52,
2417 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76,
2418 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x72, 0x63, 0x68,
2419 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02,
2420 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x27,
2421 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
2422 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x74, 0x72,
2423 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
2424 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
2425 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07,
2426 0x67, 0x70, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67,
2427 0x70, 0x67, 0x4b, 0x65, 0x79, 0x22, 0x41, 0x0a, 0x0b, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65,
2428 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x5f,
2429 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
2430 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x45, 0x42, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44,
2431 0x45, 0x42, 0x5f, 0x53, 0x52, 0x43, 0x10, 0x02, 0x1a, 0x82, 0x01, 0x0a, 0x0d, 0x59, 0x75, 0x6d,
2432 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64,
2433 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12,
2434 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
2435 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
2436 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03,
2437 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55,
2438 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x70, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04,
2439 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x67, 0x70, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x85, 0x01,
2440 0x0a, 0x10, 0x5a, 0x79, 0x70, 0x70, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f,
2441 0x72, 0x79, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
2442 0xe0, 0x41, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c,
2443 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
2444 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x62, 0x61,
2445 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
2446 0x02, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x70,
2447 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x67, 0x70,
2448 0x67, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x3f, 0x0a, 0x0d, 0x47, 0x6f, 0x6f, 0x52, 0x65, 0x70, 0x6f,
2449 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
2450 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
2451 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
2452 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x0c, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69,
2453 0x74, 0x6f, 0x72, 0x79, 0x1a, 0xbd, 0x04, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73,
2454 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
2455 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
2456 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
2457 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f,
2458 0x75, 0x72, 0x63, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
2459 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x76, 0x61, 0x6c,
2460 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x57, 0x0a, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65,
2461 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
2462 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76,
2463 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
2464 0x72, 0x63, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2465 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x07, 0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x1a, 0xf3,
2466 0x02, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x46, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18,
2467 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
2468 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31,
2469 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
2470 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12,
2471 0x18, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
2472 0x00, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67,
2473 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x70, 0x0a,
2474 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01,
2475 0x28, 0x0e, 0x32, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
2476 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53,
2477 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
2478 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x45, 0x78, 0x65,
2479 0x63, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0,
2480 0x41, 0x02, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x12,
2481 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70,
2482 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75,
2483 0x74, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x4f, 0x0a, 0x0b, 0x49, 0x6e, 0x74,
2484 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45,
2485 0x52, 0x50, 0x52, 0x45, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
2486 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12,
2487 0x09, 0x0a, 0x05, 0x53, 0x48, 0x45, 0x4c, 0x4c, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x4f,
2488 0x57, 0x45, 0x52, 0x53, 0x48, 0x45, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f,
2489 0x75, 0x72, 0x63, 0x65, 0x1a, 0xf5, 0x02, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73,
2490 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20,
2491 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
2492 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f,
2493 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2494 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a,
2495 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
2496 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x61, 0x74,
2497 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x70, 0x61,
2498 0x74, 0x68, 0x12, 0x60, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
2499 0x0e, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
2500 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50,
2501 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x46,
2502 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x73, 0x69,
2503 0x72, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x73,
2504 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
2505 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69,
2506 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5a, 0x0a, 0x0c, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65,
2507 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x45, 0x53, 0x49, 0x52, 0x45,
2508 0x44, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
2509 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x53, 0x45, 0x4e, 0x54,
2510 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x42, 0x53, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x12,
2511 0x0a, 0x0e, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48,
2512 0x10, 0x03, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x0f, 0x0a, 0x0d,
2513 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x1a, 0xc0, 0x01,
2514 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
2515 0x5f, 0x0a, 0x11, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c,
2516 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f,
2517 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66,
2518 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x49,
2519 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x10,
2520 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73,
2521 0x12, 0x4e, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20,
2522 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
2523 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f,
2524 0x53, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
2525 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
2526 0x22, 0x3d, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45,
2527 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e,
2528 0x0a, 0x0a, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0f,
2529 0x0a, 0x0b, 0x45, 0x4e, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42,
2530 0xbd, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
2531 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31,
2532 0x42, 0x0d, 0x4f, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
2533 0x01, 0x5a, 0x38, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
2534 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
2535 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62,
2536 0x3b, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f,
2537 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4f, 0x73, 0x43, 0x6f, 0x6e,
2538 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
2539 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56,
2540 0x31, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
2541 0x64, 0x3a, 0x3a, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62,
2542 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2543 }
2544
2545 var (
2546 file_google_cloud_osconfig_v1_os_policy_proto_rawDescOnce sync.Once
2547 file_google_cloud_osconfig_v1_os_policy_proto_rawDescData = file_google_cloud_osconfig_v1_os_policy_proto_rawDesc
2548 )
2549
2550 func file_google_cloud_osconfig_v1_os_policy_proto_rawDescGZIP() []byte {
2551 file_google_cloud_osconfig_v1_os_policy_proto_rawDescOnce.Do(func() {
2552 file_google_cloud_osconfig_v1_os_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_osconfig_v1_os_policy_proto_rawDescData)
2553 })
2554 return file_google_cloud_osconfig_v1_os_policy_proto_rawDescData
2555 }
2556
2557 var file_google_cloud_osconfig_v1_os_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
2558 var file_google_cloud_osconfig_v1_os_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
2559 var file_google_cloud_osconfig_v1_os_policy_proto_goTypes = []any{
2560 (OSPolicy_Mode)(0), // 0: google.cloud.osconfig.v1.OSPolicy.Mode
2561 (OSPolicy_Resource_PackageResource_DesiredState)(0), // 1: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState
2562 (OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType)(0), // 2: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType
2563 (OSPolicy_Resource_ExecResource_Exec_Interpreter)(0), // 3: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter
2564 (OSPolicy_Resource_FileResource_DesiredState)(0), // 4: google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState
2565 (*OSPolicy)(nil), // 5: google.cloud.osconfig.v1.OSPolicy
2566 (*OSPolicy_InventoryFilter)(nil), // 6: google.cloud.osconfig.v1.OSPolicy.InventoryFilter
2567 (*OSPolicy_Resource)(nil), // 7: google.cloud.osconfig.v1.OSPolicy.Resource
2568 (*OSPolicy_ResourceGroup)(nil), // 8: google.cloud.osconfig.v1.OSPolicy.ResourceGroup
2569 (*OSPolicy_Resource_File)(nil), // 9: google.cloud.osconfig.v1.OSPolicy.Resource.File
2570 (*OSPolicy_Resource_PackageResource)(nil), // 10: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
2571 (*OSPolicy_Resource_RepositoryResource)(nil), // 11: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
2572 (*OSPolicy_Resource_ExecResource)(nil), // 12: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
2573 (*OSPolicy_Resource_FileResource)(nil), // 13: google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
2574 (*OSPolicy_Resource_File_Remote)(nil), // 14: google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
2575 (*OSPolicy_Resource_File_Gcs)(nil), // 15: google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
2576 (*OSPolicy_Resource_PackageResource_Deb)(nil), // 16: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
2577 (*OSPolicy_Resource_PackageResource_APT)(nil), // 17: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
2578 (*OSPolicy_Resource_PackageResource_RPM)(nil), // 18: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
2579 (*OSPolicy_Resource_PackageResource_YUM)(nil), // 19: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
2580 (*OSPolicy_Resource_PackageResource_Zypper)(nil), // 20: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
2581 (*OSPolicy_Resource_PackageResource_GooGet)(nil), // 21: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
2582 (*OSPolicy_Resource_PackageResource_MSI)(nil), // 22: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
2583 (*OSPolicy_Resource_RepositoryResource_AptRepository)(nil), // 23: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
2584 (*OSPolicy_Resource_RepositoryResource_YumRepository)(nil), // 24: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
2585 (*OSPolicy_Resource_RepositoryResource_ZypperRepository)(nil), // 25: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
2586 (*OSPolicy_Resource_RepositoryResource_GooRepository)(nil), // 26: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
2587 (*OSPolicy_Resource_ExecResource_Exec)(nil), // 27: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
2588 }
2589 var file_google_cloud_osconfig_v1_os_policy_proto_depIdxs = []int32{
2590 0, // 0: google.cloud.osconfig.v1.OSPolicy.mode:type_name -> google.cloud.osconfig.v1.OSPolicy.Mode
2591 8, // 1: google.cloud.osconfig.v1.OSPolicy.resource_groups:type_name -> google.cloud.osconfig.v1.OSPolicy.ResourceGroup
2592 10, // 2: google.cloud.osconfig.v1.OSPolicy.Resource.pkg:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource
2593 11, // 3: google.cloud.osconfig.v1.OSPolicy.Resource.repository:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource
2594 12, // 4: google.cloud.osconfig.v1.OSPolicy.Resource.exec:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource
2595 13, // 5: google.cloud.osconfig.v1.OSPolicy.Resource.file:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.FileResource
2596 6, // 6: google.cloud.osconfig.v1.OSPolicy.ResourceGroup.inventory_filters:type_name -> google.cloud.osconfig.v1.OSPolicy.InventoryFilter
2597 7, // 7: google.cloud.osconfig.v1.OSPolicy.ResourceGroup.resources:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource
2598 14, // 8: google.cloud.osconfig.v1.OSPolicy.Resource.File.remote:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote
2599 15, // 9: google.cloud.osconfig.v1.OSPolicy.Resource.File.gcs:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
2600 1, // 10: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.desired_state:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState
2601 17, // 11: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.apt:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT
2602 16, // 12: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.deb:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb
2603 19, // 13: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.yum:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM
2604 20, // 14: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.zypper:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper
2605 18, // 15: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.rpm:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM
2606 21, // 16: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.googet:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet
2607 22, // 17: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.msi:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI
2608 23, // 18: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.apt:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository
2609 24, // 19: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.yum:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository
2610 25, // 20: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.zypper:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository
2611 26, // 21: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.goo:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository
2612 27, // 22: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.validate:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
2613 27, // 23: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.enforce:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec
2614 9, // 24: google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.file:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File
2615 4, // 25: google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.state:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState
2616 9, // 26: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb.source:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File
2617 9, // 27: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM.source:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File
2618 9, // 28: google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI.source:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File
2619 2, // 29: google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.archive_type:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType
2620 9, // 30: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.file:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.File
2621 3, // 31: google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.interpreter:type_name -> google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter
2622 32, // [32:32] is the sub-list for method output_type
2623 32, // [32:32] is the sub-list for method input_type
2624 32, // [32:32] is the sub-list for extension type_name
2625 32, // [32:32] is the sub-list for extension extendee
2626 0, // [0:32] is the sub-list for field type_name
2627 }
2628
2629 func init() { file_google_cloud_osconfig_v1_os_policy_proto_init() }
2630 func file_google_cloud_osconfig_v1_os_policy_proto_init() {
2631 if File_google_cloud_osconfig_v1_os_policy_proto != nil {
2632 return
2633 }
2634 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[2].OneofWrappers = []any{
2635 (*OSPolicy_Resource_Pkg)(nil),
2636 (*OSPolicy_Resource_Repository)(nil),
2637 (*OSPolicy_Resource_Exec)(nil),
2638 (*OSPolicy_Resource_File_)(nil),
2639 }
2640 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[4].OneofWrappers = []any{
2641 (*OSPolicy_Resource_File_Remote_)(nil),
2642 (*OSPolicy_Resource_File_Gcs_)(nil),
2643 (*OSPolicy_Resource_File_LocalPath)(nil),
2644 }
2645 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[5].OneofWrappers = []any{
2646 (*OSPolicy_Resource_PackageResource_Apt)(nil),
2647 (*OSPolicy_Resource_PackageResource_Deb_)(nil),
2648 (*OSPolicy_Resource_PackageResource_Yum)(nil),
2649 (*OSPolicy_Resource_PackageResource_Zypper_)(nil),
2650 (*OSPolicy_Resource_PackageResource_Rpm)(nil),
2651 (*OSPolicy_Resource_PackageResource_Googet)(nil),
2652 (*OSPolicy_Resource_PackageResource_Msi)(nil),
2653 }
2654 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[6].OneofWrappers = []any{
2655 (*OSPolicy_Resource_RepositoryResource_Apt)(nil),
2656 (*OSPolicy_Resource_RepositoryResource_Yum)(nil),
2657 (*OSPolicy_Resource_RepositoryResource_Zypper)(nil),
2658 (*OSPolicy_Resource_RepositoryResource_Goo)(nil),
2659 }
2660 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[8].OneofWrappers = []any{
2661 (*OSPolicy_Resource_FileResource_File)(nil),
2662 (*OSPolicy_Resource_FileResource_Content)(nil),
2663 }
2664 file_google_cloud_osconfig_v1_os_policy_proto_msgTypes[22].OneofWrappers = []any{
2665 (*OSPolicy_Resource_ExecResource_Exec_File)(nil),
2666 (*OSPolicy_Resource_ExecResource_Exec_Script)(nil),
2667 }
2668 type x struct{}
2669 out := protoimpl.TypeBuilder{
2670 File: protoimpl.DescBuilder{
2671 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2672 RawDescriptor: file_google_cloud_osconfig_v1_os_policy_proto_rawDesc,
2673 NumEnums: 5,
2674 NumMessages: 23,
2675 NumExtensions: 0,
2676 NumServices: 0,
2677 },
2678 GoTypes: file_google_cloud_osconfig_v1_os_policy_proto_goTypes,
2679 DependencyIndexes: file_google_cloud_osconfig_v1_os_policy_proto_depIdxs,
2680 EnumInfos: file_google_cloud_osconfig_v1_os_policy_proto_enumTypes,
2681 MessageInfos: file_google_cloud_osconfig_v1_os_policy_proto_msgTypes,
2682 }.Build()
2683 File_google_cloud_osconfig_v1_os_policy_proto = out.File
2684 file_google_cloud_osconfig_v1_os_policy_proto_rawDesc = nil
2685 file_google_cloud_osconfig_v1_os_policy_proto_goTypes = nil
2686 file_google_cloud_osconfig_v1_os_policy_proto_depIdxs = nil
2687 }