public static final class Document.Builder extends GeneratedMessageV3.Builder<Document.Builder> implements DocumentOrBuilderDocument captures all raw metadata information of items to be recommended or searched.
Protobuf type google.cloud.discoveryengine.v1beta.Document
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.BuilderImplements
DocumentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
Document.Builder |
build()
public Document build()| Type | Description |
Document |
buildPartial()
public Document buildPartial()| Type | Description |
Document |
clear()
public Document.Builder clear()| Type | Description |
Document.Builder |
clearData()
public Document.Builder clearData()| Type | Description |
Document.Builder |
clearField(Descriptors.FieldDescriptor field)
public Document.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
field |
FieldDescriptor |
| Type | Description |
Document.Builder |
clearId()
public Document.Builder clearId()Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Type | Description |
Document.Builder |
This builder for chaining. |
clearJsonData()
public Document.Builder clearJsonData()The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Type | Description |
Document.Builder |
This builder for chaining. |
clearName()
public Document.Builder clearName() Immutable. The full resource name of the document.
Format:
projects/{project}/locations/{location}/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];
| Type | Description |
Document.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
oneof |
OneofDescriptor |
| Type | Description |
Document.Builder |
clearParentDocumentId()
public Document.Builder clearParentDocumentId()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 parent_document_id = 7;
| Type | Description |
Document.Builder |
This builder for chaining. |
clearSchemaId()
public Document.Builder clearSchemaId()Required. The identifier of the schema located in the same data store.
string schema_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
Document.Builder |
This builder for chaining. |
clearStructData()
public Document.Builder clearStructData()The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Type | Description |
Document.Builder |
clone()
public Document.Builder clone()| Type | Description |
Document.Builder |
getDataCase()
public Document.DataCase getDataCase()| Type | Description |
Document.DataCase |
getDefaultInstanceForType()
public Document getDefaultInstanceForType()| Type | Description |
Document |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
Descriptor |
getId()
public String getId()Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Type | Description |
ByteString |
The bytes for id. |
getJsonData()
public String getJsonData()The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Type | Description |
String |
The jsonData. |
getJsonDataBytes()
public ByteString getJsonDataBytes()The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Type | Description |
ByteString |
The bytes for jsonData. |
getName()
public String getName() Immutable. The full resource name of the document.
Format:
projects/{project}/locations/{location}/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];
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Immutable. The full resource name of the document.
Format:
projects/{project}/locations/{location}/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];
| Type | Description |
ByteString |
The bytes for name. |
getParentDocumentId()
public String getParentDocumentId()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 parent_document_id = 7;
| Type | Description |
String |
The parentDocumentId. |
getParentDocumentIdBytes()
public ByteString getParentDocumentIdBytes()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 parent_document_id = 7;
| Type | Description |
ByteString |
The bytes for parentDocumentId. |
getSchemaId()
public String getSchemaId()Required. The identifier of the schema located in the same data store.
string schema_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
String |
The schemaId. |
getSchemaIdBytes()
public ByteString getSchemaIdBytes()Required. The identifier of the schema located in the same data store.
string schema_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
ByteString |
The bytes for schemaId. |
getStructData()
public Struct getStructData()The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Type | Description |
Struct |
The structData. |
getStructDataBuilder()
public Struct.Builder getStructDataBuilder()The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Type | Description |
Builder |
getStructDataOrBuilder()
public StructOrBuilder getStructDataOrBuilder()The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Type | Description |
StructOrBuilder |
hasJsonData()
public boolean hasJsonData()The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Type | Description |
boolean |
Whether the jsonData field is set. |
hasStructData()
public boolean hasStructData()The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Type | Description |
boolean |
Whether the structData field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
boolean |
mergeFrom(Document other)
public Document.Builder mergeFrom(Document other)| Name | Description |
other |
Document |
| Type | Description |
Document.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Type | Description |
Document.Builder |
| Type | Description |
IOException |
mergeFrom(Message other)
public Document.Builder mergeFrom(Message other)| Name | Description |
other |
Message |
| Type | Description |
Document.Builder |
mergeStructData(Struct value)
public Document.Builder mergeStructData(Struct value)The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Name | Description |
value |
Struct |
| Type | Description |
Document.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
Document.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
Document.Builder |
setId(String value)
public Document.Builder setId(String value)Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Name | Description |
value |
StringThe id to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public Document.Builder setIdBytes(ByteString value)Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
string id = 2 [(.google.api.field_behavior) = IMMUTABLE];
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setJsonData(String value)
public Document.Builder setJsonData(String value)The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Name | Description |
value |
StringThe jsonData to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setJsonDataBytes(ByteString value)
public Document.Builder setJsonDataBytes(ByteString value)The JSON string representation of the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
string json_data = 5;
| Name | Description |
value |
ByteStringThe bytes for jsonData to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setName(String value)
public Document.Builder setName(String value) Immutable. The full resource name of the document.
Format:
projects/{project}/locations/{location}/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];
| Name | Description |
value |
StringThe name to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Document.Builder setNameBytes(ByteString value) Immutable. The full resource name of the document.
Format:
projects/{project}/locations/{location}/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];
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setParentDocumentId(String value)
public Document.Builder setParentDocumentId(String value)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 parent_document_id = 7;
| Name | Description |
value |
StringThe parentDocumentId to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setParentDocumentIdBytes(ByteString value)
public Document.Builder setParentDocumentIdBytes(ByteString value)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 parent_document_id = 7;
| Name | Description |
value |
ByteStringThe bytes for parentDocumentId to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Type | Description |
Document.Builder |
setSchemaId(String value)
public Document.Builder setSchemaId(String value)Required. The identifier of the schema located in the same data store.
string schema_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
value |
StringThe schemaId to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setSchemaIdBytes(ByteString value)
public Document.Builder setSchemaIdBytes(ByteString value)Required. The identifier of the schema located in the same data store.
string schema_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
value |
ByteStringThe bytes for schemaId to set. |
| Type | Description |
Document.Builder |
This builder for chaining. |
setStructData(Struct value)
public Document.Builder setStructData(Struct value)The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Name | Description |
value |
Struct |
| Type | Description |
Document.Builder |
setStructData(Struct.Builder builderForValue)
public Document.Builder setStructData(Struct.Builder builderForValue)The structured JSON data for the document. It should conform to the registered [schema][] or an INVALID_ARGUMENT error is thrown.
.google.protobuf.Struct struct_data = 4;
| Name | Description |
builderForValue |
Builder |
| Type | Description |
Document.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
Document.Builder |