Class Answer.DocumentReference.Builder (0.3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Answer.DocumentReference build()
Returns
Type Description
Answer.DocumentReference

buildPartial()

public Answer.DocumentReference buildPartial()
Returns
Type Description
Answer.DocumentReference

clear()

public Answer.DocumentReference.Builder clear()
Returns
Type Description
Answer.DocumentReference.Builder
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];

Returns
Type Description
Answer.DocumentReference.Builder

getDefaultInstanceForType()

public Answer.DocumentReference getDefaultInstanceForType()
Returns
Type Description
Answer.DocumentReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

Returns
Type Description
DocumentChunk

The documentChunk.

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];

Returns
Type Description
DocumentChunk.Builder

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];

Returns
Type Description
DocumentChunkOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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];

Parameter
Name Description
value DocumentChunk
Returns
Type Description
Answer.DocumentReference.Builder

mergeFrom(Answer.DocumentReference other)

public Answer.DocumentReference.Builder mergeFrom(Answer.DocumentReference other)
Parameter
Name Description
other Answer.DocumentReference
Returns
Type Description
Answer.DocumentReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Answer.DocumentReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.DocumentReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Answer.DocumentReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Answer.DocumentReference.Builder
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];

Parameter
Name Description
value DocumentChunk
Returns
Type Description
Answer.DocumentReference.Builder

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];

Parameter
Name Description
builderForValue DocumentChunk.Builder
Returns
Type Description
Answer.DocumentReference.Builder