Document Args
Creates a Document.
Constructors
Properties
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED
error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS
error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT
error is returned.
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}
. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
The structured JSON data for the document. It should conform to the registered Schema.schema or an INVALID_ARGUMENT
error is thrown.