Interface DocumentOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document,Document.Builder
public interface DocumentOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document.ContentgetContent()The unstructured data linked to this document.Document.ContentOrBuildergetContentOrBuilder()The unstructured data linked to this document.Document.DataCasegetDataCase()com.google.protobuf.StructgetDerivedStructData()Output only.com.google.protobuf.StructOrBuildergetDerivedStructDataOrBuilder()Output only.StringgetId()Immutable.com.google.protobuf.ByteStringgetIdBytes()Immutable.StringgetJsonData()The JSON string representation of the document.com.google.protobuf.ByteStringgetJsonDataBytes()The JSON string representation of the document.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.StringgetParentDocumentId()The identifier of the parent document.com.google.protobuf.ByteStringgetParentDocumentIdBytes()The identifier of the parent document.StringgetSchemaId()The identifier of the schema located in the same data store.com.google.protobuf.ByteStringgetSchemaIdBytes()The identifier of the schema located in the same data store.com.google.protobuf.StructgetStructData()The structured JSON data for the document.com.google.protobuf.StructOrBuildergetStructDataOrBuilder()The structured JSON data for the document.booleanhasContent()The unstructured data linked to this document.booleanhasDerivedStructData()Output only.booleanhasJsonData()The JSON string representation of the document.booleanhasStructData()The structured JSON data for the document.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasStructData
boolean hasStructData()
The structured JSON data for the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
.google.protobuf.Struct struct_data = 4;- Returns:
- Whether the structData field is set.
-
getStructData
com.google.protobuf.Struct getStructData()
The structured JSON data for the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
.google.protobuf.Struct struct_data = 4;- Returns:
- The structData.
-
getStructDataOrBuilder
com.google.protobuf.StructOrBuilder getStructDataOrBuilder()
The structured JSON data for the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
.google.protobuf.Struct struct_data = 4;
-
hasJsonData
boolean hasJsonData()
The JSON string representation of the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
string json_data = 5;- Returns:
- Whether the jsonData field is set.
-
getJsonData
String getJsonData()
The JSON string representation of the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
string json_data = 5;- Returns:
- The jsonData.
-
getJsonDataBytes
com.google.protobuf.ByteString getJsonDataBytes()
The JSON string representation of the document. It should conform to the registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an `INVALID_ARGUMENT` error is thrown.
string json_data = 5;- Returns:
- The bytes for jsonData.
-
getName
String getName()
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 name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
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 name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
getId
String getId()
Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for id.
-
getSchemaId
String getSchemaId()
The identifier of the schema located in the same data store.
string schema_id = 3;- Returns:
- The schemaId.
-
getSchemaIdBytes
com.google.protobuf.ByteString getSchemaIdBytes()
The identifier of the schema located in the same data store.
string schema_id = 3;- Returns:
- The bytes for schemaId.
-
hasContent
boolean hasContent()
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 content = 10;- Returns:
- Whether the content field is set.
-
getContent
Document.Content getContent()
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 content = 10;- Returns:
- The content.
-
getContentOrBuilder
Document.ContentOrBuilder getContentOrBuilder()
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 content = 10;
-
getParentDocumentId
String getParentDocumentId()
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
string parent_document_id = 7;- Returns:
- The parentDocumentId.
-
getParentDocumentIdBytes
com.google.protobuf.ByteString getParentDocumentIdBytes()
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
string parent_document_id = 7;- Returns:
- The bytes for parentDocumentId.
-
hasDerivedStructData
boolean hasDerivedStructData()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the derivedStructData field is set.
-
getDerivedStructData
com.google.protobuf.Struct getDerivedStructData()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The derivedStructData.
-
getDerivedStructDataOrBuilder
com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDataCase
Document.DataCase getDataCase()
-
-