Interface GenerateContentResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GenerateContentResponse, GenerateContentResponse.Builder

@Generated public interface GenerateContentResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getCandidatesList

      List<Candidate> getCandidatesList()
       Output only. Generated candidates.
       
      repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCandidates

      Candidate getCandidates(int index)
       Output only. Generated candidates.
       
      repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCandidatesCount

      int getCandidatesCount()
       Output only. Generated candidates.
       
      repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCandidatesOrBuilderList

      List<? extends CandidateOrBuilder> getCandidatesOrBuilderList()
       Output only. Generated candidates.
       
      repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCandidatesOrBuilder

      CandidateOrBuilder getCandidatesOrBuilder(int index)
       Output only. Generated candidates.
       
      repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getModelVersion

      String getModelVersion()
       Output only. The model version used to generate the response.
       
      string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The modelVersion.
    • getModelVersionBytes

      com.google.protobuf.ByteString getModelVersionBytes()
       Output only. The model version used to generate the response.
       
      string model_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The bytes for modelVersion.
    • hasCreateTime

      boolean hasCreateTime()
       Output only. Timestamp when the request is made to the server.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when the request is made to the server.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when the request is made to the server.
       
      .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getResponseId

      String getResponseId()
       Output only. response_id is used to identify each response. It is the
       encoding of the event_id.
       
      string response_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The responseId.
    • getResponseIdBytes

      com.google.protobuf.ByteString getResponseIdBytes()
       Output only. response_id is used to identify each response. It is the
       encoding of the event_id.
       
      string response_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The bytes for responseId.
    • hasPromptFeedback

      boolean hasPromptFeedback()
       Output only. Content filter results for a prompt sent in the request.
       Note: Sent only in the first stream chunk.
       Only happens when no candidates were generated due to content violations.
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the promptFeedback field is set.
    • getPromptFeedback

       Output only. Content filter results for a prompt sent in the request.
       Note: Sent only in the first stream chunk.
       Only happens when no candidates were generated due to content violations.
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The promptFeedback.
    • getPromptFeedbackOrBuilder

       Output only. Content filter results for a prompt sent in the request.
       Note: Sent only in the first stream chunk.
       Only happens when no candidates were generated due to content violations.
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUsageMetadata

      boolean hasUsageMetadata()
       Usage metadata about the response(s).
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
      Returns:
      Whether the usageMetadata field is set.
    • getUsageMetadata

       Usage metadata about the response(s).
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
      Returns:
      The usageMetadata.
    • getUsageMetadataOrBuilder

       Usage metadata about the response(s).
       
      .google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata usage_metadata = 4;