Skip to content

Commit 9700deb

Browse files
Google APIscopybara-github
authored andcommitted
feat!: rename fields errors_config to error_config
PiperOrigin-RevId: 481043877
1 parent e4d17a6 commit 9700deb

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

google/cloud/discoveryengine/v1beta/import_config.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ message ImportUserEventsRequest {
141141

142142
// The desired location of errors incurred during the Import. Cannot be set
143143
// for inline user event imports.
144-
ImportErrorConfig errors_config = 5;
144+
ImportErrorConfig error_config = 5;
145145
}
146146

147147
// Response of the ImportUserEventsRequest. If the long running
@@ -153,7 +153,7 @@ message ImportUserEventsResponse {
153153

154154
// Echoes the destination for the complete errors if this field was set in
155155
// the request.
156-
ImportErrorConfig errors_config = 2;
156+
ImportErrorConfig error_config = 2;
157157

158158
// Count of user events imported with complete existing Documents.
159159
int64 joined_events_count = 3;
@@ -244,7 +244,7 @@ message ImportDocumentsRequest {
244244
];
245245

246246
// The desired location of errors incurred during the Import.
247-
ImportErrorConfig errors_config = 5;
247+
ImportErrorConfig error_config = 5;
248248

249249
// The mode of reconciliation between existing documents and the documents to
250250
// be imported. Defaults to
@@ -261,5 +261,5 @@ message ImportDocumentsResponse {
261261
repeated google.rpc.Status error_samples = 1;
262262

263263
// Echoes the destination for the complete errors in the request if set.
264-
ImportErrorConfig errors_config = 2;
264+
ImportErrorConfig error_config = 2;
265265
}

google/cloud/discoveryengine/v1beta/user_event.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.discoveryengine.v1beta;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
2021
import "google/cloud/discoveryengine/v1beta/common.proto";
2122
import "google/protobuf/duration.proto";
2223
import "google/protobuf/timestamp.proto";
@@ -389,7 +390,12 @@ message DocumentInfo {
389390

390391
// Required. The Document resource full name, of the form:
391392
// projects/<project_id>/locations/<location>/dataStores/<data_store_id>/branches/<branch_id>/documents/<document_id>
392-
string name = 2 [(google.api.field_behavior) = REQUIRED];
393+
string name = 2 [
394+
(google.api.field_behavior) = REQUIRED,
395+
(google.api.resource_reference) = {
396+
type: "discoveryengine.googleapis.com/Document"
397+
}
398+
];
393399
}
394400

395401
// Quantity of the Document associated with the user event. Defaults to 1.

0 commit comments

Comments
 (0)