Class SearchResponse.Summary.CitationMetadata.Builder (0.42.0)

public static final class SearchResponse.Summary.CitationMetadata.Builder extends GeneratedMessageV3.Builder<SearchResponse.Summary.CitationMetadata.Builder> implements SearchResponse.Summary.CitationMetadataOrBuilder

Citation metadata.

Protobuf type google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata

Static Methods

getDescriptor()

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

Methods

addAllCitations(Iterable<? extends SearchResponse.Summary.Citation> values)

public SearchResponse.Summary.CitationMetadata.Builder addAllCitations(Iterable<? extends SearchResponse.Summary.Citation> values)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation>
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

addCitations(SearchResponse.Summary.Citation value)

public SearchResponse.Summary.CitationMetadata.Builder addCitations(SearchResponse.Summary.Citation value)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
value SearchResponse.Summary.Citation
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

addCitations(SearchResponse.Summary.Citation.Builder builderForValue)

public SearchResponse.Summary.CitationMetadata.Builder addCitations(SearchResponse.Summary.Citation.Builder builderForValue)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
builderForValue SearchResponse.Summary.Citation.Builder
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

addCitations(int index, SearchResponse.Summary.Citation value)

public SearchResponse.Summary.CitationMetadata.Builder addCitations(int index, SearchResponse.Summary.Citation value)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameters
Name Description
index int
value SearchResponse.Summary.Citation
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

addCitations(int index, SearchResponse.Summary.Citation.Builder builderForValue)

public SearchResponse.Summary.CitationMetadata.Builder addCitations(int index, SearchResponse.Summary.Citation.Builder builderForValue)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameters
Name Description
index int
builderForValue SearchResponse.Summary.Citation.Builder
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

addCitationsBuilder()

public SearchResponse.Summary.Citation.Builder addCitationsBuilder()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
SearchResponse.Summary.Citation.Builder

addCitationsBuilder(int index)

public SearchResponse.Summary.Citation.Builder addCitationsBuilder(int index)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.CitationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

build()

public SearchResponse.Summary.CitationMetadata build()
Returns
Type Description
SearchResponse.Summary.CitationMetadata

buildPartial()

public SearchResponse.Summary.CitationMetadata buildPartial()
Returns
Type Description
SearchResponse.Summary.CitationMetadata

clear()

public SearchResponse.Summary.CitationMetadata.Builder clear()
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clearCitations()

public SearchResponse.Summary.CitationMetadata.Builder clearCitations()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.Summary.CitationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResponse.Summary.CitationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clone()

public SearchResponse.Summary.CitationMetadata.Builder clone()
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

getCitations(int index)

public SearchResponse.Summary.Citation getCitations(int index)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.Citation

getCitationsBuilder(int index)

public SearchResponse.Summary.Citation.Builder getCitationsBuilder(int index)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.Citation.Builder

getCitationsBuilderList()

public List<SearchResponse.Summary.Citation.Builder> getCitationsBuilderList()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
List<Builder>

getCitationsCount()

public int getCitationsCount()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
int

getCitationsList()

public List<SearchResponse.Summary.Citation> getCitationsList()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
List<Citation>

getCitationsOrBuilder(int index)

public SearchResponse.Summary.CitationOrBuilder getCitationsOrBuilder(int index)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationOrBuilder

getCitationsOrBuilderList()

public List<? extends SearchResponse.Summary.CitationOrBuilder> getCitationsOrBuilderList()

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationOrBuilder>

getDefaultInstanceForType()

public SearchResponse.Summary.CitationMetadata getDefaultInstanceForType()
Returns
Type Description
SearchResponse.Summary.CitationMetadata

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResponse.Summary.CitationMetadata other)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(SearchResponse.Summary.CitationMetadata other)
Parameter
Name Description
other SearchResponse.Summary.CitationMetadata
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.CitationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

removeCitations(int index)

public SearchResponse.Summary.CitationMetadata.Builder removeCitations(int index)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

setCitations(int index, SearchResponse.Summary.Citation value)

public SearchResponse.Summary.CitationMetadata.Builder setCitations(int index, SearchResponse.Summary.Citation value)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameters
Name Description
index int
value SearchResponse.Summary.Citation
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

setCitations(int index, SearchResponse.Summary.Citation.Builder builderForValue)

public SearchResponse.Summary.CitationMetadata.Builder setCitations(int index, SearchResponse.Summary.Citation.Builder builderForValue)

Citations for segments.

repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1;

Parameters
Name Description
index int
builderForValue SearchResponse.Summary.Citation.Builder
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.CitationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.CitationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.Summary.CitationMetadata.Builder
Overrides