Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / cloud / automl / v1beta1 / image.proto
1 // Copyright 2018 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 syntax = "proto3";
16
17 package google.cloud.automl.v1beta1;
18
19 import "google/api/annotations.proto";
20 import "google/cloud/automl/v1beta1/classification.proto";
21 import "google/protobuf/timestamp.proto";
22
23 option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
24 option java_multiple_files = true;
25 option java_outer_classname = "ImageProto";
26 option java_package = "com.google.cloud.automl.v1beta1";
27 option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
28
29 // Dataset metadata that is specific to image classification.
30 message ImageClassificationDatasetMetadata {
31   // Required.
32   // Type of the classification problem.
33   ClassificationType classification_type = 1;
34 }
35
36 // Model metadata for image classification.
37 message ImageClassificationModelMetadata {
38   // Optional. The ID of the `base` model. If it is specified, the new model
39   // will be created based on the `base` model. Otherwise, the new model will be
40   // created from scratch. The `base` model is expected to be in the same
41   // `project` and `location` as the new model to create.
42   string base_model_id = 1;
43
44   // Required. The train budget of creating this model. The actual
45   // `train_cost` will be equal or less than this value.
46   int64 train_budget = 2;
47
48   // Output only. The actual train cost of creating this model. If this
49   // model is created from a `base` model, the train cost used to create the
50   // `base` model are not included.
51   int64 train_cost = 3;
52
53   // Output only. The reason that this create model operation stopped,
54   // e.g. BUDGET_REACHED, CONVERGED.
55   string stop_reason = 5;
56 }