Class: Google::Cloud::Speech::V1p1beta1::CustomClass
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V1p1beta1::CustomClass
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v1p1beta1/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
-
#custom_class_id ⇒ ::String
If this custom class is a resource, the custom_class_id is the resource id of the CustomClass.
-
#items ⇒ ::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass::ClassItem>
A collection of class items.
-
#name ⇒ ::String
The resource name of the custom class.
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.
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/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::V1p1beta1::CustomClass::ClassItem>
Returns A collection of class items.
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/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.
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'proto_docs/google/cloud/speech/v1p1beta1/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 |