Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQuerySet

Inherits:
Object
  • Object
show all
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

A SampleQuerySet is the parent resource of SampleQuery, and contains the configurations shared by all SampleQuery under it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQuerySet

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSampleQuerySet.



10459
10460
10461
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10459

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Timestamp the SampleQuerySet was created at. Corresponds to the JSON property createTime

Returns:

  • (String)


10438
10439
10440
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10438

def create_time
  @create_time
end

#descriptionString

The description of the SampleQuerySet. Corresponds to the JSON property description

Returns:

  • (String)


10443
10444
10445
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10443

def description
  @description
end

#display_nameString

Required. The sample query set display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


10449
10450
10451
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10449

def display_name
  @display_name
end

#nameString

Immutable. The full resource name of the SampleQuerySet, in the format of projects/project/locations/location/sampleQuerySets/sampleQuerySet`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Corresponds to the JSON propertyname`

Returns:

  • (String)


10457
10458
10459
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10457

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10464
10465
10466
10467
10468
10469
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10464

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
end