Synchronize new proto/yaml changes.
PiperOrigin-RevId: 272970911
This commit is contained in:
parent
d9576d95b4
commit
063d82fe6f
|
|
@ -20,8 +20,6 @@ package google.cloud.automl.v1;
|
|||
import "google/cloud/automl/v1/io.proto";
|
||||
import "google/cloud/automl/v1/model.proto";
|
||||
import "google/cloud/automl/v1/model_evaluation.proto";
|
||||
import "google/cloud/automl/v1/prediction_service.proto";
|
||||
import "google/cloud/automl/v1/service.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/rpc/status.proto";
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ syntax = "proto3";
|
|||
package google.cloud.automl.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/client.proto";
|
||||
import "google/cloud/automl/v1/annotation_payload.proto";
|
||||
import "google/cloud/automl/v1/data_items.proto";
|
||||
import "google/cloud/automl/v1/io.proto";
|
||||
import "google/cloud/automl/v1/operations.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/api/client.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
|
||||
option csharp_namespace = "Google.Cloud.AutoML.V1";
|
||||
|
|
@ -38,7 +39,8 @@ option ruby_package = "Google::Cloud::AutoML::V1";
|
|||
// snake_case or kebab-case, either of those cases is accepted.
|
||||
service PredictionService {
|
||||
option (google.api.default_host) = "automl.googleapis.com";
|
||||
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
|
||||
option (google.api.oauth_scopes) =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
// Perform an online prediction. The prediction result will be directly
|
||||
// returned in the response.
|
||||
|
|
@ -53,7 +55,8 @@ service PredictionService {
|
|||
}
|
||||
}
|
||||
|
||||
// Request message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
|
||||
// Request message for
|
||||
// [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
|
||||
message PredictRequest {
|
||||
// Name of the model requested to serve the prediction.
|
||||
string name = 1;
|
||||
|
|
@ -67,7 +70,8 @@ message PredictRequest {
|
|||
map<string, string> params = 3;
|
||||
}
|
||||
|
||||
// Response message for [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
|
||||
// Response message for
|
||||
// [PredictionService.Predict][google.cloud.automl.v1.PredictionService.Predict].
|
||||
message PredictResponse {
|
||||
// Prediction result.
|
||||
// Translation and Text Sentiment will return precisely one payload.
|
||||
|
|
|
|||
|
|
@ -18,14 +18,15 @@ syntax = "proto3";
|
|||
package google.cloud.automl.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/client.proto";
|
||||
import "google/cloud/automl/v1/annotation_payload.proto";
|
||||
import "google/cloud/automl/v1/dataset.proto";
|
||||
import "google/cloud/automl/v1/io.proto";
|
||||
import "google/cloud/automl/v1/model.proto";
|
||||
import "google/cloud/automl/v1/model_evaluation.proto";
|
||||
import "google/cloud/automl/v1/operations.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/api/client.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
|
||||
option csharp_namespace = "Google.Cloud.AutoML.V1";
|
||||
|
|
@ -51,10 +52,12 @@ option ruby_package = "Google::Cloud::AutoML::V1";
|
|||
// snake_case or kebab-case, either of those cases is accepted.
|
||||
service AutoMl {
|
||||
option (google.api.default_host) = "automl.googleapis.com";
|
||||
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
|
||||
option (google.api.oauth_scopes) =
|
||||
"https://www.googleapis.com/auth/cloud-platform";
|
||||
|
||||
// Creates a dataset.
|
||||
rpc CreateDataset(CreateDatasetRequest) returns (google.longrunning.Operation) {
|
||||
rpc CreateDataset(CreateDatasetRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/{parent=projects/*/locations/*}/datasets"
|
||||
body: "dataset"
|
||||
|
|
@ -88,7 +91,8 @@ service AutoMl {
|
|||
// [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) {
|
||||
rpc DeleteDataset(DeleteDatasetRequest)
|
||||
returns (google.longrunning.Operation) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/{name=projects/*/locations/*/datasets/*}"
|
||||
};
|
||||
|
|
@ -165,14 +169,16 @@ service AutoMl {
|
|||
}
|
||||
|
||||
// Lists model evaluations.
|
||||
rpc ListModelEvaluations(ListModelEvaluationsRequest) returns (ListModelEvaluationsResponse) {
|
||||
rpc ListModelEvaluations(ListModelEvaluationsRequest)
|
||||
returns (ListModelEvaluationsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/{parent=projects/*/locations/*/models/*}/modelEvaluations"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
|
||||
// Request message for
|
||||
// [AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
|
||||
message CreateDatasetRequest {
|
||||
// The resource name of the project to create the dataset for.
|
||||
string parent = 1;
|
||||
|
|
@ -181,13 +187,15 @@ message CreateDatasetRequest {
|
|||
Dataset dataset = 2;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
|
||||
// Request message for
|
||||
// [AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
|
||||
message GetDatasetRequest {
|
||||
// The resource name of the dataset to retrieve.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
|
||||
// Request message for
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
|
||||
message ListDatasetsRequest {
|
||||
// The resource name of the project from which to list datasets.
|
||||
string parent = 1;
|
||||
|
|
@ -208,22 +216,27 @@ message ListDatasetsRequest {
|
|||
|
||||
// A token identifying a page of results for the server to return
|
||||
// Typically obtained via
|
||||
// [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous
|
||||
// [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token]
|
||||
// of the previous
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
|
||||
// Response message for
|
||||
// [AutoMl.ListDatasets][google.cloud.automl.v1.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.v1.ListDatasetsRequest.page_token] to obtain that page.
|
||||
// Pass to
|
||||
// [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token]
|
||||
// to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
|
||||
// Request message for
|
||||
// [AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
|
||||
message UpdateDatasetRequest {
|
||||
// The dataset which replaces the resource on the server.
|
||||
Dataset dataset = 1;
|
||||
|
|
@ -232,13 +245,15 @@ message UpdateDatasetRequest {
|
|||
google.protobuf.FieldMask update_mask = 2;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
|
||||
// Request message for
|
||||
// [AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
|
||||
message DeleteDatasetRequest {
|
||||
// The resource name of the dataset to delete.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
|
||||
// Request message for
|
||||
// [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
|
||||
message ImportDataRequest {
|
||||
// Required. Dataset name. Dataset must already exist. All imported
|
||||
// annotations and examples will be added.
|
||||
|
|
@ -249,7 +264,8 @@ message ImportDataRequest {
|
|||
InputConfig input_config = 3;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
|
||||
// Request message for
|
||||
// [AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
|
||||
message ExportDataRequest {
|
||||
// Required. The resource name of the dataset.
|
||||
string name = 1;
|
||||
|
|
@ -258,7 +274,8 @@ message ExportDataRequest {
|
|||
OutputConfig output_config = 3;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
|
||||
// Request message for
|
||||
// [AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
|
||||
message CreateModelRequest {
|
||||
// Resource name of the parent project where the model is being created.
|
||||
string parent = 1;
|
||||
|
|
@ -267,13 +284,15 @@ message CreateModelRequest {
|
|||
Model model = 4;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
|
||||
// Request message for
|
||||
// [AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
|
||||
message GetModelRequest {
|
||||
// Resource name of the model.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
|
||||
// Request message for
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
|
||||
message ListModelsRequest {
|
||||
// Resource name of the project, from which to list the models.
|
||||
string parent = 1;
|
||||
|
|
@ -294,28 +313,34 @@ message ListModelsRequest {
|
|||
|
||||
// A token identifying a page of results for the server to return
|
||||
// Typically obtained via
|
||||
// [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous
|
||||
// [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token]
|
||||
// of the previous
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
|
||||
// Response message for
|
||||
// [AutoMl.ListModels][google.cloud.automl.v1.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 [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page.
|
||||
// Pass to
|
||||
// [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token]
|
||||
// to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
|
||||
// Request message for
|
||||
// [AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
|
||||
message DeleteModelRequest {
|
||||
// Resource name of the model being deleted.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
|
||||
// Request message for
|
||||
// [AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
|
||||
message UpdateModelRequest {
|
||||
// The model which replaces the resource on the server.
|
||||
Model model = 1;
|
||||
|
|
@ -324,13 +349,15 @@ message UpdateModelRequest {
|
|||
google.protobuf.FieldMask update_mask = 2;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
|
||||
// Request message for
|
||||
// [AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
|
||||
message GetModelEvaluationRequest {
|
||||
// Resource name for the model evaluation.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
|
||||
// Request message for
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.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
|
||||
|
|
@ -355,18 +382,24 @@ message ListModelEvaluationsRequest {
|
|||
|
||||
// A token identifying a page of results for the server to return.
|
||||
// Typically obtained via
|
||||
// [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call.
|
||||
// [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token]
|
||||
// of the previous
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations]
|
||||
// call.
|
||||
string page_token = 6;
|
||||
}
|
||||
|
||||
// Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
|
||||
// Response message for
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.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 the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page.
|
||||
// Pass to the
|
||||
// [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token]
|
||||
// field of a new
|
||||
// [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations]
|
||||
// request to obtain that page.
|
||||
string next_page_token = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue