Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTargetSite

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 target site for the SiteSearchEngine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaTargetSite

Returns a new instance of GoogleCloudDiscoveryengineV1alphaTargetSite.



1795
1796
1797
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1795

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

Instance Attribute Details

#exact_matchBoolean Also known as: exact_match?

Input only. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine. Corresponds to the JSON property exactMatch

Returns:

  • (Boolean)


1762
1763
1764
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1762

def exact_match
  @exact_match
end

#generated_uri_patternString

Output only. This is system-generated based on the provided_uri_pattern. Corresponds to the JSON property generatedUriPattern

Returns:

  • (String)


1768
1769
1770
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1768

def generated_uri_pattern
  @generated_uri_pattern
end

#nameString

Output only. The fully qualified resource name of the target site. projects/ project/locations/location/collections/collection/dataStores/data_store/ siteSearchEngine/targetSites/target_site`Thetarget_site_idis system- generated. Corresponds to the JSON propertyname`

Returns:

  • (String)


1776
1777
1778
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1776

def name
  @name
end

#provided_uri_patternString

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated. Corresponds to the JSON property providedUriPattern

Returns:

  • (String)


1782
1783
1784
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1782

def provided_uri_pattern
  @provided_uri_pattern
end

#typeString

The type of the target site, e.g. whether the site is to be included or excluded. Corresponds to the JSON property type

Returns:

  • (String)


1788
1789
1790
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1788

def type
  @type
end

#update_timeString

Output only. The target site's last updated time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1793
1794
1795
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1793

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1800
1801
1802
1803
1804
1805
1806
1807
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1800

def update!(**args)
  @exact_match = args[:exact_match] if args.key?(:exact_match)
  @generated_uri_pattern = args[:generated_uri_pattern] if args.key?(:generated_uri_pattern)
  @name = args[:name] if args.key?(:name)
  @provided_uri_pattern = args[:provided_uri_pattern] if args.key?(:provided_uri_pattern)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end