Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent.
Instance Attribute Summary collapse
-
#numbers ⇒ Array<Float>
The numerical values of this custom attribute.
-
#text ⇒ Array<String>
The textual values of this custom attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCustomAttribute
constructor
A new instance of GoogleCloudDiscoveryengineV1betaCustomAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCustomAttribute
Returns a new instance of GoogleCloudDiscoveryengineV1betaCustomAttribute.
4130 4131 4132 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#numbers ⇒ Array<Float>
The numerical values of this custom attribute. For example, [2.3, 15.4]
when
the key is "lengths_cm". Exactly one of CustomAttribute.text or
CustomAttribute.numbers should be set. Otherwise, an INVALID_ARGUMENT
error
is returned.
Corresponds to the JSON property numbers
4119 4120 4121 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4119 def numbers @numbers end |
#text ⇒ Array<String>
The textual values of this custom attribute. For example, ["yellow", "green"]
when the key is "color". Empty string is not allowed. Otherwise, an
INVALID_ARGUMENT
error is returned. Exactly one of CustomAttribute.text or
CustomAttribute.numbers should be set. Otherwise, an INVALID_ARGUMENT
error
is returned.
Corresponds to the JSON property text
4128 4129 4130 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4128 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4135 4136 4137 4138 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4135 def update!(**args) @numbers = args[:numbers] if args.key?(:numbers) @text = args[:text] if args.key?(:text) end |