@@ -46,6 +46,9 @@ service DocumentService {
4646 rpc GetDocument (GetDocumentRequest ) returns (Document ) {
4747 option (google.api.http ) = {
4848 get : "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}"
49+ additional_bindings {
50+ get : "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}"
51+ }
4952 };
5053 option (google.api.method_signature ) = "name" ;
5154 }
@@ -54,6 +57,9 @@ service DocumentService {
5457 rpc ListDocuments (ListDocumentsRequest ) returns (ListDocumentsResponse ) {
5558 option (google.api.http ) = {
5659 get : "/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents"
60+ additional_bindings {
61+ get : "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents"
62+ }
5763 };
5864 option (google.api.method_signature ) = "parent" ;
5965 }
@@ -63,6 +69,10 @@ service DocumentService {
6369 option (google.api.http ) = {
6470 post : "/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents"
6571 body : "document"
72+ additional_bindings {
73+ post : "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents"
74+ body : "document"
75+ }
6676 };
6777 option (google.api.method_signature ) = "parent,document,document_id" ;
6878 }
@@ -72,13 +82,20 @@ service DocumentService {
7282 option (google.api.http ) = {
7383 patch : "/v1beta/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}"
7484 body : "document"
85+ additional_bindings {
86+ patch : "/v1beta/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}"
87+ body : "document"
88+ }
7589 };
7690 }
7791
7892 // Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].
7993 rpc DeleteDocument (DeleteDocumentRequest ) returns (google.protobuf.Empty ) {
8094 option (google.api.http ) = {
8195 delete : "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}"
96+ additional_bindings {
97+ delete : "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}"
98+ }
8299 };
83100 option (google.api.method_signature ) = "name" ;
84101 }
@@ -95,6 +112,10 @@ service DocumentService {
95112 option (google.api.http ) = {
96113 post : "/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import"
97114 body : "*"
115+ additional_bindings {
116+ post : "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import"
117+ body : "*"
118+ }
98119 };
99120 option (google.longrunning.operation_info ) = {
100121 response_type : "google.cloud.discoveryengine.v1beta.ImportDocumentsResponse"
@@ -109,7 +130,7 @@ service DocumentService {
109130message GetDocumentRequest {
110131 // Required. Full resource name of
111132 // [Document][google.cloud.discoveryengine.v1beta.Document], such as
112- // `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
133+ // `projects/{project}/locations/{location}/collections/{collection}/ dataStores/{data_store}/branches/{branch}/documents/{document}`.
113134 //
114135 // If the caller does not have permission to access the
115136 // [Document][google.cloud.discoveryengine.v1beta.Document], regardless of
@@ -130,7 +151,7 @@ message GetDocumentRequest {
130151// method.
131152message ListDocumentsRequest {
132153 // Required. The parent branch resource name, such as
133- // `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
154+ // `projects/{project}/locations/{location}/collections/{collection}/ dataStores/{data_store}/branches/{branch}`.
134155 // Use `default_branch` as the branch ID, to list documents under the default
135156 // branch.
136157 //
@@ -183,7 +204,7 @@ message ListDocumentsResponse {
183204// method.
184205message CreateDocumentRequest {
185206 // Required. The parent resource name, such as
186- // `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
207+ // `projects/{project}/locations/{location}/collections/{collection}/ dataStores/{data_store}/branches/{branch}`.
187208 string parent = 1 [
188209 (google.api.field_behavior ) = REQUIRED ,
189210 (google.api.resource_reference ) = {
@@ -244,7 +265,7 @@ message UpdateDocumentRequest {
244265message DeleteDocumentRequest {
245266 // Required. Full resource name of
246267 // [Document][google.cloud.discoveryengine.v1beta.Document], such as
247- // `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
268+ // `projects/{project}/locations/{location}/collections/{collection}/ dataStores/{data_store}/branches/{branch}/documents/{document}`.
248269 //
249270 // If the caller does not have permission to delete the
250271 // [Document][google.cloud.discoveryengine.v1beta.Document], regardless of
0 commit comments