public final class Citations extends GeneratedMessage implements CitationsOrBuilderCitations associated with the agent response.
Protobuf type google.cloud.ces.v1.Citations
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CitationsImplements
CitationsOrBuilderStatic Fields
CITED_CHUNKS_FIELD_NUMBER
public static final int CITED_CHUNKS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Citations getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Citations |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Citations.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
newBuilder(Citations prototype)
public static Citations.Builder newBuilder(Citations prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Citations |
| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
parseDelimitedFrom(InputStream input)
public static Citations parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Citations parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Citations parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Citations parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Citations parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Citations parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Citations parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Citations parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Citations parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Citations parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Citations parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Citations parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citations |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Citations> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Citations> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCitedChunks(int index)
public Citations.CitedChunk getCitedChunks(int index)List of cited pieces of information.
repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Citations.CitedChunk |
|
getCitedChunksCount()
public int getCitedChunksCount()List of cited pieces of information.
repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getCitedChunksList()
public List<Citations.CitedChunk> getCitedChunksList()List of cited pieces of information.
repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1;
| Returns | |
|---|---|
| Type | Description |
List<CitedChunk> |
|
getCitedChunksOrBuilder(int index)
public Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index)List of cited pieces of information.
repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Citations.CitedChunkOrBuilder |
|
getCitedChunksOrBuilderList()
public List<? extends Citations.CitedChunkOrBuilder> getCitedChunksOrBuilderList()List of cited pieces of information.
repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder> |
|
getDefaultInstanceForType()
public Citations getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Citations |
|
getParserForType()
public Parser<Citations> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Citations> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Citations.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Citations.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
toBuilder()
public Citations.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Citations.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|