Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSampleQuerySet

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

Returns a new instance of GoogleCloudDiscoveryengineV1betaSampleQuerySet.



18499
18500
18501
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18499

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)


18478
18479
18480
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18478

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


18483
18484
18485
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18483

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)


18489
18490
18491
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18489

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


18497
18498
18499
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18497

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18504
18505
18506
18507
18508
18509
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 18504

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