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
Inherited Members
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
public static final Descriptors.Descriptor getDescriptor()
Methods
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 |
Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1.Citation>
|
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 |
Name |
Description |
value |
Citation
|
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];
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];
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];
public Citation.Builder addCitationsBuilder()
Output only. List of citations.
repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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 |
Name |
Description |
index |
int
|
public CitationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CitationMetadata build()
public CitationMetadata buildPartial()
public CitationMetadata.Builder clear()
Overrides
public CitationMetadata.Builder clearCitations()
Output only. List of citations.
repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public CitationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CitationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public CitationMetadata.Builder clone()
Overrides
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 |
Name |
Description |
index |
int
|
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 |
Name |
Description |
index |
int
|
public List<Citation.Builder> getCitationsBuilderList()
Output only. List of citations.
repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getCitationsCount()
Output only. List of citations.
repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
|
public List<Citation> getCitationsList()
Output only. List of citations.
repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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 |
Name |
Description |
index |
int
|
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 |
Type |
Description |
List<? extends com.google.cloud.aiplatform.v1.CitationOrBuilder> |
|
public CitationMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CitationMetadata.Builder mergeFrom(CitationMetadata other)
public CitationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public CitationMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final CitationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
Name |
Description |
index |
int
|
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];
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];
public CitationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CitationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final CitationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides