Skip to content

Commit 9ea608d

Browse files
yoshi-automationtseaver
authored andcommitted
chore(automl): lint protos, update requests intersphinx URL (via synth) (googleapis#9400)
1 parent b7206f6 commit 9ea608d

8 files changed

Lines changed: 145 additions & 110 deletions

File tree

automl/docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
u"google-cloud-automl Documentation",
319319
author,
320320
"google-cloud-automl",
321-
"GAPIC library for the {metadata.shortName} v1beta1 service",
321+
"GAPIC library for the {metadata.shortName} v1 service",
322322
"APIs",
323323
)
324324
]
@@ -344,7 +344,7 @@
344344
"google-gax": ("https://gax-python.readthedocs.io/en/latest/", None),
345345
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest", None),
346346
"grpc": ("https://grpc.io/grpc/python/", None),
347-
"requests": ("https://requests.kennethreitz.org/en/stable/", None),
347+
"requests": ("https://requests.kennethreitz.org/en/master/", None),
348348
"fastavro": ("https://fastavro.readthedocs.io/en/stable/", None),
349349
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
350350
}

automl/google/cloud/automl_v1/proto/operations.proto

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ package google.cloud.automl.v1;
2020
import "google/cloud/automl/v1/io.proto";
2121
import "google/cloud/automl/v1/model.proto";
2222
import "google/cloud/automl/v1/model_evaluation.proto";
23-
import "google/cloud/automl/v1/prediction_service.proto";
24-
import "google/cloud/automl/v1/service.proto";
2523
import "google/protobuf/empty.proto";
2624
import "google/protobuf/timestamp.proto";
2725
import "google/rpc/status.proto";

automl/google/cloud/automl_v1/proto/operations_pb2.py

Lines changed: 7 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

automl/google/cloud/automl_v1/proto/prediction_service.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ syntax = "proto3";
1818
package google.cloud.automl.v1;
1919

2020
import "google/api/annotations.proto";
21+
import "google/api/client.proto";
2122
import "google/cloud/automl/v1/annotation_payload.proto";
2223
import "google/cloud/automl/v1/data_items.proto";
2324
import "google/cloud/automl/v1/io.proto";
25+
import "google/cloud/automl/v1/operations.proto";
2426
import "google/longrunning/operations.proto";
25-
import "google/api/client.proto";
2627

2728
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
2829
option csharp_namespace = "Google.Cloud.AutoML.V1";
@@ -38,7 +39,8 @@ option ruby_package = "Google::Cloud::AutoML::V1";
3839
// snake_case or kebab-case, either of those cases is accepted.
3940
service PredictionService {
4041
option (google.api.default_host) = "automl.googleapis.com";
41-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
42+
option (google.api.oauth_scopes) =
43+
"https://www.googleapis.com/auth/cloud-platform";
4244

4345
// Perform an online prediction. The prediction result will be directly
4446
// returned in the response.
@@ -53,7 +55,8 @@ service PredictionService {
5355
}
5456
}
5557

56-
// Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
58+
// Request message for
59+
// [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
5760
message PredictRequest {
5861
// Name of the model requested to serve the prediction.
5962
string name = 1;
@@ -67,7 +70,8 @@ message PredictRequest {
6770
map<string, string> params = 3;
6871
}
6972

70-
// Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
73+
// Response message for
74+
// [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
7175
message PredictResponse {
7276
// Prediction result.
7377
// Translation and Text Sentiment will return precisely one payload.

automl/google/cloud/automl_v1/proto/prediction_service_pb2.py

Lines changed: 17 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)