google-apis-discoveryengine_v1alpha 0.41.0 → 0.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +783 -23
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +326 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +34 -0
- metadata +3 -3
@@ -1823,11 +1823,179 @@ module Google
|
|
1823
1823
|
end
|
1824
1824
|
end
|
1825
1825
|
|
1826
|
+
# The Bigtable Options object that contains information to support the import.
|
1827
|
+
class GoogleCloudDiscoveryengineV1alphaBigtableOptions
|
1828
|
+
include Google::Apis::Core::Hashable
|
1829
|
+
|
1830
|
+
# The mapping from family names to an object that contains column families level
|
1831
|
+
# information for the given column family. If a family is not present in this
|
1832
|
+
# map it will be ignored.
|
1833
|
+
# Corresponds to the JSON property `families`
|
1834
|
+
# @return [Hash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily>]
|
1835
|
+
attr_accessor :families
|
1836
|
+
|
1837
|
+
# The field name used for saving row key value in the UCS document. The name has
|
1838
|
+
# to match a-zA-Z0-9*
|
1839
|
+
# Corresponds to the JSON property `keyFieldName`
|
1840
|
+
# @return [String]
|
1841
|
+
attr_accessor :key_field_name
|
1842
|
+
|
1843
|
+
def initialize(**args)
|
1844
|
+
update!(**args)
|
1845
|
+
end
|
1846
|
+
|
1847
|
+
# Update properties of this object
|
1848
|
+
def update!(**args)
|
1849
|
+
@families = args[:families] if args.key?(:families)
|
1850
|
+
@key_field_name = args[:key_field_name] if args.key?(:key_field_name)
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
#
|
1855
|
+
class GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn
|
1856
|
+
include Google::Apis::Core::Hashable
|
1857
|
+
|
1858
|
+
# Optional. The encoding mode of the values when the type is not STRING.
|
1859
|
+
# Acceptable encoding values are: TEXT - indicates values are alphanumeric text
|
1860
|
+
# strings. BINARY - indicates values are encoded using HBase Bytes.toBytes
|
1861
|
+
# family of functions. This can be overridden for a specific column by listing
|
1862
|
+
# that column in 'columns' and specifying an encoding for it.
|
1863
|
+
# Corresponds to the JSON property `encoding`
|
1864
|
+
# @return [String]
|
1865
|
+
attr_accessor :encoding
|
1866
|
+
|
1867
|
+
# The field name to use for this column in the UCS document. The name has to
|
1868
|
+
# match a-zA-Z0-9* If not set, we will parse it from the qualifier bytes with
|
1869
|
+
# best effort. However, field name collisions could happen, where parsing
|
1870
|
+
# behavior is undefined.
|
1871
|
+
# Corresponds to the JSON property `fieldName`
|
1872
|
+
# @return [String]
|
1873
|
+
attr_accessor :field_name
|
1874
|
+
|
1875
|
+
# Required. Qualifier of the column. If cannot decode with utf-8, store a base-
|
1876
|
+
# 64 encoded string.
|
1877
|
+
# Corresponds to the JSON property `qualifier`
|
1878
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1879
|
+
# @return [String]
|
1880
|
+
attr_accessor :qualifier
|
1881
|
+
|
1882
|
+
# Optional. The type of values in this column family. The values are expected to
|
1883
|
+
# be encoded using HBase Bytes.toBytes function when the encoding value is set
|
1884
|
+
# to BINARY.
|
1885
|
+
# Corresponds to the JSON property `type`
|
1886
|
+
# @return [String]
|
1887
|
+
attr_accessor :type
|
1888
|
+
|
1889
|
+
def initialize(**args)
|
1890
|
+
update!(**args)
|
1891
|
+
end
|
1892
|
+
|
1893
|
+
# Update properties of this object
|
1894
|
+
def update!(**args)
|
1895
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
1896
|
+
@field_name = args[:field_name] if args.key?(:field_name)
|
1897
|
+
@qualifier = args[:qualifier] if args.key?(:qualifier)
|
1898
|
+
@type = args[:type] if args.key?(:type)
|
1899
|
+
end
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
#
|
1903
|
+
class GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily
|
1904
|
+
include Google::Apis::Core::Hashable
|
1905
|
+
|
1906
|
+
# The list of objects that contains column level information for each column. If
|
1907
|
+
# a column is not present in this list it will be ignored.
|
1908
|
+
# Corresponds to the JSON property `columns`
|
1909
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn>]
|
1910
|
+
attr_accessor :columns
|
1911
|
+
|
1912
|
+
# Optional. The encoding mode of the values when the type is not STRING.
|
1913
|
+
# Acceptable encoding values are: TEXT - indicates values are alphanumeric text
|
1914
|
+
# strings. BINARY - indicates values are encoded using HBase Bytes.toBytes
|
1915
|
+
# family of functions. This can be overridden for a specific column by listing
|
1916
|
+
# that column in 'columns' and specifying an encoding for it.
|
1917
|
+
# Corresponds to the JSON property `encoding`
|
1918
|
+
# @return [String]
|
1919
|
+
attr_accessor :encoding
|
1920
|
+
|
1921
|
+
# The field name to use for this column family in the UCS document. The name has
|
1922
|
+
# to match a-zA-Z0-9* If not set, we will parse it from the family name with
|
1923
|
+
# best effort. However, due to difference naming pattern, there could be field
|
1924
|
+
# name collisions, where parsing behavior is undefined.
|
1925
|
+
# Corresponds to the JSON property `fieldName`
|
1926
|
+
# @return [String]
|
1927
|
+
attr_accessor :field_name
|
1928
|
+
|
1929
|
+
# Optional. The type of values in this column family. The values are expected to
|
1930
|
+
# be encoded using HBase Bytes.toBytes function when the encoding value is set
|
1931
|
+
# to BINARY.
|
1932
|
+
# Corresponds to the JSON property `type`
|
1933
|
+
# @return [String]
|
1934
|
+
attr_accessor :type
|
1935
|
+
|
1936
|
+
def initialize(**args)
|
1937
|
+
update!(**args)
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
# Update properties of this object
|
1941
|
+
def update!(**args)
|
1942
|
+
@columns = args[:columns] if args.key?(:columns)
|
1943
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
1944
|
+
@field_name = args[:field_name] if args.key?(:field_name)
|
1945
|
+
@type = args[:type] if args.key?(:type)
|
1946
|
+
end
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
# The Cloud Bigtable source for importing data
|
1950
|
+
class GoogleCloudDiscoveryengineV1alphaBigtableSource
|
1951
|
+
include Google::Apis::Core::Hashable
|
1952
|
+
|
1953
|
+
# The Bigtable Options object that contains information to support the import.
|
1954
|
+
# Corresponds to the JSON property `bigtableOptions`
|
1955
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigtableOptions]
|
1956
|
+
attr_accessor :bigtable_options
|
1957
|
+
|
1958
|
+
# Required. The instance ID of the Cloud Bigtable that needs to be exported.
|
1959
|
+
# Corresponds to the JSON property `instanceId`
|
1960
|
+
# @return [String]
|
1961
|
+
attr_accessor :instance_id
|
1962
|
+
|
1963
|
+
# The project ID (can be project # or ID) that the Bigtable source is in with a
|
1964
|
+
# length limit of 128 characters. If not specified, inherits the project ID from
|
1965
|
+
# the parent request.
|
1966
|
+
# Corresponds to the JSON property `projectId`
|
1967
|
+
# @return [String]
|
1968
|
+
attr_accessor :project_id
|
1969
|
+
|
1970
|
+
# Required. The table ID of the Cloud Bigtable that needs to be exported.
|
1971
|
+
# Corresponds to the JSON property `tableId`
|
1972
|
+
# @return [String]
|
1973
|
+
attr_accessor :table_id
|
1974
|
+
|
1975
|
+
def initialize(**args)
|
1976
|
+
update!(**args)
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
# Update properties of this object
|
1980
|
+
def update!(**args)
|
1981
|
+
@bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options)
|
1982
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
1983
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1984
|
+
@table_id = args[:table_id] if args.key?(:table_id)
|
1985
|
+
end
|
1986
|
+
end
|
1987
|
+
|
1826
1988
|
# Chunk captures all raw metadata information of items to be recommended or
|
1827
1989
|
# searched in the chunk mode.
|
1828
1990
|
class GoogleCloudDiscoveryengineV1alphaChunk
|
1829
1991
|
include Google::Apis::Core::Hashable
|
1830
1992
|
|
1993
|
+
# Metadata of the current chunk. This field is only populated on SearchService.
|
1994
|
+
# Search API.
|
1995
|
+
# Corresponds to the JSON property `chunkMetadata`
|
1996
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata]
|
1997
|
+
attr_accessor :chunk_metadata
|
1998
|
+
|
1831
1999
|
# Content is a string from a document (parsed content).
|
1832
2000
|
# Corresponds to the JSON property `content`
|
1833
2001
|
# @return [String]
|
@@ -1858,17 +2026,54 @@ module Google
|
|
1858
2026
|
# @return [String]
|
1859
2027
|
attr_accessor :name
|
1860
2028
|
|
2029
|
+
# Page span of the chunk.
|
2030
|
+
# Corresponds to the JSON property `pageSpan`
|
2031
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkPageSpan]
|
2032
|
+
attr_accessor :page_span
|
2033
|
+
|
1861
2034
|
def initialize(**args)
|
1862
2035
|
update!(**args)
|
1863
2036
|
end
|
1864
2037
|
|
1865
2038
|
# Update properties of this object
|
1866
2039
|
def update!(**args)
|
2040
|
+
@chunk_metadata = args[:chunk_metadata] if args.key?(:chunk_metadata)
|
1867
2041
|
@content = args[:content] if args.key?(:content)
|
1868
2042
|
@derived_struct_data = args[:derived_struct_data] if args.key?(:derived_struct_data)
|
1869
2043
|
@document_metadata = args[:document_metadata] if args.key?(:document_metadata)
|
1870
2044
|
@id = args[:id] if args.key?(:id)
|
1871
2045
|
@name = args[:name] if args.key?(:name)
|
2046
|
+
@page_span = args[:page_span] if args.key?(:page_span)
|
2047
|
+
end
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
# Metadata of the current chunk. This field is only populated on SearchService.
|
2051
|
+
# Search API.
|
2052
|
+
class GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata
|
2053
|
+
include Google::Apis::Core::Hashable
|
2054
|
+
|
2055
|
+
# The next chunks of the current chunk. The number is controlled by
|
2056
|
+
# SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only
|
2057
|
+
# populated on SearchService.Search API.
|
2058
|
+
# Corresponds to the JSON property `nextChunks`
|
2059
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk>]
|
2060
|
+
attr_accessor :next_chunks
|
2061
|
+
|
2062
|
+
# The previous chunks of the current chunk. The number is controlled by
|
2063
|
+
# SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is
|
2064
|
+
# only populated on SearchService.Search API.
|
2065
|
+
# Corresponds to the JSON property `previousChunks`
|
2066
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk>]
|
2067
|
+
attr_accessor :previous_chunks
|
2068
|
+
|
2069
|
+
def initialize(**args)
|
2070
|
+
update!(**args)
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
# Update properties of this object
|
2074
|
+
def update!(**args)
|
2075
|
+
@next_chunks = args[:next_chunks] if args.key?(:next_chunks)
|
2076
|
+
@previous_chunks = args[:previous_chunks] if args.key?(:previous_chunks)
|
1872
2077
|
end
|
1873
2078
|
end
|
1874
2079
|
|
@@ -1898,6 +2103,91 @@ module Google
|
|
1898
2103
|
end
|
1899
2104
|
end
|
1900
2105
|
|
2106
|
+
# Page span of the chunk.
|
2107
|
+
class GoogleCloudDiscoveryengineV1alphaChunkPageSpan
|
2108
|
+
include Google::Apis::Core::Hashable
|
2109
|
+
|
2110
|
+
# The end page of the chunk.
|
2111
|
+
# Corresponds to the JSON property `pageEnd`
|
2112
|
+
# @return [Fixnum]
|
2113
|
+
attr_accessor :page_end
|
2114
|
+
|
2115
|
+
# The start page of the chunk.
|
2116
|
+
# Corresponds to the JSON property `pageStart`
|
2117
|
+
# @return [Fixnum]
|
2118
|
+
attr_accessor :page_start
|
2119
|
+
|
2120
|
+
def initialize(**args)
|
2121
|
+
update!(**args)
|
2122
|
+
end
|
2123
|
+
|
2124
|
+
# Update properties of this object
|
2125
|
+
def update!(**args)
|
2126
|
+
@page_end = args[:page_end] if args.key?(:page_end)
|
2127
|
+
@page_start = args[:page_start] if args.key?(:page_start)
|
2128
|
+
end
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
# Cloud SQL source import data from.
|
2132
|
+
class GoogleCloudDiscoveryengineV1alphaCloudSqlSource
|
2133
|
+
include Google::Apis::Core::Hashable
|
2134
|
+
|
2135
|
+
# Required. The Cloud SQL database to copy the data from with a length limit of
|
2136
|
+
# 256 characters.
|
2137
|
+
# Corresponds to the JSON property `databaseId`
|
2138
|
+
# @return [String]
|
2139
|
+
attr_accessor :database_id
|
2140
|
+
|
2141
|
+
# Optional. Intermediate Cloud Storage directory used for the import with a
|
2142
|
+
# length limit of 2,000 characters. Can be specified if one wants to have the
|
2143
|
+
# Cloud SQL export to a specific Cloud Storage directory. Please ensure that the
|
2144
|
+
# Cloud SQL service account has the necessary GCS Storage Admin permissions to
|
2145
|
+
# access the specified GCS directory.
|
2146
|
+
# Corresponds to the JSON property `gcsStagingDir`
|
2147
|
+
# @return [String]
|
2148
|
+
attr_accessor :gcs_staging_dir
|
2149
|
+
|
2150
|
+
# Required. The Cloud SQL instance to copy the data from with a length limit of
|
2151
|
+
# 256 characters.
|
2152
|
+
# Corresponds to the JSON property `instanceId`
|
2153
|
+
# @return [String]
|
2154
|
+
attr_accessor :instance_id
|
2155
|
+
|
2156
|
+
# Optional. Option for serverless export. Enabling this option will incur
|
2157
|
+
# additional cost. More info: https://cloud.google.com/sql/pricing#serverless
|
2158
|
+
# Corresponds to the JSON property `offload`
|
2159
|
+
# @return [Boolean]
|
2160
|
+
attr_accessor :offload
|
2161
|
+
alias_method :offload?, :offload
|
2162
|
+
|
2163
|
+
# Optional. The project ID (can be project # or ID) that the Cloud SQL source is
|
2164
|
+
# in with a length limit of 128 characters. If not specified, inherits the
|
2165
|
+
# project ID from the parent request.
|
2166
|
+
# Corresponds to the JSON property `projectId`
|
2167
|
+
# @return [String]
|
2168
|
+
attr_accessor :project_id
|
2169
|
+
|
2170
|
+
# Required. The Cloud SQL table to copy the data from with a length limit of 256
|
2171
|
+
# characters.
|
2172
|
+
# Corresponds to the JSON property `tableId`
|
2173
|
+
# @return [String]
|
2174
|
+
attr_accessor :table_id
|
2175
|
+
|
2176
|
+
def initialize(**args)
|
2177
|
+
update!(**args)
|
2178
|
+
end
|
2179
|
+
|
2180
|
+
# Update properties of this object
|
2181
|
+
def update!(**args)
|
2182
|
+
@database_id = args[:database_id] if args.key?(:database_id)
|
2183
|
+
@gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir)
|
2184
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
2185
|
+
@offload = args[:offload] if args.key?(:offload)
|
2186
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
2187
|
+
@table_id = args[:table_id] if args.key?(:table_id)
|
2188
|
+
end
|
2189
|
+
end
|
2190
|
+
|
1901
2191
|
# Request message for CompletionService.CompleteQuery method.
|
1902
2192
|
class GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest
|
1903
2193
|
include Google::Apis::Core::Hashable
|
@@ -3814,6 +4104,35 @@ module Google
|
|
3814
4104
|
end
|
3815
4105
|
end
|
3816
4106
|
|
4107
|
+
# Cloud FhirStore source import data from.
|
4108
|
+
class GoogleCloudDiscoveryengineV1alphaFhirStoreSource
|
4109
|
+
include Google::Apis::Core::Hashable
|
4110
|
+
|
4111
|
+
# Required. The full resource name of the FHIR store to import data from, in the
|
4112
|
+
# format of `projects/`project`/locations/`location`/datasets/`dataset`/
|
4113
|
+
# fhirStores/`fhir_store``.
|
4114
|
+
# Corresponds to the JSON property `fhirStore`
|
4115
|
+
# @return [String]
|
4116
|
+
attr_accessor :fhir_store
|
4117
|
+
|
4118
|
+
# Intermediate Cloud Storage directory used for the import with a length limit
|
4119
|
+
# of 2,000 characters. Can be specified if one wants to have the FhirStore
|
4120
|
+
# export to a specific Cloud Storage directory.
|
4121
|
+
# Corresponds to the JSON property `gcsStagingDir`
|
4122
|
+
# @return [String]
|
4123
|
+
attr_accessor :gcs_staging_dir
|
4124
|
+
|
4125
|
+
def initialize(**args)
|
4126
|
+
update!(**args)
|
4127
|
+
end
|
4128
|
+
|
4129
|
+
# Update properties of this object
|
4130
|
+
def update!(**args)
|
4131
|
+
@fhir_store = args[:fhir_store] if args.key?(:fhir_store)
|
4132
|
+
@gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir)
|
4133
|
+
end
|
4134
|
+
end
|
4135
|
+
|
3817
4136
|
# Configurations for fields of a schema. For example, configuring a field is
|
3818
4137
|
# indexable, or searchable.
|
3819
4138
|
class GoogleCloudDiscoveryengineV1alphaFieldConfig
|
@@ -3931,6 +4250,51 @@ module Google
|
|
3931
4250
|
end
|
3932
4251
|
end
|
3933
4252
|
|
4253
|
+
# Firestore source import data from.
|
4254
|
+
class GoogleCloudDiscoveryengineV1alphaFirestoreSource
|
4255
|
+
include Google::Apis::Core::Hashable
|
4256
|
+
|
4257
|
+
# Required. The Firestore collection to copy the data from with a length limit
|
4258
|
+
# of 1500 characters.
|
4259
|
+
# Corresponds to the JSON property `collectionId`
|
4260
|
+
# @return [String]
|
4261
|
+
attr_accessor :collection_id
|
4262
|
+
|
4263
|
+
# Required. The Firestore database to copy the data from with a length limit of
|
4264
|
+
# 256 characters.
|
4265
|
+
# Corresponds to the JSON property `databaseId`
|
4266
|
+
# @return [String]
|
4267
|
+
attr_accessor :database_id
|
4268
|
+
|
4269
|
+
# Optional. Intermediate Cloud Storage directory used for the import with a
|
4270
|
+
# length limit of 2,000 characters. Can be specified if one wants to have the
|
4271
|
+
# Firestore export to a specific Cloud Storage directory. Please ensure that the
|
4272
|
+
# Firestore service account has the necessary GCS Storage Admin permissions to
|
4273
|
+
# access the specified GCS directory.
|
4274
|
+
# Corresponds to the JSON property `gcsStagingDir`
|
4275
|
+
# @return [String]
|
4276
|
+
attr_accessor :gcs_staging_dir
|
4277
|
+
|
4278
|
+
# Optional. The project ID (can be project # or ID) that the Cloud SQL source is
|
4279
|
+
# in with a length limit of 128 characters. If not specified, inherits the
|
4280
|
+
# project ID from the parent request.
|
4281
|
+
# Corresponds to the JSON property `projectId`
|
4282
|
+
# @return [String]
|
4283
|
+
attr_accessor :project_id
|
4284
|
+
|
4285
|
+
def initialize(**args)
|
4286
|
+
update!(**args)
|
4287
|
+
end
|
4288
|
+
|
4289
|
+
# Update properties of this object
|
4290
|
+
def update!(**args)
|
4291
|
+
@collection_id = args[:collection_id] if args.key?(:collection_id)
|
4292
|
+
@database_id = args[:database_id] if args.key?(:database_id)
|
4293
|
+
@gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir)
|
4294
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
4295
|
+
end
|
4296
|
+
end
|
4297
|
+
|
3934
4298
|
# Cloud Storage location for input content.
|
3935
4299
|
class GoogleCloudDiscoveryengineV1alphaGcsSource
|
3936
4300
|
include Google::Apis::Core::Hashable
|
@@ -3971,6 +4335,26 @@ module Google
|
|
3971
4335
|
end
|
3972
4336
|
end
|
3973
4337
|
|
4338
|
+
# Grounding configuration.
|
4339
|
+
class GoogleCloudDiscoveryengineV1alphaGroundingConfig
|
4340
|
+
include Google::Apis::Core::Hashable
|
4341
|
+
|
4342
|
+
# Required. Name of the GroundingConfig, of the form `projects/`project`/
|
4343
|
+
# locations/`location`/groundingConfig`.
|
4344
|
+
# Corresponds to the JSON property `name`
|
4345
|
+
# @return [String]
|
4346
|
+
attr_accessor :name
|
4347
|
+
|
4348
|
+
def initialize(**args)
|
4349
|
+
update!(**args)
|
4350
|
+
end
|
4351
|
+
|
4352
|
+
# Update properties of this object
|
4353
|
+
def update!(**args)
|
4354
|
+
@name = args[:name] if args.key?(:name)
|
4355
|
+
end
|
4356
|
+
end
|
4357
|
+
|
3974
4358
|
# Defines guided search spec.
|
3975
4359
|
class GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
|
3976
4360
|
include Google::Apis::Core::Hashable
|
@@ -4050,6 +4434,66 @@ module Google
|
|
4050
4434
|
end
|
4051
4435
|
end
|
4052
4436
|
|
4437
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
4438
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
4439
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
|
4440
|
+
include Google::Apis::Core::Hashable
|
4441
|
+
|
4442
|
+
# Operation create time.
|
4443
|
+
# Corresponds to the JSON property `createTime`
|
4444
|
+
# @return [String]
|
4445
|
+
attr_accessor :create_time
|
4446
|
+
|
4447
|
+
# Operation last update time. If the operation is done, this is also the finish
|
4448
|
+
# time.
|
4449
|
+
# Corresponds to the JSON property `updateTime`
|
4450
|
+
# @return [String]
|
4451
|
+
attr_accessor :update_time
|
4452
|
+
|
4453
|
+
def initialize(**args)
|
4454
|
+
update!(**args)
|
4455
|
+
end
|
4456
|
+
|
4457
|
+
# Update properties of this object
|
4458
|
+
def update!(**args)
|
4459
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4460
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
4461
|
+
end
|
4462
|
+
end
|
4463
|
+
|
4464
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
4465
|
+
# long running operation is done, this message is returned by the google.
|
4466
|
+
# longrunning.Operations.response field if the operation is successful.
|
4467
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
|
4468
|
+
include Google::Apis::Core::Hashable
|
4469
|
+
|
4470
|
+
# A sample of errors encountered while processing the request.
|
4471
|
+
# Corresponds to the JSON property `errorSamples`
|
4472
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
4473
|
+
attr_accessor :error_samples
|
4474
|
+
|
4475
|
+
# Count of CompletionSuggestions that failed to be imported.
|
4476
|
+
# Corresponds to the JSON property `failureCount`
|
4477
|
+
# @return [Fixnum]
|
4478
|
+
attr_accessor :failure_count
|
4479
|
+
|
4480
|
+
# Count of CompletionSuggestions successfully imported.
|
4481
|
+
# Corresponds to the JSON property `successCount`
|
4482
|
+
# @return [Fixnum]
|
4483
|
+
attr_accessor :success_count
|
4484
|
+
|
4485
|
+
def initialize(**args)
|
4486
|
+
update!(**args)
|
4487
|
+
end
|
4488
|
+
|
4489
|
+
# Update properties of this object
|
4490
|
+
def update!(**args)
|
4491
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
4492
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
4493
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
4494
|
+
end
|
4495
|
+
end
|
4496
|
+
|
4053
4497
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
4054
4498
|
# returned by the google.longrunning.Operation.metadata field.
|
4055
4499
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
@@ -4098,10 +4542,11 @@ module Google
|
|
4098
4542
|
# payload, where IDs may not be consistent during multiple imports. In which
|
4099
4543
|
# case ReconciliationMode.FULL is highly recommended to avoid duplicate contents.
|
4100
4544
|
# If unset or set to `false`, Document.ids have to be specified using id_field,
|
4101
|
-
# otherwise, documents without IDs fail to be imported.
|
4102
|
-
#
|
4103
|
-
#
|
4104
|
-
# INVALID_ARGUMENT error is thrown.
|
4545
|
+
# otherwise, documents without IDs fail to be imported. Supported data sources: *
|
4546
|
+
# GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an
|
4547
|
+
# INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema
|
4548
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
|
4549
|
+
# SpannerSource * CloudSqlSource * FirestoreSource * BigtableSource
|
4105
4550
|
# Corresponds to the JSON property `autoGenerateIds`
|
4106
4551
|
# @return [Boolean]
|
4107
4552
|
attr_accessor :auto_generate_ids
|
@@ -4112,29 +4557,51 @@ module Google
|
|
4112
4557
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource]
|
4113
4558
|
attr_accessor :bigquery_source
|
4114
4559
|
|
4560
|
+
# The Cloud Bigtable source for importing data
|
4561
|
+
# Corresponds to the JSON property `bigtableSource`
|
4562
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigtableSource]
|
4563
|
+
attr_accessor :bigtable_source
|
4564
|
+
|
4565
|
+
# Cloud SQL source import data from.
|
4566
|
+
# Corresponds to the JSON property `cloudSqlSource`
|
4567
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCloudSqlSource]
|
4568
|
+
attr_accessor :cloud_sql_source
|
4569
|
+
|
4115
4570
|
# Configuration of destination for Import related errors.
|
4116
4571
|
# Corresponds to the JSON property `errorConfig`
|
4117
4572
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
4118
4573
|
attr_accessor :error_config
|
4119
4574
|
|
4575
|
+
# Cloud FhirStore source import data from.
|
4576
|
+
# Corresponds to the JSON property `fhirStoreSource`
|
4577
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaFhirStoreSource]
|
4578
|
+
attr_accessor :fhir_store_source
|
4579
|
+
|
4580
|
+
# Firestore source import data from.
|
4581
|
+
# Corresponds to the JSON property `firestoreSource`
|
4582
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaFirestoreSource]
|
4583
|
+
attr_accessor :firestore_source
|
4584
|
+
|
4120
4585
|
# Cloud Storage location for input content.
|
4121
4586
|
# Corresponds to the JSON property `gcsSource`
|
4122
4587
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource]
|
4123
4588
|
attr_accessor :gcs_source
|
4124
4589
|
|
4125
|
-
# The field
|
4126
|
-
#
|
4127
|
-
#
|
4128
|
-
# the
|
4129
|
-
#
|
4130
|
-
#
|
4131
|
-
#
|
4132
|
-
#
|
4133
|
-
#
|
4134
|
-
#
|
4135
|
-
#
|
4136
|
-
#
|
4137
|
-
#
|
4590
|
+
# The field indicates the ID field or column to be used as unique IDs of the
|
4591
|
+
# documents. For GcsSource it is the key of the JSON field. For instance, `my_id`
|
4592
|
+
# for JSON ``"my_id": "some_uuid"``. For others, it may be the column name of
|
4593
|
+
# the table where the unique ids are stored. The values of the JSON field or the
|
4594
|
+
# table column are used as the Document.ids. The JSON field or the table column
|
4595
|
+
# must be of string type, and the values must be set as valid strings conform to
|
4596
|
+
# [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
|
4597
|
+
# Otherwise, documents without valid IDs fail to be imported. Only set this
|
4598
|
+
# field when auto_generate_ids is unset or set as `false`. Otherwise, an
|
4599
|
+
# INVALID_ARGUMENT error is thrown. If it is unset, a default value `_id` is
|
4600
|
+
# used when importing from the allowed data sources. Supported data sources: *
|
4601
|
+
# GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an
|
4602
|
+
# INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema
|
4603
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
|
4604
|
+
# SpannerSource * CloudSqlSource * FirestoreSource * BigtableSource
|
4138
4605
|
# Corresponds to the JSON property `idField`
|
4139
4606
|
# @return [String]
|
4140
4607
|
attr_accessor :id_field
|
@@ -4150,6 +4617,11 @@ module Google
|
|
4150
4617
|
# @return [String]
|
4151
4618
|
attr_accessor :reconciliation_mode
|
4152
4619
|
|
4620
|
+
# The Spanner source for importing data
|
4621
|
+
# Corresponds to the JSON property `spannerSource`
|
4622
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSpannerSource]
|
4623
|
+
attr_accessor :spanner_source
|
4624
|
+
|
4153
4625
|
def initialize(**args)
|
4154
4626
|
update!(**args)
|
4155
4627
|
end
|
@@ -4158,11 +4630,16 @@ module Google
|
|
4158
4630
|
def update!(**args)
|
4159
4631
|
@auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids)
|
4160
4632
|
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
4633
|
+
@bigtable_source = args[:bigtable_source] if args.key?(:bigtable_source)
|
4634
|
+
@cloud_sql_source = args[:cloud_sql_source] if args.key?(:cloud_sql_source)
|
4161
4635
|
@error_config = args[:error_config] if args.key?(:error_config)
|
4636
|
+
@fhir_store_source = args[:fhir_store_source] if args.key?(:fhir_store_source)
|
4637
|
+
@firestore_source = args[:firestore_source] if args.key?(:firestore_source)
|
4162
4638
|
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
4163
4639
|
@id_field = args[:id_field] if args.key?(:id_field)
|
4164
4640
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
4165
4641
|
@reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
|
4642
|
+
@spanner_source = args[:spanner_source] if args.key?(:spanner_source)
|
4166
4643
|
end
|
4167
4644
|
end
|
4168
4645
|
|
@@ -5253,6 +5730,112 @@ module Google
|
|
5253
5730
|
end
|
5254
5731
|
end
|
5255
5732
|
|
5733
|
+
# Request message for RankService.Rank method.
|
5734
|
+
class GoogleCloudDiscoveryengineV1alphaRankRequest
|
5735
|
+
include Google::Apis::Core::Hashable
|
5736
|
+
|
5737
|
+
# If true, the response will contain only record ID and score. By default, it is
|
5738
|
+
# false, the response will contain record details.
|
5739
|
+
# Corresponds to the JSON property `ignoreRecordDetailsInResponse`
|
5740
|
+
# @return [Boolean]
|
5741
|
+
attr_accessor :ignore_record_details_in_response
|
5742
|
+
alias_method :ignore_record_details_in_response?, :ignore_record_details_in_response
|
5743
|
+
|
5744
|
+
# The identifier of the model to use. It is one of: * `semantic-ranker-512@
|
5745
|
+
# latest`: Semantic ranking model with maxiumn input token size 512. It is set
|
5746
|
+
# to `semantic-ranker-512@latest` by default if unspecified.
|
5747
|
+
# Corresponds to the JSON property `model`
|
5748
|
+
# @return [String]
|
5749
|
+
attr_accessor :model
|
5750
|
+
|
5751
|
+
# The query to use.
|
5752
|
+
# Corresponds to the JSON property `query`
|
5753
|
+
# @return [String]
|
5754
|
+
attr_accessor :query
|
5755
|
+
|
5756
|
+
# Required. A list of records to rank.
|
5757
|
+
# Corresponds to the JSON property `records`
|
5758
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankingRecord>]
|
5759
|
+
attr_accessor :records
|
5760
|
+
|
5761
|
+
# The number of results to return. If this is unset or no bigger than zero,
|
5762
|
+
# returns all results.
|
5763
|
+
# Corresponds to the JSON property `topN`
|
5764
|
+
# @return [Fixnum]
|
5765
|
+
attr_accessor :top_n
|
5766
|
+
|
5767
|
+
def initialize(**args)
|
5768
|
+
update!(**args)
|
5769
|
+
end
|
5770
|
+
|
5771
|
+
# Update properties of this object
|
5772
|
+
def update!(**args)
|
5773
|
+
@ignore_record_details_in_response = args[:ignore_record_details_in_response] if args.key?(:ignore_record_details_in_response)
|
5774
|
+
@model = args[:model] if args.key?(:model)
|
5775
|
+
@query = args[:query] if args.key?(:query)
|
5776
|
+
@records = args[:records] if args.key?(:records)
|
5777
|
+
@top_n = args[:top_n] if args.key?(:top_n)
|
5778
|
+
end
|
5779
|
+
end
|
5780
|
+
|
5781
|
+
# Response message for RankService.Rank method.
|
5782
|
+
class GoogleCloudDiscoveryengineV1alphaRankResponse
|
5783
|
+
include Google::Apis::Core::Hashable
|
5784
|
+
|
5785
|
+
# A list of records sorted by descending score.
|
5786
|
+
# Corresponds to the JSON property `records`
|
5787
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRankingRecord>]
|
5788
|
+
attr_accessor :records
|
5789
|
+
|
5790
|
+
def initialize(**args)
|
5791
|
+
update!(**args)
|
5792
|
+
end
|
5793
|
+
|
5794
|
+
# Update properties of this object
|
5795
|
+
def update!(**args)
|
5796
|
+
@records = args[:records] if args.key?(:records)
|
5797
|
+
end
|
5798
|
+
end
|
5799
|
+
|
5800
|
+
# Record message for RankService.Rank method.
|
5801
|
+
class GoogleCloudDiscoveryengineV1alphaRankingRecord
|
5802
|
+
include Google::Apis::Core::Hashable
|
5803
|
+
|
5804
|
+
# The content of the record. Empty by default. At least one of title or content
|
5805
|
+
# should be set otherwise an INVALID_ARGUMENT error is thrown.
|
5806
|
+
# Corresponds to the JSON property `content`
|
5807
|
+
# @return [String]
|
5808
|
+
attr_accessor :content
|
5809
|
+
|
5810
|
+
# The unique ID to represent the record.
|
5811
|
+
# Corresponds to the JSON property `id`
|
5812
|
+
# @return [String]
|
5813
|
+
attr_accessor :id
|
5814
|
+
|
5815
|
+
# The score of this record based on the given query and selected model.
|
5816
|
+
# Corresponds to the JSON property `score`
|
5817
|
+
# @return [Float]
|
5818
|
+
attr_accessor :score
|
5819
|
+
|
5820
|
+
# The title of the record. Empty by default. At least one of title or content
|
5821
|
+
# should be set otherwise an INVALID_ARGUMENT error is thrown.
|
5822
|
+
# Corresponds to the JSON property `title`
|
5823
|
+
# @return [String]
|
5824
|
+
attr_accessor :title
|
5825
|
+
|
5826
|
+
def initialize(**args)
|
5827
|
+
update!(**args)
|
5828
|
+
end
|
5829
|
+
|
5830
|
+
# Update properties of this object
|
5831
|
+
def update!(**args)
|
5832
|
+
@content = args[:content] if args.key?(:content)
|
5833
|
+
@id = args[:id] if args.key?(:id)
|
5834
|
+
@score = args[:score] if args.key?(:score)
|
5835
|
+
@title = args[:title] if args.key?(:title)
|
5836
|
+
end
|
5837
|
+
end
|
5838
|
+
|
5256
5839
|
# Request message for Recommend method.
|
5257
5840
|
class GoogleCloudDiscoveryengineV1alphaRecommendRequest
|
5258
5841
|
include Google::Apis::Core::Hashable
|
@@ -6047,6 +6630,13 @@ module Google
|
|
6047
6630
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
|
6048
6631
|
include Google::Apis::Core::Hashable
|
6049
6632
|
|
6633
|
+
# Specifies the chunk spec to be returned from the search response. Only
|
6634
|
+
# available if the SearchRequest.ContentSearchSpec.search_result_mode is set to
|
6635
|
+
# CHUNKS
|
6636
|
+
# Corresponds to the JSON property `chunkSpec`
|
6637
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec]
|
6638
|
+
attr_accessor :chunk_spec
|
6639
|
+
|
6050
6640
|
# A specification for configuring the extractive content in a search response.
|
6051
6641
|
# Corresponds to the JSON property `extractiveContentSpec`
|
6052
6642
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec]
|
@@ -6076,6 +6666,7 @@ module Google
|
|
6076
6666
|
|
6077
6667
|
# Update properties of this object
|
6078
6668
|
def update!(**args)
|
6669
|
+
@chunk_spec = args[:chunk_spec] if args.key?(:chunk_spec)
|
6079
6670
|
@extractive_content_spec = args[:extractive_content_spec] if args.key?(:extractive_content_spec)
|
6080
6671
|
@search_result_mode = args[:search_result_mode] if args.key?(:search_result_mode)
|
6081
6672
|
@snippet_spec = args[:snippet_spec] if args.key?(:snippet_spec)
|
@@ -6083,6 +6674,35 @@ module Google
|
|
6083
6674
|
end
|
6084
6675
|
end
|
6085
6676
|
|
6677
|
+
# Specifies the chunk spec to be returned from the search response. Only
|
6678
|
+
# available if the SearchRequest.ContentSearchSpec.search_result_mode is set to
|
6679
|
+
# CHUNKS
|
6680
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec
|
6681
|
+
include Google::Apis::Core::Hashable
|
6682
|
+
|
6683
|
+
# The number of next chunks to be returned of the current chunk. The maximum
|
6684
|
+
# allowed value is 3. If not specified, no next chunks will be returned.
|
6685
|
+
# Corresponds to the JSON property `numNextChunks`
|
6686
|
+
# @return [Fixnum]
|
6687
|
+
attr_accessor :num_next_chunks
|
6688
|
+
|
6689
|
+
# The number of previous chunks to be returned of the current chunk. The maximum
|
6690
|
+
# allowed value is 3. If not specified, no previous chunks will be returned.
|
6691
|
+
# Corresponds to the JSON property `numPreviousChunks`
|
6692
|
+
# @return [Fixnum]
|
6693
|
+
attr_accessor :num_previous_chunks
|
6694
|
+
|
6695
|
+
def initialize(**args)
|
6696
|
+
update!(**args)
|
6697
|
+
end
|
6698
|
+
|
6699
|
+
# Update properties of this object
|
6700
|
+
def update!(**args)
|
6701
|
+
@num_next_chunks = args[:num_next_chunks] if args.key?(:num_next_chunks)
|
6702
|
+
@num_previous_chunks = args[:num_previous_chunks] if args.key?(:num_previous_chunks)
|
6703
|
+
end
|
6704
|
+
end
|
6705
|
+
|
6086
6706
|
# A specification for configuring the extractive content in a search response.
|
6087
6707
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
|
6088
6708
|
include Google::Apis::Core::Hashable
|
@@ -7018,6 +7638,11 @@ module Google
|
|
7018
7638
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
|
7019
7639
|
include Google::Apis::Core::Hashable
|
7020
7640
|
|
7641
|
+
# List of cited chunk contents derived from document content.
|
7642
|
+
# Corresponds to the JSON property `chunkContents`
|
7643
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent>]
|
7644
|
+
attr_accessor :chunk_contents
|
7645
|
+
|
7021
7646
|
# Required. Document.name of the document. Full resource name of the referenced
|
7022
7647
|
# document, in the format `projects/*/locations/*/collections/*/dataStores/*/
|
7023
7648
|
# branches/*/documents/*`.
|
@@ -7041,12 +7666,38 @@ module Google
|
|
7041
7666
|
|
7042
7667
|
# Update properties of this object
|
7043
7668
|
def update!(**args)
|
7669
|
+
@chunk_contents = args[:chunk_contents] if args.key?(:chunk_contents)
|
7044
7670
|
@document = args[:document] if args.key?(:document)
|
7045
7671
|
@title = args[:title] if args.key?(:title)
|
7046
7672
|
@uri = args[:uri] if args.key?(:uri)
|
7047
7673
|
end
|
7048
7674
|
end
|
7049
7675
|
|
7676
|
+
# Chunk content.
|
7677
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent
|
7678
|
+
include Google::Apis::Core::Hashable
|
7679
|
+
|
7680
|
+
# Chunk textual content.
|
7681
|
+
# Corresponds to the JSON property `content`
|
7682
|
+
# @return [String]
|
7683
|
+
attr_accessor :content
|
7684
|
+
|
7685
|
+
# Page identifier.
|
7686
|
+
# Corresponds to the JSON property `pageIdentifier`
|
7687
|
+
# @return [String]
|
7688
|
+
attr_accessor :page_identifier
|
7689
|
+
|
7690
|
+
def initialize(**args)
|
7691
|
+
update!(**args)
|
7692
|
+
end
|
7693
|
+
|
7694
|
+
# Update properties of this object
|
7695
|
+
def update!(**args)
|
7696
|
+
@content = args[:content] if args.key?(:content)
|
7697
|
+
@page_identifier = args[:page_identifier] if args.key?(:page_identifier)
|
7698
|
+
end
|
7699
|
+
end
|
7700
|
+
|
7050
7701
|
# Safety Attribute categories and their associated confidence scores.
|
7051
7702
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
|
7052
7703
|
include Google::Apis::Core::Hashable
|
@@ -7419,6 +8070,53 @@ module Google
|
|
7419
8070
|
end
|
7420
8071
|
end
|
7421
8072
|
|
8073
|
+
# The Spanner source for importing data
|
8074
|
+
class GoogleCloudDiscoveryengineV1alphaSpannerSource
|
8075
|
+
include Google::Apis::Core::Hashable
|
8076
|
+
|
8077
|
+
# Required. The database ID of the source Spanner table.
|
8078
|
+
# Corresponds to the JSON property `databaseId`
|
8079
|
+
# @return [String]
|
8080
|
+
attr_accessor :database_id
|
8081
|
+
|
8082
|
+
# Optional. Whether to apply data boost on Spanner export. Enabling this option
|
8083
|
+
# will incur additional cost. More info: https://cloud.google.com/spanner/docs/
|
8084
|
+
# databoost/databoost-overview#billing_and_quotas
|
8085
|
+
# Corresponds to the JSON property `enableDataBoost`
|
8086
|
+
# @return [Boolean]
|
8087
|
+
attr_accessor :enable_data_boost
|
8088
|
+
alias_method :enable_data_boost?, :enable_data_boost
|
8089
|
+
|
8090
|
+
# Required. The instance ID of the source Spanner table.
|
8091
|
+
# Corresponds to the JSON property `instanceId`
|
8092
|
+
# @return [String]
|
8093
|
+
attr_accessor :instance_id
|
8094
|
+
|
8095
|
+
# The project ID that the Spanner source is in with a length limit of 128
|
8096
|
+
# characters. If not specified, inherits the project ID from the parent request.
|
8097
|
+
# Corresponds to the JSON property `projectId`
|
8098
|
+
# @return [String]
|
8099
|
+
attr_accessor :project_id
|
8100
|
+
|
8101
|
+
# Required. The table name of the Spanner database that needs to be imported.
|
8102
|
+
# Corresponds to the JSON property `tableId`
|
8103
|
+
# @return [String]
|
8104
|
+
attr_accessor :table_id
|
8105
|
+
|
8106
|
+
def initialize(**args)
|
8107
|
+
update!(**args)
|
8108
|
+
end
|
8109
|
+
|
8110
|
+
# Update properties of this object
|
8111
|
+
def update!(**args)
|
8112
|
+
@database_id = args[:database_id] if args.key?(:database_id)
|
8113
|
+
@enable_data_boost = args[:enable_data_boost] if args.key?(:enable_data_boost)
|
8114
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
8115
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
8116
|
+
@table_id = args[:table_id] if args.key?(:table_id)
|
8117
|
+
end
|
8118
|
+
end
|
8119
|
+
|
7422
8120
|
# Suggestion deny list entry identifying the phrase to block from suggestions
|
7423
8121
|
# and the applied operation for the phrase.
|
7424
8122
|
class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
|
@@ -7712,6 +8410,11 @@ module Google
|
|
7712
8410
|
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
7713
8411
|
attr_accessor :error_samples
|
7714
8412
|
|
8413
|
+
# The metrics of the trained model.
|
8414
|
+
# Corresponds to the JSON property `metrics`
|
8415
|
+
# @return [Hash<String,Float>]
|
8416
|
+
attr_accessor :metrics
|
8417
|
+
|
7715
8418
|
# The trained model status. Possible values are: * **bad-data**: The training
|
7716
8419
|
# data quality is bad. * **no-improvement**: Tuning didn't improve performance.
|
7717
8420
|
# Won't deploy. * **in-progress**: Model training is in progress. * **ready**:
|
@@ -7728,6 +8431,7 @@ module Google
|
|
7728
8431
|
def update!(**args)
|
7729
8432
|
@error_config = args[:error_config] if args.key?(:error_config)
|
7730
8433
|
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
8434
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
7731
8435
|
@model_status = args[:model_status] if args.key?(:model_status)
|
7732
8436
|
end
|
7733
8437
|
end
|
@@ -8289,6 +8993,12 @@ module Google
|
|
8289
8993
|
attr_accessor :enable_safe_search
|
8290
8994
|
alias_method :enable_safe_search?, :enable_safe_search
|
8291
8995
|
|
8996
|
+
# Whether to enable search-as-you-type behavior for the search widget
|
8997
|
+
# Corresponds to the JSON property `enableSearchAsYouType`
|
8998
|
+
# @return [Boolean]
|
8999
|
+
attr_accessor :enable_search_as_you_type
|
9000
|
+
alias_method :enable_search_as_you_type?, :enable_search_as_you_type
|
9001
|
+
|
8292
9002
|
# Turn on or off summary for each snippets result.
|
8293
9003
|
# Corresponds to the JSON property `enableSnippetResultSummary`
|
8294
9004
|
# @return [Boolean]
|
@@ -8385,6 +9095,7 @@ module Google
|
|
8385
9095
|
@enable_quality_feedback = args[:enable_quality_feedback] if args.key?(:enable_quality_feedback)
|
8386
9096
|
@enable_result_score = args[:enable_result_score] if args.key?(:enable_result_score)
|
8387
9097
|
@enable_safe_search = args[:enable_safe_search] if args.key?(:enable_safe_search)
|
9098
|
+
@enable_search_as_you_type = args[:enable_search_as_you_type] if args.key?(:enable_search_as_you_type)
|
8388
9099
|
@enable_snippet_result_summary = args[:enable_snippet_result_summary] if args.key?(:enable_snippet_result_summary)
|
8389
9100
|
@enable_summarization = args[:enable_summarization] if args.key?(:enable_summarization)
|
8390
9101
|
@enable_web_app = args[:enable_web_app] if args.key?(:enable_web_app)
|
@@ -8424,8 +9135,8 @@ module Google
|
|
8424
9135
|
|
8425
9136
|
# The name of the collection. It should be collection resource name. Format: `
|
8426
9137
|
# projects/`project_number`/locations/`location`/collections/`collection_id``.
|
8427
|
-
# For
|
8428
|
-
#
|
9138
|
+
# For APIs under WidgetService, such as LookUpWidgetConfig, the project number
|
9139
|
+
# and location part is erased in this field.
|
8429
9140
|
# Corresponds to the JSON property `name`
|
8430
9141
|
# @return [String]
|
8431
9142
|
attr_accessor :name
|
@@ -8462,8 +9173,9 @@ module Google
|
|
8462
9173
|
|
8463
9174
|
# The name of the data store. It should be data store resource name Format: `
|
8464
9175
|
# projects/`project_number`/locations/`location`/collections/`collection_id`/
|
8465
|
-
# dataStores/`data_store_id``. For
|
8466
|
-
#
|
9176
|
+
# dataStores/`data_store_id``. For APIs under WidgetService, such as
|
9177
|
+
# LookUpWidgetConfig, the project number and location part is erased in this
|
9178
|
+
# field.
|
8467
9179
|
# Corresponds to the JSON property `name`
|
8468
9180
|
# @return [String]
|
8469
9181
|
attr_accessor :name
|
@@ -8507,8 +9219,9 @@ module Google
|
|
8507
9219
|
|
8508
9220
|
# The name of the data store. It should be data store resource name Format: `
|
8509
9221
|
# projects/`project_number`/locations/`location`/collections/`collection_id`/
|
8510
|
-
# dataStores/`data_store_id``. For
|
8511
|
-
#
|
9222
|
+
# dataStores/`data_store_id``. For APIs under WidgetService, such as
|
9223
|
+
# LookUpWidgetConfig, the project number and location part is erased in this
|
9224
|
+
# field.
|
8512
9225
|
# Corresponds to the JSON property `name`
|
8513
9226
|
# @return [String]
|
8514
9227
|
attr_accessor :name
|
@@ -9485,6 +10198,26 @@ module Google
|
|
9485
10198
|
end
|
9486
10199
|
end
|
9487
10200
|
|
10201
|
+
# Grounding configuration.
|
10202
|
+
class GoogleCloudDiscoveryengineV1betaGroundingConfig
|
10203
|
+
include Google::Apis::Core::Hashable
|
10204
|
+
|
10205
|
+
# Required. Name of the GroundingConfig, of the form `projects/`project`/
|
10206
|
+
# locations/`location`/groundingConfig`.
|
10207
|
+
# Corresponds to the JSON property `name`
|
10208
|
+
# @return [String]
|
10209
|
+
attr_accessor :name
|
10210
|
+
|
10211
|
+
def initialize(**args)
|
10212
|
+
update!(**args)
|
10213
|
+
end
|
10214
|
+
|
10215
|
+
# Update properties of this object
|
10216
|
+
def update!(**args)
|
10217
|
+
@name = args[:name] if args.key?(:name)
|
10218
|
+
end
|
10219
|
+
end
|
10220
|
+
|
9488
10221
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
9489
10222
|
# returned by the google.longrunning.Operation.metadata field.
|
9490
10223
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
|
@@ -10053,6 +10786,11 @@ module Google
|
|
10053
10786
|
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
10054
10787
|
attr_accessor :error_samples
|
10055
10788
|
|
10789
|
+
# The metrics of the trained model.
|
10790
|
+
# Corresponds to the JSON property `metrics`
|
10791
|
+
# @return [Hash<String,Float>]
|
10792
|
+
attr_accessor :metrics
|
10793
|
+
|
10056
10794
|
# The trained model status. Possible values are: * **bad-data**: The training
|
10057
10795
|
# data quality is bad. * **no-improvement**: Tuning didn't improve performance.
|
10058
10796
|
# Won't deploy. * **in-progress**: Model training is in progress. * **ready**:
|
@@ -10069,10 +10807,32 @@ module Google
|
|
10069
10807
|
def update!(**args)
|
10070
10808
|
@error_config = args[:error_config] if args.key?(:error_config)
|
10071
10809
|
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
10810
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
10072
10811
|
@model_status = args[:model_status] if args.key?(:model_status)
|
10073
10812
|
end
|
10074
10813
|
end
|
10075
10814
|
|
10815
|
+
# Metadata associated with a tune operation.
|
10816
|
+
class GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
|
10817
|
+
include Google::Apis::Core::Hashable
|
10818
|
+
|
10819
|
+
# Required. The resource name of the engine that this tune applies to. Format: `
|
10820
|
+
# projects/`project_number`/locations/`location_id`/collections/`collection_id`/
|
10821
|
+
# engines/`engine_id``
|
10822
|
+
# Corresponds to the JSON property `engine`
|
10823
|
+
# @return [String]
|
10824
|
+
attr_accessor :engine
|
10825
|
+
|
10826
|
+
def initialize(**args)
|
10827
|
+
update!(**args)
|
10828
|
+
end
|
10829
|
+
|
10830
|
+
# Update properties of this object
|
10831
|
+
def update!(**args)
|
10832
|
+
@engine = args[:engine] if args.key?(:engine)
|
10833
|
+
end
|
10834
|
+
end
|
10835
|
+
|
10076
10836
|
# Metadata for UpdateSchema LRO.
|
10077
10837
|
class GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
|
10078
10838
|
include Google::Apis::Core::Hashable
|