Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQuery
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Sample Query captures metadata to be used for evaluation.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#query_entry ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
Query Entry captures metadata to be used for search evaluation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQuery
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSampleQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQuery
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSampleQuery.
10360 10361 10362 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp the SampleQuery was created at.
Corresponds to the JSON property createTime
10345 10346 10347 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10345 def create_time @create_time end |
#name ⇒ String
Immutable. The full resource name of the sample query, in the format of `
projects/project
/locations/location
/sampleQuerySets/sampleQuerySet
/
sampleQueries/sampleQuery
. This field must be a UTF-8 encoded string with a
length limit of 1024 characters.
Corresponds to the JSON property
name`
10353 10354 10355 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10353 def name @name end |
#query_entry ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry
Query Entry captures metadata to be used for search evaluation.
Corresponds to the JSON property queryEntry
10358 10359 10360 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10358 def query_entry @query_entry end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10365 10366 10367 10368 10369 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10365 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @query_entry = args[:query_entry] if args.key?(:query_entry) end |