generated/google/apis/speech_v1beta1/representations.rb in google-api-client-0.9.28 vs generated/google/apis/speech_v1beta1/representations.rb in google-api-client-0.10.0

- old
+ new

@@ -20,16 +20,10 @@ module Google module Apis module SpeechV1beta1 - class CancelOperationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -68,17 +62,17 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListOperationsResponse + class SpeechContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SpeechContext + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end @@ -86,50 +80,44 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class RecognitionAudio + class AsyncRecognizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AsyncRecognizeRequest + class RecognitionAudio class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CancelOperationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation - - hash :metadata, as: 'metadata' property :done, as: 'done' hash :response, as: 'response' property :name, as: 'name' + property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation + + hash :metadata, as: 'metadata' end end class RecognitionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :max_alternatives, as: 'maxAlternatives' property :sample_rate, as: 'sampleRate' property :language_code, as: 'languageCode' - property :encoding, as: 'encoding' - property :profanity_filter, as: 'profanityFilter' property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation + property :encoding, as: 'encoding' + property :profanity_filter, as: 'profanityFilter' end end class SyncRecognizeRequest # @private @@ -142,13 +130,13 @@ end class Status # @private class Representation < Google::Apis::Core::JsonRepresentation + property :message, as: 'message' collection :details, as: 'details' property :code, as: 'code' - property :message, as: 'message' end end class SyncRecognizeResponse # @private @@ -170,23 +158,23 @@ property :confidence, as: 'confidence' property :transcript, as: 'transcript' end end - class ListOperationsResponse + class SpeechContext # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation - + collection :phrases, as: 'phrases' end end - class SpeechContext + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :phrases, as: 'phrases' + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation + end end class SpeechRecognitionResult # @private @@ -194,24 +182,24 @@ collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation end end - class RecognitionAudio - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, :base64 => true, as: 'content' - property :uri, as: 'uri' - end - end - class AsyncRecognizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation + end + end + + class RecognitionAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :uri, as: 'uri' end end end end end