Class CitationMetadata.Builder (3.34.0)

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

A collection of source attributions for a piece of content.

Protobuf type google.cloud.aiplatform.v1.CitationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCitations(Iterable<? extends Citation> values)

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

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1.Citation>
Returns
TypeDescription
CitationMetadata.Builder

addCitations(Citation value)

public CitationMetadata.Builder addCitations(Citation value)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCitation
Returns
TypeDescription
CitationMetadata.Builder

addCitations(Citation.Builder builderForValue)

public CitationMetadata.Builder addCitations(Citation.Builder builderForValue)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCitation.Builder
Returns
TypeDescription
CitationMetadata.Builder

addCitations(int index, Citation value)

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

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCitation
Returns
TypeDescription
CitationMetadata.Builder

addCitations(int index, Citation.Builder builderForValue)

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

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCitation.Builder
Returns
TypeDescription
CitationMetadata.Builder

addCitationsBuilder()

public Citation.Builder addCitationsBuilder()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Citation.Builder

addCitationsBuilder(int index)

public Citation.Builder addCitationsBuilder(int index)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CitationMetadata build()
Returns
TypeDescription
CitationMetadata

buildPartial()

public CitationMetadata buildPartial()
Returns
TypeDescription
CitationMetadata

clear()

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

clearCitations()

public CitationMetadata.Builder clearCitations()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CitationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCitations(int index)

public Citation getCitations(int index)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Citation

getCitationsBuilder(int index)

public Citation.Builder getCitationsBuilder(int index)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Citation.Builder

getCitationsBuilderList()

public List<Citation.Builder> getCitationsBuilderList()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getCitationsCount()

public int getCitationsCount()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getCitationsList()

public List<Citation> getCitationsList()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Citation>

getCitationsOrBuilder(int index)

public CitationOrBuilder getCitationsOrBuilder(int index)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CitationOrBuilder

getCitationsOrBuilderList()

public List<? extends CitationOrBuilder> getCitationsOrBuilderList()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.CitationOrBuilder>

getDefaultInstanceForType()

public CitationMetadata getDefaultInstanceForType()
Returns
TypeDescription
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(CitationMetadata other)

public CitationMetadata.Builder mergeFrom(CitationMetadata other)
Parameter
NameDescription
otherCitationMetadata
Returns
TypeDescription
CitationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCitations(int index)

public CitationMetadata.Builder removeCitations(int index)

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
CitationMetadata.Builder

setCitations(int index, Citation value)

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

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueCitation
Returns
TypeDescription
CitationMetadata.Builder

setCitations(int index, Citation.Builder builderForValue)

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

Output only. List of citations.

repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueCitation.Builder
Returns
TypeDescription
CitationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public CitationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CitationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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