Cloud Speech-to-Text V1 API - Class Google::Cloud::Speech::V1::Adaptation::Rest::ServiceStub (v0.15.0)

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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)