Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::CustomAttribute.
A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#numbers
def numbers() -> ::Array<::Float>
-
(::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.
#numbers=
def numbers=(value) -> ::Array<::Float>
-
value (::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.
-
(::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.
#text
def text() -> ::Array<::String>
-
(::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.
#text=
def text=(value) -> ::Array<::String>
-
value (::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.
-
(::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.