Class SearchResponse.Summary.CitationMetadata.Builder (0.48.0)

See more code actions.
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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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.v1beta.SearchResponse.Summary.Citation citations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Citation>

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
Name Description
value SearchResponse.Summary.Citation

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
Name Description
builderForValue SearchResponse.Summary.Citation.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
Name Description
index int
value SearchResponse.Summary.Citation

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
Name Description
index int
builderForValue SearchResponse.Summary.Citation.Builder

addCitationsBuilder()

public SearchResponse.Summary.Citation.Builder addCitationsBuilder()

Citations for segments.

repeated .google.cloud.discoveryengine.v1beta.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.v1beta.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
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()
Overrides

clearCitations()

public SearchResponse.Summary.CitationMetadata.Builder clearCitations()

Citations for segments.

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SearchResponse.Summary.CitationMetadata.Builder clone()
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
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.v1beta.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.v1beta.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
List<Builder>

getCitationsCount()

public int getCitationsCount()

Citations for segments.

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

Returns
Type Description
int

getCitationsList()

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

Citations for segments.

repeated .google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.SearchResponse.Summary.Citation citations = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.CitationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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
Name Description
index int

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
Name Description
index int
value SearchResponse.Summary.Citation

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
Name Description
index int
builderForValue SearchResponse.Summary.Citation.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
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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