Class: Google::Cloud::Speech::V1::CustomClass

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v1/resource.rb

Overview

A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases.

Defined Under Namespace

Classes: ClassItem

Instance Attribute Summary collapse

Instance Attribute Details

#custom_class_id::String

Returns If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

Returns:

  • (::String)

    If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'proto_docs/google/cloud/speech/v1/resource.rb', line 37

class CustomClass
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # An item of the class.
  # @!attribute [rw] value
  #   @return [::String]
  #     The class item's value.
  class ClassItem
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#items::Array<::Google::Cloud::Speech::V1::CustomClass::ClassItem>

Returns A collection of class items.

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'proto_docs/google/cloud/speech/v1/resource.rb', line 37

class CustomClass
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # An item of the class.
  # @!attribute [rw] value
  #   @return [::String]
  #     The class item's value.
  class ClassItem
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#name::String

Returns The resource name of the custom class.

Returns:

  • (::String)

    The resource name of the custom class.



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'proto_docs/google/cloud/speech/v1/resource.rb', line 37

class CustomClass
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # An item of the class.
  # @!attribute [rw] value
  #   @return [::String]
  #     The class item's value.
  class ClassItem
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end