Class Answer.CitationSource.Builder (0.3.0)

public static final class Answer.CitationSource.Builder extends GeneratedMessage.Builder<Answer.CitationSource.Builder> implements Answer.CitationSourceOrBuilder

Citation source.

Protobuf type google.developers.knowledge.v1.Answer.CitationSource

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public Answer.CitationSource.Builder clear()
Returns
Type Description
Answer.CitationSource.Builder
Overrides

clearReferenceIndex()

public Answer.CitationSource.Builder clearReferenceIndex()

Output only. Contains the index of the Answer.AnswerReference in the references repeated field.

int32 reference_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Answer.CitationSource.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getReferenceIndex()

public int getReferenceIndex()

Output only. Contains the index of the Answer.AnswerReference in the references repeated field.

int32 reference_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The referenceIndex.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.CitationSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Answer.CitationSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Answer.CitationSource.Builder
Overrides

setReferenceIndex(int value)

public Answer.CitationSource.Builder setReferenceIndex(int value)

Output only. Contains the index of the Answer.AnswerReference in the references repeated field.

int32 reference_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The referenceIndex to set.

Returns
Type Description
Answer.CitationSource.Builder

This builder for chaining.