module Google::Cloud::Speech::V1p1beta1::Speech::Paths

Path helper methods for the Speech API.

Public Instance Methods

custom_class_path(project:, location:, custom_class: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified CustomClass resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/customClasses/{custom_class}`

@param project [String] @param location [String] @param custom_class [String]

@return [::String]

# File lib/google/cloud/speech/v1p1beta1/speech/paths.rb, line 39
def custom_class_path project:, location:, custom_class:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/customClasses/#{custom_class}"
end
phrase_set_path(project:, location:, phrase_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified PhraseSet resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/phraseSets/{phrase_set}`

@param project [String] @param location [String] @param phrase_set [String]

@return [::String]

# File lib/google/cloud/speech/v1p1beta1/speech/paths.rb, line 58
def phrase_set_path project:, location:, phrase_set:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/phraseSets/#{phrase_set}"
end