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.automl.v1; 18 19import "google/cloud/automl/v1/classification.proto"; 20 21option csharp_namespace = "Google.Cloud.AutoML.V1"; 22option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb"; 23option java_multiple_files = true; 24option java_outer_classname = "TextProto"; 25option java_package = "com.google.cloud.automl.v1"; 26option php_namespace = "Google\\Cloud\\AutoMl\\V1"; 27option ruby_package = "Google::Cloud::AutoML::V1"; 28 29// Dataset metadata for classification. 30message TextClassificationDatasetMetadata { 31 // Required. Type of the classification problem. 32 ClassificationType classification_type = 1; 33} 34 35// Model metadata that is specific to text classification. 36message TextClassificationModelMetadata { 37 // Output only. Classification type of the dataset used to train this model. 38 ClassificationType classification_type = 3; 39} 40 41// Dataset metadata that is specific to text extraction 42message TextExtractionDatasetMetadata { 43 44} 45 46// Model metadata that is specific to text extraction. 47message TextExtractionModelMetadata { 48 49} 50 51// Dataset metadata for text sentiment. 52message TextSentimentDatasetMetadata { 53 // Required. A sentiment is expressed as an integer ordinal, where higher value 54 // means a more positive sentiment. The range of sentiments that will be used 55 // is between 0 and sentiment_max (inclusive on both ends), and all the values 56 // in the range must be represented in the dataset before a model can be 57 // created. 58 // sentiment_max value must be between 1 and 10 (inclusive). 59 int32 sentiment_max = 1; 60} 61 62// Model metadata that is specific to text sentiment. 63message TextSentimentModelMetadata { 64 65} 66