google-cloud-speech-v1p1beta1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Speech
24
+ module V1p1beta1
25
+ module Adaptation
26
+ # Credentials for the Adaptation API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform"
30
+ ]
31
+ self.env_vars = [
32
+ "SPEECH_CREDENTIALS",
33
+ "SPEECH_KEYFILE",
34
+ "GOOGLE_CLOUD_CREDENTIALS",
35
+ "GOOGLE_CLOUD_KEYFILE",
36
+ "GCLOUD_KEYFILE",
37
+ "SPEECH_CREDENTIALS_JSON",
38
+ "SPEECH_KEYFILE_JSON",
39
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
40
+ "GOOGLE_CLOUD_KEYFILE_JSON",
41
+ "GCLOUD_KEYFILE_JSON"
42
+ ]
43
+ self.paths = [
44
+ "~/.config/google_cloud/application_default_credentials.json"
45
+ ]
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Speech
23
+ module V1p1beta1
24
+ module Adaptation
25
+ # Path helper methods for the Adaptation API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified CustomClass resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param custom_class [String]
37
+ #
38
+ # @return [::String]
39
+ def custom_class_path project:, location:, custom_class:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/customClasses/#{custom_class}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Location resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ #
56
+ # @return [::String]
57
+ def location_path project:, location:
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified PhraseSet resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
69
+ #
70
+ # @param project [String]
71
+ # @param location [String]
72
+ # @param phrase_set [String]
73
+ #
74
+ # @return [::String]
75
+ def phrase_set_path project:, location:, phrase_set:
76
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
77
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+
79
+ "projects/#{project}/locations/#{location}/phraseSets/#{phrase_set}"
80
+ end
81
+
82
+ extend self
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,85 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/speech/v1p1beta1/resource_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.speech.v1p1beta1.CreatePhraseSetRequest" do
16
+ optional :parent, :string, 1
17
+ optional :phrase_set_id, :string, 2
18
+ optional :phrase_set, :message, 3, "google.cloud.speech.v1p1beta1.PhraseSet"
19
+ end
20
+ add_message "google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest" do
21
+ optional :phrase_set, :message, 1, "google.cloud.speech.v1p1beta1.PhraseSet"
22
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
23
+ end
24
+ add_message "google.cloud.speech.v1p1beta1.GetPhraseSetRequest" do
25
+ optional :name, :string, 1
26
+ end
27
+ add_message "google.cloud.speech.v1p1beta1.ListPhraseSetRequest" do
28
+ optional :parent, :string, 1
29
+ optional :page_size, :int32, 2
30
+ optional :page_token, :string, 3
31
+ end
32
+ add_message "google.cloud.speech.v1p1beta1.ListPhraseSetResponse" do
33
+ repeated :phrase_sets, :message, 1, "google.cloud.speech.v1p1beta1.PhraseSet"
34
+ optional :next_page_token, :string, 2
35
+ end
36
+ add_message "google.cloud.speech.v1p1beta1.DeletePhraseSetRequest" do
37
+ optional :name, :string, 1
38
+ end
39
+ add_message "google.cloud.speech.v1p1beta1.CreateCustomClassRequest" do
40
+ optional :parent, :string, 1
41
+ optional :custom_class_id, :string, 2
42
+ optional :custom_class, :message, 3, "google.cloud.speech.v1p1beta1.CustomClass"
43
+ end
44
+ add_message "google.cloud.speech.v1p1beta1.UpdateCustomClassRequest" do
45
+ optional :custom_class, :message, 1, "google.cloud.speech.v1p1beta1.CustomClass"
46
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
47
+ end
48
+ add_message "google.cloud.speech.v1p1beta1.GetCustomClassRequest" do
49
+ optional :name, :string, 1
50
+ end
51
+ add_message "google.cloud.speech.v1p1beta1.ListCustomClassesRequest" do
52
+ optional :parent, :string, 1
53
+ optional :page_size, :int32, 2
54
+ optional :page_token, :string, 3
55
+ end
56
+ add_message "google.cloud.speech.v1p1beta1.ListCustomClassesResponse" do
57
+ repeated :custom_classes, :message, 1, "google.cloud.speech.v1p1beta1.CustomClass"
58
+ optional :next_page_token, :string, 2
59
+ end
60
+ add_message "google.cloud.speech.v1p1beta1.DeleteCustomClassRequest" do
61
+ optional :name, :string, 1
62
+ end
63
+ end
64
+ end
65
+
66
+ module Google
67
+ module Cloud
68
+ module Speech
69
+ module V1p1beta1
70
+ CreatePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.CreatePhraseSetRequest").msgclass
71
+ UpdatePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest").msgclass
72
+ GetPhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.GetPhraseSetRequest").msgclass
73
+ ListPhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.ListPhraseSetRequest").msgclass
74
+ ListPhraseSetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.ListPhraseSetResponse").msgclass
75
+ DeletePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.DeletePhraseSetRequest").msgclass
76
+ CreateCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.CreateCustomClassRequest").msgclass
77
+ UpdateCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.UpdateCustomClassRequest").msgclass
78
+ GetCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.GetCustomClassRequest").msgclass
79
+ ListCustomClassesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.ListCustomClassesRequest").msgclass
80
+ ListCustomClassesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.ListCustomClassesResponse").msgclass
81
+ DeleteCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.DeleteCustomClassRequest").msgclass
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,65 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto for package 'google.cloud.speech.v1p1beta1'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/speech/v1p1beta1/cloud_speech_adaptation_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Speech
25
+ module V1p1beta1
26
+ module Adaptation
27
+ # Service that implements Google Cloud Speech Adaptation API.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.speech.v1p1beta1.Adaptation'
35
+
36
+ # Create a set of phrase hints. Each item in the set can be a single word or
37
+ # a multi-word phrase. The items in the PhraseSet are favored by the
38
+ # recognition model when you send a call that includes the PhraseSet.
39
+ rpc :CreatePhraseSet, ::Google::Cloud::Speech::V1p1beta1::CreatePhraseSetRequest, ::Google::Cloud::Speech::V1p1beta1::PhraseSet
40
+ # Get a phrase set.
41
+ rpc :GetPhraseSet, ::Google::Cloud::Speech::V1p1beta1::GetPhraseSetRequest, ::Google::Cloud::Speech::V1p1beta1::PhraseSet
42
+ # List phrase sets.
43
+ rpc :ListPhraseSet, ::Google::Cloud::Speech::V1p1beta1::ListPhraseSetRequest, ::Google::Cloud::Speech::V1p1beta1::ListPhraseSetResponse
44
+ # Update a phrase set.
45
+ rpc :UpdatePhraseSet, ::Google::Cloud::Speech::V1p1beta1::UpdatePhraseSetRequest, ::Google::Cloud::Speech::V1p1beta1::PhraseSet
46
+ # Delete a phrase set.
47
+ rpc :DeletePhraseSet, ::Google::Cloud::Speech::V1p1beta1::DeletePhraseSetRequest, ::Google::Protobuf::Empty
48
+ # Create a custom class.
49
+ rpc :CreateCustomClass, ::Google::Cloud::Speech::V1p1beta1::CreateCustomClassRequest, ::Google::Cloud::Speech::V1p1beta1::CustomClass
50
+ # Get a custom class.
51
+ rpc :GetCustomClass, ::Google::Cloud::Speech::V1p1beta1::GetCustomClassRequest, ::Google::Cloud::Speech::V1p1beta1::CustomClass
52
+ # List custom classes.
53
+ rpc :ListCustomClasses, ::Google::Cloud::Speech::V1p1beta1::ListCustomClassesRequest, ::Google::Cloud::Speech::V1p1beta1::ListCustomClassesResponse
54
+ # Update a custom class.
55
+ rpc :UpdateCustomClass, ::Google::Cloud::Speech::V1p1beta1::UpdateCustomClassRequest, ::Google::Cloud::Speech::V1p1beta1::CustomClass
56
+ # Delete a custom class.
57
+ rpc :DeleteCustomClass, ::Google::Cloud::Speech::V1p1beta1::DeleteCustomClassRequest, ::Google::Protobuf::Empty
58
+ end
59
+
60
+ Stub = Service.rpc_stub_class
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -3,8 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/speech/v1p1beta1/resource.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.speech.v1p1beta1.CustomClass" do
@@ -26,7 +26,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
26
  end
27
27
  add_message "google.cloud.speech.v1p1beta1.SpeechAdaptation" do
28
28
  repeated :phrase_sets, :message, 1, "google.cloud.speech.v1p1beta1.PhraseSet"
29
- repeated :custom_classes, :message, 2, "google.cloud.speech.v1p1beta1.CustomClass"
29
+ repeated :phrase_set_references, :string, 2
30
+ repeated :custom_classes, :message, 3, "google.cloud.speech.v1p1beta1.CustomClass"
30
31
  end
31
32
  end
32
33
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -92,6 +92,16 @@ module Google
92
92
  # `END_OF_SINGLE_UTTERANCE` event and cease recognition. It will return no
93
93
  # more than one `StreamingRecognitionResult` with the `is_final` flag set to
94
94
  # `true`.
95
+ #
96
+ # The `single_utterance` field can only be used with specified models,
97
+ # otherwise an error is thrown. The `model` field in [`RecognitionConfig`][]
98
+ # must be set to:
99
+ #
100
+ # * `command_and_search`
101
+ # * `phone_call` AND additional field `useEnhanced`=`true`
102
+ # * The `model` field is left undefined. In this case the API auto-selects
103
+ # a model based on any other parameters that you set in
104
+ # `RecognitionConfig`.
95
105
  # @!attribute [rw] interim_results
96
106
  # @return [::Boolean]
97
107
  # If `true`, interim results (tentative hypotheses) may be
@@ -346,7 +356,8 @@ module Google
346
356
  # wideband is supported. `sample_rate_hertz` must be 16000.
347
357
  SPEEX_WITH_HEADER_BYTE = 7
348
358
 
349
- # MP3 audio. Support all standard MP3 bitrates (which range from 32-320
359
+ # MP3 audio. MP3 encoding is a Beta feature and only available in
360
+ # v1p1beta1. Support all standard MP3 bitrates (which range from 32-320
350
361
  # kbps). When using this encoding, `sample_rate_hertz` has to match the
351
362
  # sample rate of the file being used.
352
363
  MP3 = 8
@@ -607,8 +618,8 @@ module Google
607
618
  # Time of the most recent processing update.
608
619
  # @!attribute [r] uri
609
620
  # @return [::String]
610
- # The URI of the audio file being transcribed. Empty if the audio was sent
611
- # as byte content.
621
+ # Output only. The URI of the audio file being transcribed. Empty if the
622
+ # audio was sent as byte content.
612
623
  class LongRunningRecognizeMetadata
613
624
  include ::Google::Protobuf::MessageExts
614
625
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,218 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Speech
23
+ module V1p1beta1
24
+ # Message sent by the client for the `CreatePhraseSet` method.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The parent resource where this phrase set will be created.
28
+ # Format:
29
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets
30
+ # @!attribute [rw] phrase_set_id
31
+ # @return [::String]
32
+ # The ID to use for the phrase set, which will become the final
33
+ # component of the phrase set's resource name.
34
+ #
35
+ # This value should be 4-63 characters, and valid characters
36
+ # are /[a-z][0-9]-/.
37
+ # @!attribute [rw] phrase_set
38
+ # @return [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
39
+ # Required. The phrase set to create.
40
+ class CreatePhraseSetRequest
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # Message sent by the client for the `UpdatePhraseSet` method.
46
+ # @!attribute [rw] phrase_set
47
+ # @return [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
48
+ # Required. The phrase set to update.
49
+ #
50
+ # The phrase set's `name` field is used to identify the set to be
51
+ # updated. Format:
52
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
53
+ # @!attribute [rw] update_mask
54
+ # @return [::Google::Protobuf::FieldMask]
55
+ # The list of fields to be updated.
56
+ class UpdatePhraseSetRequest
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
61
+ # Message sent by the client for the `GetPhraseSet` method.
62
+ # @!attribute [rw] name
63
+ # @return [::String]
64
+ # Required. The name of the phrase set to retrieve.
65
+ # Format:
66
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
67
+ class GetPhraseSetRequest
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+
72
+ # Message sent by the client for the `ListPhraseSet` method.
73
+ # @!attribute [rw] parent
74
+ # @return [::String]
75
+ # Required. The parent, which owns this collection of phrase set.
76
+ # Format:
77
+ # projects/\\{project}/locations/\\{location}
78
+ # @!attribute [rw] page_size
79
+ # @return [::Integer]
80
+ # The maximum number of phrase sets to return. The service may return
81
+ # fewer than this value. If unspecified, at most 50 phrase sets will be
82
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
83
+ # 1000.
84
+ # @!attribute [rw] page_token
85
+ # @return [::String]
86
+ # A page token, received from a previous `ListPhraseSet` call.
87
+ # Provide this to retrieve the subsequent page.
88
+ #
89
+ # When paginating, all other parameters provided to `ListPhraseSet` must
90
+ # match the call that provided the page token.
91
+ class ListPhraseSetRequest
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
+ end
95
+
96
+ # Message returned to the client by the `ListPhraseSet` method.
97
+ # @!attribute [rw] phrase_sets
98
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>]
99
+ # The phrase set.
100
+ # @!attribute [rw] next_page_token
101
+ # @return [::String]
102
+ # A token, which can be sent as `page_token` to retrieve the next page.
103
+ # If this field is omitted, there are no subsequent pages.
104
+ class ListPhraseSetResponse
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+ end
108
+
109
+ # Message sent by the client for the `DeletePhraseSet` method.
110
+ # @!attribute [rw] name
111
+ # @return [::String]
112
+ # Required. The name of the phrase set to delete.
113
+ # Format:
114
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
115
+ class DeletePhraseSetRequest
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
+ end
119
+
120
+ # Message sent by the client for the `CreateCustomClass` method.
121
+ # @!attribute [rw] parent
122
+ # @return [::String]
123
+ # Required. The parent resource where this custom class will be created.
124
+ # Format:
125
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
126
+ # @!attribute [rw] custom_class_id
127
+ # @return [::String]
128
+ # The ID to use for the custom class, which will become the final
129
+ # component of the custom class' resource name.
130
+ #
131
+ # This value should be 4-63 characters, and valid characters
132
+ # are /[a-z][0-9]-/.
133
+ # @!attribute [rw] custom_class
134
+ # @return [::Google::Cloud::Speech::V1p1beta1::CustomClass]
135
+ # Required. The custom class to create.
136
+ class CreateCustomClassRequest
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Message sent by the client for the `UpdateCustomClass` method.
142
+ # @!attribute [rw] custom_class
143
+ # @return [::Google::Cloud::Speech::V1p1beta1::CustomClass]
144
+ # Required. The custom class to update.
145
+ #
146
+ # The custom class's `name` field is used to identify the custom class to be
147
+ # updated. Format:
148
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
149
+ # @!attribute [rw] update_mask
150
+ # @return [::Google::Protobuf::FieldMask]
151
+ # The list of fields to be updated.
152
+ class UpdateCustomClassRequest
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+ end
156
+
157
+ # Message sent by the client for the `GetCustomClass` method.
158
+ # @!attribute [rw] name
159
+ # @return [::String]
160
+ # Required. The name of the custom class to retrieve.
161
+ # Format:
162
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
163
+ class GetCustomClassRequest
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+ end
167
+
168
+ # Message sent by the client for the `ListCustomClasses` method.
169
+ # @!attribute [rw] parent
170
+ # @return [::String]
171
+ # Required. The parent, which owns this collection of custom classes.
172
+ # Format:
173
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
174
+ # @!attribute [rw] page_size
175
+ # @return [::Integer]
176
+ # The maximum number of custom classes to return. The service may return
177
+ # fewer than this value. If unspecified, at most 50 custom classes will be
178
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
179
+ # 1000.
180
+ # @!attribute [rw] page_token
181
+ # @return [::String]
182
+ # A page token, received from a previous `ListCustomClass` call.
183
+ # Provide this to retrieve the subsequent page.
184
+ #
185
+ # When paginating, all other parameters provided to `ListCustomClass` must
186
+ # match the call that provided the page token.
187
+ class ListCustomClassesRequest
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # Message returned to the client by the `ListCustomClasses` method.
193
+ # @!attribute [rw] custom_classes
194
+ # @return [::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>]
195
+ # The custom classes.
196
+ # @!attribute [rw] next_page_token
197
+ # @return [::String]
198
+ # A token, which can be sent as `page_token` to retrieve the next page.
199
+ # If this field is omitted, there are no subsequent pages.
200
+ class ListCustomClassesResponse
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
+ end
204
+
205
+ # Message sent by the client for the `DeleteCustomClass` method.
206
+ # @!attribute [rw] name
207
+ # @return [::String]
208
+ # Required. The name of the custom class to delete.
209
+ # Format:
210
+ # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
211
+ class DeleteCustomClassRequest
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+ end
215
+ end
216
+ end
217
+ end
218
+ end