Synchronize new proto/yaml changes.
PiperOrigin-RevId: 241403898
This commit is contained in:
parent
62baea94d3
commit
1e20c384c2
|
|
@ -1 +0,0 @@
|
|||
exports_files(glob(["*.yaml"]))
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
common:
|
||||
api_name: automl
|
||||
api_version: v1beta1
|
||||
organization_name: google-cloud
|
||||
proto_deps:
|
||||
- name: google-common-protos
|
||||
src_proto_paths:
|
||||
- v1beta1
|
||||
service_yaml: automl_v1beta1.yaml
|
||||
gapic_yaml: v1beta1/automl_gapic.yaml
|
||||
artifacts:
|
||||
- name: gapic_config
|
||||
type: GAPIC_CONFIG
|
||||
- name: java_gapic
|
||||
type: GAPIC
|
||||
language: JAVA
|
||||
- name: python_gapic
|
||||
type: GAPIC
|
||||
language: PYTHON
|
||||
- name: nodejs_gapic
|
||||
type: GAPIC
|
||||
language: NODEJS
|
||||
- name: php_gapic
|
||||
type: GAPIC
|
||||
language: PHP
|
||||
- name: go_gapic
|
||||
type: GAPIC
|
||||
language: GO
|
||||
- name: ruby_gapic
|
||||
type: GAPIC
|
||||
language: RUBY
|
||||
- name: csharp_gapic
|
||||
type: GAPIC
|
||||
language: CSHARP
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
type: google.api.Service
|
||||
config_version: 3
|
||||
name: automl.googleapis.com
|
||||
title: Cloud AutoML API
|
||||
|
||||
apis:
|
||||
- name: google.cloud.automl.v1beta1.AutoMl
|
||||
- name: google.cloud.automl.v1beta1.PredictionService
|
||||
|
||||
types:
|
||||
- name: google.cloud.automl.v1beta1.OperationMetadata
|
||||
|
||||
documentation:
|
||||
summary: The AutoML project API.
|
||||
|
||||
http:
|
||||
rules:
|
||||
- selector: google.longrunning.Operations.ListOperations
|
||||
get: '/v1beta1/{name=projects/*/locations/*}/operations'
|
||||
|
||||
- selector: google.longrunning.Operations.GetOperation
|
||||
get: '/v1beta1/{name=projects/*/locations/*/operations/*}'
|
||||
|
||||
- selector: google.longrunning.Operations.DeleteOperation
|
||||
delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'
|
||||
|
||||
- selector: google.longrunning.Operations.CancelOperation
|
||||
post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel'
|
||||
body: '*'
|
||||
|
||||
|
||||
authentication:
|
||||
rules:
|
||||
- selector: '*'
|
||||
oauth:
|
||||
canonical_scopes: |-
|
||||
https://www.googleapis.com/auth/cloud-platform
|
||||
|
|
@ -1,162 +0,0 @@
|
|||
# This is an API workspace, having public visibility by default makes perfect sense.
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
##############################################################################
|
||||
# Common
|
||||
##############################################################################
|
||||
load("@com_google_api_codegen//rules_gapic:gapic.bzl", "proto_library_with_info")
|
||||
|
||||
proto_library(
|
||||
name = "automl_proto",
|
||||
srcs = [
|
||||
"annotation_payload.proto",
|
||||
"classification.proto",
|
||||
"data_items.proto",
|
||||
"dataset.proto",
|
||||
"image.proto",
|
||||
"io.proto",
|
||||
"model.proto",
|
||||
"model_evaluation.proto",
|
||||
"operations.proto",
|
||||
"prediction_service.proto",
|
||||
"service.proto",
|
||||
"text.proto",
|
||||
"translation.proto",
|
||||
],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/longrunning:operations_proto",
|
||||
"//google/rpc:status_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
"@com_google_protobuf//:field_mask_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
proto_library_with_info(
|
||||
name = "automl_proto_with_info",
|
||||
deps = [":automl_proto"],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Java
|
||||
##############################################################################
|
||||
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
|
||||
load(
|
||||
"@com_google_api_codegen//rules_gapic/java:java_gapic.bzl",
|
||||
"java_gapic_library",
|
||||
"java_resource_name_proto_library",
|
||||
)
|
||||
load("@com_google_api_codegen//rules_gapic/java:java_gapic_pkg.bzl", "java_gapic_assembly_gradle_pkg")
|
||||
|
||||
_JAVA_GRPC_DEPS = [
|
||||
"@com_google_api_grpc_proto_google_common_protos//jar",
|
||||
]
|
||||
|
||||
java_proto_library(
|
||||
name = "automl_java_proto",
|
||||
deps = [":automl_proto"],
|
||||
)
|
||||
|
||||
java_grpc_library(
|
||||
name = "automl_java_grpc",
|
||||
srcs = [":automl_proto"],
|
||||
deps = [":automl_java_proto"] + _JAVA_GRPC_DEPS,
|
||||
)
|
||||
|
||||
java_resource_name_proto_library(
|
||||
name = "automl_resource_name_java_proto",
|
||||
gapic_yaml = "automl_gapic.yaml",
|
||||
deps = [":automl_proto"],
|
||||
)
|
||||
|
||||
java_gapic_library(
|
||||
name = "automl_java_gapic",
|
||||
src = ":automl_proto_with_info",
|
||||
gapic_yaml = "automl_gapic.yaml",
|
||||
service_yaml = "//google/cloud/automl:automl_v1beta1.yaml",
|
||||
test_deps = [":automl_java_grpc"],
|
||||
deps = [
|
||||
":automl_java_proto",
|
||||
":automl_resource_name_java_proto",
|
||||
] + _JAVA_GRPC_DEPS,
|
||||
)
|
||||
|
||||
[java_test(
|
||||
name = test_name,
|
||||
test_class = test_name,
|
||||
runtime_deps = [
|
||||
":automl_java_gapic_test",
|
||||
],
|
||||
) for test_name in [
|
||||
"com.google.cloud.automl.v1beta1.AutoMlClientTest",
|
||||
"com.google.cloud.automl.v1beta1.PredictionServiceClientTest",
|
||||
]]
|
||||
|
||||
# Opensource Packages
|
||||
java_gapic_assembly_gradle_pkg(
|
||||
name = "google-cloud-automl-v1beta1-java",
|
||||
client_deps = [":automl_java_gapic"],
|
||||
client_group = "com.google.cloud",
|
||||
client_test_deps = [":automl_java_gapic_test"],
|
||||
grpc_deps = [":automl_java_grpc"],
|
||||
grpc_group = "com.google.api.grpc",
|
||||
proto_deps = [
|
||||
":automl_java_proto",
|
||||
":automl_proto",
|
||||
":automl_resource_name_java_proto",
|
||||
] + _JAVA_GRPC_DEPS,
|
||||
version = "0.0.0-SNAPSHOT",
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Go
|
||||
##############################################################################
|
||||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
||||
load("@com_google_api_codegen//rules_gapic/go:go_gapic.bzl", "go_gapic_srcjar", "go_gapic_library")
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
load("@com_google_api_codegen//rules_gapic/go:go_gapic_pkg.bzl", "go_gapic_assembly_pkg")
|
||||
|
||||
go_proto_library(
|
||||
name = "automl_go_proto",
|
||||
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
|
||||
importpath = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1",
|
||||
protos = [":automl_proto_with_info"],
|
||||
deps = [
|
||||
"//google/api:annotations_go_proto",
|
||||
"//google/longrunning:longrunning_go_proto",
|
||||
"//google/rpc:status_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
go_gapic_library(
|
||||
name = "automl_go_gapic",
|
||||
src = ":automl_proto_with_info",
|
||||
gapic_yaml = "automl_gapic.yaml",
|
||||
importpath = "cloud.google.com/go/cloud/automl/apiv1beta1",
|
||||
service_yaml = "//google/cloud/automl:automl_v1beta1.yaml",
|
||||
deps = [
|
||||
":automl_go_proto",
|
||||
"//google/longrunning:longrunning_go_gapic",
|
||||
"//google/longrunning:longrunning_go_proto",
|
||||
"@com_google_cloud_go//longrunning:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "automl_go_gapic_test",
|
||||
srcs = [":automl_go_gapic_srcjar_test"],
|
||||
embed = [":automl_go_gapic"],
|
||||
importpath = "cloud.google.com/go/cloud/automl/apiv1beta1",
|
||||
)
|
||||
|
||||
# Opensource Packages
|
||||
go_gapic_assembly_pkg(
|
||||
name = "gapi-cloud-automl-v1beta1-go",
|
||||
deps = [
|
||||
":automl_go_gapic",
|
||||
":automl_go_gapic_srcjar-smoke-test.srcjar",
|
||||
":automl_go_gapic_srcjar-test.srcjar",
|
||||
":automl_go_proto",
|
||||
],
|
||||
)
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/classification.proto";
|
||||
import "google/cloud/automl/v1beta1/translation.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Contains annotation information that is relevant to AutoML.
|
||||
message AnnotationPayload {
|
||||
// Output only . Additional information about the annotation
|
||||
// specific to the AutoML solution.
|
||||
oneof detail {
|
||||
// Annotation details for translation.
|
||||
TranslationAnnotation translation = 2;
|
||||
|
||||
// Annotation details for content or image classification.
|
||||
ClassificationAnnotation classification = 3;
|
||||
}
|
||||
|
||||
// Output only . The resource ID of the annotation spec that
|
||||
// this annotation pertains to. The annotation spec comes from either an
|
||||
// ancestor dataset, or the dataset that was used to train the model in use.
|
||||
string annotation_spec_id = 1;
|
||||
|
||||
// Output only. The value of
|
||||
// [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
|
||||
// when the model was trained. Because this field returns a value at model
|
||||
// training time, for different models trained using the same dataset, the
|
||||
// returned value could be different as model owner could update the
|
||||
// display_name between any two model training.
|
||||
string display_name = 5;
|
||||
}
|
||||
|
|
@ -1,511 +0,0 @@
|
|||
type: com.google.api.codegen.ConfigProto
|
||||
config_schema_version: 1.0.0
|
||||
# The settings of generated code in a specific language.
|
||||
language_settings:
|
||||
java:
|
||||
package_name: com.google.cloud.automl.v1beta1
|
||||
python:
|
||||
package_name: google.cloud.automl_v1beta1.gapic
|
||||
go:
|
||||
package_name: cloud.google.com/go/cloud/automl/apiv1beta1
|
||||
csharp:
|
||||
package_name: Google.Cloud.Automl.V1Beta1
|
||||
ruby:
|
||||
package_name: Google::Cloud::Automl::V1Beta1
|
||||
php:
|
||||
package_name: Google\Cloud\AutoMl\V1beta1
|
||||
nodejs:
|
||||
package_name: automl.v1beta1
|
||||
domain_layer_location: google-cloud
|
||||
# A list of API interface configurations.
|
||||
interfaces:
|
||||
# The fully qualified name of the API interface.
|
||||
- name: google.cloud.automl.v1beta1.PredictionService
|
||||
# A list of resource collection configurations.
|
||||
# Consists of a name_pattern and an entity_name.
|
||||
# The name_pattern is a pattern to describe the names of the resources of this
|
||||
# collection, using the platform's conventions for URI patterns. A generator
|
||||
# may use this to generate methods to compose and decompose such names. The
|
||||
# pattern should use named placeholders as in `shelves/{shelf}/books/{book}`;
|
||||
# those will be taken as hints for the parameter names of the generated
|
||||
# methods. If empty, no name methods are generated.
|
||||
# The entity_name is the name to be used as a basis for generated methods and
|
||||
# classes.
|
||||
collections:
|
||||
- name_pattern: projects/{project}/locations/{location}/models/{model}
|
||||
entity_name: model
|
||||
# Definition for retryable codes.
|
||||
retry_codes_def:
|
||||
- name: idempotent
|
||||
retry_codes:
|
||||
- UNAVAILABLE
|
||||
- DEADLINE_EXCEEDED
|
||||
- name: non_idempotent
|
||||
retry_codes: []
|
||||
# Definition for retry/backoff parameters.
|
||||
retry_params_def:
|
||||
- name: default
|
||||
initial_retry_delay_millis: 100
|
||||
retry_delay_multiplier: 1.3
|
||||
max_retry_delay_millis: 60000
|
||||
initial_rpc_timeout_millis: 60000
|
||||
rpc_timeout_multiplier: 1
|
||||
max_rpc_timeout_millis: 60000
|
||||
total_timeout_millis: 600000
|
||||
# A list of method configurations.
|
||||
# Common properties:
|
||||
#
|
||||
# name - The simple name of the method.
|
||||
#
|
||||
# flattening - Specifies the configuration for parameter flattening.
|
||||
# Describes the parameter groups for which a generator should produce method
|
||||
# overloads which allow a client to directly pass request message fields as
|
||||
# method parameters. This information may or may not be used, depending on
|
||||
# the target language.
|
||||
# Consists of groups, which each represent a list of parameters to be
|
||||
# flattened. Each parameter listed must be a field of the request message.
|
||||
#
|
||||
# required_fields - Fields that are always required for a request to be
|
||||
# valid.
|
||||
#
|
||||
# resource_name_treatment - An enum that specifies how to treat the resource
|
||||
# name formats defined in the field_name_patterns and
|
||||
# response_field_name_patterns fields.
|
||||
# UNSET: default value
|
||||
# NONE: the collection configs will not be used by the generated code.
|
||||
# VALIDATE: string fields will be validated by the client against the
|
||||
# specified resource name formats.
|
||||
# STATIC_TYPES: the client will use generated types for resource names.
|
||||
#
|
||||
# page_streaming - Specifies the configuration for paging.
|
||||
# Describes information for generating a method which transforms a paging
|
||||
# list RPC into a stream of resources.
|
||||
# Consists of a request and a response.
|
||||
# The request specifies request information of the list method. It defines
|
||||
# which fields match the paging pattern in the request. The request consists
|
||||
# of a page_size_field and a token_field. The page_size_field is the name of
|
||||
# the optional field specifying the maximum number of elements to be
|
||||
# returned in the response. The token_field is the name of the field in the
|
||||
# request containing the page token.
|
||||
# The response specifies response information of the list method. It defines
|
||||
# which fields match the paging pattern in the response. The response
|
||||
# consists of a token_field and a resources_field. The token_field is the
|
||||
# name of the field in the response containing the next page token. The
|
||||
# resources_field is the name of the field in the response containing the
|
||||
# list of resources belonging to the page.
|
||||
#
|
||||
# retry_codes_name - Specifies the configuration for retryable codes. The
|
||||
# name must be defined in interfaces.retry_codes_def.
|
||||
#
|
||||
# retry_params_name - Specifies the configuration for retry/backoff
|
||||
# parameters. The name must be defined in interfaces.retry_params_def.
|
||||
#
|
||||
# field_name_patterns - Maps the field name of the request type to
|
||||
# entity_name of interfaces.collections.
|
||||
# Specifies the string pattern that the field must follow.
|
||||
#
|
||||
# timeout_millis - Specifies the default timeout for a non-retrying call. If
|
||||
# the call is retrying, refer to retry_params_name instead.
|
||||
methods:
|
||||
- name: Predict
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- payload
|
||||
- params
|
||||
required_fields:
|
||||
- name
|
||||
- payload
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 60000
|
||||
# The fully qualified name of the API interface.
|
||||
- name: google.cloud.automl.v1beta1.AutoMl
|
||||
# A list of resource collection configurations.
|
||||
# Consists of a name_pattern and an entity_name.
|
||||
# The name_pattern is a pattern to describe the names of the resources of this
|
||||
# collection, using the platform's conventions for URI patterns. A generator
|
||||
# may use this to generate methods to compose and decompose such names. The
|
||||
# pattern should use named placeholders as in `shelves/{shelf}/books/{book}`;
|
||||
# those will be taken as hints for the parameter names of the generated
|
||||
# methods. If empty, no name methods are generated.
|
||||
# The entity_name is the name to be used as a basis for generated methods and
|
||||
# classes.
|
||||
collections:
|
||||
- name_pattern: projects/{project}/locations/{location}
|
||||
entity_name: location
|
||||
- name_pattern: projects/{project}/locations/{location}/datasets/{dataset}
|
||||
entity_name: dataset
|
||||
- name_pattern: projects/{project}/locations/{location}/models/{model}
|
||||
entity_name: model
|
||||
- name_pattern: projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}
|
||||
entity_name: model_evaluation
|
||||
# Definition for retryable codes.
|
||||
retry_codes_def:
|
||||
- name: idempotent
|
||||
retry_codes:
|
||||
- UNAVAILABLE
|
||||
- DEADLINE_EXCEEDED
|
||||
- name: non_idempotent
|
||||
retry_codes: []
|
||||
# Definition for retry/backoff parameters.
|
||||
retry_params_def:
|
||||
- name: default
|
||||
initial_retry_delay_millis: 100
|
||||
retry_delay_multiplier: 1.3
|
||||
max_retry_delay_millis: 60000
|
||||
initial_rpc_timeout_millis: 20000
|
||||
rpc_timeout_multiplier: 1
|
||||
max_rpc_timeout_millis: 20000
|
||||
total_timeout_millis: 600000
|
||||
# A list of method configurations.
|
||||
# Common properties:
|
||||
#
|
||||
# name - The simple name of the method.
|
||||
#
|
||||
# flattening - Specifies the configuration for parameter flattening.
|
||||
# Describes the parameter groups for which a generator should produce method
|
||||
# overloads which allow a client to directly pass request message fields as
|
||||
# method parameters. This information may or may not be used, depending on
|
||||
# the target language.
|
||||
# Consists of groups, which each represent a list of parameters to be
|
||||
# flattened. Each parameter listed must be a field of the request message.
|
||||
#
|
||||
# required_fields - Fields that are always required for a request to be
|
||||
# valid.
|
||||
#
|
||||
# resource_name_treatment - An enum that specifies how to treat the resource
|
||||
# name formats defined in the field_name_patterns and
|
||||
# response_field_name_patterns fields.
|
||||
# UNSET: default value
|
||||
# NONE: the collection configs will not be used by the generated code.
|
||||
# VALIDATE: string fields will be validated by the client against the
|
||||
# specified resource name formats.
|
||||
# STATIC_TYPES: the client will use generated types for resource names.
|
||||
#
|
||||
# page_streaming - Specifies the configuration for paging.
|
||||
# Describes information for generating a method which transforms a paging
|
||||
# list RPC into a stream of resources.
|
||||
# Consists of a request and a response.
|
||||
# The request specifies request information of the list method. It defines
|
||||
# which fields match the paging pattern in the request. The request consists
|
||||
# of a page_size_field and a token_field. The page_size_field is the name of
|
||||
# the optional field specifying the maximum number of elements to be
|
||||
# returned in the response. The token_field is the name of the field in the
|
||||
# request containing the page token.
|
||||
# The response specifies response information of the list method. It defines
|
||||
# which fields match the paging pattern in the response. The response
|
||||
# consists of a token_field and a resources_field. The token_field is the
|
||||
# name of the field in the response containing the next page token. The
|
||||
# resources_field is the name of the field in the response containing the
|
||||
# list of resources belonging to the page.
|
||||
#
|
||||
# retry_codes_name - Specifies the configuration for retryable codes. The
|
||||
# name must be defined in interfaces.retry_codes_def.
|
||||
#
|
||||
# retry_params_name - Specifies the configuration for retry/backoff
|
||||
# parameters. The name must be defined in interfaces.retry_params_def.
|
||||
#
|
||||
# field_name_patterns - Maps the field name of the request type to
|
||||
# entity_name of interfaces.collections.
|
||||
# Specifies the string pattern that the field must follow.
|
||||
#
|
||||
# timeout_millis - Specifies the default timeout for a non-retrying call. If
|
||||
# the call is retrying, refer to retry_params_name instead.
|
||||
methods:
|
||||
- name: CreateDataset
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- dataset
|
||||
required_fields:
|
||||
- parent
|
||||
- dataset
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: location
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: GetDataset
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: dataset
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: ListDatasets
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: datasets
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: location
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: DeleteDataset
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: dataset
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
long_running:
|
||||
return_type: google.protobuf.Empty
|
||||
metadata_type: google.cloud.automl.v1beta1.OperationMetadata
|
||||
initial_poll_delay_millis: 500
|
||||
poll_delay_multiplier: 1.5
|
||||
max_poll_delay_millis: 5000
|
||||
total_poll_timeout_millis: 300000
|
||||
- name: ImportData
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- input_config
|
||||
required_fields:
|
||||
- name
|
||||
- input_config
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: dataset
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
long_running:
|
||||
return_type: google.protobuf.Empty
|
||||
metadata_type: google.cloud.automl.v1beta1.OperationMetadata
|
||||
initial_poll_delay_millis: 500
|
||||
poll_delay_multiplier: 1.5
|
||||
max_poll_delay_millis: 5000
|
||||
total_poll_timeout_millis: 300000
|
||||
- name: ExportData
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
- output_config
|
||||
required_fields:
|
||||
- name
|
||||
- output_config
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: dataset
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
long_running:
|
||||
return_type: google.protobuf.Empty
|
||||
metadata_type: google.cloud.automl.v1beta1.OperationMetadata
|
||||
initial_poll_delay_millis: 500
|
||||
poll_delay_multiplier: 1.5
|
||||
max_poll_delay_millis: 5000
|
||||
total_poll_timeout_millis: 300000
|
||||
- name: CreateModel
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
- model
|
||||
required_fields:
|
||||
- parent
|
||||
- model
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: location
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
long_running:
|
||||
return_type: google.cloud.automl.v1beta1.Model
|
||||
metadata_type: google.cloud.automl.v1beta1.OperationMetadata
|
||||
initial_poll_delay_millis: 500
|
||||
poll_delay_multiplier: 1.5
|
||||
max_poll_delay_millis: 5000
|
||||
total_poll_timeout_millis: 300000
|
||||
- name: GetModel
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: ListModels
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: model
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: location
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: DeleteModel
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
long_running:
|
||||
return_type: google.protobuf.Empty
|
||||
metadata_type: google.cloud.automl.v1beta1.OperationMetadata
|
||||
initial_poll_delay_millis: 500
|
||||
poll_delay_multiplier: 1.5
|
||||
max_poll_delay_millis: 5000
|
||||
total_poll_timeout_millis: 300000
|
||||
- name: DeployModel
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: UndeployModel
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: GetModelEvaluation
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- name
|
||||
required_fields:
|
||||
- name
|
||||
retry_codes_name: idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
name: model_evaluation
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
- name: ListModelEvaluations
|
||||
flattening:
|
||||
groups:
|
||||
- parameters:
|
||||
- parent
|
||||
required_fields:
|
||||
- parent
|
||||
page_streaming:
|
||||
request:
|
||||
page_size_field: page_size
|
||||
token_field: page_token
|
||||
response:
|
||||
token_field: next_page_token
|
||||
resources_field: model_evaluation
|
||||
retry_codes_name: non_idempotent
|
||||
retry_params_name: default
|
||||
field_name_patterns:
|
||||
parent: model
|
||||
resource_name_treatment: STATIC_TYPES
|
||||
timeout_millis: 5000
|
||||
resource_name_generation:
|
||||
- message_name: CreateDatasetRequest
|
||||
field_entity_map:
|
||||
parent: location
|
||||
- message_name: GetDatasetRequest
|
||||
field_entity_map:
|
||||
name: dataset
|
||||
- message_name: ListDatasetsRequest
|
||||
field_entity_map:
|
||||
parent: location
|
||||
- message_name: DeleteDatasetRequest
|
||||
field_entity_map:
|
||||
name: dataset
|
||||
- message_name: ImportDataRequest
|
||||
field_entity_map:
|
||||
name: dataset
|
||||
- message_name: ExportDataRequest
|
||||
field_entity_map:
|
||||
name: dataset
|
||||
- message_name: CreateModelRequest
|
||||
field_entity_map:
|
||||
parent: location
|
||||
- message_name: GetModelRequest
|
||||
field_entity_map:
|
||||
name: model
|
||||
- message_name: ListModelsRequest
|
||||
field_entity_map:
|
||||
parent: location
|
||||
- message_name: DeleteModelRequest
|
||||
field_entity_map:
|
||||
name: model
|
||||
- message_name: DeployModelRequest
|
||||
field_entity_map:
|
||||
name: model
|
||||
- message_name: UndeployModelRequest
|
||||
field_entity_map:
|
||||
name: model
|
||||
- message_name: GetModelEvaluationRequest
|
||||
field_entity_map:
|
||||
name: model_evaluation
|
||||
- message_name: ListModelEvaluationsRequest
|
||||
field_entity_map:
|
||||
parent: model
|
||||
- message_name: PredictRequest
|
||||
field_entity_map:
|
||||
name: model
|
||||
|
|
@ -1,121 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_outer_classname = "ClassificationProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Contains annotation details specific to classification.
|
||||
message ClassificationAnnotation {
|
||||
// Output only. A confidence estimate between 0.0 and 1.0. A higher value
|
||||
// means greater confidence that the annotation is positive. If a user
|
||||
// approves an annotation as negative or positive, the score value remains
|
||||
// unchanged. If a user creates an annotation, the score is 0 for negative or
|
||||
// 1 for positive.
|
||||
float score = 1;
|
||||
}
|
||||
|
||||
// Model evaluation metrics for classification problems.
|
||||
// Visible only to v1beta1
|
||||
message ClassificationEvaluationMetrics {
|
||||
// Metrics for a single confidence threshold.
|
||||
message ConfidenceMetricsEntry {
|
||||
// Output only. The confidence threshold value used to compute the metrics.
|
||||
float confidence_threshold = 1;
|
||||
|
||||
// Output only. Recall under the given confidence threshold.
|
||||
float recall = 2;
|
||||
|
||||
// Output only. Precision under the given confidence threshold.
|
||||
float precision = 3;
|
||||
|
||||
// Output only. The harmonic mean of recall and precision.
|
||||
float f1_score = 4;
|
||||
|
||||
// Output only. The recall when only considering the label that has the
|
||||
// highest prediction score and not below the confidence threshold for each
|
||||
// example.
|
||||
float recall_at1 = 5;
|
||||
|
||||
// Output only. The precision when only considering the label that has the
|
||||
// highest predictionscore and not below the confidence threshold for each
|
||||
// example.
|
||||
float precision_at1 = 6;
|
||||
|
||||
// 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].
|
||||
float f1_score_at1 = 7;
|
||||
}
|
||||
|
||||
// Confusion matrix of the model running the classification.
|
||||
message ConfusionMatrix {
|
||||
// Output only. A row in the confusion matrix.
|
||||
message Row {
|
||||
// Output only. Value of the specific cell in the confusion matrix.
|
||||
// The number of values each row is equal to the size of
|
||||
// annotatin_spec_id.
|
||||
repeated int32 example_count = 1;
|
||||
}
|
||||
|
||||
// Output only. IDs of the annotation specs used in the confusion matrix.
|
||||
repeated string annotation_spec_id = 1;
|
||||
|
||||
// Output only. Rows in the confusion matrix. The number of rows is equal to
|
||||
// the size of `annotation_spec_id`.
|
||||
// `row[i].value[j]` is the number of examples that have ground truth of the
|
||||
// `annotation_spec_id[i]` and are predicted as `annotation_spec_id[j]` by
|
||||
// the model being evaluated.
|
||||
repeated Row row = 2;
|
||||
}
|
||||
|
||||
// Output only. The Area under precision recall curve metric.
|
||||
float au_prc = 1;
|
||||
|
||||
// Output only. The Area under precision recall curve metric based on priors.
|
||||
float base_au_prc = 2;
|
||||
|
||||
// Output only. Metrics that have confidence thresholds.
|
||||
// Precision-recall curve can be derived from it.
|
||||
repeated ConfidenceMetricsEntry confidence_metrics_entry = 3;
|
||||
|
||||
// Output only. Confusion matrix of the evaluation.
|
||||
// Only set for MULTICLASS classification problems where number
|
||||
// of labels is no more than 10.
|
||||
// Only set for model level evaluation, not for evaluation per label.
|
||||
ConfusionMatrix confusion_matrix = 4;
|
||||
|
||||
// Output only. The annotation spec ids used for this evaluation.
|
||||
repeated string annotation_spec_id = 5;
|
||||
}
|
||||
|
||||
// Type of the classification problem.
|
||||
enum ClassificationType {
|
||||
// Should not be used, an un-set enum has this value by default.
|
||||
CLASSIFICATION_TYPE_UNSPECIFIED = 0;
|
||||
|
||||
// At most one label is allowed per example.
|
||||
MULTICLASS = 1;
|
||||
|
||||
// Multiple labels are allowed for one example.
|
||||
MULTILABEL = 2;
|
||||
}
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/io.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// A representation of an image.
|
||||
message Image {
|
||||
// Input only. The data representing the image.
|
||||
// For Predict calls [image_bytes][] must be set, as other options are not
|
||||
// currently supported by prediction API. You can read the contents of an
|
||||
// uploaded image by using the [content_uri][] field.
|
||||
oneof data {
|
||||
// Image content represented as a stream of bytes.
|
||||
// Note: As with all `bytes` fields, protobuffers use a pure binary
|
||||
// representation, whereas JSON representations use base64.
|
||||
bytes image_bytes = 1;
|
||||
|
||||
// An input config specifying the content of the image.
|
||||
InputConfig input_config = 6;
|
||||
}
|
||||
|
||||
// Output only. HTTP URI to the thumbnail image.
|
||||
string thumbnail_uri = 4;
|
||||
}
|
||||
|
||||
// A representation of a text snippet.
|
||||
message TextSnippet {
|
||||
// Required. The content of the text snippet as a string. Up to 250000
|
||||
// characters long.
|
||||
string content = 1;
|
||||
|
||||
// The format of the source text. For example, "text/html" or
|
||||
// "text/plain". If left blank the format is automatically determined from
|
||||
// the type of the uploaded content. The default is "text/html". Up to 25000
|
||||
// characters long.
|
||||
string mime_type = 2;
|
||||
|
||||
// Output only. HTTP URI where you can download the content.
|
||||
string content_uri = 4;
|
||||
}
|
||||
|
||||
// Example data used for training or prediction.
|
||||
message ExamplePayload {
|
||||
// Required. Input only. The example data.
|
||||
oneof payload {
|
||||
// An example image.
|
||||
Image image = 1;
|
||||
|
||||
// Example text.
|
||||
TextSnippet text_snippet = 2;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/annotation_payload.proto";
|
||||
import "google/cloud/automl/v1beta1/data_items.proto";
|
||||
import "google/cloud/automl/v1beta1/image.proto";
|
||||
import "google/cloud/automl/v1beta1/text.proto";
|
||||
import "google/cloud/automl/v1beta1/translation.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// A workspace for solving a single, particular machine learning (ML) problem.
|
||||
// A workspace contains examples that may be annotated.
|
||||
message Dataset {
|
||||
// Required.
|
||||
// The dataset metadata that is specific to the problem type.
|
||||
oneof dataset_metadata {
|
||||
// Metadata for a dataset used for translation.
|
||||
TranslationDatasetMetadata translation_dataset_metadata = 23;
|
||||
|
||||
// Metadata for a dataset used for image classification.
|
||||
ImageClassificationDatasetMetadata image_classification_dataset_metadata =
|
||||
24;
|
||||
|
||||
// Metadata for a dataset used for text classification.
|
||||
TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
|
||||
}
|
||||
|
||||
// Output only. The resource name of the dataset.
|
||||
// Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
|
||||
string name = 1;
|
||||
|
||||
// Required. The name of the dataset to show in the interface. The name can be
|
||||
// up to 32 characters
|
||||
// long and can consist only of ASCII Latin letters A-Z and a-z, underscores
|
||||
// (_), and ASCII digits 0-9.
|
||||
string display_name = 2;
|
||||
|
||||
// Output only. The number of examples in the dataset.
|
||||
int32 example_count = 21;
|
||||
|
||||
// Output only. Timestamp when this dataset was created.
|
||||
google.protobuf.Timestamp create_time = 14;
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/classification.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "ImageProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Dataset metadata that is specific to image classification.
|
||||
message ImageClassificationDatasetMetadata {
|
||||
// Required.
|
||||
// Type of the classification problem.
|
||||
ClassificationType classification_type = 1;
|
||||
}
|
||||
|
||||
// Model metadata for image classification.
|
||||
message ImageClassificationModelMetadata {
|
||||
// Optional. The ID of the `base` model. If it is specified, the new model
|
||||
// will be created based on the `base` model. Otherwise, the new model will be
|
||||
// created from scratch. The `base` model is expected to be in the same
|
||||
// `project` and `location` as the new model to create.
|
||||
string base_model_id = 1;
|
||||
|
||||
// Required. The train budget of creating this model. The actual
|
||||
// `train_cost` will be equal or less than this value.
|
||||
int64 train_budget = 2;
|
||||
|
||||
// Output only. The actual train cost of creating this model. If this
|
||||
// model is created from a `base` model, the train cost used to create the
|
||||
// `base` model are not included.
|
||||
int64 train_cost = 3;
|
||||
|
||||
// Output only. The reason that this create model operation stopped,
|
||||
// e.g. BUDGET_REACHED, CONVERGED.
|
||||
string stop_reason = 5;
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Input configuration.
|
||||
message InputConfig {
|
||||
// Required. The source of the input.
|
||||
oneof source {
|
||||
// The GCS location for the input content.
|
||||
GcsSource gcs_source = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Output configuration.
|
||||
message OutputConfig {
|
||||
// Required. The destination of the output.
|
||||
oneof destination {
|
||||
// The GCS location where the output must be written to.
|
||||
GcsDestination gcs_destination = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// The GCS location for the input content.
|
||||
message GcsSource {
|
||||
// Required. Google Cloud Storage URIs to input files, up to 2000 characters
|
||||
// long. Accepted forms:
|
||||
// * Full object path: gs://bucket/directory/object.csv
|
||||
repeated string input_uris = 1;
|
||||
}
|
||||
|
||||
// The GCS location where the output must be written to
|
||||
message GcsDestination {
|
||||
// Required. Google Cloud Storage URI to output directory, up to 2000
|
||||
// characters long.
|
||||
// Accepted forms:
|
||||
// * Prefix path: gs://bucket/directory
|
||||
// The requesting user must have write permission to the bucket.
|
||||
// The directory is created if it doesn't exist.
|
||||
string output_uri_prefix = 1;
|
||||
}
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/image.proto";
|
||||
import "google/cloud/automl/v1beta1/text.proto";
|
||||
import "google/cloud/automl/v1beta1/translation.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// API proto representing a trained machine learning model.
|
||||
message Model {
|
||||
// Deployment state of the model.
|
||||
enum DeploymentState {
|
||||
// Should not be used, an un-set enum has this value by default.
|
||||
DEPLOYMENT_STATE_UNSPECIFIED = 0;
|
||||
|
||||
// Model is deployed.
|
||||
DEPLOYED = 1;
|
||||
|
||||
// Model is not deployed.
|
||||
UNDEPLOYED = 2;
|
||||
}
|
||||
|
||||
// Required.
|
||||
// The model metadata that is specific to the problem type.
|
||||
// Must match the metadata type of the dataset used to train the model.
|
||||
oneof model_metadata {
|
||||
// Metadata for image classification models.
|
||||
ImageClassificationModelMetadata image_classification_model_metadata = 13;
|
||||
|
||||
// Metadata for text classification models.
|
||||
TextClassificationModelMetadata text_classification_model_metadata = 14;
|
||||
|
||||
// Metadata for translation models.
|
||||
TranslationModelMetadata translation_model_metadata = 15;
|
||||
}
|
||||
|
||||
// Output only.
|
||||
// Resource name of the model.
|
||||
// Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
|
||||
string name = 1;
|
||||
|
||||
// Required. The name of the model to show in the interface. The name can be
|
||||
// up to 32 characters
|
||||
// long and can consist only of ASCII Latin letters A-Z and a-z, underscores
|
||||
// (_), and ASCII digits 0-9.
|
||||
string display_name = 2;
|
||||
|
||||
// Required.
|
||||
// The resource ID of the dataset used to create the model. The dataset must
|
||||
// come from the
|
||||
// same ancestor project and location.
|
||||
string dataset_id = 3;
|
||||
|
||||
// Output only.
|
||||
// Timestamp when this model was created.
|
||||
google.protobuf.Timestamp create_time = 7;
|
||||
|
||||
// Output only.
|
||||
// Timestamp when this model was last updated.
|
||||
google.protobuf.Timestamp update_time = 11;
|
||||
|
||||
// Output only. Deployment state of the model.
|
||||
DeploymentState deployment_state = 8;
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/classification.proto";
|
||||
import "google/cloud/automl/v1beta1/translation.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Evaluation results of a model.
|
||||
message ModelEvaluation {
|
||||
// Output only. Problem type specific evaluation metrics.
|
||||
oneof metrics {
|
||||
// Evaluation metrics for models on classification problems models.
|
||||
ClassificationEvaluationMetrics classification_evaluation_metrics = 8;
|
||||
|
||||
// Evaluation metrics for models on translation models.
|
||||
TranslationEvaluationMetrics translation_evaluation_metrics = 9;
|
||||
}
|
||||
|
||||
// Output only.
|
||||
// Resource name of the model evaluation.
|
||||
// Format:
|
||||
//
|
||||
// `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
|
||||
string name = 1;
|
||||
|
||||
// Output only.
|
||||
// The ID of the annotation spec that the model evaluation applies to. The
|
||||
// ID is empty for overall model evaluation.
|
||||
// NOTE: Currently there is no way to obtain the display_name of the
|
||||
// annotation spec from its ID. To see the display_names, review the model
|
||||
// evaluations in the UI.
|
||||
string annotation_spec_id = 2;
|
||||
|
||||
// Output only.
|
||||
// Timestamp when this model evaluation was created.
|
||||
google.protobuf.Timestamp create_time = 5;
|
||||
|
||||
// Output only. The number of examples used for model evaluation.
|
||||
int32 evaluated_example_count = 6;
|
||||
}
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/model.proto";
|
||||
import "google/cloud/automl/v1beta1/model_evaluation.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/rpc/status.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Metadata used across all long running operations returned by AutoML API.
|
||||
message OperationMetadata {
|
||||
// Ouptut only. Details of specific operation. Even if this field is empty,
|
||||
// the presence allows to distinguish different types of operations.
|
||||
oneof details {
|
||||
// Details of CreateModel operation.
|
||||
CreateModelOperationMetadata create_model_details = 10;
|
||||
}
|
||||
|
||||
// Output only. Progress of operation. Range: [0, 100].
|
||||
int32 progress_percent = 13;
|
||||
|
||||
// Output only. Partial failures encountered.
|
||||
// E.g. single files that couldn't be read.
|
||||
// This field should never exceed 20 entries.
|
||||
// Status details field will contain standard GCP error details.
|
||||
repeated google.rpc.Status partial_failures = 2;
|
||||
|
||||
// Output only. Time when the operation was created.
|
||||
google.protobuf.Timestamp create_time = 3;
|
||||
|
||||
// Output only. Time when the operation was updated for the last time.
|
||||
google.protobuf.Timestamp update_time = 4;
|
||||
}
|
||||
|
||||
// Details of CreateModel operation.
|
||||
message CreateModelOperationMetadata {}
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/annotation_payload.proto";
|
||||
import "google/cloud/automl/v1beta1/data_items.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "PredictionServiceProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// AutoML Prediction API.
|
||||
service PredictionService {
|
||||
// Perform a prediction.
|
||||
rpc Predict(PredictRequest) returns (PredictResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{name=projects/*/locations/*/models/*}:predict"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
|
||||
message PredictRequest {
|
||||
// Name of the model requested to serve the prediction.
|
||||
string name = 1;
|
||||
|
||||
// Required.
|
||||
// Payload to perform a prediction on. The payload must match the
|
||||
// problem type that the model was trained to solve.
|
||||
ExamplePayload payload = 2;
|
||||
|
||||
// Additional domain-specific parameters, any string must be up to 25000
|
||||
// characters long.
|
||||
//
|
||||
// * For Image Classification:
|
||||
//
|
||||
// `score_threshold` - (float) A value from 0.0 to 1.0. When the model
|
||||
// makes predictions for an
|
||||
// image, it will only produce results that have at least this confidence
|
||||
// score threshold. The default is 0.5.
|
||||
map<string, string> params = 3;
|
||||
}
|
||||
|
||||
// Response message for
|
||||
// [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
|
||||
//
|
||||
// Currently, this is only
|
||||
// used to return an image recognition prediction result. More prediction
|
||||
// output metadata might be introduced in the future.
|
||||
message PredictResponse {
|
||||
// Prediction result.
|
||||
repeated AnnotationPayload payload = 1;
|
||||
|
||||
// Additional domain-specific prediction response metadata.
|
||||
map<string, string> metadata = 2;
|
||||
}
|
||||
|
|
@ -1,391 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/annotation_payload.proto";
|
||||
import "google/cloud/automl/v1beta1/dataset.proto";
|
||||
import "google/cloud/automl/v1beta1/io.proto";
|
||||
import "google/cloud/automl/v1beta1/model.proto";
|
||||
import "google/cloud/automl/v1beta1/model_evaluation.proto";
|
||||
import "google/cloud/automl/v1beta1/operations.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "AutoMlProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// AutoML Server API.
|
||||
//
|
||||
// The resource names are assigned by the server.
|
||||
// The server never reuses names that it has created after the resources with
|
||||
// those names are deleted.
|
||||
//
|
||||
// An ID of a resource is the last element of the item's resource name. For
|
||||
// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then
|
||||
// the id for the item is `{dataset_id}`.
|
||||
//
|
||||
service AutoMl {
|
||||
// Creates a dataset.
|
||||
rpc CreateDataset(CreateDatasetRequest) returns (Dataset) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{parent=projects/*/locations/*}/datasets"
|
||||
body: "dataset"
|
||||
};
|
||||
}
|
||||
|
||||
// Gets a dataset.
|
||||
rpc GetDataset(GetDatasetRequest) returns (Dataset) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{name=projects/*/locations/*/datasets/*}"
|
||||
};
|
||||
}
|
||||
|
||||
// Lists datasets in a project.
|
||||
rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{parent=projects/*/locations/*}/datasets"
|
||||
};
|
||||
}
|
||||
|
||||
// Deletes a dataset and all of its contents.
|
||||
// Returns empty response in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes,
|
||||
// and `delete_details` in the
|
||||
// [metadata][google.longrunning.Operation.metadata] field.
|
||||
rpc DeleteDataset(DeleteDatasetRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1beta1/{name=projects/*/locations/*/datasets/*}"
|
||||
};
|
||||
}
|
||||
|
||||
// Imports data into a dataset.
|
||||
// Returns an empty response in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes.
|
||||
rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:importData"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Exports dataset's data to a Google Cloud Storage bucket.
|
||||
// Returns an empty response in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes.
|
||||
rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:exportData"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Creates a model.
|
||||
// Returns a Model in the [response][google.longrunning.Operation.response]
|
||||
// field when it completes.
|
||||
// When you create a model, several model evaluations are created for it:
|
||||
// a global evaluation, and one evaluation for each annotation spec.
|
||||
rpc CreateModel(CreateModelRequest) returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{parent=projects/*/locations/*}/models"
|
||||
body: "model"
|
||||
};
|
||||
}
|
||||
|
||||
// Gets a model.
|
||||
rpc GetModel(GetModelRequest) returns (Model) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{name=projects/*/locations/*/models/*}"
|
||||
};
|
||||
}
|
||||
|
||||
// Lists models.
|
||||
rpc ListModels(ListModelsRequest) returns (ListModelsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{parent=projects/*/locations/*}/models"
|
||||
};
|
||||
}
|
||||
|
||||
// Deletes a model.
|
||||
// If a model is already deployed, this only deletes the model in AutoML BE,
|
||||
// and does not change the status of the deployed model in the production
|
||||
// environment.
|
||||
// Returns `google.protobuf.Empty` in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes,
|
||||
// and `delete_details` in the
|
||||
// [metadata][google.longrunning.Operation.metadata] field.
|
||||
rpc DeleteModel(DeleteModelRequest) returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1beta1/{name=projects/*/locations/*/models/*}"
|
||||
};
|
||||
}
|
||||
|
||||
// Deploys model.
|
||||
// Returns a [DeployModelResponse][] in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes.
|
||||
rpc DeployModel(DeployModelRequest) returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{name=projects/*/locations/*/models/*}:deploy"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Undeploys model.
|
||||
// Returns an `UndeployModelResponse` in the
|
||||
// [response][google.longrunning.Operation.response] field when it completes.
|
||||
rpc UndeployModel(UndeployModelRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1beta1/{name=projects/*/locations/*/models/*}:undeploy"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Gets a model evaluation.
|
||||
rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}"
|
||||
};
|
||||
}
|
||||
|
||||
// Lists model evaluations.
|
||||
rpc ListModelEvaluations(ListModelEvaluationsRequest)
|
||||
returns (ListModelEvaluationsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluations"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
|
||||
message CreateDatasetRequest {
|
||||
// The resource name of the project to create the dataset for.
|
||||
string parent = 1;
|
||||
|
||||
// The dataset to create.
|
||||
Dataset dataset = 2;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
|
||||
message GetDatasetRequest {
|
||||
// The resource name of the dataset to retrieve.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
|
||||
message ListDatasetsRequest {
|
||||
// The resource name of the project from which to list datasets.
|
||||
string parent = 1;
|
||||
|
||||
// An expression for filtering the results of the request.
|
||||
//
|
||||
// * `dataset_metadata` - for existence of the case.
|
||||
//
|
||||
// An example of using the filter is:
|
||||
//
|
||||
// * `translation_dataset_metadata:*` --> The dataset has
|
||||
// translation_dataset_metadata.
|
||||
string filter = 3;
|
||||
|
||||
// Requested page size. Server may return fewer results than requested.
|
||||
// If unspecified, server will pick a default size.
|
||||
int32 page_size = 4;
|
||||
|
||||
// A token identifying a page of results for the server to return
|
||||
// Typically obtained via
|
||||
// [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
|
||||
// of the previous
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
|
||||
// call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
|
||||
message ListDatasetsResponse {
|
||||
// The datasets read.
|
||||
repeated Dataset datasets = 1;
|
||||
|
||||
// A token to retrieve next page of results.
|
||||
// Pass to
|
||||
// [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
|
||||
// to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
|
||||
message DeleteDatasetRequest {
|
||||
// The resource name of the dataset to delete.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
|
||||
message ImportDataRequest {
|
||||
// Required. Dataset name. Dataset must already exist. All imported
|
||||
// annotations and examples will be added.
|
||||
string name = 1;
|
||||
|
||||
// Required. The desired input location.
|
||||
InputConfig input_config = 3;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
|
||||
message ExportDataRequest {
|
||||
// Required. The resource name of the dataset.
|
||||
string name = 1;
|
||||
|
||||
// Required. The desired output location.
|
||||
OutputConfig output_config = 3;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
|
||||
message CreateModelRequest {
|
||||
// Resource name of the parent project where the model is being created.
|
||||
string parent = 1;
|
||||
|
||||
// The model to create.
|
||||
Model model = 4;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
|
||||
message GetModelRequest {
|
||||
// Resource name of the model.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
|
||||
message ListModelsRequest {
|
||||
// Resource name of the project, from which to list the models.
|
||||
string parent = 1;
|
||||
|
||||
// An expression for filtering the results of the request.
|
||||
//
|
||||
// * `model_metadata` - for existence of the case.
|
||||
// * `dataset_id` - for = or !=.
|
||||
//
|
||||
// Some examples of using the filter are:
|
||||
//
|
||||
// * `image_classification_model_metadata:*` --> The model has
|
||||
// image_classification_model_metadata.
|
||||
// * `dataset_id=5` --> The model was created from a sibling dataset with
|
||||
// ID 5.
|
||||
string filter = 3;
|
||||
|
||||
// Requested page size.
|
||||
int32 page_size = 4;
|
||||
|
||||
// A token identifying a page of results for the server to return
|
||||
// Typically obtained via
|
||||
// [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
|
||||
// of the previous
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
|
||||
message ListModelsResponse {
|
||||
// List of models in the requested page.
|
||||
repeated Model model = 1;
|
||||
|
||||
// A token to retrieve next page of results.
|
||||
// Pass to [ListModels.page_token][] to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
|
||||
message DeleteModelRequest {
|
||||
// Resource name of the model being deleted.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
|
||||
message DeployModelRequest {
|
||||
// Resource name of the model to deploy.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
|
||||
message UndeployModelRequest {
|
||||
// Resource name of the model to undeploy.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
|
||||
message GetModelEvaluationRequest {
|
||||
// Resource name for the model evaluation.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
|
||||
message ListModelEvaluationsRequest {
|
||||
// Resource name of the model to list the model evaluations for.
|
||||
// If modelId is set as "-", this will list model evaluations from across all
|
||||
// models of the parent location.
|
||||
string parent = 1;
|
||||
|
||||
// An expression for filtering the results of the request.
|
||||
//
|
||||
// * `annotation_spec_id` - for =, != or existence. See example below for
|
||||
// the last.
|
||||
//
|
||||
// Some examples of using the filter are:
|
||||
//
|
||||
// * `annotation_spec_id!=4` --> The model evaluation was done for
|
||||
// annotation spec with ID different than 4.
|
||||
// * `NOT annotation_spec_id:*` --> The model evaluation was done for
|
||||
// aggregate of all annotation specs.
|
||||
string filter = 3;
|
||||
|
||||
// Requested page size.
|
||||
int32 page_size = 4;
|
||||
|
||||
// A token identifying a page of results for the server to return.
|
||||
// Typically obtained via
|
||||
// `ListModelEvaluationsResponse.next_page_token` of the previous
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
|
||||
// call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
|
||||
message ListModelEvaluationsResponse {
|
||||
// List of model evaluations in the requested page.
|
||||
repeated ModelEvaluation model_evaluation = 1;
|
||||
|
||||
// A token to retrieve next page of results.
|
||||
// Pass to [ListModelEvaluations.page_token][] to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/classification.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "TextProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Dataset metadata for classification.
|
||||
message TextClassificationDatasetMetadata {
|
||||
// Required.
|
||||
// Type of the classification problem.
|
||||
ClassificationType classification_type = 1;
|
||||
}
|
||||
|
||||
// Model metadata that is specific to text classification.
|
||||
message TextClassificationModelMetadata {}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.cloud.automl.v1beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/cloud/automl/v1beta1/data_items.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "TranslationProto";
|
||||
option java_package = "com.google.cloud.automl.v1beta1";
|
||||
option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
|
||||
|
||||
// Dataset metadata that is specific to translation.
|
||||
message TranslationDatasetMetadata {
|
||||
// Required. The BCP-47 language code of the source language.
|
||||
string source_language_code = 1;
|
||||
|
||||
// Required. The BCP-47 language code of the target language.
|
||||
string target_language_code = 2;
|
||||
}
|
||||
|
||||
// Evaluation metrics for the dataset.
|
||||
message TranslationEvaluationMetrics {
|
||||
// Output only. BLEU score.
|
||||
double bleu_score = 1;
|
||||
|
||||
// Output only. BLEU score for base model.
|
||||
double base_bleu_score = 2;
|
||||
}
|
||||
|
||||
// Model metadata that is specific to translation.
|
||||
message TranslationModelMetadata {
|
||||
// The resource name of the model to use as a baseline to train the custom
|
||||
// model. If unset, we use the default base model provided by Google
|
||||
// Translate. Format:
|
||||
// `projects/{project_id}/locations/{location_id}/models/{model_id}`
|
||||
string base_model = 1;
|
||||
|
||||
// Output only. Inferred from the dataset.
|
||||
// The source languge (The BCP-47 language code) that is used for training.
|
||||
string source_language_code = 2;
|
||||
|
||||
// Output only. The target languge (The BCP-47 language code) that is used for
|
||||
// training.
|
||||
string target_language_code = 3;
|
||||
}
|
||||
|
||||
// Annotation details specific to translation.
|
||||
message TranslationAnnotation {
|
||||
// Output only . The translated content.
|
||||
TextSnippet translated_content = 1;
|
||||
}
|
||||
Loading…
Reference in New Issue