123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- syntax = "proto3";
- package google.cloud.speech.v1p1beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/speech/v1p1beta1/resource.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option cc_enable_arenas = true;
- option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech";
- option java_multiple_files = true;
- option java_outer_classname = "SpeechAdaptationProto";
- option java_package = "com.google.cloud.speech.v1p1beta1";
- option objc_class_prefix = "GCS";
- service Adaptation {
- option (google.api.default_host) = "speech.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
-
-
- rpc CreatePhraseSet(CreatePhraseSetRequest) returns (PhraseSet) {
- option (google.api.http) = {
- post: "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets"
- body: "*"
- };
- option (google.api.method_signature) = "parent,phrase_set,phrase_set_id";
- }
-
- rpc GetPhraseSet(GetPhraseSetRequest) returns (PhraseSet) {
- option (google.api.http) = {
- get: "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListPhraseSet(ListPhraseSetRequest) returns (ListPhraseSetResponse) {
- option (google.api.http) = {
- get: "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc UpdatePhraseSet(UpdatePhraseSetRequest) returns (PhraseSet) {
- option (google.api.http) = {
- patch: "/v1p1beta1/{phrase_set.name=projects/*/locations/*/phraseSets/*}"
- body: "phrase_set"
- };
- option (google.api.method_signature) = "phrase_set,update_mask";
- }
-
- rpc DeletePhraseSet(DeletePhraseSetRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateCustomClass(CreateCustomClassRequest) returns (CustomClass) {
- option (google.api.http) = {
- post: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses"
- body: "*"
- };
- option (google.api.method_signature) = "parent,custom_class,custom_class_id";
- }
-
- rpc GetCustomClass(GetCustomClassRequest) returns (CustomClass) {
- option (google.api.http) = {
- get: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) {
- option (google.api.http) = {
- get: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc UpdateCustomClass(UpdateCustomClassRequest) returns (CustomClass) {
- option (google.api.http) = {
- patch: "/v1p1beta1/{custom_class.name=projects/*/locations/*/customClasses/*}"
- body: "custom_class"
- };
- option (google.api.method_signature) = "custom_class,update_mask";
- }
-
- rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}"
- };
- option (google.api.method_signature) = "name";
- }
- }
- message CreatePhraseSetRequest {
-
-
-
-
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "speech.googleapis.com/PhraseSet"
- }
- ];
-
-
-
-
-
- string phrase_set_id = 2 [(google.api.field_behavior) = REQUIRED];
-
- PhraseSet phrase_set = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdatePhraseSetRequest {
-
-
-
-
-
-
-
-
-
-
-
-
- PhraseSet phrase_set = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message GetPhraseSetRequest {
-
-
-
-
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "speech.googleapis.com/PhraseSet"
- }
- ];
- }
- message ListPhraseSetRequest {
-
-
-
-
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "speech.googleapis.com/PhraseSet"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
- }
- message ListPhraseSetResponse {
-
- repeated PhraseSet phrase_sets = 1;
-
-
- string next_page_token = 2;
- }
- message DeletePhraseSetRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "speech.googleapis.com/PhraseSet"
- }
- ];
- }
- message CreateCustomClassRequest {
-
-
-
-
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "speech.googleapis.com/CustomClass"
- }
- ];
-
-
-
-
-
- string custom_class_id = 2 [(google.api.field_behavior) = REQUIRED];
-
- CustomClass custom_class = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateCustomClassRequest {
-
-
-
-
-
-
-
-
-
-
-
-
- CustomClass custom_class = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message GetCustomClassRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "speech.googleapis.com/CustomClass"
- }
- ];
- }
- message ListCustomClassesRequest {
-
-
-
-
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "speech.googleapis.com/CustomClass"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
- }
- message ListCustomClassesResponse {
-
- repeated CustomClass custom_classes = 1;
-
-
- string next_page_token = 2;
- }
- message DeleteCustomClassRequest {
-
-
-
-
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "speech.googleapis.com/CustomClass"
- }
- ];
- }
|