Send feedback
Class ProcessedDocument.Builder (0.45.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.45.0 keyboard_arrow_down
public static final class ProcessedDocument . Builder extends GeneratedMessageV3 . Builder<ProcessedDocument . Builder > implements ProcessedDocumentOrBuilder
Document captures all raw metadata information of items to be recommended or
searched.
Protobuf type google.cloud.discoveryengine.v1alpha.ProcessedDocument
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProcessedDocument . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ProcessedDocument build ()
buildPartial()
public ProcessedDocument buildPartial ()
clear()
public ProcessedDocument . Builder clear ()
Overrides
clearDocument()
public ProcessedDocument . Builder clearDocument ()
Required. Full resource name of the referenced document, in the format
projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*
.
string document = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearField(Descriptors.FieldDescriptor field)
public ProcessedDocument . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearJsonData()
public ProcessedDocument . Builder clearJsonData ()
The JSON string representation of the processed document.
string json_data = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ProcessedDocument . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public ProcessedDocument . Builder clearProcessedDataFormat ()
clone()
public ProcessedDocument . Builder clone ()
Overrides
getDefaultInstanceForType()
public ProcessedDocument getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDocument()
public String getDocument ()
Required. Full resource name of the referenced document, in the format
projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*
.
string document = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The document.
getDocumentBytes()
public ByteString getDocumentBytes ()
Required. Full resource name of the referenced document, in the format
projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*
.
string document = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for document.
getJsonData()
public String getJsonData ()
The JSON string representation of the processed document.
string json_data = 2;
Returns
Type
Description
String
The jsonData.
getJsonDataBytes()
public ByteString getJsonDataBytes ()
The JSON string representation of the processed document.
string json_data = 2;
Returns
Type
Description
ByteString
The bytes for jsonData.
public ProcessedDocument . ProcessedDataFormatCase getProcessedDataFormatCase ()
hasJsonData()
public boolean hasJsonData ()
The JSON string representation of the processed document.
string json_data = 2;
Returns
Type
Description
boolean
Whether the jsonData field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ProcessedDocument other)
public ProcessedDocument . Builder mergeFrom ( ProcessedDocument other )
public ProcessedDocument . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ProcessedDocument . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProcessedDocument . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setDocument(String value)
public ProcessedDocument . Builder setDocument ( String value )
Required. Full resource name of the referenced document, in the format
projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*
.
string document = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String
The document to set.
setDocumentBytes(ByteString value)
public ProcessedDocument . Builder setDocumentBytes ( ByteString value )
Required. Full resource name of the referenced document, in the format
projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*
.
string document = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString
The bytes for document to set.
setField(Descriptors.FieldDescriptor field, Object value)
public ProcessedDocument . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setJsonData(String value)
public ProcessedDocument . Builder setJsonData ( String value )
The JSON string representation of the processed document.
string json_data = 2;
Parameter
Name
Description
value
String
The jsonData to set.
setJsonDataBytes(ByteString value)
public ProcessedDocument . Builder setJsonDataBytes ( ByteString value )
The JSON string representation of the processed document.
string json_data = 2;
Parameter
Name
Description
value
ByteString
The bytes for jsonData to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProcessedDocument . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ProcessedDocument . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]