Class Answer.CitationSource.Builder (0.44.0)

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

Citation source.

Protobuf type google.cloud.discoveryengine.v1beta.Answer.CitationSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Answer.CitationSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.CitationSource.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Answer.CitationSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Answer.CitationSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Answer.CitationSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Answer.CitationSource.Builder
Overrides

clearReferenceId()

public Answer.CitationSource.Builder clearReferenceId()

ID of the citation source.

string reference_id = 1;

Returns
Type Description
Answer.CitationSource.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getReferenceId()

public String getReferenceId()

ID of the citation source.

string reference_id = 1;

Returns
Type Description
String

The referenceId.

getReferenceIdBytes()

public ByteString getReferenceIdBytes()

ID of the citation source.

string reference_id = 1;

Returns
Type Description
ByteString

The bytes for referenceId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Answer.CitationSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.CitationSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Answer.CitationSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.CitationSource.Builder
Overrides

setReferenceId(String value)

public Answer.CitationSource.Builder setReferenceId(String value)

ID of the citation source.

string reference_id = 1;

Parameter
Name Description
value String

The referenceId to set.

Returns
Type Description
Answer.CitationSource.Builder

This builder for chaining.

setReferenceIdBytes(ByteString value)

public Answer.CitationSource.Builder setReferenceIdBytes(ByteString value)

ID of the citation source.

string reference_id = 1;

Parameter
Name Description
value ByteString

The bytes for referenceId to set.

Returns
Type Description
Answer.CitationSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Answer.CitationSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Answer.CitationSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Answer.CitationSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.CitationSource.Builder
Overrides