Debian Codegraph @

datacatalog/apiv1beta1/datacatalogpb/search.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/datacatalog/v1beta1/search.proto
20
21 package datacatalogpb
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 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // The different types of resources that can be returned in search.
40 type SearchResultType int32
41
42 const (
43 // Default unknown type.
44 SearchResultType_SEARCH_RESULT_TYPE_UNSPECIFIED SearchResultType = 0
45 // An [Entry][google.cloud.datacatalog.v1beta1.Entry].
46 SearchResultType_ENTRY SearchResultType = 1
47 // A [TagTemplate][google.cloud.datacatalog.v1beta1.TagTemplate].
48 SearchResultType_TAG_TEMPLATE SearchResultType = 2
49 // An [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
50 SearchResultType_ENTRY_GROUP SearchResultType = 3
51 )
52
53 // Enum value maps for SearchResultType.
54 var (
55 SearchResultType_name = map[int32]string{
56 0: "SEARCH_RESULT_TYPE_UNSPECIFIED",
57 1: "ENTRY",
58 2: "TAG_TEMPLATE",
59 3: "ENTRY_GROUP",
60 }
61 SearchResultType_value = map[string]int32{
62 "SEARCH_RESULT_TYPE_UNSPECIFIED": 0,
63 "ENTRY": 1,
64 "TAG_TEMPLATE": 2,
65 "ENTRY_GROUP": 3,
66 }
67 )
68
69 func (x SearchResultType) Enum() *SearchResultType {
70 p := new(SearchResultType)
71 *p = x
72 return p
73 }
74
75 func (x SearchResultType) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (SearchResultType) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_cloud_datacatalog_v1beta1_search_proto_enumTypes[0].Descriptor()
81 }
82
83 func (SearchResultType) Type() protoreflect.EnumType {
84 return &file_google_cloud_datacatalog_v1beta1_search_proto_enumTypes[0]
85 }
86
87 func (x SearchResultType) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91 // Deprecated: Use SearchResultType.Descriptor instead.
92 func (SearchResultType) EnumDescriptor() ([]byte, []int) {
93 return file_google_cloud_datacatalog_v1beta1_search_proto_rawDescGZIP(), []int{0}
94 }
95
96 // A result that appears in the response of a search request. Each result
97 // captures details of one entry that matches the search.
98 type SearchCatalogResult struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103 // Type of the search result. This field can be used to determine which Get
104 // method to call to fetch the full resource.
105 SearchResultType SearchResultType `protobuf:"varint,1,opt,name=search_result_type,json=searchResultType,proto3,enum=google.cloud.datacatalog.v1beta1.SearchResultType" json:"search_result_type,omitempty"`
106 // Sub-type of the search result. This is a dot-delimited description of the
107 // resource's full type, and is the same as the value callers would provide in
108 // the "type" search facet. Examples: `entry.table`, `entry.dataStream`,
109 // `tagTemplate`.
110 SearchResultSubtype string `protobuf:"bytes,2,opt,name=search_result_subtype,json=searchResultSubtype,proto3" json:"search_result_subtype,omitempty"`
111 // The relative resource name of the resource in URL format.
112 // Examples:
113 //
114 // - `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
115 // - `projects/{project_id}/tagTemplates/{tag_template_id}`
116 RelativeResourceName string `protobuf:"bytes,3,opt,name=relative_resource_name,json=relativeResourceName,proto3" json:"relative_resource_name,omitempty"`
117 // The full name of the cloud resource the entry belongs to. See:
118 // https://cloud.google.com/apis/design/resource_names#full_resource_name.
119 // Example:
120 //
121 // - `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
122 LinkedResource string `protobuf:"bytes,4,opt,name=linked_resource,json=linkedResource,proto3" json:"linked_resource,omitempty"`
123 // Last-modified timestamp of the entry from the managing system.
124 ModifyTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=modify_time,json=modifyTime,proto3" json:"modify_time,omitempty"`
125 }
126
127 func (x *SearchCatalogResult) Reset() {
128 *x = SearchCatalogResult{}
129 mi := &file_google_cloud_datacatalog_v1beta1_search_proto_msgTypes[0]
130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131 ms.StoreMessageInfo(mi)
132 }
133
134 func (x *SearchCatalogResult) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*SearchCatalogResult) ProtoMessage() {}
139
140 func (x *SearchCatalogResult) ProtoReflect() protoreflect.Message {
141 mi := &file_google_cloud_datacatalog_v1beta1_search_proto_msgTypes[0]
142 if x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152 // Deprecated: Use SearchCatalogResult.ProtoReflect.Descriptor instead.
153 func (*SearchCatalogResult) Descriptor() ([]byte, []int) {
154 return file_google_cloud_datacatalog_v1beta1_search_proto_rawDescGZIP(), []int{0}
155 }
156
157 func (x *SearchCatalogResult) GetSearchResultType() SearchResultType {
158 if x != nil {
159 return x.SearchResultType
160 }
161 return SearchResultType_SEARCH_RESULT_TYPE_UNSPECIFIED
162 }
163
164 func (x *SearchCatalogResult) GetSearchResultSubtype() string {
165 if x != nil {
166 return x.SearchResultSubtype
167 }
168 return ""
169 }
170
171 func (x *SearchCatalogResult) GetRelativeResourceName() string {
172 if x != nil {
173 return x.RelativeResourceName
174 }
175 return ""
176 }
177
178 func (x *SearchCatalogResult) GetLinkedResource() string {
179 if x != nil {
180 return x.LinkedResource
181 }
182 return ""
183 }
184
185 func (x *SearchCatalogResult) GetModifyTime() *timestamppb.Timestamp {
186 if x != nil {
187 return x.ModifyTime
188 }
189 return nil
190 }
191
192 var File_google_cloud_datacatalog_v1beta1_search_proto protoreflect.FileDescriptor
193
194 var file_google_cloud_datacatalog_v1beta1_search_proto_rawDesc = []byte{
195 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
196 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
197 0x61, 0x31, 0x2f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
198 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61,
199 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
200 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
201 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
202 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
203 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
204 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x61,
205 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x60, 0x0a, 0x12, 0x73,
206 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x79, 0x70,
207 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
208 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c,
209 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
210 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x73, 0x65, 0x61,
211 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a,
212 0x15, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x73,
213 0x75, 0x62, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65,
214 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x62, 0x74, 0x79, 0x70,
215 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x65,
216 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
217 0x09, 0x52, 0x14, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75,
218 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x69, 0x6e, 0x6b, 0x65,
219 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
220 0x52, 0x0e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
221 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
222 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
223 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
224 0x70, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x64, 0x0a,
225 0x10, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70,
226 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x52, 0x45, 0x53, 0x55,
227 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
228 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x10, 0x01,
229 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x47, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45,
230 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x5f, 0x47, 0x52, 0x4f, 0x55,
231 0x50, 0x10, 0x03, 0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
232 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74,
233 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x46,
234 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
235 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f,
236 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63,
237 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74,
238 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
239 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f,
240 0x67, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67,
241 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74,
242 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x23, 0x47,
243 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x61,
244 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74,
245 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
246 }
247
248 var (
249 file_google_cloud_datacatalog_v1beta1_search_proto_rawDescOnce sync.Once
250 file_google_cloud_datacatalog_v1beta1_search_proto_rawDescData = file_google_cloud_datacatalog_v1beta1_search_proto_rawDesc
251 )
252
253 func file_google_cloud_datacatalog_v1beta1_search_proto_rawDescGZIP() []byte {
254 file_google_cloud_datacatalog_v1beta1_search_proto_rawDescOnce.Do(func() {
255 file_google_cloud_datacatalog_v1beta1_search_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1beta1_search_proto_rawDescData)
256 })
257 return file_google_cloud_datacatalog_v1beta1_search_proto_rawDescData
258 }
259
260 var file_google_cloud_datacatalog_v1beta1_search_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
261 var file_google_cloud_datacatalog_v1beta1_search_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
262 var file_google_cloud_datacatalog_v1beta1_search_proto_goTypes = []any{
263 (SearchResultType)(0), // 0: google.cloud.datacatalog.v1beta1.SearchResultType
264 (*SearchCatalogResult)(nil), // 1: google.cloud.datacatalog.v1beta1.SearchCatalogResult
265 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
266 }
267 var file_google_cloud_datacatalog_v1beta1_search_proto_depIdxs = []int32{
268 0, // 0: google.cloud.datacatalog.v1beta1.SearchCatalogResult.search_result_type:type_name -> google.cloud.datacatalog.v1beta1.SearchResultType
269 2, // 1: google.cloud.datacatalog.v1beta1.SearchCatalogResult.modify_time:type_name -> google.protobuf.Timestamp
270 2, // [2:2] is the sub-list for method output_type
271 2, // [2:2] is the sub-list for method input_type
272 2, // [2:2] is the sub-list for extension type_name
273 2, // [2:2] is the sub-list for extension extendee
274 0, // [0:2] is the sub-list for field type_name
275 }
276
277 func init() { file_google_cloud_datacatalog_v1beta1_search_proto_init() }
278 func file_google_cloud_datacatalog_v1beta1_search_proto_init() {
279 if File_google_cloud_datacatalog_v1beta1_search_proto != nil {
280 return
281 }
282 type x struct{}
283 out := protoimpl.TypeBuilder{
284 File: protoimpl.DescBuilder{
285 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
286 RawDescriptor: file_google_cloud_datacatalog_v1beta1_search_proto_rawDesc,
287 NumEnums: 1,
288 NumMessages: 1,
289 NumExtensions: 0,
290 NumServices: 0,
291 },
292 GoTypes: file_google_cloud_datacatalog_v1beta1_search_proto_goTypes,
293 DependencyIndexes: file_google_cloud_datacatalog_v1beta1_search_proto_depIdxs,
294 EnumInfos: file_google_cloud_datacatalog_v1beta1_search_proto_enumTypes,
295 MessageInfos: file_google_cloud_datacatalog_v1beta1_search_proto_msgTypes,
296 }.Build()
297 File_google_cloud_datacatalog_v1beta1_search_proto = out.File
298 file_google_cloud_datacatalog_v1beta1_search_proto_rawDesc = nil
299 file_google_cloud_datacatalog_v1beta1_search_proto_goTypes = nil
300 file_google_cloud_datacatalog_v1beta1_search_proto_depIdxs = nil
301 }