- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class Document.Builder extends GeneratedMessageV3.Builder<Document.Builder> implements DocumentOrBuilder
Document 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The 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 |