| 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/automl/v1beta1/classification.proto |
| 20 |
|
| 21 |
package automlpb |
| 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 |
// Type of the classification problem. |
| 38 |
type ClassificationType int32 |
| 39 |
|
| 40 |
const ( |
| 41 |
// An un-set value of this enum. |
| 42 |
ClassificationType_CLASSIFICATION_TYPE_UNSPECIFIED ClassificationType = 0 |
| 43 |
// At most one label is allowed per example. |
| 44 |
ClassificationType_MULTICLASS ClassificationType = 1 |
| 45 |
// Multiple labels are allowed for one example. |
| 46 |
ClassificationType_MULTILABEL ClassificationType = 2 |
| 47 |
) |
| 48 |
|
| 49 |
// Enum value maps for ClassificationType. |
| 50 |
var ( |
| 51 |
ClassificationType_name = map[int32]string{ |
| 52 |
0: "CLASSIFICATION_TYPE_UNSPECIFIED", |
| 53 |
1: "MULTICLASS", |
| 54 |
2: "MULTILABEL", |
| 55 |
} |
| 56 |
ClassificationType_value = map[string]int32{ |
| 57 |
"CLASSIFICATION_TYPE_UNSPECIFIED": 0, |
| 58 |
"MULTICLASS": 1, |
| 59 |
"MULTILABEL": 2, |
| 60 |
} |
| 61 |
) |
| 62 |
|
| 63 |
func (x ClassificationType) Enum() *ClassificationType { |
| 64 |
p := new(ClassificationType) |
| 65 |
*p = x |
| 66 |
return p |
| 67 |
} |
| 68 |
|
| 69 |
func (x ClassificationType) String() string { |
| 70 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 71 |
} |
| 72 |
|
| 73 |
func (ClassificationType) Descriptor() protoreflect.EnumDescriptor { |
| 74 |
return file_google_cloud_automl_v1beta1_classification_proto_enumTypes[0].Descriptor() |
| 75 |
} |
| 76 |
|
| 77 |
func (ClassificationType) Type() protoreflect.EnumType { |
| 78 |
return &file_google_cloud_automl_v1beta1_classification_proto_enumTypes[0] |
| 79 |
} |
| 80 |
|
| 81 |
func (x ClassificationType) Number() protoreflect.EnumNumber { |
| 82 |
return protoreflect.EnumNumber(x) |
| 83 |
} |
| 84 |
|
| 85 |
// Deprecated: Use ClassificationType.Descriptor instead. |
| 86 |
func (ClassificationType) EnumDescriptor() ([]byte, []int) { |
| 87 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{0} |
| 88 |
} |
| 89 |
|
| 90 |
// Contains annotation details specific to classification. |
| 91 |
type ClassificationAnnotation struct { |
| 92 |
state protoimpl.MessageState |
| 93 |
sizeCache protoimpl.SizeCache |
| 94 |
unknownFields protoimpl.UnknownFields |
| 95 |
|
| 96 |
// Output only. A confidence estimate between 0.0 and 1.0. A higher value |
| 97 |
// means greater confidence that the annotation is positive. If a user |
| 98 |
// approves an annotation as negative or positive, the score value remains |
| 99 |
// unchanged. If a user creates an annotation, the score is 0 for negative or |
| 100 |
// 1 for positive. |
| 101 |
Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"` |
| 102 |
} |
| 103 |
|
| 104 |
func (x *ClassificationAnnotation) Reset() { |
| 105 |
*x = ClassificationAnnotation{} |
| 106 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[0] |
| 107 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 108 |
ms.StoreMessageInfo(mi) |
| 109 |
} |
| 110 |
|
| 111 |
func (x *ClassificationAnnotation) String() string { |
| 112 |
return protoimpl.X.MessageStringOf(x) |
| 113 |
} |
| 114 |
|
| 115 |
func (*ClassificationAnnotation) ProtoMessage() {} |
| 116 |
|
| 117 |
func (x *ClassificationAnnotation) ProtoReflect() protoreflect.Message { |
| 118 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[0] |
| 119 |
if x != nil { |
| 120 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 121 |
if ms.LoadMessageInfo() == nil { |
| 122 |
ms.StoreMessageInfo(mi) |
| 123 |
} |
| 124 |
return ms |
| 125 |
} |
| 126 |
return mi.MessageOf(x) |
| 127 |
} |
| 128 |
|
| 129 |
// Deprecated: Use ClassificationAnnotation.ProtoReflect.Descriptor instead. |
| 130 |
func (*ClassificationAnnotation) Descriptor() ([]byte, []int) { |
| 131 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{0} |
| 132 |
} |
| 133 |
|
| 134 |
func (x *ClassificationAnnotation) GetScore() float32 { |
| 135 |
if x != nil { |
| 136 |
return x.Score |
| 137 |
} |
| 138 |
return 0 |
| 139 |
} |
| 140 |
|
| 141 |
// Contains annotation details specific to video classification. |
| 142 |
type VideoClassificationAnnotation struct { |
| 143 |
state protoimpl.MessageState |
| 144 |
sizeCache protoimpl.SizeCache |
| 145 |
unknownFields protoimpl.UnknownFields |
| 146 |
|
| 147 |
// Output only. Expresses the type of video classification. Possible values: |
| 148 |
// |
| 149 |
// - `segment` - Classification done on a specified by user |
| 150 |
// time segment of a video. AnnotationSpec is answered to be present |
| 151 |
// in that time segment, if it is present in any part of it. The video |
| 152 |
// ML model evaluations are done only for this type of classification. |
| 153 |
// |
| 154 |
// - `shot`- Shot-level classification. |
| 155 |
// AutoML Video Intelligence determines the boundaries |
| 156 |
// for each camera shot in the entire segment of the video that user |
| 157 |
// specified in the request configuration. AutoML Video Intelligence |
| 158 |
// then returns labels and their confidence scores for each detected |
| 159 |
// shot, along with the start and end time of the shot. |
| 160 |
// WARNING: Model evaluation is not done for this classification type, |
| 161 |
// the quality of it depends on training data, but there are no |
| 162 |
// metrics provided to describe that quality. |
| 163 |
// |
| 164 |
// - `1s_interval` - AutoML Video Intelligence returns labels and their |
| 165 |
// confidence scores for each second of the entire segment of the video |
| 166 |
// that user specified in the request configuration. |
| 167 |
// WARNING: Model evaluation is not done for this classification type, |
| 168 |
// the quality of it depends on training data, but there are no |
| 169 |
// metrics provided to describe that quality. |
| 170 |
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
| 171 |
// Output only . The classification details of this annotation. |
| 172 |
ClassificationAnnotation *ClassificationAnnotation `protobuf:"bytes,2,opt,name=classification_annotation,json=classificationAnnotation,proto3" json:"classification_annotation,omitempty"` |
| 173 |
// Output only . The time segment of the video to which the |
| 174 |
// annotation applies. |
| 175 |
TimeSegment *TimeSegment `protobuf:"bytes,3,opt,name=time_segment,json=timeSegment,proto3" json:"time_segment,omitempty"` |
| 176 |
} |
| 177 |
|
| 178 |
func (x *VideoClassificationAnnotation) Reset() { |
| 179 |
*x = VideoClassificationAnnotation{} |
| 180 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[1] |
| 181 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 182 |
ms.StoreMessageInfo(mi) |
| 183 |
} |
| 184 |
|
| 185 |
func (x *VideoClassificationAnnotation) String() string { |
| 186 |
return protoimpl.X.MessageStringOf(x) |
| 187 |
} |
| 188 |
|
| 189 |
func (*VideoClassificationAnnotation) ProtoMessage() {} |
| 190 |
|
| 191 |
func (x *VideoClassificationAnnotation) ProtoReflect() protoreflect.Message { |
| 192 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[1] |
| 193 |
if x != nil { |
| 194 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 195 |
if ms.LoadMessageInfo() == nil { |
| 196 |
ms.StoreMessageInfo(mi) |
| 197 |
} |
| 198 |
return ms |
| 199 |
} |
| 200 |
return mi.MessageOf(x) |
| 201 |
} |
| 202 |
|
| 203 |
// Deprecated: Use VideoClassificationAnnotation.ProtoReflect.Descriptor instead. |
| 204 |
func (*VideoClassificationAnnotation) Descriptor() ([]byte, []int) { |
| 205 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{1} |
| 206 |
} |
| 207 |
|
| 208 |
func (x *VideoClassificationAnnotation) GetType() string { |
| 209 |
if x != nil { |
| 210 |
return x.Type |
| 211 |
} |
| 212 |
return "" |
| 213 |
} |
| 214 |
|
| 215 |
func (x *VideoClassificationAnnotation) GetClassificationAnnotation() *ClassificationAnnotation { |
| 216 |
if x != nil { |
| 217 |
return x.ClassificationAnnotation |
| 218 |
} |
| 219 |
return nil |
| 220 |
} |
| 221 |
|
| 222 |
func (x *VideoClassificationAnnotation) GetTimeSegment() *TimeSegment { |
| 223 |
if x != nil { |
| 224 |
return x.TimeSegment |
| 225 |
} |
| 226 |
return nil |
| 227 |
} |
| 228 |
|
| 229 |
// Model evaluation metrics for classification problems. |
| 230 |
// Note: For Video Classification this metrics only describe quality of the |
| 231 |
// Video Classification predictions of "segment_classification" type. |
| 232 |
type ClassificationEvaluationMetrics struct { |
| 233 |
state protoimpl.MessageState |
| 234 |
sizeCache protoimpl.SizeCache |
| 235 |
unknownFields protoimpl.UnknownFields |
| 236 |
|
| 237 |
// Output only. The Area Under Precision-Recall Curve metric. Micro-averaged |
| 238 |
// for the overall evaluation. |
| 239 |
AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"` |
| 240 |
// Output only. The Area Under Precision-Recall Curve metric based on priors. |
| 241 |
// Micro-averaged for the overall evaluation. |
| 242 |
// Deprecated. |
| 243 |
// |
| 244 |
// Deprecated: Marked as deprecated in google/cloud/automl/v1beta1/classification.proto. |
| 245 |
BaseAuPrc float32 `protobuf:"fixed32,2,opt,name=base_au_prc,json=baseAuPrc,proto3" json:"base_au_prc,omitempty"` |
| 246 |
// Output only. The Area Under Receiver Operating Characteristic curve metric. |
| 247 |
// Micro-averaged for the overall evaluation. |
| 248 |
AuRoc float32 `protobuf:"fixed32,6,opt,name=au_roc,json=auRoc,proto3" json:"au_roc,omitempty"` |
| 249 |
// Output only. The Log Loss metric. |
| 250 |
LogLoss float32 `protobuf:"fixed32,7,opt,name=log_loss,json=logLoss,proto3" json:"log_loss,omitempty"` |
| 251 |
// Output only. Metrics for each confidence_threshold in |
| 252 |
// 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and |
| 253 |
// position_threshold = INT32_MAX_VALUE. |
| 254 |
// ROC and precision-recall curves, and other aggregated metrics are derived |
| 255 |
// from them. The confidence metrics entries may also be supplied for |
| 256 |
// additional values of position_threshold, but from these no aggregated |
| 257 |
// metrics are computed. |
| 258 |
ConfidenceMetricsEntry []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,3,rep,name=confidence_metrics_entry,json=confidenceMetricsEntry,proto3" json:"confidence_metrics_entry,omitempty"` |
| 259 |
// Output only. Confusion matrix of the evaluation. |
| 260 |
// Only set for MULTICLASS classification problems where number |
| 261 |
// of labels is no more than 10. |
| 262 |
// Only set for model level evaluation, not for evaluation per label. |
| 263 |
ConfusionMatrix *ClassificationEvaluationMetrics_ConfusionMatrix `protobuf:"bytes,4,opt,name=confusion_matrix,json=confusionMatrix,proto3" json:"confusion_matrix,omitempty"` |
| 264 |
// Output only. The annotation spec ids used for this evaluation. |
| 265 |
AnnotationSpecId []string `protobuf:"bytes,5,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"` |
| 266 |
} |
| 267 |
|
| 268 |
func (x *ClassificationEvaluationMetrics) Reset() { |
| 269 |
*x = ClassificationEvaluationMetrics{} |
| 270 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[2] |
| 271 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 272 |
ms.StoreMessageInfo(mi) |
| 273 |
} |
| 274 |
|
| 275 |
func (x *ClassificationEvaluationMetrics) String() string { |
| 276 |
return protoimpl.X.MessageStringOf(x) |
| 277 |
} |
| 278 |
|
| 279 |
func (*ClassificationEvaluationMetrics) ProtoMessage() {} |
| 280 |
|
| 281 |
func (x *ClassificationEvaluationMetrics) ProtoReflect() protoreflect.Message { |
| 282 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[2] |
| 283 |
if x != nil { |
| 284 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 285 |
if ms.LoadMessageInfo() == nil { |
| 286 |
ms.StoreMessageInfo(mi) |
| 287 |
} |
| 288 |
return ms |
| 289 |
} |
| 290 |
return mi.MessageOf(x) |
| 291 |
} |
| 292 |
|
| 293 |
// Deprecated: Use ClassificationEvaluationMetrics.ProtoReflect.Descriptor instead. |
| 294 |
func (*ClassificationEvaluationMetrics) Descriptor() ([]byte, []int) { |
| 295 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{2} |
| 296 |
} |
| 297 |
|
| 298 |
func (x *ClassificationEvaluationMetrics) GetAuPrc() float32 { |
| 299 |
if x != nil { |
| 300 |
return x.AuPrc |
| 301 |
} |
| 302 |
return 0 |
| 303 |
} |
| 304 |
|
| 305 |
// Deprecated: Marked as deprecated in google/cloud/automl/v1beta1/classification.proto. |
| 306 |
func (x *ClassificationEvaluationMetrics) GetBaseAuPrc() float32 { |
| 307 |
if x != nil { |
| 308 |
return x.BaseAuPrc |
| 309 |
} |
| 310 |
return 0 |
| 311 |
} |
| 312 |
|
| 313 |
func (x *ClassificationEvaluationMetrics) GetAuRoc() float32 { |
| 314 |
if x != nil { |
| 315 |
return x.AuRoc |
| 316 |
} |
| 317 |
return 0 |
| 318 |
} |
| 319 |
|
| 320 |
func (x *ClassificationEvaluationMetrics) GetLogLoss() float32 { |
| 321 |
if x != nil { |
| 322 |
return x.LogLoss |
| 323 |
} |
| 324 |
return 0 |
| 325 |
} |
| 326 |
|
| 327 |
func (x *ClassificationEvaluationMetrics) GetConfidenceMetricsEntry() []*ClassificationEvaluationMetrics_ConfidenceMetricsEntry { |
| 328 |
if x != nil { |
| 329 |
return x.ConfidenceMetricsEntry |
| 330 |
} |
| 331 |
return nil |
| 332 |
} |
| 333 |
|
| 334 |
func (x *ClassificationEvaluationMetrics) GetConfusionMatrix() *ClassificationEvaluationMetrics_ConfusionMatrix { |
| 335 |
if x != nil { |
| 336 |
return x.ConfusionMatrix |
| 337 |
} |
| 338 |
return nil |
| 339 |
} |
| 340 |
|
| 341 |
func (x *ClassificationEvaluationMetrics) GetAnnotationSpecId() []string { |
| 342 |
if x != nil { |
| 343 |
return x.AnnotationSpecId |
| 344 |
} |
| 345 |
return nil |
| 346 |
} |
| 347 |
|
| 348 |
// Metrics for a single confidence threshold. |
| 349 |
type ClassificationEvaluationMetrics_ConfidenceMetricsEntry struct { |
| 350 |
state protoimpl.MessageState |
| 351 |
sizeCache protoimpl.SizeCache |
| 352 |
unknownFields protoimpl.UnknownFields |
| 353 |
|
| 354 |
// Output only. Metrics are computed with an assumption that the model |
| 355 |
// never returns predictions with score lower than this value. |
| 356 |
ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"` |
| 357 |
// Output only. Metrics are computed with an assumption that the model |
| 358 |
// always returns at most this many predictions (ordered by their score, |
| 359 |
// descendingly), but they all still need to meet the confidence_threshold. |
| 360 |
PositionThreshold int32 `protobuf:"varint,14,opt,name=position_threshold,json=positionThreshold,proto3" json:"position_threshold,omitempty"` |
| 361 |
// Output only. Recall (True Positive Rate) for the given confidence |
| 362 |
// threshold. |
| 363 |
Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"` |
| 364 |
// Output only. Precision for the given confidence threshold. |
| 365 |
Precision float32 `protobuf:"fixed32,3,opt,name=precision,proto3" json:"precision,omitempty"` |
| 366 |
// Output only. False Positive Rate for the given confidence threshold. |
| 367 |
FalsePositiveRate float32 `protobuf:"fixed32,8,opt,name=false_positive_rate,json=falsePositiveRate,proto3" json:"false_positive_rate,omitempty"` |
| 368 |
// Output only. The harmonic mean of recall and precision. |
| 369 |
F1Score float32 `protobuf:"fixed32,4,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"` |
| 370 |
// Output only. The Recall (True Positive Rate) when only considering the |
| 371 |
// label that has the highest prediction score and not below the confidence |
| 372 |
// threshold for each example. |
| 373 |
RecallAt1 float32 `protobuf:"fixed32,5,opt,name=recall_at1,json=recallAt1,proto3" json:"recall_at1,omitempty"` |
| 374 |
// Output only. The precision when only considering the label that has the |
| 375 |
// highest prediction score and not below the confidence threshold for each |
| 376 |
// example. |
| 377 |
PrecisionAt1 float32 `protobuf:"fixed32,6,opt,name=precision_at1,json=precisionAt1,proto3" json:"precision_at1,omitempty"` |
| 378 |
// Output only. The False Positive Rate when only considering the label that |
| 379 |
// has the highest prediction score and not below the confidence threshold |
| 380 |
// for each example. |
| 381 |
FalsePositiveRateAt1 float32 `protobuf:"fixed32,9,opt,name=false_positive_rate_at1,json=falsePositiveRateAt1,proto3" json:"false_positive_rate_at1,omitempty"` |
| 382 |
// Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. |
| 383 |
F1ScoreAt1 float32 `protobuf:"fixed32,7,opt,name=f1_score_at1,json=f1ScoreAt1,proto3" json:"f1_score_at1,omitempty"` |
| 384 |
// Output only. The number of model created labels that match a ground truth |
| 385 |
// label. |
| 386 |
TruePositiveCount int64 `protobuf:"varint,10,opt,name=true_positive_count,json=truePositiveCount,proto3" json:"true_positive_count,omitempty"` |
| 387 |
// Output only. The number of model created labels that do not match a |
| 388 |
// ground truth label. |
| 389 |
FalsePositiveCount int64 `protobuf:"varint,11,opt,name=false_positive_count,json=falsePositiveCount,proto3" json:"false_positive_count,omitempty"` |
| 390 |
// Output only. The number of ground truth labels that are not matched |
| 391 |
// by a model created label. |
| 392 |
FalseNegativeCount int64 `protobuf:"varint,12,opt,name=false_negative_count,json=falseNegativeCount,proto3" json:"false_negative_count,omitempty"` |
| 393 |
// Output only. The number of labels that were not created by the model, |
| 394 |
// but if they would, they would not match a ground truth label. |
| 395 |
TrueNegativeCount int64 `protobuf:"varint,13,opt,name=true_negative_count,json=trueNegativeCount,proto3" json:"true_negative_count,omitempty"` |
| 396 |
} |
| 397 |
|
| 398 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Reset() { |
| 399 |
*x = ClassificationEvaluationMetrics_ConfidenceMetricsEntry{} |
| 400 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[3] |
| 401 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 402 |
ms.StoreMessageInfo(mi) |
| 403 |
} |
| 404 |
|
| 405 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) String() string { |
| 406 |
return protoimpl.X.MessageStringOf(x) |
| 407 |
} |
| 408 |
|
| 409 |
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {} |
| 410 |
|
| 411 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) ProtoReflect() protoreflect.Message { |
| 412 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[3] |
| 413 |
if x != nil { |
| 414 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 415 |
if ms.LoadMessageInfo() == nil { |
| 416 |
ms.StoreMessageInfo(mi) |
| 417 |
} |
| 418 |
return ms |
| 419 |
} |
| 420 |
return mi.MessageOf(x) |
| 421 |
} |
| 422 |
|
| 423 |
// Deprecated: Use ClassificationEvaluationMetrics_ConfidenceMetricsEntry.ProtoReflect.Descriptor instead. |
| 424 |
func (*ClassificationEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) { |
| 425 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{2, 0} |
| 426 |
} |
| 427 |
|
| 428 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 { |
| 429 |
if x != nil { |
| 430 |
return x.ConfidenceThreshold |
| 431 |
} |
| 432 |
return 0 |
| 433 |
} |
| 434 |
|
| 435 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPositionThreshold() int32 { |
| 436 |
if x != nil { |
| 437 |
return x.PositionThreshold |
| 438 |
} |
| 439 |
return 0 |
| 440 |
} |
| 441 |
|
| 442 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 { |
| 443 |
if x != nil { |
| 444 |
return x.Recall |
| 445 |
} |
| 446 |
return 0 |
| 447 |
} |
| 448 |
|
| 449 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 { |
| 450 |
if x != nil { |
| 451 |
return x.Precision |
| 452 |
} |
| 453 |
return 0 |
| 454 |
} |
| 455 |
|
| 456 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetFalsePositiveRate() float32 { |
| 457 |
if x != nil { |
| 458 |
return x.FalsePositiveRate |
| 459 |
} |
| 460 |
return 0 |
| 461 |
} |
| 462 |
|
| 463 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 { |
| 464 |
if x != nil { |
| 465 |
return x.F1Score |
| 466 |
} |
| 467 |
return 0 |
| 468 |
} |
| 469 |
|
| 470 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetRecallAt1() float32 { |
| 471 |
if x != nil { |
| 472 |
return x.RecallAt1 |
| 473 |
} |
| 474 |
return 0 |
| 475 |
} |
| 476 |
|
| 477 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetPrecisionAt1() float32 { |
| 478 |
if x != nil { |
| 479 |
return x.PrecisionAt1 |
| 480 |
} |
| 481 |
return 0 |
| 482 |
} |
| 483 |
|
| 484 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetFalsePositiveRateAt1() float32 { |
| 485 |
if x != nil { |
| 486 |
return x.FalsePositiveRateAt1 |
| 487 |
} |
| 488 |
return 0 |
| 489 |
} |
| 490 |
|
| 491 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetF1ScoreAt1() float32 { |
| 492 |
if x != nil { |
| 493 |
return x.F1ScoreAt1 |
| 494 |
} |
| 495 |
return 0 |
| 496 |
} |
| 497 |
|
| 498 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetTruePositiveCount() int64 { |
| 499 |
if x != nil { |
| 500 |
return x.TruePositiveCount |
| 501 |
} |
| 502 |
return 0 |
| 503 |
} |
| 504 |
|
| 505 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetFalsePositiveCount() int64 { |
| 506 |
if x != nil { |
| 507 |
return x.FalsePositiveCount |
| 508 |
} |
| 509 |
return 0 |
| 510 |
} |
| 511 |
|
| 512 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetFalseNegativeCount() int64 { |
| 513 |
if x != nil { |
| 514 |
return x.FalseNegativeCount |
| 515 |
} |
| 516 |
return 0 |
| 517 |
} |
| 518 |
|
| 519 |
func (x *ClassificationEvaluationMetrics_ConfidenceMetricsEntry) GetTrueNegativeCount() int64 { |
| 520 |
if x != nil { |
| 521 |
return x.TrueNegativeCount |
| 522 |
} |
| 523 |
return 0 |
| 524 |
} |
| 525 |
|
| 526 |
// Confusion matrix of the model running the classification. |
| 527 |
type ClassificationEvaluationMetrics_ConfusionMatrix struct { |
| 528 |
state protoimpl.MessageState |
| 529 |
sizeCache protoimpl.SizeCache |
| 530 |
unknownFields protoimpl.UnknownFields |
| 531 |
|
| 532 |
// Output only. IDs of the annotation specs used in the confusion matrix. |
| 533 |
// For Tables CLASSIFICATION |
| 534 |
// |
| 535 |
// [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type] |
| 536 |
// only list of [annotation_spec_display_name-s][] is populated. |
| 537 |
AnnotationSpecId []string `protobuf:"bytes,1,rep,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"` |
| 538 |
// Output only. Display name of the annotation specs used in the confusion |
| 539 |
// matrix, as they were at the moment of the evaluation. For Tables |
| 540 |
// CLASSIFICATION |
| 541 |
// |
| 542 |
// [prediction_type-s][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type], |
| 543 |
// distinct values of the target column at the moment of the model |
| 544 |
// evaluation are populated here. |
| 545 |
DisplayName []string `protobuf:"bytes,3,rep,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| 546 |
// Output only. Rows in the confusion matrix. The number of rows is equal to |
| 547 |
// the size of `annotation_spec_id`. |
| 548 |
// `row[i].example_count[j]` is the number of examples that have ground |
| 549 |
// truth of the `annotation_spec_id[i]` and are predicted as |
| 550 |
// `annotation_spec_id[j]` by the model being evaluated. |
| 551 |
Row []*ClassificationEvaluationMetrics_ConfusionMatrix_Row `protobuf:"bytes,2,rep,name=row,proto3" json:"row,omitempty"` |
| 552 |
} |
| 553 |
|
| 554 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) Reset() { |
| 555 |
*x = ClassificationEvaluationMetrics_ConfusionMatrix{} |
| 556 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[4] |
| 557 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 558 |
ms.StoreMessageInfo(mi) |
| 559 |
} |
| 560 |
|
| 561 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) String() string { |
| 562 |
return protoimpl.X.MessageStringOf(x) |
| 563 |
} |
| 564 |
|
| 565 |
func (*ClassificationEvaluationMetrics_ConfusionMatrix) ProtoMessage() {} |
| 566 |
|
| 567 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) ProtoReflect() protoreflect.Message { |
| 568 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[4] |
| 569 |
if x != nil { |
| 570 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 571 |
if ms.LoadMessageInfo() == nil { |
| 572 |
ms.StoreMessageInfo(mi) |
| 573 |
} |
| 574 |
return ms |
| 575 |
} |
| 576 |
return mi.MessageOf(x) |
| 577 |
} |
| 578 |
|
| 579 |
// Deprecated: Use ClassificationEvaluationMetrics_ConfusionMatrix.ProtoReflect.Descriptor instead. |
| 580 |
func (*ClassificationEvaluationMetrics_ConfusionMatrix) Descriptor() ([]byte, []int) { |
| 581 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{2, 1} |
| 582 |
} |
| 583 |
|
| 584 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) GetAnnotationSpecId() []string { |
| 585 |
if x != nil { |
| 586 |
return x.AnnotationSpecId |
| 587 |
} |
| 588 |
return nil |
| 589 |
} |
| 590 |
|
| 591 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) GetDisplayName() []string { |
| 592 |
if x != nil { |
| 593 |
return x.DisplayName |
| 594 |
} |
| 595 |
return nil |
| 596 |
} |
| 597 |
|
| 598 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix) GetRow() []*ClassificationEvaluationMetrics_ConfusionMatrix_Row { |
| 599 |
if x != nil { |
| 600 |
return x.Row |
| 601 |
} |
| 602 |
return nil |
| 603 |
} |
| 604 |
|
| 605 |
// Output only. A row in the confusion matrix. |
| 606 |
type ClassificationEvaluationMetrics_ConfusionMatrix_Row struct { |
| 607 |
state protoimpl.MessageState |
| 608 |
sizeCache protoimpl.SizeCache |
| 609 |
unknownFields protoimpl.UnknownFields |
| 610 |
|
| 611 |
// Output only. Value of the specific cell in the confusion matrix. |
| 612 |
// The number of values each row has (i.e. the length of the row) is equal |
| 613 |
// to the length of the `annotation_spec_id` field or, if that one is not |
| 614 |
// populated, length of the [display_name][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field. |
| 615 |
ExampleCount []int32 `protobuf:"varint,1,rep,packed,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"` |
| 616 |
} |
| 617 |
|
| 618 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix_Row) Reset() { |
| 619 |
*x = ClassificationEvaluationMetrics_ConfusionMatrix_Row{} |
| 620 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[5] |
| 621 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 622 |
ms.StoreMessageInfo(mi) |
| 623 |
} |
| 624 |
|
| 625 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix_Row) String() string { |
| 626 |
return protoimpl.X.MessageStringOf(x) |
| 627 |
} |
| 628 |
|
| 629 |
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) ProtoMessage() {} |
| 630 |
|
| 631 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix_Row) ProtoReflect() protoreflect.Message { |
| 632 |
mi := &file_google_cloud_automl_v1beta1_classification_proto_msgTypes[5] |
| 633 |
if x != nil { |
| 634 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 635 |
if ms.LoadMessageInfo() == nil { |
| 636 |
ms.StoreMessageInfo(mi) |
| 637 |
} |
| 638 |
return ms |
| 639 |
} |
| 640 |
return mi.MessageOf(x) |
| 641 |
} |
| 642 |
|
| 643 |
// Deprecated: Use ClassificationEvaluationMetrics_ConfusionMatrix_Row.ProtoReflect.Descriptor instead. |
| 644 |
func (*ClassificationEvaluationMetrics_ConfusionMatrix_Row) Descriptor() ([]byte, []int) { |
| 645 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP(), []int{2, 1, 0} |
| 646 |
} |
| 647 |
|
| 648 |
func (x *ClassificationEvaluationMetrics_ConfusionMatrix_Row) GetExampleCount() []int32 { |
| 649 |
if x != nil { |
| 650 |
return x.ExampleCount |
| 651 |
} |
| 652 |
return nil |
| 653 |
} |
| 654 |
|
| 655 |
var File_google_cloud_automl_v1beta1_classification_proto protoreflect.FileDescriptor |
| 656 |
|
| 657 |
var file_google_cloud_automl_v1beta1_classification_proto_rawDesc = []byte{ |
| 658 |
0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, |
| 659 |
0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6c, |
| 660 |
0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, |
| 661 |
0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 662 |
0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, |
| 663 |
0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, |
| 664 |
0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x65, 0x6d, |
| 665 |
0x70, 0x6f, 0x72, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x18, 0x43, |
| 666 |
0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x6e, |
| 667 |
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, |
| 668 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0xf4, 0x01, |
| 669 |
0x0a, 0x1d, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, |
| 670 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, |
| 671 |
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, |
| 672 |
0x79, 0x70, 0x65, 0x12, 0x72, 0x0a, 0x19, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, |
| 673 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 674 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 675 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, |
| 676 |
0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, |
| 677 |
0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x63, |
| 678 |
0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x6e, |
| 679 |
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x5f, |
| 680 |
0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, |
| 681 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, |
| 682 |
0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, |
| 683 |
0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x67, |
| 684 |
0x6d, 0x65, 0x6e, 0x74, 0x22, 0x99, 0x0a, 0x0a, 0x1f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, |
| 685 |
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, |
| 686 |
0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x75, 0x5f, 0x70, |
| 687 |
0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x61, 0x75, 0x50, 0x72, 0x63, 0x12, |
| 688 |
0x22, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x61, 0x75, 0x5f, 0x70, 0x72, 0x63, 0x18, 0x02, |
| 689 |
0x20, 0x01, 0x28, 0x02, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x41, 0x75, |
| 690 |
0x50, 0x72, 0x63, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x75, 0x5f, 0x72, 0x6f, 0x63, 0x18, 0x06, 0x20, |
| 691 |
0x01, 0x28, 0x02, 0x52, 0x05, 0x61, 0x75, 0x52, 0x6f, 0x63, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, |
| 692 |
0x67, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x6c, 0x6f, |
| 693 |
0x67, 0x4c, 0x6f, 0x73, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, |
| 694 |
0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x74, |
| 695 |
0x72, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 696 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, |
| 697 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, |
| 698 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, |
| 699 |
0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, |
| 700 |
0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x16, 0x63, |
| 701 |
0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, |
| 702 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x77, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x75, 0x73, 0x69, |
| 703 |
0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 704 |
0x4c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, |
| 705 |
0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, |
| 706 |
0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, |
| 707 |
0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x43, 0x6f, |
| 708 |
0x6e, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x0f, 0x63, |
| 709 |
0x6f, 0x6e, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x2c, |
| 710 |
0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, |
| 711 |
0x63, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x61, 0x6e, 0x6e, 0x6f, |
| 712 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x1a, 0xdc, 0x04, 0x0a, |
| 713 |
0x16, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, |
| 714 |
0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 715 |
0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, |
| 716 |
0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, |
| 717 |
0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x6f, |
| 718 |
0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, |
| 719 |
0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 720 |
0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, |
| 721 |
0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x72, 0x65, 0x63, 0x61, 0x6c, |
| 722 |
0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, |
| 723 |
0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, |
| 724 |
0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, |
| 725 |
0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x66, 0x61, |
| 726 |
0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, |
| 727 |
0x19, 0x0a, 0x08, 0x66, 0x31, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 728 |
0x02, 0x52, 0x07, 0x66, 0x31, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, |
| 729 |
0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x74, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, |
| 730 |
0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x41, 0x74, 0x31, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x65, |
| 731 |
0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x31, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, |
| 732 |
0x52, 0x0c, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x31, 0x12, 0x35, |
| 733 |
0x0a, 0x17, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, |
| 734 |
0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x31, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x52, |
| 735 |
0x14, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, |
| 736 |
0x74, 0x65, 0x41, 0x74, 0x31, 0x12, 0x20, 0x0a, 0x0c, 0x66, 0x31, 0x5f, 0x73, 0x63, 0x6f, 0x72, |
| 737 |
0x65, 0x5f, 0x61, 0x74, 0x31, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x66, 0x31, 0x53, |
| 738 |
0x63, 0x6f, 0x72, 0x65, 0x41, 0x74, 0x31, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x65, 0x5f, |
| 739 |
0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, |
| 740 |
0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74, 0x72, 0x75, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, |
| 741 |
0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x61, 0x6c, 0x73, 0x65, |
| 742 |
0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, |
| 743 |
0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, |
| 744 |
0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x61, 0x6c, |
| 745 |
0x73, 0x65, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, |
| 746 |
0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x4e, 0x65, |
| 747 |
0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x74, |
| 748 |
0x72, 0x75, 0x65, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, |
| 749 |
0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74, 0x72, 0x75, 0x65, 0x4e, 0x65, |
| 750 |
0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0xf2, 0x01, 0x0a, 0x0f, |
| 751 |
0x43, 0x6f, 0x6e, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, |
| 752 |
0x2c, 0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, |
| 753 |
0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x61, 0x6e, 0x6e, |
| 754 |
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, |
| 755 |
0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, |
| 756 |
0x03, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, |
| 757 |
0x12, 0x62, 0x0a, 0x03, 0x72, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x50, 0x2e, |
| 758 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, |
| 759 |
0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, |
| 760 |
0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, |
| 761 |
0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, |
| 762 |
0x75, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x2e, 0x52, 0x6f, 0x77, 0x52, |
| 763 |
0x03, 0x72, 0x6f, 0x77, 0x1a, 0x2a, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x23, 0x0a, 0x0d, 0x65, |
| 764 |
0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, |
| 765 |
0x28, 0x05, 0x52, 0x0c, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, |
| 766 |
0x2a, 0x59, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, |
| 767 |
0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, |
| 768 |
0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, |
| 769 |
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, |
| 770 |
0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, |
| 771 |
0x55, 0x4c, 0x54, 0x49, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x10, 0x02, 0x42, 0xae, 0x01, 0x0a, 0x1f, |
| 772 |
0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 773 |
0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, |
| 774 |
0x13, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, |
| 775 |
0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 776 |
0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, |
| 777 |
0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x6f, |
| 778 |
0x6d, 0x6c, 0x70, 0x62, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x70, 0x62, 0xca, 0x02, 0x1b, |
| 779 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, |
| 780 |
0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, |
| 781 |
0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, |
| 782 |
0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, |
| 783 |
0x6f, 0x74, 0x6f, 0x33, |
| 784 |
} |
| 785 |
|
| 786 |
var ( |
| 787 |
file_google_cloud_automl_v1beta1_classification_proto_rawDescOnce sync.Once |
| 788 |
file_google_cloud_automl_v1beta1_classification_proto_rawDescData = file_google_cloud_automl_v1beta1_classification_proto_rawDesc |
| 789 |
) |
| 790 |
|
| 791 |
func file_google_cloud_automl_v1beta1_classification_proto_rawDescGZIP() []byte { |
| 792 |
file_google_cloud_automl_v1beta1_classification_proto_rawDescOnce.Do(func() { |
| 793 |
file_google_cloud_automl_v1beta1_classification_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1beta1_classification_proto_rawDescData) |
| 794 |
}) |
| 795 |
return file_google_cloud_automl_v1beta1_classification_proto_rawDescData |
| 796 |
} |
| 797 |
|
| 798 |
var file_google_cloud_automl_v1beta1_classification_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 799 |
var file_google_cloud_automl_v1beta1_classification_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 800 |
var file_google_cloud_automl_v1beta1_classification_proto_goTypes = []any{ |
| 801 |
(ClassificationType)(0), // 0: google.cloud.automl.v1beta1.ClassificationType |
| 802 |
(*ClassificationAnnotation)(nil), // 1: google.cloud.automl.v1beta1.ClassificationAnnotation |
| 803 |
(*VideoClassificationAnnotation)(nil), // 2: google.cloud.automl.v1beta1.VideoClassificationAnnotation |
| 804 |
(*ClassificationEvaluationMetrics)(nil), // 3: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics |
| 805 |
(*ClassificationEvaluationMetrics_ConfidenceMetricsEntry)(nil), // 4: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry |
| 806 |
(*ClassificationEvaluationMetrics_ConfusionMatrix)(nil), // 5: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix |
| 807 |
(*ClassificationEvaluationMetrics_ConfusionMatrix_Row)(nil), // 6: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row |
| 808 |
(*TimeSegment)(nil), // 7: google.cloud.automl.v1beta1.TimeSegment |
| 809 |
} |
| 810 |
var file_google_cloud_automl_v1beta1_classification_proto_depIdxs = []int32{ |
| 811 |
1, // 0: google.cloud.automl.v1beta1.VideoClassificationAnnotation.classification_annotation:type_name -> google.cloud.automl.v1beta1.ClassificationAnnotation |
| 812 |
7, // 1: google.cloud.automl.v1beta1.VideoClassificationAnnotation.time_segment:type_name -> google.cloud.automl.v1beta1.TimeSegment |
| 813 |
4, // 2: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confidence_metrics_entry:type_name -> google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry |
| 814 |
5, // 3: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.confusion_matrix:type_name -> google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix |
| 815 |
6, // 4: google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.row:type_name -> google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row |
| 816 |
5, // [5:5] is the sub-list for method output_type |
| 817 |
5, // [5:5] is the sub-list for method input_type |
| 818 |
5, // [5:5] is the sub-list for extension type_name |
| 819 |
5, // [5:5] is the sub-list for extension extendee |
| 820 |
0, // [0:5] is the sub-list for field type_name |
| 821 |
} |
| 822 |
|
| 823 |
func init() { file_google_cloud_automl_v1beta1_classification_proto_init() } |
| 824 |
func file_google_cloud_automl_v1beta1_classification_proto_init() { |
| 825 |
if File_google_cloud_automl_v1beta1_classification_proto != nil { |
| 826 |
return |
| 827 |
} |
| 828 |
file_google_cloud_automl_v1beta1_temporal_proto_init() |
| 829 |
type x struct{} |
| 830 |
out := protoimpl.TypeBuilder{ |
| 831 |
File: protoimpl.DescBuilder{ |
| 832 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 833 |
RawDescriptor: file_google_cloud_automl_v1beta1_classification_proto_rawDesc, |
| 834 |
NumEnums: 1, |
| 835 |
NumMessages: 6, |
| 836 |
NumExtensions: 0, |
| 837 |
NumServices: 0, |
| 838 |
}, |
| 839 |
GoTypes: file_google_cloud_automl_v1beta1_classification_proto_goTypes, |
| 840 |
DependencyIndexes: file_google_cloud_automl_v1beta1_classification_proto_depIdxs, |
| 841 |
EnumInfos: file_google_cloud_automl_v1beta1_classification_proto_enumTypes, |
| 842 |
MessageInfos: file_google_cloud_automl_v1beta1_classification_proto_msgTypes, |
| 843 |
}.Build() |
| 844 |
File_google_cloud_automl_v1beta1_classification_proto = out.File |
| 845 |
file_google_cloud_automl_v1beta1_classification_proto_rawDesc = nil |
| 846 |
file_google_cloud_automl_v1beta1_classification_proto_goTypes = nil |
| 847 |
file_google_cloud_automl_v1beta1_classification_proto_depIdxs = nil |
| 848 |
} |