@google-cloud/discoveryengine 1.4.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
  4. package/build/protos/protos.d.ts +384 -0
  5. package/build/protos/protos.js +906 -0
  6. package/build/protos/protos.json +90 -1
  7. package/build/src/v1/completion_service_client.js +10 -7
  8. package/build/src/v1/conversational_search_service_client.js +10 -7
  9. package/build/src/v1/data_store_service_client.js +10 -7
  10. package/build/src/v1/document_service_client.js +10 -7
  11. package/build/src/v1/engine_service_client.js +10 -7
  12. package/build/src/v1/schema_service_client.js +10 -7
  13. package/build/src/v1/search_service_client.js +10 -7
  14. package/build/src/v1/site_search_engine_service_client.js +10 -7
  15. package/build/src/v1/user_event_service_client.js +10 -7
  16. package/build/src/v1alpha/acl_config_service_client.js +10 -7
  17. package/build/src/v1alpha/chunk_service_client.js +10 -7
  18. package/build/src/v1alpha/completion_service_client.js +10 -7
  19. package/build/src/v1alpha/conversational_search_service_client.js +10 -7
  20. package/build/src/v1alpha/data_store_service_client.js +10 -7
  21. package/build/src/v1alpha/document_service_client.js +10 -7
  22. package/build/src/v1alpha/engine_service_client.js +10 -7
  23. package/build/src/v1alpha/estimate_billing_service_client.js +10 -7
  24. package/build/src/v1alpha/index.d.ts +1 -0
  25. package/build/src/v1alpha/index.js +3 -1
  26. package/build/src/v1alpha/rank_service_client.d.ts +1254 -0
  27. package/build/src/v1alpha/rank_service_client.js +1796 -0
  28. package/build/src/v1alpha/rank_service_client_config.json +30 -0
  29. package/build/src/v1alpha/recommendation_service_client.js +10 -7
  30. package/build/src/v1alpha/schema_service_client.js +10 -7
  31. package/build/src/v1alpha/search_service_client.js +10 -7
  32. package/build/src/v1alpha/search_tuning_service_client.js +10 -7
  33. package/build/src/v1alpha/serving_config_service_client.js +10 -7
  34. package/build/src/v1alpha/site_search_engine_service_client.js +10 -7
  35. package/build/src/v1alpha/user_event_service_client.js +10 -7
  36. package/build/src/v1beta/completion_service_client.js +10 -7
  37. package/build/src/v1beta/conversational_search_service_client.js +10 -7
  38. package/build/src/v1beta/data_store_service_client.js +10 -7
  39. package/build/src/v1beta/document_service_client.js +10 -7
  40. package/build/src/v1beta/engine_service_client.js +10 -7
  41. package/build/src/v1beta/recommendation_service_client.js +10 -7
  42. package/build/src/v1beta/schema_service_client.js +10 -7
  43. package/build/src/v1beta/search_service_client.js +10 -7
  44. package/build/src/v1beta/search_tuning_service_client.js +10 -7
  45. package/build/src/v1beta/serving_config_service_client.js +10 -7
  46. package/build/src/v1beta/site_search_engine_service_client.js +10 -7
  47. package/build/src/v1beta/user_event_service_client.js +10 -7
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v1.5.0...discoveryengine-v1.6.0) (2024-04-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * [Many APIs] add several fields to manage state of database encryption update ([#5188](https://github.com/googleapis/google-cloud-node/issues/5188)) ([c5ccdf9](https://github.com/googleapis/google-cloud-node/commit/c5ccdf93641e7bb6d0e5c636168fad0feafab6e3))
9
+
10
+ ## [1.5.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v1.4.1...discoveryengine-v1.5.0) (2024-04-05)
11
+
12
+
13
+ ### Features
14
+
15
+ * [discoveryengine] support import data from Cloud Spanner, BigTable, SQL and Firestore ([#5218](https://github.com/googleapis/google-cloud-node/issues/5218)) ([cc25e93](https://github.com/googleapis/google-cloud-node/commit/cc25e935f087526738303cd94c406bd352a7b595))
16
+
3
17
  ## [1.4.1](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v1.4.0...discoveryengine-v1.4.1) (2024-03-12)
4
18
 
5
19
 
package/README.md CHANGED
@@ -195,6 +195,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
195
195
  | Document_service.create_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.create_document.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.create_document.js,packages/google-cloud-discoveryengine/samples/README.md) |
196
196
  | Document_service.delete_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.delete_document.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.delete_document.js,packages/google-cloud-discoveryengine/samples/README.md) |
197
197
  | Document_service.get_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.get_document.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.get_document.js,packages/google-cloud-discoveryengine/samples/README.md) |
198
+ | Document_service.get_processed_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.get_processed_document.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.get_processed_document.js,packages/google-cloud-discoveryengine/samples/README.md) |
198
199
  | Document_service.import_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.import_documents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.import_documents.js,packages/google-cloud-discoveryengine/samples/README.md) |
199
200
  | Document_service.list_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.list_documents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.list_documents.js,packages/google-cloud-discoveryengine/samples/README.md) |
200
201
  | Document_service.purge_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.purge_documents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/document_service.purge_documents.js,packages/google-cloud-discoveryengine/samples/README.md) |
@@ -208,6 +209,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
208
209
  | Engine_service.tune_engine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/engine_service.tune_engine.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/engine_service.tune_engine.js,packages/google-cloud-discoveryengine/samples/README.md) |
209
210
  | Engine_service.update_engine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/engine_service.update_engine.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/engine_service.update_engine.js,packages/google-cloud-discoveryengine/samples/README.md) |
210
211
  | Estimate_billing_service.estimate_data_size | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/estimate_billing_service.estimate_data_size.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/estimate_billing_service.estimate_data_size.js,packages/google-cloud-discoveryengine/samples/README.md) |
212
+ | Rank_service.rank | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/rank_service.rank.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/rank_service.rank.js,packages/google-cloud-discoveryengine/samples/README.md) |
211
213
  | Recommendation_service.recommend | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/recommendation_service.recommend.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/recommendation_service.recommend.js,packages/google-cloud-discoveryengine/samples/README.md) |
212
214
  | Schema_service.create_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/schema_service.create_schema.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/schema_service.create_schema.js,packages/google-cloud-discoveryengine/samples/README.md) |
213
215
  | Schema_service.delete_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/schema_service.delete_schema.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/schema_service.delete_schema.js,packages/google-cloud-discoveryengine/samples/README.md) |
@@ -0,0 +1,115 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.cloud.discoveryengine.v1alpha;
18
+
19
+ import "google/api/annotations.proto";
20
+ import "google/api/client.proto";
21
+ import "google/api/field_behavior.proto";
22
+ import "google/api/resource.proto";
23
+
24
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
25
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
26
+ option java_multiple_files = true;
27
+ option java_outer_classname = "RankServiceProto";
28
+ option java_package = "com.google.cloud.discoveryengine.v1alpha";
29
+ option objc_class_prefix = "DISCOVERYENGINE";
30
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
31
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
32
+
33
+ // Service for ranking text records.
34
+ service RankService {
35
+ option (google.api.default_host) = "discoveryengine.googleapis.com";
36
+ option (google.api.oauth_scopes) =
37
+ "https://www.googleapis.com/auth/cloud-platform";
38
+
39
+ // Ranks a list of text records based on the given input query.
40
+ rpc Rank(RankRequest) returns (RankResponse) {
41
+ option (google.api.http) = {
42
+ post: "/v1alpha/{ranking_config=projects/*/locations/*/rankingConfigs/*}:rank"
43
+ body: "*"
44
+ };
45
+ }
46
+ }
47
+
48
+ // Record message for
49
+ // [RankService.Rank][google.cloud.discoveryengine.v1alpha.RankService.Rank]
50
+ // method.
51
+ message RankingRecord {
52
+ // The unique ID to represent the record.
53
+ string id = 1;
54
+
55
+ // The title of the record. Empty by default.
56
+ // At least one of
57
+ // [title][google.cloud.discoveryengine.v1alpha.RankingRecord.title] or
58
+ // [content][google.cloud.discoveryengine.v1alpha.RankingRecord.content]
59
+ // should be set otherwise an INVALID_ARGUMENT error is thrown.
60
+ string title = 2;
61
+
62
+ // The content of the record. Empty by default.
63
+ // At least one of
64
+ // [title][google.cloud.discoveryengine.v1alpha.RankingRecord.title] or
65
+ // [content][google.cloud.discoveryengine.v1alpha.RankingRecord.content]
66
+ // should be set otherwise an INVALID_ARGUMENT error is thrown.
67
+ string content = 3;
68
+
69
+ // The score of this record based on the given query and selected model.
70
+ float score = 4;
71
+ }
72
+
73
+ // Request message for
74
+ // [RankService.Rank][google.cloud.discoveryengine.v1alpha.RankService.Rank]
75
+ // method.
76
+ message RankRequest {
77
+ // Required. The resource name of the rank service config, such as
78
+ // `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
79
+ string ranking_config = 1 [
80
+ (google.api.field_behavior) = REQUIRED,
81
+ (google.api.resource_reference) = {
82
+ type: "discoveryengine.googleapis.com/RankingConfig"
83
+ }
84
+ ];
85
+
86
+ // The identifier of the model to use. It is one of:
87
+ //
88
+ // * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
89
+ // token size 512.
90
+ //
91
+ // It is set to `semantic-ranker-512@latest` by default if unspecified.
92
+ string model = 2;
93
+
94
+ // The number of results to return. If this is unset or no bigger than zero,
95
+ // returns all results.
96
+ int32 top_n = 3;
97
+
98
+ // The query to use.
99
+ string query = 4;
100
+
101
+ // Required. A list of records to rank. At most 200 records to rank.
102
+ repeated RankingRecord records = 5 [(google.api.field_behavior) = REQUIRED];
103
+
104
+ // If true, the response will contain only record ID and score. By default, it
105
+ // is false, the response will contain record details.
106
+ bool ignore_record_details_in_response = 6;
107
+ }
108
+
109
+ // Response message for
110
+ // [RankService.Rank][google.cloud.discoveryengine.v1alpha.RankService.Rank]
111
+ // method.
112
+ message RankResponse {
113
+ // A list of records sorted by descending score.
114
+ repeated RankingRecord records = 5;
115
+ }
@@ -43658,6 +43658,390 @@ export namespace google {
43658
43658
  */
43659
43659
  public static getTypeUrl(typeUrlPrefix?: string): string;
43660
43660
  }
43661
+
43662
+ /** Represents a RankService */
43663
+ class RankService extends $protobuf.rpc.Service {
43664
+
43665
+ /**
43666
+ * Constructs a new RankService service.
43667
+ * @param rpcImpl RPC implementation
43668
+ * @param [requestDelimited=false] Whether requests are length-delimited
43669
+ * @param [responseDelimited=false] Whether responses are length-delimited
43670
+ */
43671
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
43672
+
43673
+ /**
43674
+ * Creates new RankService service using the specified rpc implementation.
43675
+ * @param rpcImpl RPC implementation
43676
+ * @param [requestDelimited=false] Whether requests are length-delimited
43677
+ * @param [responseDelimited=false] Whether responses are length-delimited
43678
+ * @returns RPC service. Useful where requests and/or responses are streamed.
43679
+ */
43680
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RankService;
43681
+
43682
+ /**
43683
+ * Calls Rank.
43684
+ * @param request RankRequest message or plain object
43685
+ * @param callback Node-style callback called with the error, if any, and RankResponse
43686
+ */
43687
+ public rank(request: google.cloud.discoveryengine.v1alpha.IRankRequest, callback: google.cloud.discoveryengine.v1alpha.RankService.RankCallback): void;
43688
+
43689
+ /**
43690
+ * Calls Rank.
43691
+ * @param request RankRequest message or plain object
43692
+ * @returns Promise
43693
+ */
43694
+ public rank(request: google.cloud.discoveryengine.v1alpha.IRankRequest): Promise<google.cloud.discoveryengine.v1alpha.RankResponse>;
43695
+ }
43696
+
43697
+ namespace RankService {
43698
+
43699
+ /**
43700
+ * Callback as used by {@link google.cloud.discoveryengine.v1alpha.RankService|rank}.
43701
+ * @param error Error, if any
43702
+ * @param [response] RankResponse
43703
+ */
43704
+ type RankCallback = (error: (Error|null), response?: google.cloud.discoveryengine.v1alpha.RankResponse) => void;
43705
+ }
43706
+
43707
+ /** Properties of a RankingRecord. */
43708
+ interface IRankingRecord {
43709
+
43710
+ /** RankingRecord id */
43711
+ id?: (string|null);
43712
+
43713
+ /** RankingRecord title */
43714
+ title?: (string|null);
43715
+
43716
+ /** RankingRecord content */
43717
+ content?: (string|null);
43718
+
43719
+ /** RankingRecord score */
43720
+ score?: (number|null);
43721
+ }
43722
+
43723
+ /** Represents a RankingRecord. */
43724
+ class RankingRecord implements IRankingRecord {
43725
+
43726
+ /**
43727
+ * Constructs a new RankingRecord.
43728
+ * @param [properties] Properties to set
43729
+ */
43730
+ constructor(properties?: google.cloud.discoveryengine.v1alpha.IRankingRecord);
43731
+
43732
+ /** RankingRecord id. */
43733
+ public id: string;
43734
+
43735
+ /** RankingRecord title. */
43736
+ public title: string;
43737
+
43738
+ /** RankingRecord content. */
43739
+ public content: string;
43740
+
43741
+ /** RankingRecord score. */
43742
+ public score: number;
43743
+
43744
+ /**
43745
+ * Creates a new RankingRecord instance using the specified properties.
43746
+ * @param [properties] Properties to set
43747
+ * @returns RankingRecord instance
43748
+ */
43749
+ public static create(properties?: google.cloud.discoveryengine.v1alpha.IRankingRecord): google.cloud.discoveryengine.v1alpha.RankingRecord;
43750
+
43751
+ /**
43752
+ * Encodes the specified RankingRecord message. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankingRecord.verify|verify} messages.
43753
+ * @param message RankingRecord message or plain object to encode
43754
+ * @param [writer] Writer to encode to
43755
+ * @returns Writer
43756
+ */
43757
+ public static encode(message: google.cloud.discoveryengine.v1alpha.IRankingRecord, writer?: $protobuf.Writer): $protobuf.Writer;
43758
+
43759
+ /**
43760
+ * Encodes the specified RankingRecord message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankingRecord.verify|verify} messages.
43761
+ * @param message RankingRecord message or plain object to encode
43762
+ * @param [writer] Writer to encode to
43763
+ * @returns Writer
43764
+ */
43765
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1alpha.IRankingRecord, writer?: $protobuf.Writer): $protobuf.Writer;
43766
+
43767
+ /**
43768
+ * Decodes a RankingRecord message from the specified reader or buffer.
43769
+ * @param reader Reader or buffer to decode from
43770
+ * @param [length] Message length if known beforehand
43771
+ * @returns RankingRecord
43772
+ * @throws {Error} If the payload is not a reader or valid buffer
43773
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43774
+ */
43775
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1alpha.RankingRecord;
43776
+
43777
+ /**
43778
+ * Decodes a RankingRecord message from the specified reader or buffer, length delimited.
43779
+ * @param reader Reader or buffer to decode from
43780
+ * @returns RankingRecord
43781
+ * @throws {Error} If the payload is not a reader or valid buffer
43782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43783
+ */
43784
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1alpha.RankingRecord;
43785
+
43786
+ /**
43787
+ * Verifies a RankingRecord message.
43788
+ * @param message Plain object to verify
43789
+ * @returns `null` if valid, otherwise the reason why it is not
43790
+ */
43791
+ public static verify(message: { [k: string]: any }): (string|null);
43792
+
43793
+ /**
43794
+ * Creates a RankingRecord message from a plain object. Also converts values to their respective internal types.
43795
+ * @param object Plain object
43796
+ * @returns RankingRecord
43797
+ */
43798
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1alpha.RankingRecord;
43799
+
43800
+ /**
43801
+ * Creates a plain object from a RankingRecord message. Also converts values to other types if specified.
43802
+ * @param message RankingRecord
43803
+ * @param [options] Conversion options
43804
+ * @returns Plain object
43805
+ */
43806
+ public static toObject(message: google.cloud.discoveryengine.v1alpha.RankingRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
43807
+
43808
+ /**
43809
+ * Converts this RankingRecord to JSON.
43810
+ * @returns JSON object
43811
+ */
43812
+ public toJSON(): { [k: string]: any };
43813
+
43814
+ /**
43815
+ * Gets the default type url for RankingRecord
43816
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
43817
+ * @returns The default type url
43818
+ */
43819
+ public static getTypeUrl(typeUrlPrefix?: string): string;
43820
+ }
43821
+
43822
+ /** Properties of a RankRequest. */
43823
+ interface IRankRequest {
43824
+
43825
+ /** RankRequest rankingConfig */
43826
+ rankingConfig?: (string|null);
43827
+
43828
+ /** RankRequest model */
43829
+ model?: (string|null);
43830
+
43831
+ /** RankRequest topN */
43832
+ topN?: (number|null);
43833
+
43834
+ /** RankRequest query */
43835
+ query?: (string|null);
43836
+
43837
+ /** RankRequest records */
43838
+ records?: (google.cloud.discoveryengine.v1alpha.IRankingRecord[]|null);
43839
+
43840
+ /** RankRequest ignoreRecordDetailsInResponse */
43841
+ ignoreRecordDetailsInResponse?: (boolean|null);
43842
+ }
43843
+
43844
+ /** Represents a RankRequest. */
43845
+ class RankRequest implements IRankRequest {
43846
+
43847
+ /**
43848
+ * Constructs a new RankRequest.
43849
+ * @param [properties] Properties to set
43850
+ */
43851
+ constructor(properties?: google.cloud.discoveryengine.v1alpha.IRankRequest);
43852
+
43853
+ /** RankRequest rankingConfig. */
43854
+ public rankingConfig: string;
43855
+
43856
+ /** RankRequest model. */
43857
+ public model: string;
43858
+
43859
+ /** RankRequest topN. */
43860
+ public topN: number;
43861
+
43862
+ /** RankRequest query. */
43863
+ public query: string;
43864
+
43865
+ /** RankRequest records. */
43866
+ public records: google.cloud.discoveryengine.v1alpha.IRankingRecord[];
43867
+
43868
+ /** RankRequest ignoreRecordDetailsInResponse. */
43869
+ public ignoreRecordDetailsInResponse: boolean;
43870
+
43871
+ /**
43872
+ * Creates a new RankRequest instance using the specified properties.
43873
+ * @param [properties] Properties to set
43874
+ * @returns RankRequest instance
43875
+ */
43876
+ public static create(properties?: google.cloud.discoveryengine.v1alpha.IRankRequest): google.cloud.discoveryengine.v1alpha.RankRequest;
43877
+
43878
+ /**
43879
+ * Encodes the specified RankRequest message. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankRequest.verify|verify} messages.
43880
+ * @param message RankRequest message or plain object to encode
43881
+ * @param [writer] Writer to encode to
43882
+ * @returns Writer
43883
+ */
43884
+ public static encode(message: google.cloud.discoveryengine.v1alpha.IRankRequest, writer?: $protobuf.Writer): $protobuf.Writer;
43885
+
43886
+ /**
43887
+ * Encodes the specified RankRequest message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankRequest.verify|verify} messages.
43888
+ * @param message RankRequest message or plain object to encode
43889
+ * @param [writer] Writer to encode to
43890
+ * @returns Writer
43891
+ */
43892
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1alpha.IRankRequest, writer?: $protobuf.Writer): $protobuf.Writer;
43893
+
43894
+ /**
43895
+ * Decodes a RankRequest message from the specified reader or buffer.
43896
+ * @param reader Reader or buffer to decode from
43897
+ * @param [length] Message length if known beforehand
43898
+ * @returns RankRequest
43899
+ * @throws {Error} If the payload is not a reader or valid buffer
43900
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43901
+ */
43902
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1alpha.RankRequest;
43903
+
43904
+ /**
43905
+ * Decodes a RankRequest message from the specified reader or buffer, length delimited.
43906
+ * @param reader Reader or buffer to decode from
43907
+ * @returns RankRequest
43908
+ * @throws {Error} If the payload is not a reader or valid buffer
43909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43910
+ */
43911
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1alpha.RankRequest;
43912
+
43913
+ /**
43914
+ * Verifies a RankRequest message.
43915
+ * @param message Plain object to verify
43916
+ * @returns `null` if valid, otherwise the reason why it is not
43917
+ */
43918
+ public static verify(message: { [k: string]: any }): (string|null);
43919
+
43920
+ /**
43921
+ * Creates a RankRequest message from a plain object. Also converts values to their respective internal types.
43922
+ * @param object Plain object
43923
+ * @returns RankRequest
43924
+ */
43925
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1alpha.RankRequest;
43926
+
43927
+ /**
43928
+ * Creates a plain object from a RankRequest message. Also converts values to other types if specified.
43929
+ * @param message RankRequest
43930
+ * @param [options] Conversion options
43931
+ * @returns Plain object
43932
+ */
43933
+ public static toObject(message: google.cloud.discoveryengine.v1alpha.RankRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
43934
+
43935
+ /**
43936
+ * Converts this RankRequest to JSON.
43937
+ * @returns JSON object
43938
+ */
43939
+ public toJSON(): { [k: string]: any };
43940
+
43941
+ /**
43942
+ * Gets the default type url for RankRequest
43943
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
43944
+ * @returns The default type url
43945
+ */
43946
+ public static getTypeUrl(typeUrlPrefix?: string): string;
43947
+ }
43948
+
43949
+ /** Properties of a RankResponse. */
43950
+ interface IRankResponse {
43951
+
43952
+ /** RankResponse records */
43953
+ records?: (google.cloud.discoveryengine.v1alpha.IRankingRecord[]|null);
43954
+ }
43955
+
43956
+ /** Represents a RankResponse. */
43957
+ class RankResponse implements IRankResponse {
43958
+
43959
+ /**
43960
+ * Constructs a new RankResponse.
43961
+ * @param [properties] Properties to set
43962
+ */
43963
+ constructor(properties?: google.cloud.discoveryengine.v1alpha.IRankResponse);
43964
+
43965
+ /** RankResponse records. */
43966
+ public records: google.cloud.discoveryengine.v1alpha.IRankingRecord[];
43967
+
43968
+ /**
43969
+ * Creates a new RankResponse instance using the specified properties.
43970
+ * @param [properties] Properties to set
43971
+ * @returns RankResponse instance
43972
+ */
43973
+ public static create(properties?: google.cloud.discoveryengine.v1alpha.IRankResponse): google.cloud.discoveryengine.v1alpha.RankResponse;
43974
+
43975
+ /**
43976
+ * Encodes the specified RankResponse message. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankResponse.verify|verify} messages.
43977
+ * @param message RankResponse message or plain object to encode
43978
+ * @param [writer] Writer to encode to
43979
+ * @returns Writer
43980
+ */
43981
+ public static encode(message: google.cloud.discoveryengine.v1alpha.IRankResponse, writer?: $protobuf.Writer): $protobuf.Writer;
43982
+
43983
+ /**
43984
+ * Encodes the specified RankResponse message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1alpha.RankResponse.verify|verify} messages.
43985
+ * @param message RankResponse message or plain object to encode
43986
+ * @param [writer] Writer to encode to
43987
+ * @returns Writer
43988
+ */
43989
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1alpha.IRankResponse, writer?: $protobuf.Writer): $protobuf.Writer;
43990
+
43991
+ /**
43992
+ * Decodes a RankResponse message from the specified reader or buffer.
43993
+ * @param reader Reader or buffer to decode from
43994
+ * @param [length] Message length if known beforehand
43995
+ * @returns RankResponse
43996
+ * @throws {Error} If the payload is not a reader or valid buffer
43997
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43998
+ */
43999
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1alpha.RankResponse;
44000
+
44001
+ /**
44002
+ * Decodes a RankResponse message from the specified reader or buffer, length delimited.
44003
+ * @param reader Reader or buffer to decode from
44004
+ * @returns RankResponse
44005
+ * @throws {Error} If the payload is not a reader or valid buffer
44006
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44007
+ */
44008
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1alpha.RankResponse;
44009
+
44010
+ /**
44011
+ * Verifies a RankResponse message.
44012
+ * @param message Plain object to verify
44013
+ * @returns `null` if valid, otherwise the reason why it is not
44014
+ */
44015
+ public static verify(message: { [k: string]: any }): (string|null);
44016
+
44017
+ /**
44018
+ * Creates a RankResponse message from a plain object. Also converts values to their respective internal types.
44019
+ * @param object Plain object
44020
+ * @returns RankResponse
44021
+ */
44022
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1alpha.RankResponse;
44023
+
44024
+ /**
44025
+ * Creates a plain object from a RankResponse message. Also converts values to other types if specified.
44026
+ * @param message RankResponse
44027
+ * @param [options] Conversion options
44028
+ * @returns Plain object
44029
+ */
44030
+ public static toObject(message: google.cloud.discoveryengine.v1alpha.RankResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
44031
+
44032
+ /**
44033
+ * Converts this RankResponse to JSON.
44034
+ * @returns JSON object
44035
+ */
44036
+ public toJSON(): { [k: string]: any };
44037
+
44038
+ /**
44039
+ * Gets the default type url for RankResponse
44040
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
44041
+ * @returns The default type url
44042
+ */
44043
+ public static getTypeUrl(typeUrlPrefix?: string): string;
44044
+ }
43661
44045
  }
43662
44046
 
43663
44047
  /** Namespace v1beta. */