public static final class Citations.Builder extends GeneratedMessage.Builder<Citations.Builder> implements CitationsOrBuilder
Citations associated with the agent response.
Protobuf type google.cloud.ces.v1beta.Citations
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCitedChunks(Iterable<? extends Citations.CitedChunk> values)
public Citations.Builder addAllCitedChunks(Iterable<? extends Citations.CitedChunk> values)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.ces.v1beta.Citations.CitedChunk>
|
addAllInlineCitations(Iterable<? extends Citations.InlineCitation> values)
public Citations.Builder addAllInlineCitations(Iterable<? extends Citations.InlineCitation> values)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.ces.v1beta.Citations.InlineCitation>
|
addCitedChunks(Citations.CitedChunk value)
public Citations.Builder addCitedChunks(Citations.CitedChunk value)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
addCitedChunks(Citations.CitedChunk.Builder builderForValue)
public Citations.Builder addCitedChunks(Citations.CitedChunk.Builder builderForValue)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
addCitedChunks(int index, Citations.CitedChunk value)
public Citations.Builder addCitedChunks(int index, Citations.CitedChunk value)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
addCitedChunks(int index, Citations.CitedChunk.Builder builderForValue)
public Citations.Builder addCitedChunks(int index, Citations.CitedChunk.Builder builderForValue)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
addCitedChunksBuilder()
public Citations.CitedChunk.Builder addCitedChunksBuilder()
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
addCitedChunksBuilder(int index)
public Citations.CitedChunk.Builder addCitedChunksBuilder(int index)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
addInlineCitations(Citations.InlineCitation value)
public Citations.Builder addInlineCitations(Citations.InlineCitation value)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
addInlineCitations(Citations.InlineCitation.Builder builderForValue)
public Citations.Builder addInlineCitations(Citations.InlineCitation.Builder builderForValue)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
addInlineCitations(int index, Citations.InlineCitation value)
public Citations.Builder addInlineCitations(int index, Citations.InlineCitation value)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
addInlineCitations(int index, Citations.InlineCitation.Builder builderForValue)
public Citations.Builder addInlineCitations(int index, Citations.InlineCitation.Builder builderForValue)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
addInlineCitationsBuilder()
public Citations.InlineCitation.Builder addInlineCitationsBuilder()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
addInlineCitationsBuilder(int index)
public Citations.InlineCitation.Builder addInlineCitationsBuilder(int index)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
build()
buildPartial()
public Citations buildPartial()
clear()
public Citations.Builder clear()
Overrides
clearCitedChunks()
public Citations.Builder clearCitedChunks()
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
clearInlineCitations()
public Citations.Builder clearInlineCitations()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
getCitedChunks(int index)
public Citations.CitedChunk getCitedChunks(int index)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCitedChunksBuilder(int index)
public Citations.CitedChunk.Builder getCitedChunksBuilder(int index)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCitedChunksBuilderList()
public List<Citations.CitedChunk.Builder> getCitedChunksBuilderList()
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
getCitedChunksCount()
public int getCitedChunksCount()
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.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.v1beta.Citations.CitedChunk cited_chunks = 1;
getCitedChunksOrBuilder(int index)
public Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCitedChunksOrBuilderList()
public List<? extends Citations.CitedChunkOrBuilder> getCitedChunksOrBuilderList()
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.Citations.CitedChunkOrBuilder> |
|
getDefaultInstanceForType()
public Citations getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInlineCitations(int index)
public Citations.InlineCitation getInlineCitations(int index)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getInlineCitationsBuilder(int index)
public Citations.InlineCitation.Builder getInlineCitationsBuilder(int index)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getInlineCitationsBuilderList()
public List<Citations.InlineCitation.Builder> getInlineCitationsBuilderList()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
getInlineCitationsCount()
public int getInlineCitationsCount()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getInlineCitationsList()
public List<Citations.InlineCitation> getInlineCitationsList()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
getInlineCitationsOrBuilder(int index)
public Citations.InlineCitationOrBuilder getInlineCitationsOrBuilder(int index)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getInlineCitationsOrBuilderList()
public List<? extends Citations.InlineCitationOrBuilder> getInlineCitationsOrBuilderList()
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Citations other)
public Citations.Builder mergeFrom(Citations other)
public Citations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Citations.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeCitedChunks(int index)
public Citations.Builder removeCitedChunks(int index)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
| Parameter |
| Name |
Description |
index |
int
|
removeInlineCitations(int index)
public Citations.Builder removeInlineCitations(int index)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
setCitedChunks(int index, Citations.CitedChunk value)
public Citations.Builder setCitedChunks(int index, Citations.CitedChunk value)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
setCitedChunks(int index, Citations.CitedChunk.Builder builderForValue)
public Citations.Builder setCitedChunks(int index, Citations.CitedChunk.Builder builderForValue)
List of cited pieces of information.
repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1;
setInlineCitations(int index, Citations.InlineCitation value)
public Citations.Builder setInlineCitations(int index, Citations.InlineCitation value)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];
setInlineCitations(int index, Citations.InlineCitation.Builder builderForValue)
public Citations.Builder setInlineCitations(int index, Citations.InlineCitation.Builder builderForValue)
Optional. List of inline citations in the agent response.
repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL];