Interface GenerateGroundedContentResponse.CandidateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GenerateGroundedContentResponse.Candidate,GenerateGroundedContentResponse.Candidate.Builder
- Enclosing class:
- GenerateGroundedContentResponse
public static interface GenerateGroundedContentResponse.CandidateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionContent of the candidate.Content of the candidate.Grounding metadata for the generated content.Grounding metadata for the generated content.floatThe overall grounding score for the candidate, in the range of [0, 1].intgetIndex()Index of the candidate.booleanContent of the candidate.booleanGrounding metadata for the generated content.booleanThe overall grounding score for the candidate, in the range of [0, 1].Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getIndex
int getIndex()Index of the candidate.
int32 index = 1;- Returns:
- The index.
-
hasContent
boolean hasContent()Content of the candidate.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent content = 2;- Returns:
- Whether the content field is set.
-
getContent
GroundedGenerationContent getContent()Content of the candidate.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent content = 2;- Returns:
- The content.
-
getContentOrBuilder
GroundedGenerationContentOrBuilder getContentOrBuilder()Content of the candidate.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent content = 2; -
hasGroundingScore
boolean hasGroundingScore()The overall grounding score for the candidate, in the range of [0, 1].
optional float grounding_score = 3;- Returns:
- Whether the groundingScore field is set.
-
getGroundingScore
float getGroundingScore()The overall grounding score for the candidate, in the range of [0, 1].
optional float grounding_score = 3;- Returns:
- The groundingScore.
-
hasGroundingMetadata
boolean hasGroundingMetadata()Grounding metadata for the generated content.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4;- Returns:
- Whether the groundingMetadata field is set.
-
getGroundingMetadata
GenerateGroundedContentResponse.Candidate.GroundingMetadata getGroundingMetadata()Grounding metadata for the generated content.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4;- Returns:
- The groundingMetadata.
-
getGroundingMetadataOrBuilder
GenerateGroundedContentResponse.Candidate.GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()Grounding metadata for the generated content.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4;
-