@google-cloud/discoveryengine 0.5.0 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v0.5.0...discoveryengine-v0.6.0) (2023-05-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * [discoveryengine] add document purge API ([#4219](https://github.com/googleapis/google-cloud-node/issues/4219)) ([454fa79](https://github.com/googleapis/google-cloud-node/commit/454fa7943ddf664bc54a67e654d7e8a39ea55fed))
9
+
3
10
  ## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v0.4.1...discoveryengine-v0.5.0) (2023-04-24)
4
11
 
5
12
 
package/README.md CHANGED
@@ -131,6 +131,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
131
131
  | Document_service.get_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/document_service.get_document.js,samples/README.md) |
132
132
  | Document_service.import_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/document_service.import_documents.js,samples/README.md) |
133
133
  | Document_service.list_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/document_service.list_documents.js,samples/README.md) |
134
+ | Document_service.purge_documents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/document_service.purge_documents.js,samples/README.md) |
134
135
  | Document_service.update_document | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/document_service.update_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/v1beta/document_service.update_document.js,samples/README.md) |
135
136
  | Recommendation_service.recommend | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/recommendation_service.recommend.js,samples/README.md) |
136
137
  | Schema_service.create_schema | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1beta/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/v1beta/schema_service.create_schema.js,samples/README.md) |
@@ -122,6 +122,8 @@ message UserInfo {
122
122
  // This should not be set when using the client side event reporting with
123
123
  // GTM or JavaScript tag in
124
124
  // [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1beta.UserEventService.CollectUserEvent]
125
- // or if [direct_user_request][] is set.
125
+ // or if
126
+ // [UserEvent.direct_user_request][google.cloud.discoveryengine.v1beta.UserEvent.direct_user_request]
127
+ // is set.
126
128
  string user_agent = 2;
127
129
  }
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
22
22
  import "google/api/resource.proto";
23
23
  import "google/cloud/discoveryengine/v1beta/document.proto";
24
24
  import "google/cloud/discoveryengine/v1beta/import_config.proto";
25
+ import "google/cloud/discoveryengine/v1beta/purge_config.proto";
25
26
  import "google/longrunning/operations.proto";
26
27
  import "google/protobuf/empty.proto";
27
28
 
@@ -122,6 +123,39 @@ service DocumentService {
122
123
  metadata_type: "google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata"
123
124
  };
124
125
  }
126
+
127
+ // Permanently deletes all selected
128
+ // [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch.
129
+ //
130
+ // This process is asynchronous. Depending on the number of
131
+ // [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
132
+ // this operation can take hours to complete. Before the delete operation
133
+ // completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s
134
+ // might still be returned by
135
+ // [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
136
+ // or
137
+ // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
138
+ //
139
+ // To get a list of the
140
+ // [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted,
141
+ // set
142
+ // [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force]
143
+ // to false.
144
+ rpc PurgeDocuments(PurgeDocumentsRequest)
145
+ returns (google.longrunning.Operation) {
146
+ option (google.api.http) = {
147
+ post: "/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge"
148
+ body: "*"
149
+ additional_bindings {
150
+ post: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge"
151
+ body: "*"
152
+ }
153
+ };
154
+ option (google.longrunning.operation_info) = {
155
+ response_type: "google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse"
156
+ metadata_type: "google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata"
157
+ };
158
+ }
125
159
  }
126
160
 
127
161
  // Request message for
@@ -0,0 +1,86 @@
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.v1beta;
18
+
19
+ import "google/api/field_behavior.proto";
20
+ import "google/api/resource.proto";
21
+ import "google/protobuf/timestamp.proto";
22
+
23
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
24
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "PurgeConfigProto";
27
+ option java_package = "com.google.cloud.discoveryengine.v1beta";
28
+ option objc_class_prefix = "DISCOVERYENGINE";
29
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
30
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
31
+
32
+ // Request message for
33
+ // [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
34
+ // method.
35
+ message PurgeDocumentsRequest {
36
+ // Required. The parent resource name, such as
37
+ // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
38
+ string parent = 1 [
39
+ (google.api.field_behavior) = REQUIRED,
40
+ (google.api.resource_reference) = {
41
+ type: "discoveryengine.googleapis.com/Branch"
42
+ }
43
+ ];
44
+
45
+ // Required. Filter matching documents to purge. Only currently supported
46
+ // value is
47
+ // `*` (all items).
48
+ string filter = 2 [(google.api.field_behavior) = REQUIRED];
49
+
50
+ // Actually performs the purge. If `force` is set to false, return the
51
+ // expected purge count without deleting any documents.
52
+ bool force = 3;
53
+ }
54
+
55
+ // Response message for
56
+ // [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
57
+ // method. If the long running operation is successfully done, then this message
58
+ // is returned by the google.longrunning.Operations.response field.
59
+ message PurgeDocumentsResponse {
60
+ // The total count of documents purged as a result of the operation.
61
+ int64 purge_count = 1;
62
+
63
+ // A sample of document names that will be deleted. Only populated if `force`
64
+ // is set to false. A max of 100 names will be returned and the names are
65
+ // chosen at random.
66
+ repeated string purge_sample = 2 [(google.api.resource_reference) = {
67
+ type: "discoveryengine.googleapis.com/Document"
68
+ }];
69
+ }
70
+
71
+ // Metadata related to the progress of the PurgeDocuments operation.
72
+ // This will be returned by the google.longrunning.Operation.metadata field.
73
+ message PurgeDocumentsMetadata {
74
+ // Operation create time.
75
+ google.protobuf.Timestamp create_time = 1;
76
+
77
+ // Operation last update time. If the operation is done, this is also the
78
+ // finish time.
79
+ google.protobuf.Timestamp update_time = 2;
80
+
81
+ // Count of entries that were deleted successfully.
82
+ int64 success_count = 3;
83
+
84
+ // Count of entries that encountered errors while processing.
85
+ int64 failure_count = 4;
86
+ }
@@ -114,17 +114,19 @@ message UserEvent {
114
114
  // Token to attribute an API response to user action(s) to trigger the event.
115
115
  //
116
116
  // Highly recommended for user events that are the result of
117
- // [PredictionService.Predict][]. This field enables accurate attribution of
118
- // recommendation model performance.
117
+ // [RecommendationService.Recommend][google.cloud.discoveryengine.v1beta.RecommendationService.Recommend].
118
+ // This field enables accurate attribution of recommendation model
119
+ // performance.
119
120
  //
120
121
  // The value must be one of:
121
122
  //
122
123
  // * [PredictResponse.attribution_token][] for events that are the result of
123
- // [PredictionService.Predict][].
124
+ // [RecommendationService.Recommend][google.cloud.discoveryengine.v1beta.RecommendationService.Recommend].
124
125
  // * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token] for events that are the result of
125
126
  // [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search].
126
127
  // * [CompleteQueryResponse.attribution_token][] for events that are the
127
- // result of [SearchService.CompleteQuery][].
128
+ // result of
129
+ // [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery].
128
130
  //
129
131
  // This token enables us to accurately attribute page view or conversion
130
132
  // completion back to the event and the particular predict response containing
@@ -138,14 +140,15 @@ message UserEvent {
138
140
  // predicate from one or more fields of the documents being filtered.
139
141
  //
140
142
  // One example is for `search` events, the associated
141
- // [SearchService.SearchRequest][] may contain a filter expression in
142
- // [SearchService.SearchRequest.filter][] conforming to
143
- // https://google.aip.dev/160#filtering.
143
+ // [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
144
+ // contain a filter expression in
145
+ // [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter]
146
+ // conforming to https://google.aip.dev/160#filtering.
144
147
  //
145
148
  // Similarly, for `view-item-list` events that are generated from a
146
- // [PredictionService.PredictRequest][], this field may be populated directly
147
- // from [PredictionService.PredictRequest.filter][] conforming to
148
- // https://google.aip.dev/160#filtering.
149
+ // [RecommendationService.RecommendRequest][], this field may be populated
150
+ // directly from [RecommendationService.RecommendRequest.filter][] conforming
151
+ // to https://google.aip.dev/160#filtering.
149
152
  //
150
153
  // The value must be a UTF-8 encoded string with a length limit of 1,000
151
154
  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -284,9 +287,10 @@ message SearchInfo {
284
287
  //
285
288
  // At least one of
286
289
  // [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query]
287
- // or [page_categories][] is required for `search` events. Other event types
288
- // should not set this field. Otherwise, an INVALID_ARGUMENT error is
289
- // returned.
290
+ // or
291
+ // [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category]
292
+ // is required for `search` events. Other event types should not set this
293
+ // field. Otherwise, an INVALID_ARGUMENT error is returned.
290
294
  string search_query = 1;
291
295
 
292
296
  // The order in which products are returned, if applicable.
@@ -1070,6 +1070,20 @@ export namespace google {
1070
1070
  * @returns Promise
1071
1071
  */
1072
1072
  public importDocuments(request: google.cloud.discoveryengine.v1beta.IImportDocumentsRequest): Promise<google.longrunning.Operation>;
1073
+
1074
+ /**
1075
+ * Calls PurgeDocuments.
1076
+ * @param request PurgeDocumentsRequest message or plain object
1077
+ * @param callback Node-style callback called with the error, if any, and Operation
1078
+ */
1079
+ public purgeDocuments(request: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest, callback: google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocumentsCallback): void;
1080
+
1081
+ /**
1082
+ * Calls PurgeDocuments.
1083
+ * @param request PurgeDocumentsRequest message or plain object
1084
+ * @returns Promise
1085
+ */
1086
+ public purgeDocuments(request: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest): Promise<google.longrunning.Operation>;
1073
1087
  }
1074
1088
 
1075
1089
  namespace DocumentService {
@@ -1115,6 +1129,13 @@ export namespace google {
1115
1129
  * @param [response] Operation
1116
1130
  */
1117
1131
  type ImportDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
1132
+
1133
+ /**
1134
+ * Callback as used by {@link google.cloud.discoveryengine.v1beta.DocumentService|purgeDocuments}.
1135
+ * @param error Error, if any
1136
+ * @param [response] Operation
1137
+ */
1138
+ type PurgeDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
1118
1139
  }
1119
1140
 
1120
1141
  /** Properties of a GetDocumentRequest. */
@@ -3993,6 +4014,333 @@ export namespace google {
3993
4014
  public static getTypeUrl(typeUrlPrefix?: string): string;
3994
4015
  }
3995
4016
 
4017
+ /** Properties of a PurgeDocumentsRequest. */
4018
+ interface IPurgeDocumentsRequest {
4019
+
4020
+ /** PurgeDocumentsRequest parent */
4021
+ parent?: (string|null);
4022
+
4023
+ /** PurgeDocumentsRequest filter */
4024
+ filter?: (string|null);
4025
+
4026
+ /** PurgeDocumentsRequest force */
4027
+ force?: (boolean|null);
4028
+ }
4029
+
4030
+ /** Represents a PurgeDocumentsRequest. */
4031
+ class PurgeDocumentsRequest implements IPurgeDocumentsRequest {
4032
+
4033
+ /**
4034
+ * Constructs a new PurgeDocumentsRequest.
4035
+ * @param [properties] Properties to set
4036
+ */
4037
+ constructor(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest);
4038
+
4039
+ /** PurgeDocumentsRequest parent. */
4040
+ public parent: string;
4041
+
4042
+ /** PurgeDocumentsRequest filter. */
4043
+ public filter: string;
4044
+
4045
+ /** PurgeDocumentsRequest force. */
4046
+ public force: boolean;
4047
+
4048
+ /**
4049
+ * Creates a new PurgeDocumentsRequest instance using the specified properties.
4050
+ * @param [properties] Properties to set
4051
+ * @returns PurgeDocumentsRequest instance
4052
+ */
4053
+ public static create(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest): google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest;
4054
+
4055
+ /**
4056
+ * Encodes the specified PurgeDocumentsRequest message. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.verify|verify} messages.
4057
+ * @param message PurgeDocumentsRequest message or plain object to encode
4058
+ * @param [writer] Writer to encode to
4059
+ * @returns Writer
4060
+ */
4061
+ public static encode(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4062
+
4063
+ /**
4064
+ * Encodes the specified PurgeDocumentsRequest message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.verify|verify} messages.
4065
+ * @param message PurgeDocumentsRequest message or plain object to encode
4066
+ * @param [writer] Writer to encode to
4067
+ * @returns Writer
4068
+ */
4069
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
4070
+
4071
+ /**
4072
+ * Decodes a PurgeDocumentsRequest message from the specified reader or buffer.
4073
+ * @param reader Reader or buffer to decode from
4074
+ * @param [length] Message length if known beforehand
4075
+ * @returns PurgeDocumentsRequest
4076
+ * @throws {Error} If the payload is not a reader or valid buffer
4077
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4078
+ */
4079
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest;
4080
+
4081
+ /**
4082
+ * Decodes a PurgeDocumentsRequest message from the specified reader or buffer, length delimited.
4083
+ * @param reader Reader or buffer to decode from
4084
+ * @returns PurgeDocumentsRequest
4085
+ * @throws {Error} If the payload is not a reader or valid buffer
4086
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4087
+ */
4088
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest;
4089
+
4090
+ /**
4091
+ * Verifies a PurgeDocumentsRequest message.
4092
+ * @param message Plain object to verify
4093
+ * @returns `null` if valid, otherwise the reason why it is not
4094
+ */
4095
+ public static verify(message: { [k: string]: any }): (string|null);
4096
+
4097
+ /**
4098
+ * Creates a PurgeDocumentsRequest message from a plain object. Also converts values to their respective internal types.
4099
+ * @param object Plain object
4100
+ * @returns PurgeDocumentsRequest
4101
+ */
4102
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest;
4103
+
4104
+ /**
4105
+ * Creates a plain object from a PurgeDocumentsRequest message. Also converts values to other types if specified.
4106
+ * @param message PurgeDocumentsRequest
4107
+ * @param [options] Conversion options
4108
+ * @returns Plain object
4109
+ */
4110
+ public static toObject(message: google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
4111
+
4112
+ /**
4113
+ * Converts this PurgeDocumentsRequest to JSON.
4114
+ * @returns JSON object
4115
+ */
4116
+ public toJSON(): { [k: string]: any };
4117
+
4118
+ /**
4119
+ * Gets the default type url for PurgeDocumentsRequest
4120
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4121
+ * @returns The default type url
4122
+ */
4123
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4124
+ }
4125
+
4126
+ /** Properties of a PurgeDocumentsResponse. */
4127
+ interface IPurgeDocumentsResponse {
4128
+
4129
+ /** PurgeDocumentsResponse purgeCount */
4130
+ purgeCount?: (number|Long|string|null);
4131
+
4132
+ /** PurgeDocumentsResponse purgeSample */
4133
+ purgeSample?: (string[]|null);
4134
+ }
4135
+
4136
+ /** Represents a PurgeDocumentsResponse. */
4137
+ class PurgeDocumentsResponse implements IPurgeDocumentsResponse {
4138
+
4139
+ /**
4140
+ * Constructs a new PurgeDocumentsResponse.
4141
+ * @param [properties] Properties to set
4142
+ */
4143
+ constructor(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsResponse);
4144
+
4145
+ /** PurgeDocumentsResponse purgeCount. */
4146
+ public purgeCount: (number|Long|string);
4147
+
4148
+ /** PurgeDocumentsResponse purgeSample. */
4149
+ public purgeSample: string[];
4150
+
4151
+ /**
4152
+ * Creates a new PurgeDocumentsResponse instance using the specified properties.
4153
+ * @param [properties] Properties to set
4154
+ * @returns PurgeDocumentsResponse instance
4155
+ */
4156
+ public static create(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsResponse): google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse;
4157
+
4158
+ /**
4159
+ * Encodes the specified PurgeDocumentsResponse message. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.verify|verify} messages.
4160
+ * @param message PurgeDocumentsResponse message or plain object to encode
4161
+ * @param [writer] Writer to encode to
4162
+ * @returns Writer
4163
+ */
4164
+ public static encode(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4165
+
4166
+ /**
4167
+ * Encodes the specified PurgeDocumentsResponse message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse.verify|verify} messages.
4168
+ * @param message PurgeDocumentsResponse message or plain object to encode
4169
+ * @param [writer] Writer to encode to
4170
+ * @returns Writer
4171
+ */
4172
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
4173
+
4174
+ /**
4175
+ * Decodes a PurgeDocumentsResponse message from the specified reader or buffer.
4176
+ * @param reader Reader or buffer to decode from
4177
+ * @param [length] Message length if known beforehand
4178
+ * @returns PurgeDocumentsResponse
4179
+ * @throws {Error} If the payload is not a reader or valid buffer
4180
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4181
+ */
4182
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse;
4183
+
4184
+ /**
4185
+ * Decodes a PurgeDocumentsResponse message from the specified reader or buffer, length delimited.
4186
+ * @param reader Reader or buffer to decode from
4187
+ * @returns PurgeDocumentsResponse
4188
+ * @throws {Error} If the payload is not a reader or valid buffer
4189
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4190
+ */
4191
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse;
4192
+
4193
+ /**
4194
+ * Verifies a PurgeDocumentsResponse message.
4195
+ * @param message Plain object to verify
4196
+ * @returns `null` if valid, otherwise the reason why it is not
4197
+ */
4198
+ public static verify(message: { [k: string]: any }): (string|null);
4199
+
4200
+ /**
4201
+ * Creates a PurgeDocumentsResponse message from a plain object. Also converts values to their respective internal types.
4202
+ * @param object Plain object
4203
+ * @returns PurgeDocumentsResponse
4204
+ */
4205
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse;
4206
+
4207
+ /**
4208
+ * Creates a plain object from a PurgeDocumentsResponse message. Also converts values to other types if specified.
4209
+ * @param message PurgeDocumentsResponse
4210
+ * @param [options] Conversion options
4211
+ * @returns Plain object
4212
+ */
4213
+ public static toObject(message: google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
4214
+
4215
+ /**
4216
+ * Converts this PurgeDocumentsResponse to JSON.
4217
+ * @returns JSON object
4218
+ */
4219
+ public toJSON(): { [k: string]: any };
4220
+
4221
+ /**
4222
+ * Gets the default type url for PurgeDocumentsResponse
4223
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4224
+ * @returns The default type url
4225
+ */
4226
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4227
+ }
4228
+
4229
+ /** Properties of a PurgeDocumentsMetadata. */
4230
+ interface IPurgeDocumentsMetadata {
4231
+
4232
+ /** PurgeDocumentsMetadata createTime */
4233
+ createTime?: (google.protobuf.ITimestamp|null);
4234
+
4235
+ /** PurgeDocumentsMetadata updateTime */
4236
+ updateTime?: (google.protobuf.ITimestamp|null);
4237
+
4238
+ /** PurgeDocumentsMetadata successCount */
4239
+ successCount?: (number|Long|string|null);
4240
+
4241
+ /** PurgeDocumentsMetadata failureCount */
4242
+ failureCount?: (number|Long|string|null);
4243
+ }
4244
+
4245
+ /** Represents a PurgeDocumentsMetadata. */
4246
+ class PurgeDocumentsMetadata implements IPurgeDocumentsMetadata {
4247
+
4248
+ /**
4249
+ * Constructs a new PurgeDocumentsMetadata.
4250
+ * @param [properties] Properties to set
4251
+ */
4252
+ constructor(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsMetadata);
4253
+
4254
+ /** PurgeDocumentsMetadata createTime. */
4255
+ public createTime?: (google.protobuf.ITimestamp|null);
4256
+
4257
+ /** PurgeDocumentsMetadata updateTime. */
4258
+ public updateTime?: (google.protobuf.ITimestamp|null);
4259
+
4260
+ /** PurgeDocumentsMetadata successCount. */
4261
+ public successCount: (number|Long|string);
4262
+
4263
+ /** PurgeDocumentsMetadata failureCount. */
4264
+ public failureCount: (number|Long|string);
4265
+
4266
+ /**
4267
+ * Creates a new PurgeDocumentsMetadata instance using the specified properties.
4268
+ * @param [properties] Properties to set
4269
+ * @returns PurgeDocumentsMetadata instance
4270
+ */
4271
+ public static create(properties?: google.cloud.discoveryengine.v1beta.IPurgeDocumentsMetadata): google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata;
4272
+
4273
+ /**
4274
+ * Encodes the specified PurgeDocumentsMetadata message. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.verify|verify} messages.
4275
+ * @param message PurgeDocumentsMetadata message or plain object to encode
4276
+ * @param [writer] Writer to encode to
4277
+ * @returns Writer
4278
+ */
4279
+ public static encode(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
4280
+
4281
+ /**
4282
+ * Encodes the specified PurgeDocumentsMetadata message, length delimited. Does not implicitly {@link google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata.verify|verify} messages.
4283
+ * @param message PurgeDocumentsMetadata message or plain object to encode
4284
+ * @param [writer] Writer to encode to
4285
+ * @returns Writer
4286
+ */
4287
+ public static encodeDelimited(message: google.cloud.discoveryengine.v1beta.IPurgeDocumentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
4288
+
4289
+ /**
4290
+ * Decodes a PurgeDocumentsMetadata message from the specified reader or buffer.
4291
+ * @param reader Reader or buffer to decode from
4292
+ * @param [length] Message length if known beforehand
4293
+ * @returns PurgeDocumentsMetadata
4294
+ * @throws {Error} If the payload is not a reader or valid buffer
4295
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4296
+ */
4297
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata;
4298
+
4299
+ /**
4300
+ * Decodes a PurgeDocumentsMetadata message from the specified reader or buffer, length delimited.
4301
+ * @param reader Reader or buffer to decode from
4302
+ * @returns PurgeDocumentsMetadata
4303
+ * @throws {Error} If the payload is not a reader or valid buffer
4304
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4305
+ */
4306
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata;
4307
+
4308
+ /**
4309
+ * Verifies a PurgeDocumentsMetadata message.
4310
+ * @param message Plain object to verify
4311
+ * @returns `null` if valid, otherwise the reason why it is not
4312
+ */
4313
+ public static verify(message: { [k: string]: any }): (string|null);
4314
+
4315
+ /**
4316
+ * Creates a PurgeDocumentsMetadata message from a plain object. Also converts values to their respective internal types.
4317
+ * @param object Plain object
4318
+ * @returns PurgeDocumentsMetadata
4319
+ */
4320
+ public static fromObject(object: { [k: string]: any }): google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata;
4321
+
4322
+ /**
4323
+ * Creates a plain object from a PurgeDocumentsMetadata message. Also converts values to other types if specified.
4324
+ * @param message PurgeDocumentsMetadata
4325
+ * @param [options] Conversion options
4326
+ * @returns Plain object
4327
+ */
4328
+ public static toObject(message: google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
4329
+
4330
+ /**
4331
+ * Converts this PurgeDocumentsMetadata to JSON.
4332
+ * @returns JSON object
4333
+ */
4334
+ public toJSON(): { [k: string]: any };
4335
+
4336
+ /**
4337
+ * Gets the default type url for PurgeDocumentsMetadata
4338
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4339
+ * @returns The default type url
4340
+ */
4341
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4342
+ }
4343
+
3996
4344
  /** Represents a RecommendationService */
3997
4345
  class RecommendationService extends $protobuf.rpc.Service {
3998
4346