public interface GenerateContentResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Candidate |
getCandidates(int index)
Output only.
|
int |
getCandidatesCount()
Output only.
|
List<Candidate> |
getCandidatesList()
Output only.
|
CandidateOrBuilder |
getCandidatesOrBuilder(int index)
Output only.
|
List<? extends CandidateOrBuilder> |
getCandidatesOrBuilderList()
Output only.
|
GenerateContentResponse.PromptFeedback |
getPromptFeedback()
Output only.
|
GenerateContentResponse.PromptFeedbackOrBuilder |
getPromptFeedbackOrBuilder()
Output only.
|
GenerateContentResponse.UsageMetadata |
getUsageMetadata()
Usage metadata about the response(s).
|
GenerateContentResponse.UsageMetadataOrBuilder |
getUsageMetadataOrBuilder()
Usage metadata about the response(s).
|
boolean |
hasPromptFeedback()
Output only.
|
boolean |
hasUsageMetadata()
Usage metadata about the response(s).
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<Candidate> getCandidatesList()
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1beta1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Candidate getCandidates(int index)
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1beta1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
int getCandidatesCount()
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1beta1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
List<? extends CandidateOrBuilder> getCandidatesOrBuilderList()
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1beta1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
CandidateOrBuilder getCandidatesOrBuilder(int index)
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1beta1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1beta1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
GenerateContentResponse.PromptFeedback 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.v1beta1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
GenerateContentResponse.PromptFeedbackOrBuilder 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.v1beta1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
boolean hasUsageMetadata()
Usage metadata about the response(s).
.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
GenerateContentResponse.UsageMetadata getUsageMetadata()
Usage metadata about the response(s).
.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
GenerateContentResponse.UsageMetadataOrBuilder getUsageMetadataOrBuilder()
Usage metadata about the response(s).
.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
Copyright © 2024 Google LLC. All rights reserved.