Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Document.
Document captures all raw metadata information of items to be recommended or searched.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::Google::Cloud::DiscoveryEngine::V1beta::Document::Content
-
(::Google::Cloud::DiscoveryEngine::V1beta::Document::Content) — The unstructured data linked to this document. Content must be set if this
document is under a
CONTENT_REQUIRED
data store.
#content=
def content=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Document::Content
-
value (::Google::Cloud::DiscoveryEngine::V1beta::Document::Content) — The unstructured data linked to this document. Content must be set if this
document is under a
CONTENT_REQUIRED
data store.
-
(::Google::Cloud::DiscoveryEngine::V1beta::Document::Content) — The unstructured data linked to this document. Content must be set if this
document is under a
CONTENT_REQUIRED
data store.
#derived_struct_data
def derived_struct_data() -> ::Google::Protobuf::Struct
- (::Google::Protobuf::Struct) — Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
#id
def id() -> ::String
-
(::String) — Immutable. The identifier of the document.
Id should conform to RFC-1034 standard with a length limit of 63 characters.
#id=
def id=(value) -> ::String
-
value (::String) — Immutable. The identifier of the document.
Id should conform to RFC-1034 standard with a length limit of 63 characters.
-
(::String) — Immutable. The identifier of the document.
Id should conform to RFC-1034 standard with a length limit of 63 characters.
#json_data
def json_data() -> ::String
-
(::String) — The JSON string representation of the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.
#json_data=
def json_data=(value) -> ::String
-
value (::String) — The JSON string representation of the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.
-
(::String) — The JSON string representation of the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.
#name
def name() -> ::String
-
(::String) — 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.
#name=
def name=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.
#parent_document_id
def parent_document_id() -> ::String
-
(::String) — 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.
#parent_document_id=
def parent_document_id=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.
#schema_id
def schema_id() -> ::String
- (::String) — The identifier of the schema located in the same data store.
#schema_id=
def schema_id=(value) -> ::String
- value (::String) — The identifier of the schema located in the same data store.
- (::String) — The identifier of the schema located in the same data store.
#struct_data
def struct_data() -> ::Google::Protobuf::Struct
-
(::Google::Protobuf::Struct) — The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.
#struct_data=
def struct_data=(value) -> ::Google::Protobuf::Struct
-
value (::Google::Protobuf::Struct) — The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.
-
(::Google::Protobuf::Struct) — The structured JSON data for the document. It should conform to the
registered Schema or an
INVALID_ARGUMENT
error is thrown.