Reference documentation and code samples for the Cloud Speech-to-Text V1 API class Google::Cloud::Speech::V1::Adaptation::Rest::ServiceStub.
REST service stub for the Adaptation service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_custom_class
def create_custom_class(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::CustomClass
Baseline implementation for the create_custom_class REST call
- request_pb (::Google::Cloud::Speech::V1::CreateCustomClassRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::CustomClass)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::CustomClass) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_phrase_set
def create_phrase_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::PhraseSet
Baseline implementation for the create_phrase_set REST call
- request_pb (::Google::Cloud::Speech::V1::CreatePhraseSetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::PhraseSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::PhraseSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_custom_class
def delete_custom_class(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_custom_class REST call
- request_pb (::Google::Cloud::Speech::V1::DeleteCustomClassRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_phrase_set
def delete_phrase_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_phrase_set REST call
- request_pb (::Google::Cloud::Speech::V1::DeletePhraseSetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_custom_class
def get_custom_class(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::CustomClass
Baseline implementation for the get_custom_class REST call
- request_pb (::Google::Cloud::Speech::V1::GetCustomClassRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::CustomClass)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::CustomClass) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_phrase_set
def get_phrase_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::PhraseSet
Baseline implementation for the get_phrase_set REST call
- request_pb (::Google::Cloud::Speech::V1::GetPhraseSetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::PhraseSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::PhraseSet) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_custom_classes
def list_custom_classes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::ListCustomClassesResponse
Baseline implementation for the list_custom_classes REST call
- request_pb (::Google::Cloud::Speech::V1::ListCustomClassesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::ListCustomClassesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::ListCustomClassesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_phrase_set
def list_phrase_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::ListPhraseSetResponse
Baseline implementation for the list_phrase_set REST call
- request_pb (::Google::Cloud::Speech::V1::ListPhraseSetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::ListPhraseSetResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::ListPhraseSetResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_custom_class
def update_custom_class(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::CustomClass
Baseline implementation for the update_custom_class REST call
- request_pb (::Google::Cloud::Speech::V1::UpdateCustomClassRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::CustomClass)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::CustomClass) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_phrase_set
def update_phrase_set(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Speech::V1::PhraseSet
Baseline implementation for the update_phrase_set REST call
- request_pb (::Google::Cloud::Speech::V1::UpdatePhraseSetRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Speech::V1::PhraseSet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Speech::V1::PhraseSet) — A result object deserialized from the server's reply
- (::ArgumentError)