Debian Codegraph @

securitycenter/apiv1p1beta1/securitycenterpb/resource.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/securitycenter/v1p1beta1/resource.proto
20
21 package securitycenterpb
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 // Information related to the Google Cloud resource.
39 type Resource struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // The full resource name of the resource. See:
45 // https://cloud.google.com/apis/design/resource_names#full_resource_name
46 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
47 // The full resource name of project that the resource belongs to.
48 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
49 // The human readable name of project that the resource belongs to.
50 ProjectDisplayName string `protobuf:"bytes,3,opt,name=project_display_name,json=projectDisplayName,proto3" json:"project_display_name,omitempty"`
51 // The full resource name of resource's parent.
52 Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
53 // The human readable name of resource's parent.
54 ParentDisplayName string `protobuf:"bytes,5,opt,name=parent_display_name,json=parentDisplayName,proto3" json:"parent_display_name,omitempty"`
55 // Output only. Contains a Folder message for each folder in the assets ancestry.
56 // The first folder is the deepest nested folder, and the last folder is the
57 // folder directly under the Organization.
58 Folders []*Folder `protobuf:"bytes,7,rep,name=folders,proto3" json:"folders,omitempty"`
59 }
60
61 func (x *Resource) Reset() {
62 *x = Resource{}
63 mi := &file_google_cloud_securitycenter_v1p1beta1_resource_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67
68 func (x *Resource) String() string {
69 return protoimpl.X.MessageStringOf(x)
70 }
71
72 func (*Resource) ProtoMessage() {}
73
74 func (x *Resource) ProtoReflect() protoreflect.Message {
75 mi := &file_google_cloud_securitycenter_v1p1beta1_resource_proto_msgTypes[0]
76 if x != nil {
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 if ms.LoadMessageInfo() == nil {
79 ms.StoreMessageInfo(mi)
80 }
81 return ms
82 }
83 return mi.MessageOf(x)
84 }
85
86 // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
87 func (*Resource) Descriptor() ([]byte, []int) {
88 return file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescGZIP(), []int{0}
89 }
90
91 func (x *Resource) GetName() string {
92 if x != nil {
93 return x.Name
94 }
95 return ""
96 }
97
98 func (x *Resource) GetProject() string {
99 if x != nil {
100 return x.Project
101 }
102 return ""
103 }
104
105 func (x *Resource) GetProjectDisplayName() string {
106 if x != nil {
107 return x.ProjectDisplayName
108 }
109 return ""
110 }
111
112 func (x *Resource) GetParent() string {
113 if x != nil {
114 return x.Parent
115 }
116 return ""
117 }
118
119 func (x *Resource) GetParentDisplayName() string {
120 if x != nil {
121 return x.ParentDisplayName
122 }
123 return ""
124 }
125
126 func (x *Resource) GetFolders() []*Folder {
127 if x != nil {
128 return x.Folders
129 }
130 return nil
131 }
132
133 var File_google_cloud_securitycenter_v1p1beta1_resource_proto protoreflect.FileDescriptor
134
135 var file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDesc = []byte{
136 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
137 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
138 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
139 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
140 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
141 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67,
142 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
143 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32,
144 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63,
145 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x70, 0x31,
146 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
147 0x74, 0x6f, 0x22, 0x80, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
148 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
149 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02,
150 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x0a,
151 0x14, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
152 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x6f,
153 0x6a, 0x65, 0x63, 0x74, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,
154 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
155 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e,
156 0x74, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05,
157 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x70,
158 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x07, 0x66, 0x6f, 0x6c, 0x64, 0x65,
159 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
160 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
161 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
162 0x2e, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x66, 0x6f,
163 0x6c, 0x64, 0x65, 0x72, 0x73, 0x42, 0x8a, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
164 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
165 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65,
166 0x74, 0x61, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f,
167 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
168 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
169 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, 0x31,
170 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65,
171 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
172 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
173 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43,
174 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x50, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca,
175 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53,
176 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31,
177 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
179 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74,
180 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
181 }
182
183 var (
184 file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescOnce sync.Once
185 file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescData = file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDesc
186 )
187
188 func file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescGZIP() []byte {
189 file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescOnce.Do(func() {
190 file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescData)
191 })
192 return file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDescData
193 }
194
195 var file_google_cloud_securitycenter_v1p1beta1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
196 var file_google_cloud_securitycenter_v1p1beta1_resource_proto_goTypes = []any{
197 (*Resource)(nil), // 0: google.cloud.securitycenter.v1p1beta1.Resource
198 (*Folder)(nil), // 1: google.cloud.securitycenter.v1p1beta1.Folder
199 }
200 var file_google_cloud_securitycenter_v1p1beta1_resource_proto_depIdxs = []int32{
201 1, // 0: google.cloud.securitycenter.v1p1beta1.Resource.folders:type_name -> google.cloud.securitycenter.v1p1beta1.Folder
202 1, // [1:1] is the sub-list for method output_type
203 1, // [1:1] is the sub-list for method input_type
204 1, // [1:1] is the sub-list for extension type_name
205 1, // [1:1] is the sub-list for extension extendee
206 0, // [0:1] is the sub-list for field type_name
207 }
208
209 func init() { file_google_cloud_securitycenter_v1p1beta1_resource_proto_init() }
210 func file_google_cloud_securitycenter_v1p1beta1_resource_proto_init() {
211 if File_google_cloud_securitycenter_v1p1beta1_resource_proto != nil {
212 return
213 }
214 file_google_cloud_securitycenter_v1p1beta1_folder_proto_init()
215 type x struct{}
216 out := protoimpl.TypeBuilder{
217 File: protoimpl.DescBuilder{
218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
219 RawDescriptor: file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDesc,
220 NumEnums: 0,
221 NumMessages: 1,
222 NumExtensions: 0,
223 NumServices: 0,
224 },
225 GoTypes: file_google_cloud_securitycenter_v1p1beta1_resource_proto_goTypes,
226 DependencyIndexes: file_google_cloud_securitycenter_v1p1beta1_resource_proto_depIdxs,
227 MessageInfos: file_google_cloud_securitycenter_v1p1beta1_resource_proto_msgTypes,
228 }.Build()
229 File_google_cloud_securitycenter_v1p1beta1_resource_proto = out.File
230 file_google_cloud_securitycenter_v1p1beta1_resource_proto_rawDesc = nil
231 file_google_cloud_securitycenter_v1p1beta1_resource_proto_goTypes = nil
232 file_google_cloud_securitycenter_v1p1beta1_resource_proto_depIdxs = nil
233 }