Debian Codegraph @

datacatalog/apiv1beta1/datacatalogpb/usage.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/usage.proto
20
21 package datacatalogpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 // Detailed counts on the entry's usage.
39 // Caveats:
40 // - Only BigQuery tables have usage stats
41 // - The usage stats only include BigQuery query jobs
42 // - The usage stats might be underestimated, e.g. wildcard table references
43 // are not yet counted in usage computation
44 // https://cloud.google.com/bigquery/docs/querying-wildcard-tables
45 type UsageStats struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // The number of times that the underlying entry was successfully used.
51 TotalCompletions float32 `protobuf:"fixed32,1,opt,name=total_completions,json=totalCompletions,proto3" json:"total_completions,omitempty"`
52 // The number of times that the underlying entry was attempted to be used
53 // but failed.
54 TotalFailures float32 `protobuf:"fixed32,2,opt,name=total_failures,json=totalFailures,proto3" json:"total_failures,omitempty"`
55 // The number of times that the underlying entry was attempted to be used
56 // but was cancelled by the user.
57 TotalCancellations float32 `protobuf:"fixed32,3,opt,name=total_cancellations,json=totalCancellations,proto3" json:"total_cancellations,omitempty"`
58 // Total time spent (in milliseconds) during uses the resulted in completions.
59 TotalExecutionTimeForCompletionsMillis float32 `protobuf:"fixed32,4,opt,name=total_execution_time_for_completions_millis,json=totalExecutionTimeForCompletionsMillis,proto3" json:"total_execution_time_for_completions_millis,omitempty"`
60 }
61
62 func (x *UsageStats) Reset() {
63 *x = UsageStats{}
64 mi := &file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes[0]
65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66 ms.StoreMessageInfo(mi)
67 }
68
69 func (x *UsageStats) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*UsageStats) ProtoMessage() {}
74
75 func (x *UsageStats) ProtoReflect() protoreflect.Message {
76 mi := &file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes[0]
77 if x != nil {
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 if ms.LoadMessageInfo() == nil {
80 ms.StoreMessageInfo(mi)
81 }
82 return ms
83 }
84 return mi.MessageOf(x)
85 }
86
87 // Deprecated: Use UsageStats.ProtoReflect.Descriptor instead.
88 func (*UsageStats) Descriptor() ([]byte, []int) {
89 return file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *UsageStats) GetTotalCompletions() float32 {
93 if x != nil {
94 return x.TotalCompletions
95 }
96 return 0
97 }
98
99 func (x *UsageStats) GetTotalFailures() float32 {
100 if x != nil {
101 return x.TotalFailures
102 }
103 return 0
104 }
105
106 func (x *UsageStats) GetTotalCancellations() float32 {
107 if x != nil {
108 return x.TotalCancellations
109 }
110 return 0
111 }
112
113 func (x *UsageStats) GetTotalExecutionTimeForCompletionsMillis() float32 {
114 if x != nil {
115 return x.TotalExecutionTimeForCompletionsMillis
116 }
117 return 0
118 }
119
120 // The set of all usage signals that we store in Data Catalog.
121 type UsageSignal struct {
122 state protoimpl.MessageState
123 sizeCache protoimpl.SizeCache
124 unknownFields protoimpl.UnknownFields
125
126 // The timestamp of the end of the usage statistics duration.
127 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
128 // Usage statistics over each of the pre-defined time ranges, supported
129 // strings for time ranges are {"24H", "7D", "30D"}.
130 UsageWithinTimeRange map[string]*UsageStats `protobuf:"bytes,2,rep,name=usage_within_time_range,json=usageWithinTimeRange,proto3" json:"usage_within_time_range,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
131 }
132
133 func (x *UsageSignal) Reset() {
134 *x = UsageSignal{}
135 mi := &file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes[1]
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 ms.StoreMessageInfo(mi)
138 }
139
140 func (x *UsageSignal) String() string {
141 return protoimpl.X.MessageStringOf(x)
142 }
143
144 func (*UsageSignal) ProtoMessage() {}
145
146 func (x *UsageSignal) ProtoReflect() protoreflect.Message {
147 mi := &file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes[1]
148 if x != nil {
149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
150 if ms.LoadMessageInfo() == nil {
151 ms.StoreMessageInfo(mi)
152 }
153 return ms
154 }
155 return mi.MessageOf(x)
156 }
157
158 // Deprecated: Use UsageSignal.ProtoReflect.Descriptor instead.
159 func (*UsageSignal) Descriptor() ([]byte, []int) {
160 return file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescGZIP(), []int{1}
161 }
162
163 func (x *UsageSignal) GetUpdateTime() *timestamppb.Timestamp {
164 if x != nil {
165 return x.UpdateTime
166 }
167 return nil
168 }
169
170 func (x *UsageSignal) GetUsageWithinTimeRange() map[string]*UsageStats {
171 if x != nil {
172 return x.UsageWithinTimeRange
173 }
174 return nil
175 }
176
177 var File_google_cloud_datacatalog_v1beta1_usage_proto protoreflect.FileDescriptor
178
179 var file_google_cloud_datacatalog_v1beta1_usage_proto_rawDesc = []byte{
180 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64,
181 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
182 0x61, 0x31, 0x2f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20,
183 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
184 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
185 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
186 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
187 0x6f, 0x22, 0xee, 0x01, 0x0a, 0x0a, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73,
188 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65,
189 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x10, 0x74, 0x6f, 0x74,
190 0x61, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a,
191 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18,
192 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c,
193 0x75, 0x72, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x61,
194 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
195 0x02, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61,
196 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5b, 0x0a, 0x2b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65,
197 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x6f,
198 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6d, 0x69,
199 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x26, 0x74, 0x6f, 0x74, 0x61,
200 0x6c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x6f,
201 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4d, 0x69, 0x6c, 0x6c,
202 0x69, 0x73, 0x22, 0xc1, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e,
203 0x61, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
204 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
205 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
206 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,
207 0x7e, 0x0a, 0x17, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x5f,
208 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
209 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
210 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65,
211 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e,
212 0x55, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x52,
213 0x61, 0x6e, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x75, 0x73, 0x61, 0x67, 0x65,
214 0x57, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x1a,
215 0x75, 0x0a, 0x19, 0x55, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x54, 0x69,
216 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
217 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42,
218 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e,
219 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74,
220 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
221 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c,
222 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
223 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61,
224 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50,
225 0x01, 0x5a, 0x46, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
226 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c,
227 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x61,
228 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74, 0x61,
229 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67,
230 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74,
231 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x20, 0x47,
232 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61,
233 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea,
234 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
235 0x3a, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31,
236 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
237 }
238
239 var (
240 file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescOnce sync.Once
241 file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescData = file_google_cloud_datacatalog_v1beta1_usage_proto_rawDesc
242 )
243
244 func file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescGZIP() []byte {
245 file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescOnce.Do(func() {
246 file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescData)
247 })
248 return file_google_cloud_datacatalog_v1beta1_usage_proto_rawDescData
249 }
250
251 var file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
252 var file_google_cloud_datacatalog_v1beta1_usage_proto_goTypes = []any{
253 (*UsageStats)(nil), // 0: google.cloud.datacatalog.v1beta1.UsageStats
254 (*UsageSignal)(nil), // 1: google.cloud.datacatalog.v1beta1.UsageSignal
255 nil, // 2: google.cloud.datacatalog.v1beta1.UsageSignal.UsageWithinTimeRangeEntry
256 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
257 }
258 var file_google_cloud_datacatalog_v1beta1_usage_proto_depIdxs = []int32{
259 3, // 0: google.cloud.datacatalog.v1beta1.UsageSignal.update_time:type_name -> google.protobuf.Timestamp
260 2, // 1: google.cloud.datacatalog.v1beta1.UsageSignal.usage_within_time_range:type_name -> google.cloud.datacatalog.v1beta1.UsageSignal.UsageWithinTimeRangeEntry
261 0, // 2: google.cloud.datacatalog.v1beta1.UsageSignal.UsageWithinTimeRangeEntry.value:type_name -> google.cloud.datacatalog.v1beta1.UsageStats
262 3, // [3:3] is the sub-list for method output_type
263 3, // [3:3] is the sub-list for method input_type
264 3, // [3:3] is the sub-list for extension type_name
265 3, // [3:3] is the sub-list for extension extendee
266 0, // [0:3] is the sub-list for field type_name
267 }
268
269 func init() { file_google_cloud_datacatalog_v1beta1_usage_proto_init() }
270 func file_google_cloud_datacatalog_v1beta1_usage_proto_init() {
271 if File_google_cloud_datacatalog_v1beta1_usage_proto != nil {
272 return
273 }
274 type x struct{}
275 out := protoimpl.TypeBuilder{
276 File: protoimpl.DescBuilder{
277 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
278 RawDescriptor: file_google_cloud_datacatalog_v1beta1_usage_proto_rawDesc,
279 NumEnums: 0,
280 NumMessages: 3,
281 NumExtensions: 0,
282 NumServices: 0,
283 },
284 GoTypes: file_google_cloud_datacatalog_v1beta1_usage_proto_goTypes,
285 DependencyIndexes: file_google_cloud_datacatalog_v1beta1_usage_proto_depIdxs,
286 MessageInfos: file_google_cloud_datacatalog_v1beta1_usage_proto_msgTypes,
287 }.Build()
288 File_google_cloud_datacatalog_v1beta1_usage_proto = out.File
289 file_google_cloud_datacatalog_v1beta1_usage_proto_rawDesc = nil
290 file_google_cloud_datacatalog_v1beta1_usage_proto_goTypes = nil
291 file_google_cloud_datacatalog_v1beta1_usage_proto_depIdxs = nil
292 }