Class SearchResponse.Summary.CitationMetadata.Builder (0.36.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.v1beta.SearchResponse.Summary.CitationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Citation>
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameter
NameDescription
valueSearchResponse.Summary.Citation
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameter
NameDescription
builderForValueSearchResponse.Summary.Citation.Builder
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameters
NameDescription
indexint
valueSearchResponse.Summary.Citation
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameters
NameDescription
indexint
builderForValueSearchResponse.Summary.Citation.Builder
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder

addCitationsBuilder()

public SearchResponse.Summary.Citation.Builder addCitationsBuilder()

Citations for segments.

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

Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

addCitationsBuilder(int index)

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

Citations for segments.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.CitationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

build()

public SearchResponse.Summary.CitationMetadata build()
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata

buildPartial()

public SearchResponse.Summary.CitationMetadata buildPartial()
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata

clear()

public SearchResponse.Summary.CitationMetadata.Builder clear()
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clearCitations()

public SearchResponse.Summary.CitationMetadata.Builder clearCitations()

Citations for segments.

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

Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.Summary.CitationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResponse.Summary.CitationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

clone()

public SearchResponse.Summary.CitationMetadata.Builder clone()
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

getCitations(int index)

public SearchResponse.Summary.Citation getCitations(int index)

Citations for segments.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.Citation

getCitationsBuilder(int index)

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

Citations for segments.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

getCitationsBuilderList()

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

Citations for segments.

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

Returns
TypeDescription
List<Builder>

getCitationsCount()

public int getCitationsCount()

Citations for segments.

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

Returns
TypeDescription
int

getCitationsList()

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

Citations for segments.

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

Returns
TypeDescription
List<Citation>

getCitationsOrBuilder(int index)

public SearchResponse.Summary.CitationOrBuilder getCitationsOrBuilder(int index)

Citations for segments.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationOrBuilder

getCitationsOrBuilderList()

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

Citations for segments.

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

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationOrBuilder>

getDefaultInstanceForType()

public SearchResponse.Summary.CitationMetadata getDefaultInstanceForType()
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchResponse.Summary.CitationMetadata other)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(SearchResponse.Summary.CitationMetadata other)
Parameter
NameDescription
otherSearchResponse.Summary.CitationMetadata
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchResponse.Summary.CitationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.CitationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

removeCitations(int index)

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

Citations for segments.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameters
NameDescription
indexint
valueSearchResponse.Summary.Citation
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameters
NameDescription
indexint
builderForValueSearchResponse.Summary.Citation.Builder
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.CitationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.CitationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchResponse.Summary.CitationMetadata.Builder
Overrides