public static final class GroundingSupport.Builder extends GeneratedMessage.Builder<GroundingSupport.Builder> implements GroundingSupportOrBuilderA collection of supporting references for a segment or part of the model's response.
Protobuf type google.cloud.dialogflow.v2.GroundingSupport
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GroundingSupport.BuilderImplements
GroundingSupportOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGroundingChunkIndices(Iterable<? extends Integer> values)
public GroundingSupport.Builder addAllGroundingChunkIndices(Iterable<? extends Integer> values) Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends java.lang.Integer>The groundingChunkIndices to add. |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
This builder for chaining. |
addGroundingChunkIndices(int value)
public GroundingSupport.Builder addGroundingChunkIndices(int value) Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe groundingChunkIndices to add. |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
This builder for chaining. |
build()
public GroundingSupport build()| Returns | |
|---|---|
| Type | Description |
GroundingSupport |
|
buildPartial()
public GroundingSupport buildPartial()| Returns | |
|---|---|
| Type | Description |
GroundingSupport |
|
clear()
public GroundingSupport.Builder clear()| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
clearGroundingChunkIndices()
public GroundingSupport.Builder clearGroundingChunkIndices() Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
This builder for chaining. |
clearSegment()
public GroundingSupport.Builder clearSegment()Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
getDefaultInstanceForType()
public GroundingSupport getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundingSupport |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGroundingChunkIndices(int index)
public int getGroundingChunkIndices(int index) Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The groundingChunkIndices at the given index. |
getGroundingChunkIndicesCount()
public int getGroundingChunkIndicesCount() Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of groundingChunkIndices. |
getGroundingChunkIndicesList()
public List<Integer> getGroundingChunkIndicesList() Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the groundingChunkIndices. |
getSegment()
public Segment getSegment()Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Segment |
The segment. |
getSegmentBuilder()
public Segment.Builder getSegmentBuilder()Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Segment.Builder |
|
getSegmentOrBuilder()
public SegmentOrBuilder getSegmentOrBuilder()Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SegmentOrBuilder |
|
hasSegment()
public boolean hasSegment()Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the segment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GroundingSupport other)
public GroundingSupport.Builder mergeFrom(GroundingSupport other)| Parameter | |
|---|---|
| Name | Description |
other |
GroundingSupport |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GroundingSupport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GroundingSupport.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
mergeSegment(Segment value)
public GroundingSupport.Builder mergeSegment(Segment value)Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Segment |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
setGroundingChunkIndices(int index, int value)
public GroundingSupport.Builder setGroundingChunkIndices(int index, int value) Optional. A list of indices into grounding_chunks field specifying the
citations associated with the claim. For instance [1, 3] means that
grounding_chunks[1] and grounding_chunks[3] are the retrieved contents
attributed to the claim.
repeated int32 grounding_chunk_indices = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe groundingChunkIndices to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
This builder for chaining. |
setSegment(Segment value)
public GroundingSupport.Builder setSegment(Segment value)Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Segment |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
setSegment(Segment.Builder builderForValue)
public GroundingSupport.Builder setSegment(Segment.Builder builderForValue)Optional. Segment of the content this support belongs to.
.google.cloud.dialogflow.v2.Segment segment = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Segment.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|