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

Inheritance

java.lang.Object > com.google.protobuf.AbstractMessageLite.Builder > com.google.protobuf.AbstractMessage.Builder > com.google.protobuf.GeneratedMessage.Builder > Answer.CitationSource.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
com.google.protobuf.Descriptors.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
com.google.protobuf.GeneratedMessage.Builder.clear()

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
com.google.protobuf.Descriptors.Descriptor
Overrides
com.google.protobuf.GeneratedMessage.Builder.getDescriptorForType()

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
com.google.protobuf.GeneratedMessage.FieldAccessorTable
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetFieldAccessorTable()

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
com.google.protobuf.GeneratedMessage.Builder.isInitialized()

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 com.google.protobuf.CodedInputStream
extensionRegistry com.google.protobuf.ExtensionRegistryLite
Returns
Type Description
Answer.CitationSource.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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.