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

Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::PhraseSet

Baseline implementation for the get_phrase_set REST call

Parameters
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::V1p1beta1::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::V1p1beta1::ListPhraseSetResponse

Baseline implementation for the list_phrase_set REST call

Parameters
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::V1p1beta1::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::V1p1beta1::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)