Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
feat: publish proto updates for v1beta1 surface
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Mar 3, 2020
1 parent ddf4a9a commit 8b4a2b5
Show file tree
Hide file tree
Showing 42 changed files with 1,412 additions and 2,161 deletions.
3 changes: 1 addition & 2 deletions protos/google/cloud/automl/v1beta1/annotation_payload.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// 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";

Expand Down
13 changes: 8 additions & 5 deletions protos/google/cloud/automl/v1beta1/annotation_spec.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,12 @@
// 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/resource.proto";
import "google/api/annotations.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
Expand All @@ -27,16 +27,19 @@ option ruby_package = "Google::Cloud::AutoML::V1beta1";

// A definition of an annotation spec.
message AnnotationSpec {
option (google.api.resource) = {
type: "automl.googleapis.com/AnnotationSpec"
pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}"
};

// Output only. Resource name of the annotation spec.
// Form:
//
// 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
string name = 1;

// Required.
// The name of the annotation spec to show in the interface. The name can be
// Required. The name of the annotation spec to show in the interface. The name can be
// up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
// (_), and ASCII digits 0-9.
string display_name = 2;

// Output only. The number of examples in the parent dataset
Expand Down
14 changes: 4 additions & 10 deletions protos/google/cloud/automl/v1beta1/classification.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,14 +11,13 @@
// 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/temporal.proto";
import "google/api/annotations.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
option java_outer_classname = "ClassificationProto";
Expand Down Expand Up @@ -126,10 +125,7 @@ message ClassificationEvaluationMetrics {
// for each example.
float false_positive_rate_at1 = 9;

// 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].
// 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;

// Output only. The number of model created labels that match a ground truth
Expand All @@ -156,9 +152,7 @@ message ClassificationEvaluationMetrics {
// Output only. Value of the specific cell in the confusion matrix.
// The number of values each row has (i.e. the length of the row) is equal
// to the length of the `annotation_spec_id` field or, if that one is not
// populated, length of the
// [display_name][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name]
// field.
// populated, length of the [display_name][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
repeated int32 example_count = 1;
}

Expand Down
9 changes: 7 additions & 2 deletions protos/google/cloud/automl/v1beta1/column_spec.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,12 @@
// 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/resource.proto";
import "google/cloud/automl/v1beta1/data_stats.proto";
import "google/cloud/automl/v1beta1/data_types.proto";
import "google/api/annotations.proto";
Expand All @@ -32,6 +32,11 @@ option ruby_package = "Google::Cloud::AutoML::V1beta1";
// Used by:
// * Tables
message ColumnSpec {
option (google.api.resource) = {
type: "automl.googleapis.com/ColumnSpec"
pattern: "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}"
};

// Identifies the table's column, and its correlation with the column this
// ColumnSpec describes.
message CorrelatedColumn {
Expand Down
40 changes: 15 additions & 25 deletions protos/google/cloud/automl/v1beta1/data_items.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,19 +11,19 @@
// 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/geometry.proto";
import "google/cloud/automl/v1beta1/io.proto";
import "google/cloud/automl/v1beta1/temporal.proto";
import "google/cloud/automl/v1beta1/text_segment.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/api/annotations.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
option java_multiple_files = true;
Expand All @@ -35,11 +35,9 @@ option ruby_package = "Google::Cloud::AutoML::V1beta1";
// Only images up to 30MB in size are supported.
message Image {
// Input only. The data representing the image.
// For Predict calls
// [image_bytes][google.cloud.automl.v1beta1.Image.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][google.cloud.automl.v1beta1.Image.content_uri] field.
// For Predict calls [image_bytes][google.cloud.automl.v1beta1.Image.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][google.cloud.automl.v1beta1.Image.content_uri] field.
oneof data {
// Image content represented as a stream of bytes.
// Note: As with all `bytes` fields, protobuffers use a pure binary
Expand All @@ -60,11 +58,9 @@ message TextSnippet {
// characters long.
string content = 1;

// Optional. The format of
// [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the
// only two allowed values are "text/html" and "text/plain". If left blank,
// the format is automatically determined from the type of the uploaded
// [content][google.cloud.automl.v1beta1.TextSnippet.content].
// Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed
// values are "text/html" and "text/plain". If left blank, the format is
// automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content].
string mime_type = 2;

// Output only. HTTP URI where you can download the content.
Expand Down Expand Up @@ -100,9 +96,7 @@ message DocumentDimensions {

// A structured text document e.g. a PDF.
message Document {
// Describes the layout information of a
// [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in
// the document.
// Describes the layout information of a [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the document.
message Layout {
// The type of TextSegment in the context of the original document.
enum TextSegmentType {
Expand Down Expand Up @@ -151,14 +145,12 @@ message Document {
// [document_text][google.cloud.automl.v1beta1.Document.document_text].
TextSegment text_segment = 1;

// Page number of the
// [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment]
// in the original document, starts from 1.
// Page number of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the original document, starts
// from 1.
int32 page_number = 2;

// The position of the
// [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment]
// in the page. Contains exactly 4
// The position of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in the page.
// Contains exactly 4
//
// [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices]
// and they are connected by edges in the order provided, which will
Expand All @@ -168,9 +160,7 @@ message Document {
// Coordinates are based on top-left as point (0,0).
BoundingPoly bounding_poly = 3;

// The type of the
// [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment]
// in document.
// The type of the [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] in document.
TextSegmentType text_segment_type = 4;
}

Expand Down
3 changes: 1 addition & 2 deletions protos/google/cloud/automl/v1beta1/data_stats.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// 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";

Expand Down
3 changes: 1 addition & 2 deletions protos/google/cloud/automl/v1beta1/data_types.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// 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";

Expand Down
9 changes: 7 additions & 2 deletions protos/google/cloud/automl/v1beta1/dataset.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,12 +11,12 @@
// 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/resource.proto";
import "google/cloud/automl/v1beta1/image.proto";
import "google/cloud/automl/v1beta1/tables.proto";
import "google/cloud/automl/v1beta1/text.proto";
Expand All @@ -34,6 +34,11 @@ option ruby_package = "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 {
option (google.api.resource) = {
type: "automl.googleapis.com/Dataset"
pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
};

// Required.
// The dataset metadata that is specific to the problem type.
oneof dataset_metadata {
Expand Down
3 changes: 1 addition & 2 deletions protos/google/cloud/automl/v1beta1/detection.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// 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";

Expand Down
3 changes: 1 addition & 2 deletions protos/google/cloud/automl/v1beta1/geometry.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// 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";

Expand Down

0 comments on commit 8b4a2b5

Please sign in to comment.