Debian Codegraph @

securitycenter/apiv1/securitycenterpb/database.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/v1/database.proto
20
21 package securitycenterpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Represents database access information, such as queries. A database may be a
38 // sub-resource of an instance (as in the case of Cloud SQL instances or Cloud
39 // Spanner instances), or the database instance itself. Some database resources
40 // might not have the [full resource
41 // name](https://google.aip.dev/122#full-resource-names) populated because these
42 // resource types, such as Cloud SQL databases, are not yet supported by Cloud
43 // Asset Inventory. In these cases only the display name is provided.
44 type Database struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Some database resources may not have the [full resource
50 // name](https://google.aip.dev/122#full-resource-names) populated because
51 // these resource types are not yet supported by Cloud Asset Inventory (e.g.
52 // Cloud SQL databases). In these cases only the display name will be
53 // provided.
54 // The [full resource name](https://google.aip.dev/122#full-resource-names) of
55 // the database that the user connected to, if it is supported by Cloud Asset
56 // Inventory.
57 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
58 // The human-readable name of the database that the user connected to.
59 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
60 // The username used to connect to the database. The username might not be an
61 // IAM principal and does not have a set format.
62 UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
63 // The SQL statement that is associated with the database access.
64 Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
65 // The target usernames, roles, or groups of an SQL privilege grant, which is
66 // not an IAM policy change.
67 Grantees []string `protobuf:"bytes,5,rep,name=grantees,proto3" json:"grantees,omitempty"`
68 // The version of the database, for example, POSTGRES_14.
69 // See [the complete
70 // list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
71 Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
72 }
73
74 func (x *Database) Reset() {
75 *x = Database{}
76 mi := &file_google_cloud_securitycenter_v1_database_proto_msgTypes[0]
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 ms.StoreMessageInfo(mi)
79 }
80
81 func (x *Database) String() string {
82 return protoimpl.X.MessageStringOf(x)
83 }
84
85 func (*Database) ProtoMessage() {}
86
87 func (x *Database) ProtoReflect() protoreflect.Message {
88 mi := &file_google_cloud_securitycenter_v1_database_proto_msgTypes[0]
89 if x != nil {
90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91 if ms.LoadMessageInfo() == nil {
92 ms.StoreMessageInfo(mi)
93 }
94 return ms
95 }
96 return mi.MessageOf(x)
97 }
98
99 // Deprecated: Use Database.ProtoReflect.Descriptor instead.
100 func (*Database) Descriptor() ([]byte, []int) {
101 return file_google_cloud_securitycenter_v1_database_proto_rawDescGZIP(), []int{0}
102 }
103
104 func (x *Database) GetName() string {
105 if x != nil {
106 return x.Name
107 }
108 return ""
109 }
110
111 func (x *Database) GetDisplayName() string {
112 if x != nil {
113 return x.DisplayName
114 }
115 return ""
116 }
117
118 func (x *Database) GetUserName() string {
119 if x != nil {
120 return x.UserName
121 }
122 return ""
123 }
124
125 func (x *Database) GetQuery() string {
126 if x != nil {
127 return x.Query
128 }
129 return ""
130 }
131
132 func (x *Database) GetGrantees() []string {
133 if x != nil {
134 return x.Grantees
135 }
136 return nil
137 }
138
139 func (x *Database) GetVersion() string {
140 if x != nil {
141 return x.Version
142 }
143 return ""
144 }
145
146 var File_google_cloud_securitycenter_v1_database_proto protoreflect.FileDescriptor
147
148 var file_google_cloud_securitycenter_v1_database_proto_rawDesc = []byte{
149 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
150 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
151 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
152 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
153 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22,
154 0xaa, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
155 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
156 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
157 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
158 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
159 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
160 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
161 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65,
162 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65,
163 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
164 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xe7, 0x01, 0x0a,
165 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
166 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
167 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x72, 0x6f,
168 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
169 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
170 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73,
171 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b,
172 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
173 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
174 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56,
175 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
176 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c,
177 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
178 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
179 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
180 }
181
182 var (
183 file_google_cloud_securitycenter_v1_database_proto_rawDescOnce sync.Once
184 file_google_cloud_securitycenter_v1_database_proto_rawDescData = file_google_cloud_securitycenter_v1_database_proto_rawDesc
185 )
186
187 func file_google_cloud_securitycenter_v1_database_proto_rawDescGZIP() []byte {
188 file_google_cloud_securitycenter_v1_database_proto_rawDescOnce.Do(func() {
189 file_google_cloud_securitycenter_v1_database_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_database_proto_rawDescData)
190 })
191 return file_google_cloud_securitycenter_v1_database_proto_rawDescData
192 }
193
194 var file_google_cloud_securitycenter_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
195 var file_google_cloud_securitycenter_v1_database_proto_goTypes = []any{
196 (*Database)(nil), // 0: google.cloud.securitycenter.v1.Database
197 }
198 var file_google_cloud_securitycenter_v1_database_proto_depIdxs = []int32{
199 0, // [0:0] is the sub-list for method output_type
200 0, // [0:0] is the sub-list for method input_type
201 0, // [0:0] is the sub-list for extension type_name
202 0, // [0:0] is the sub-list for extension extendee
203 0, // [0:0] is the sub-list for field type_name
204 }
205
206 func init() { file_google_cloud_securitycenter_v1_database_proto_init() }
207 func file_google_cloud_securitycenter_v1_database_proto_init() {
208 if File_google_cloud_securitycenter_v1_database_proto != nil {
209 return
210 }
211 type x struct{}
212 out := protoimpl.TypeBuilder{
213 File: protoimpl.DescBuilder{
214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215 RawDescriptor: file_google_cloud_securitycenter_v1_database_proto_rawDesc,
216 NumEnums: 0,
217 NumMessages: 1,
218 NumExtensions: 0,
219 NumServices: 0,
220 },
221 GoTypes: file_google_cloud_securitycenter_v1_database_proto_goTypes,
222 DependencyIndexes: file_google_cloud_securitycenter_v1_database_proto_depIdxs,
223 MessageInfos: file_google_cloud_securitycenter_v1_database_proto_msgTypes,
224 }.Build()
225 File_google_cloud_securitycenter_v1_database_proto = out.File
226 file_google_cloud_securitycenter_v1_database_proto_rawDesc = nil
227 file_google_cloud_securitycenter_v1_database_proto_goTypes = nil
228 file_google_cloud_securitycenter_v1_database_proto_depIdxs = nil
229 }