@google-cloud/discoveryengine 1.1.0 → 1.3.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 (59) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +39 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +190 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +134 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +138 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +306 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +98 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +307 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +121 -0
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +318 -0
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +370 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +336 -0
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +343 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +159 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +227 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +312 -0
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +260 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +874 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +152 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +475 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +154 -0
  22. package/build/protos/protos.d.ts +16365 -7
  23. package/build/protos/protos.js +42499 -1945
  24. package/build/protos/protos.json +4455 -5
  25. package/build/src/index.d.ts +3 -1
  26. package/build/src/index.js +4 -1
  27. package/build/src/v1alpha/completion_service_client.d.ts +645 -0
  28. package/build/src/v1alpha/completion_service_client.js +901 -0
  29. package/build/src/v1alpha/completion_service_client_config.json +43 -0
  30. package/build/src/v1alpha/conversational_search_service_client.d.ts +1040 -0
  31. package/build/src/v1alpha/conversational_search_service_client.js +1333 -0
  32. package/build/src/v1alpha/conversational_search_service_client_config.json +68 -0
  33. package/build/src/v1alpha/data_store_service_client.d.ts +1060 -0
  34. package/build/src/v1alpha/data_store_service_client.js +1431 -0
  35. package/build/src/v1alpha/data_store_service_client_config.json +46 -0
  36. package/build/src/v1alpha/document_service_client.d.ts +1257 -0
  37. package/build/src/v1alpha/document_service_client.js +1555 -0
  38. package/build/src/v1alpha/document_service_client_config.json +82 -0
  39. package/build/src/v1alpha/engine_service_client.d.ts +1079 -0
  40. package/build/src/v1alpha/engine_service_client.js +1481 -0
  41. package/build/src/v1alpha/engine_service_client_config.json +58 -0
  42. package/build/src/v1alpha/index.d.ts +10 -0
  43. package/build/src/v1alpha/index.js +41 -0
  44. package/build/src/v1alpha/recommendation_service_client.d.ts +858 -0
  45. package/build/src/v1alpha/recommendation_service_client.js +1100 -0
  46. package/build/src/v1alpha/recommendation_service_client_config.json +43 -0
  47. package/build/src/v1alpha/schema_service_client.d.ts +977 -0
  48. package/build/src/v1alpha/schema_service_client.js +1385 -0
  49. package/build/src/v1alpha/schema_service_client_config.json +63 -0
  50. package/build/src/v1alpha/search_service_client.d.ts +1394 -0
  51. package/build/src/v1alpha/search_service_client.js +1640 -0
  52. package/build/src/v1alpha/search_service_client_config.json +43 -0
  53. package/build/src/v1alpha/site_search_engine_service_client.d.ts +821 -0
  54. package/build/src/v1alpha/site_search_engine_service_client.js +1249 -0
  55. package/build/src/v1alpha/site_search_engine_service_client_config.json +30 -0
  56. package/build/src/v1alpha/user_event_service_client.d.ts +895 -0
  57. package/build/src/v1alpha/user_event_service_client.js +1232 -0
  58. package/build/src/v1alpha/user_event_service_client_config.json +67 -0
  59. package/package.json +5 -5
@@ -0,0 +1,307 @@
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
+ import "google/cloud/discoveryengine/v1alpha/data_store.proto";
24
+ import "google/longrunning/operations.proto";
25
+ import "google/protobuf/empty.proto";
26
+ import "google/protobuf/field_mask.proto";
27
+ import "google/protobuf/timestamp.proto";
28
+
29
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
30
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
31
+ option java_multiple_files = true;
32
+ option java_outer_classname = "DataStoreServiceProto";
33
+ option java_package = "com.google.cloud.discoveryengine.v1alpha";
34
+ option objc_class_prefix = "DISCOVERYENGINE";
35
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
36
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
37
+
38
+ // Service for managing
39
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] configuration.
40
+ service DataStoreService {
41
+ option (google.api.default_host) = "discoveryengine.googleapis.com";
42
+ option (google.api.oauth_scopes) =
43
+ "https://www.googleapis.com/auth/cloud-platform";
44
+
45
+ // Creates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
46
+ //
47
+ // DataStore is for storing
48
+ // [Documents][google.cloud.discoveryengine.v1alpha.Document]. To serve these
49
+ // documents for Search, or Recommendation use case, an
50
+ // [Engine][google.cloud.discoveryengine.v1alpha.Engine] needs to be created
51
+ // separately.
52
+ rpc CreateDataStore(CreateDataStoreRequest)
53
+ returns (google.longrunning.Operation) {
54
+ option (google.api.http) = {
55
+ post: "/v1alpha/{parent=projects/*/locations/*}/dataStores"
56
+ body: "data_store"
57
+ additional_bindings {
58
+ post: "/v1alpha/{parent=projects/*/locations/*/collections/*}/dataStores"
59
+ body: "data_store"
60
+ }
61
+ };
62
+ option (google.api.method_signature) = "parent,data_store,data_store_id";
63
+ option (google.longrunning.operation_info) = {
64
+ response_type: "google.cloud.discoveryengine.v1alpha.DataStore"
65
+ metadata_type: "google.cloud.discoveryengine.v1alpha.CreateDataStoreMetadata"
66
+ };
67
+ }
68
+
69
+ // Gets a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
70
+ rpc GetDataStore(GetDataStoreRequest) returns (DataStore) {
71
+ option (google.api.http) = {
72
+ get: "/v1alpha/{name=projects/*/locations/*/dataStores/*}"
73
+ additional_bindings {
74
+ get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}"
75
+ }
76
+ };
77
+ option (google.api.method_signature) = "name";
78
+ }
79
+
80
+ // Lists all the [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s
81
+ // associated with the project.
82
+ rpc ListDataStores(ListDataStoresRequest) returns (ListDataStoresResponse) {
83
+ option (google.api.http) = {
84
+ get: "/v1alpha/{parent=projects/*/locations/*}/dataStores"
85
+ additional_bindings {
86
+ get: "/v1alpha/{parent=projects/*/locations/*/collections/*}/dataStores"
87
+ }
88
+ };
89
+ option (google.api.method_signature) = "parent";
90
+ }
91
+
92
+ // Deletes a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].
93
+ rpc DeleteDataStore(DeleteDataStoreRequest)
94
+ returns (google.longrunning.Operation) {
95
+ option (google.api.http) = {
96
+ delete: "/v1alpha/{name=projects/*/locations/*/dataStores/*}"
97
+ additional_bindings {
98
+ delete: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}"
99
+ }
100
+ };
101
+ option (google.api.method_signature) = "name";
102
+ option (google.longrunning.operation_info) = {
103
+ response_type: "google.protobuf.Empty"
104
+ metadata_type: "google.cloud.discoveryengine.v1alpha.DeleteDataStoreMetadata"
105
+ };
106
+ }
107
+
108
+ // Updates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]
109
+ rpc UpdateDataStore(UpdateDataStoreRequest) returns (DataStore) {
110
+ option (google.api.http) = {
111
+ patch: "/v1alpha/{data_store.name=projects/*/locations/*/dataStores/*}"
112
+ body: "data_store"
113
+ additional_bindings {
114
+ patch: "/v1alpha/{data_store.name=projects/*/locations/*/collections/*/dataStores/*}"
115
+ body: "data_store"
116
+ }
117
+ };
118
+ option (google.api.method_signature) = "data_store,update_mask";
119
+ }
120
+ }
121
+
122
+ // Request for
123
+ // [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.CreateDataStore]
124
+ // method.
125
+ message CreateDataStoreRequest {
126
+ // Required. The parent resource name, such as
127
+ // `projects/{project}/locations/{location}/collections/{collection}`.
128
+ string parent = 1 [
129
+ (google.api.field_behavior) = REQUIRED,
130
+ (google.api.resource_reference) = {
131
+ type: "discoveryengine.googleapis.com/Collection"
132
+ }
133
+ ];
134
+
135
+ // Required. The [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]
136
+ // to create.
137
+ DataStore data_store = 2 [(google.api.field_behavior) = REQUIRED];
138
+
139
+ // Required. The ID to use for the
140
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], which will
141
+ // become the final component of the
142
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]'s resource
143
+ // name.
144
+ //
145
+ // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
146
+ // standard with a length limit of 63 characters. Otherwise, an
147
+ // INVALID_ARGUMENT error is returned.
148
+ string data_store_id = 3 [(google.api.field_behavior) = REQUIRED];
149
+
150
+ // A boolean flag indicating whether user want to directly create an advanced
151
+ // data store for site search.
152
+ // If the data store is not configured as site
153
+ // search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
154
+ // be ignored.
155
+ bool create_advanced_site_search = 4;
156
+ }
157
+
158
+ // Request message for
159
+ // [DataStoreService.GetDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.GetDataStore]
160
+ // method.
161
+ message GetDataStoreRequest {
162
+ // Required. Full resource name of
163
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
164
+ // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
165
+ //
166
+ // If the caller does not have permission to access the
167
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], regardless of
168
+ // whether or not it exists, a PERMISSION_DENIED error is returned.
169
+ //
170
+ // If the requested
171
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] does not exist,
172
+ // a NOT_FOUND error is returned.
173
+ string name = 1 [
174
+ (google.api.field_behavior) = REQUIRED,
175
+ (google.api.resource_reference) = {
176
+ type: "discoveryengine.googleapis.com/DataStore"
177
+ }
178
+ ];
179
+ }
180
+
181
+ // Metadata related to the progress of the
182
+ // [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.CreateDataStore]
183
+ // operation. This will be returned by the google.longrunning.Operation.metadata
184
+ // field.
185
+ message CreateDataStoreMetadata {
186
+ // Operation create time.
187
+ google.protobuf.Timestamp create_time = 1;
188
+
189
+ // Operation last update time. If the operation is done, this is also the
190
+ // finish time.
191
+ google.protobuf.Timestamp update_time = 2;
192
+ }
193
+
194
+ // Request message for
195
+ // [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores]
196
+ // method.
197
+ message ListDataStoresRequest {
198
+ // Required. The parent branch resource name, such as
199
+ // `projects/{project}/locations/{location}/collections/{collection_id}`.
200
+ //
201
+ // If the caller does not have permission to list [DataStores][]s under this
202
+ // location, regardless of whether or not this data store exists, a
203
+ // PERMISSION_DENIED error is returned.
204
+ string parent = 1 [
205
+ (google.api.field_behavior) = REQUIRED,
206
+ (google.api.resource_reference) = {
207
+ type: "discoveryengine.googleapis.com/Collection"
208
+ }
209
+ ];
210
+
211
+ // Maximum number of
212
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s to return. If
213
+ // unspecified, defaults to 10. The maximum allowed value is 50. Values above
214
+ // 50 will be coerced to 50.
215
+ //
216
+ // If this field is negative, an INVALID_ARGUMENT is returned.
217
+ int32 page_size = 2;
218
+
219
+ // A page token
220
+ // [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDataStoresResponse.next_page_token],
221
+ // received from a previous
222
+ // [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores]
223
+ // call. Provide this to retrieve the subsequent page.
224
+ //
225
+ // When paginating, all other parameters provided to
226
+ // [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores]
227
+ // must match the call that provided the page token. Otherwise, an
228
+ // INVALID_ARGUMENT error is returned.
229
+ string page_token = 3;
230
+
231
+ // Filter by solution type. For example: filter =
232
+ // 'solution_type:SOLUTION_TYPE_SEARCH'
233
+ string filter = 4;
234
+ }
235
+
236
+ // Response message for
237
+ // [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores]
238
+ // method.
239
+ message ListDataStoresResponse {
240
+ // All the customer's
241
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s.
242
+ repeated DataStore data_stores = 1;
243
+
244
+ // A token that can be sent as
245
+ // [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDataStoresRequest.page_token]
246
+ // to retrieve the next page. If this field is omitted, there are no
247
+ // subsequent pages.
248
+ string next_page_token = 2;
249
+ }
250
+
251
+ // Request message for
252
+ // [DataStoreService.DeleteDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.DeleteDataStore]
253
+ // method.
254
+ message DeleteDataStoreRequest {
255
+ // Required. Full resource name of
256
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
257
+ // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
258
+ //
259
+ // If the caller does not have permission to delete the
260
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], regardless of
261
+ // whether or not it exists, a PERMISSION_DENIED error is returned.
262
+ //
263
+ // If the [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] to
264
+ // delete does not exist, a NOT_FOUND error is returned.
265
+ string name = 1 [
266
+ (google.api.field_behavior) = REQUIRED,
267
+ (google.api.resource_reference) = {
268
+ type: "discoveryengine.googleapis.com/DataStore"
269
+ }
270
+ ];
271
+ }
272
+
273
+ // Request message for
274
+ // [DataStoreService.UpdateDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDataStore]
275
+ // method.
276
+ message UpdateDataStoreRequest {
277
+ // Required. The [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]
278
+ // to update.
279
+ //
280
+ // If the caller does not have permission to update the
281
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], regardless of
282
+ // whether or not it exists, a PERMISSION_DENIED error is returned.
283
+ //
284
+ // If the [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] to
285
+ // update does not exist, a NOT_FOUND error is returned.
286
+ DataStore data_store = 1 [(google.api.field_behavior) = REQUIRED];
287
+
288
+ // Indicates which fields in the provided
289
+ // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] to update.
290
+ //
291
+ // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
292
+ // is returned.
293
+ google.protobuf.FieldMask update_mask = 2;
294
+ }
295
+
296
+ // Metadata related to the progress of the
297
+ // [DataStoreService.DeleteDataStore][google.cloud.discoveryengine.v1alpha.DataStoreService.DeleteDataStore]
298
+ // operation. This will be returned by the google.longrunning.Operation.metadata
299
+ // field.
300
+ message DeleteDataStoreMetadata {
301
+ // Operation create time.
302
+ google.protobuf.Timestamp create_time = 1;
303
+
304
+ // Operation last update time. If the operation is done, this is also the
305
+ // finish time.
306
+ google.protobuf.Timestamp update_time = 2;
307
+ }
@@ -0,0 +1,121 @@
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/field_behavior.proto";
20
+ import "google/api/resource.proto";
21
+ import "google/protobuf/struct.proto";
22
+
23
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
24
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "DocumentProto";
27
+ option java_package = "com.google.cloud.discoveryengine.v1alpha";
28
+ option objc_class_prefix = "DISCOVERYENGINE";
29
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
30
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
31
+
32
+ // Document captures all raw metadata information of items to be recommended or
33
+ // searched.
34
+ message Document {
35
+ option (google.api.resource) = {
36
+ type: "discoveryengine.googleapis.com/Document"
37
+ pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}"
38
+ pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}"
39
+ };
40
+
41
+ // Unstructured data linked to this document.
42
+ message Content {
43
+ oneof content {
44
+ // The content represented as a stream of bytes. The maximum length is
45
+ // 1,000,000 bytes (1 MB / ~0.95 MiB).
46
+ //
47
+ // Note: As with all `bytes` fields, this field is represented as pure
48
+ // binary in Protocol Buffers and base64-encoded string in JSON. For
49
+ // example, `abc123!?$*&()'-=@~` should be represented as
50
+ // `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
51
+ // https://developers.google.com/protocol-buffers/docs/proto3#json.
52
+ bytes raw_bytes = 2;
53
+
54
+ // The URI of the content. Only Cloud Storage URIs (e.g.
55
+ // `gs://bucket-name/path/to/file`) are supported. The maximum file size
56
+ // is 100 MB.
57
+ string uri = 3;
58
+ }
59
+
60
+ // The MIME type of the content. Supported types:
61
+ //
62
+ // * `application/pdf` (PDF, only native PDFs are supported for now)
63
+ // * `text/html` (HTML)
64
+ // * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
65
+ // * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
66
+ // * `text/plain` (TXT)
67
+ //
68
+ // See https://www.iana.org/assignments/media-types/media-types.xhtml.
69
+ string mime_type = 1;
70
+ }
71
+
72
+ // Data representation. One of
73
+ // [struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data] or
74
+ // [json_data][google.cloud.discoveryengine.v1alpha.Document.json_data] should
75
+ // be provided otherwise an `INVALID_ARGUMENT` error is thrown.
76
+ oneof data {
77
+ // The structured JSON data for the document. It should conform to the
78
+ // registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
79
+ // `INVALID_ARGUMENT` error is thrown.
80
+ google.protobuf.Struct struct_data = 4;
81
+
82
+ // The JSON string representation of the document. It should conform to the
83
+ // registered [Schema][google.cloud.discoveryengine.v1alpha.Schema] or an
84
+ // `INVALID_ARGUMENT` error is thrown.
85
+ string json_data = 5;
86
+ }
87
+
88
+ // Immutable. The full resource name of the document.
89
+ // Format:
90
+ // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`.
91
+ //
92
+ // This field must be a UTF-8 encoded string with a length limit of 1024
93
+ // characters.
94
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
95
+
96
+ // Immutable. The identifier of the document.
97
+ //
98
+ // Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
99
+ // standard with a length limit of 63 characters.
100
+ string id = 2 [(google.api.field_behavior) = IMMUTABLE];
101
+
102
+ // The identifier of the schema located in the same data store.
103
+ string schema_id = 3;
104
+
105
+ // The unstructured data linked to this document. Content must be set if this
106
+ // document is under a
107
+ // `CONTENT_REQUIRED` data store.
108
+ Content content = 10;
109
+
110
+ // The identifier of the parent document. Currently supports at most two level
111
+ // document hierarchy.
112
+ //
113
+ // Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
114
+ // standard with a length limit of 63 characters.
115
+ string parent_document_id = 7;
116
+
117
+ // Output only. This field is OUTPUT_ONLY.
118
+ // It contains derived data that are not in the original input document.
119
+ google.protobuf.Struct derived_struct_data = 6
120
+ [(google.api.field_behavior) = OUTPUT_ONLY];
121
+ }