Class CitationMetadata (3.35.0)

public final class CitationMetadata extends GeneratedMessageV3 implements CitationMetadataOrBuilder

A collection of source attributions for a piece of content.

Protobuf type google.cloud.aiplatform.v1beta1.CitationMetadata

Static Fields

CITATIONS_FIELD_NUMBER

public static final int CITATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CitationMetadata getDefaultInstance()
Returns
TypeDescription
CitationMetadata

getDescriptor()

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

newBuilder()

public static CitationMetadata.Builder newBuilder()
Returns
TypeDescription
CitationMetadata.Builder

newBuilder(CitationMetadata prototype)

public static CitationMetadata.Builder newBuilder(CitationMetadata prototype)
Parameter
NameDescription
prototypeCitationMetadata
Returns
TypeDescription
CitationMetadata.Builder

parseDelimitedFrom(InputStream input)

public static CitationMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CitationMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CitationMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CitationMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CitationMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CitationMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CitationMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CitationMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CitationMetadata> parser()
Returns
TypeDescription
Parser<CitationMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCitations(int index)

public Citation getCitations(int index)

Output only. List of citations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Citation

getCitationsCount()

public int getCitationsCount()

Output only. List of citations.

repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDefaultInstanceForType()

public CitationMetadata getDefaultInstanceForType()
Returns
TypeDescription
CitationMetadata

getParserForType()

public Parser<CitationMetadata> getParserForType()
Returns
TypeDescription
Parser<CitationMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CitationMetadata.Builder newBuilderForType()
Returns
TypeDescription
CitationMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CitationMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CitationMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CitationMetadata.Builder toBuilder()
Returns
TypeDescription
CitationMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException