Send feedback
Class Answer.DocumentReference.Builder (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.3.0 (latest)
0.2.0
0.1.0
public static final class Answer . DocumentReference . Builder extends GeneratedMessage . Builder<Answer . DocumentReference . Builder > implements Answer . DocumentReferenceOrBuilder
Represents a reference to a document.
Protobuf type google.developers.knowledge.v1.Answer.DocumentReference
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public Answer . DocumentReference build ()
buildPartial()
public Answer . DocumentReference buildPartial ()
clear()
public Answer . DocumentReference . Builder clear ()
Overrides
clearDocumentChunk()
public Answer . DocumentReference . Builder clearDocumentChunk ()
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Answer . DocumentReference getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDocumentChunk()
public DocumentChunk getDocumentChunk ()
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDocumentChunkBuilder()
public DocumentChunk . Builder getDocumentChunkBuilder ()
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDocumentChunkOrBuilder()
public DocumentChunkOrBuilder getDocumentChunkOrBuilder ()
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDocumentChunk()
public boolean hasDocumentChunk ()
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the documentChunk field is set.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeDocumentChunk(DocumentChunk value)
public Answer . DocumentReference . Builder mergeDocumentChunk ( DocumentChunk value )
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
mergeFrom(Answer.DocumentReference other)
public Answer . DocumentReference . Builder mergeFrom ( Answer . DocumentReference other )
public Answer . DocumentReference . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Answer . DocumentReference . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
setDocumentChunk(DocumentChunk value)
public Answer . DocumentReference . Builder setDocumentChunk ( DocumentChunk value )
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setDocumentChunk(DocumentChunk.Builder builderForValue)
public Answer . DocumentReference . Builder setDocumentChunk ( DocumentChunk . Builder builderForValue )
Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
.google.developers.knowledge.v1.DocumentChunk document_chunk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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 2026-08-06 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 2026-08-06 UTC."],[],[]]