• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2021 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
15syntax = "proto3";
16
17package google.cloud.aiplatform.v1.schema.predict.prediction;
18
19
20option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction";
21option go_package = "cloud.google.com/go/aiplatform/apiv1/schema/predict/prediction/predictionpb;predictionpb";
22option java_multiple_files = true;
23option java_outer_classname = "ClassificationPredictionResultProto";
24option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction";
25option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction";
26option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction";
27
28// Prediction output format for Image and Text Classification.
29message ClassificationPredictionResult {
30  // The resource IDs of the AnnotationSpecs that had been identified.
31  repeated int64 ids = 1;
32
33  // The display names of the AnnotationSpecs that had been identified, order
34  // matches the IDs.
35  repeated string display_names = 2;
36
37  // The Model's confidences in correctness of the predicted IDs, higher value
38  // means higher confidence. Order matches the Ids.
39  repeated float confidences = 3;
40}
41