Class: Google::Cloud::DiscoveryEngine::V1::CustomAttribute

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

Overview

A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent.

Instance Attribute Summary collapse

Instance Attribute Details

#numbers::Array<::Float>

Returns 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.

Returns:

  • (::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.



67
68
69
70
# File 'proto_docs/google/cloud/discoveryengine/v1/common.rb', line 67

class CustomAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.

Returns:

  • (::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.



67
68
69
70
# File 'proto_docs/google/cloud/discoveryengine/v1/common.rb', line 67

class CustomAttribute
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end