- 0.51.0 (latest)
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder> implements GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilder
Grounding info for a claim in the candidate and its support.
Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllSupportChunkIndices(Iterable<? extends Integer> values)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder addAllSupportChunkIndices(Iterable<? extends Integer> values)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends java.lang.Integer> The supportChunkIndices to add. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
addSupportChunkIndices(int value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder addSupportChunkIndices(int value)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Parameter | |
---|---|
Name | Description |
value |
int The supportChunkIndices to add. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
build()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport build()
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport |
buildPartial()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport buildPartial()
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport |
clear()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clear()
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
clearClaimText()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearClaimText()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
clearSupportChunkIndices()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearSupportChunkIndices()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
clearSupportScore()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
clone()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clone()
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
getClaimText()
public String getClaimText()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;
Returns | |
---|---|
Type | Description |
String |
The claimText. |
getClaimTextBytes()
public ByteString getClaimTextBytes()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for claimText. |
getDefaultInstanceForType()
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getSupportChunkIndices(int index)
public int getSupportChunkIndices(int index)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
int |
The supportChunkIndices at the given index. |
getSupportChunkIndicesCount()
public int getSupportChunkIndicesCount()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Returns | |
---|---|
Type | Description |
int |
The count of supportChunkIndices. |
getSupportChunkIndicesList()
public List<Integer> getSupportChunkIndicesList()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Returns | |
---|---|
Type | Description |
List<Integer> |
A list containing the supportChunkIndices. |
getSupportScore()
public float getSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;
Returns | |
---|---|
Type | Description |
float |
The supportScore. |
hasSupportScore()
public boolean hasSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the supportScore field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport other)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeFrom(GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport other)
Parameter | |
---|---|
Name | Description |
other |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
setClaimText(String value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setClaimText(String value)
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;
Parameter | |
---|---|
Name | Description |
value |
String The claimText to set. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
setClaimTextBytes(ByteString value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setClaimTextBytes(ByteString value)
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for claimText to set. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
setSupportChunkIndices(int index, int value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setSupportChunkIndices(int index, int value)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
int The supportChunkIndices to set. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
setSupportScore(float value)
public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setSupportScore(float value)
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;
Parameter | |
---|---|
Name | Description |
value |
float The supportScore to set. |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder |