Skip to content

Commit

Permalink
feat: regenerate, fix docstring issues
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Nov 13, 2019
1 parent 179df64 commit 95cbec9
Show file tree
Hide file tree
Showing 42 changed files with 264 additions and 404 deletions.
4 changes: 2 additions & 2 deletions automl/google/cloud/automl_v1/proto/annotation_payload.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
option java_multiple_files = true;
option java_package = "com.google.cloud.automl.v1";
option php_namespace = "Google\\Cloud\\AutoML\\V1";
option php_namespace = "Google\\Cloud\\AutoMl\\V1";
option ruby_package = "Google::Cloud::AutoML::V1";

// Contains annotation information that is relevant to AutoML.
Expand Down Expand Up @@ -59,7 +59,7 @@ message AnnotationPayload {
string annotation_spec_id = 1;

// Output only. The value of
// [display_name][google.cloud.automl.v1p1beta.AnnotationSpec.display_name]
// [display_name][google.cloud.automl.v1.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
Expand Down
14 changes: 7 additions & 7 deletions automl/google/cloud/automl_v1/proto/annotation_payload_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion automl/google/cloud/automl_v1/proto/annotation_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
option java_multiple_files = true;
option java_package = "com.google.cloud.automl.v1";
option php_namespace = "Google\\Cloud\\AutoML\\V1";
option php_namespace = "Google\\Cloud\\AutoMl\\V1";
option ruby_package = "Google::Cloud::AutoML::V1";

// A definition of an annotation spec.
Expand Down
4 changes: 2 additions & 2 deletions automl/google/cloud/automl_v1/proto/annotation_spec_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion automl/google/cloud/automl_v1/proto/classification.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;autom
option java_multiple_files = true;
option java_outer_classname = "ClassificationProto";
option java_package = "com.google.cloud.automl.v1";
option php_namespace = "Google\\Cloud\\AutoML\\V1";
option php_namespace = "Google\\Cloud\\AutoMl\\V1";
option ruby_package = "Google::Cloud::AutoML::V1";

// Type of the classification problem.
Expand Down
4 changes: 2 additions & 2 deletions automl/google/cloud/automl_v1/proto/classification_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 23 additions & 21 deletions automl/google/cloud/automl_v1/proto/data_items.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,30 @@ syntax = "proto3";

package google.cloud.automl.v1;

import "google/api/annotations.proto";
import "google/cloud/automl/v1/geometry.proto";
import "google/cloud/automl/v1/io.proto";
import "google/cloud/automl/v1/text_segment.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/api/annotations.proto";

option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
option java_multiple_files = true;
option java_package = "com.google.cloud.automl.v1";
option php_namespace = "Google\\Cloud\\AutoML\\V1";
option php_namespace = "Google\\Cloud\\AutoMl\\V1";
option ruby_package = "Google::Cloud::AutoML::V1";

// A representation of an image.
// 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.v1.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.v1.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
// representation, whereas JSON representations use base64.
bytes image_bytes = 1;

// An input config specifying the content of the image.
ImageInputConfig image_input_config = 7;
}

// Output only. HTTP URI to the thumbnail image.
Expand All @@ -59,9 +53,11 @@ message TextSnippet {
// characters long.
string content = 1;

// Optional. The format of [content][google.cloud.automl.v1.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.v1.TextSnippet.content].
// Optional. The format of
// [content][google.cloud.automl.v1.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.v1.TextSnippet.content].
string mime_type = 2;

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

// A structured text document e.g. a PDF.
message Document {
// Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
// Describes the layout information of a
// [text_segment][google.cloud.automl.v1.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 @@ -143,25 +141,29 @@ message Document {
}

// Text Segment that represents a segment in
// [document_text][google.cloud.automl.v1p1beta.Document.document_text].
// [document_text][google.cloud.automl.v1.Document.document_text].
TextSegment text_segment = 1;

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

// The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
// Contains exactly 4
// The position of the
// [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in
// the page. Contains exactly 4
//
// [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices]
// [normalized_vertices][google.cloud.automl.v1.BoundingPoly.normalized_vertices]
// and they are connected by edges in the order provided, which will
// represent a rectangle parallel to the frame. The
// [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are
// [NormalizedVertex-s][google.cloud.automl.v1.NormalizedVertex] are
// relative to the page.
// Coordinates are based on top-left as point (0,0).
BoundingPoly bounding_poly = 3;

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

Expand All @@ -184,7 +186,7 @@ message Document {

// Example data used for training or prediction.
message ExamplePayload {
// Required. Input only. The example data.
// Required. The example data.
oneof payload {
// Example image.
Image image = 1;
Expand Down
Loading

0 comments on commit 95cbec9

Please sign in to comment.