You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/discovery_engine/lib/google_api/discovery_engine/v1/api/projects.ex
+225Lines changed: 225 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3826,6 +3826,81 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
3826
3826
)
3827
3827
end
3828
3828
3829
+
@doc """
3830
+
Performs a search. Similar to the SearchService.Search method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use SearchService.Search instead with required OAuth and IAM checks to provide better data security.
3831
+
3832
+
## Parameters
3833
+
3834
+
* `connection` (*type:* `GoogleApi.DiscoveryEngine.V1.Connection.t`) - Connection to server
3835
+
* `serving_config` (*type:* `String.t`) - Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
* `:alt` (*type:* `String.t`) - Data format for response.
3840
+
* `:callback` (*type:* `String.t`) - JSONP
3841
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3842
+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
3843
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3844
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3845
+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
3846
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3847
+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned.
3831
3906
@@ -7456,6 +7531,81 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
7456
7531
)
7457
7532
end
7458
7533
7534
+
@doc """
7535
+
Performs a search. Similar to the SearchService.Search method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use SearchService.Search instead with required OAuth and IAM checks to provide better data security.
7536
+
7537
+
## Parameters
7538
+
7539
+
* `connection` (*type:* `GoogleApi.DiscoveryEngine.V1.Connection.t`) - Connection to server
7540
+
* `serving_config` (*type:* `String.t`) - Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
* `:alt` (*type:* `String.t`) - Data format for response.
7545
+
* `:callback` (*type:* `String.t`) - JSONP
7546
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
7547
+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
7548
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
7549
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
7550
+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
7551
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
7552
+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned.
7461
7611
@@ -11342,6 +11492,81 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
11342
11492
)
11343
11493
end
11344
11494
11495
+
@doc """
11496
+
Performs a search. Similar to the SearchService.Search method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use SearchService.Search instead with required OAuth and IAM checks to provide better data security.
11497
+
11498
+
## Parameters
11499
+
11500
+
* `connection` (*type:* `GoogleApi.DiscoveryEngine.V1.Connection.t`) - Connection to server
11501
+
* `serving_config` (*type:* `String.t`) - Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
* `:alt` (*type:* `String.t`) - Data format for response.
11506
+
* `:callback` (*type:* `String.t`) - JSONP
11507
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
11508
+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
11509
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
11510
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
11511
+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
11512
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
11513
+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
`Distribution` contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets. The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths. Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the `mean` and `sum_of_squared_deviation` fields meaningless.
21
+
22
+
## Attributes
23
+
24
+
* `bucketCounts` (*type:* `list(String.t)`, *default:* `nil`) - The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1).
25
+
* `bucketOptions` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleApiDistributionBucketOptions.t`, *default:* `nil`) - Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
26
+
* `count` (*type:* `String.t`, *default:* `nil`) - The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided.
27
+
* `exemplars` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleApiDistributionExemplar.t)`, *default:* `nil`) - Must be in increasing order of `value` field.
28
+
* `mean` (*type:* `float()`, *default:* `nil`) - The arithmetic mean of the values in the population. If `count` is zero then this field must be zero.
29
+
* `range` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleApiDistributionRange.t`, *default:* `nil`) - If specified, contains the range of the population values. The field must not be present if the `count` is zero.
30
+
* `sumOfSquaredDeviation` (*type:* `float()`, *default:* `nil`) - The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero.
0 commit comments