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 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

       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

       Grounding metadata for the generated content.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4;
      Returns:
      The groundingMetadata.
    • getGroundingMetadataOrBuilder

       Grounding metadata for the generated content.
       
      .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4;