Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptiongetCandidates(int index) Output only.intOutput only.Output only.getCandidatesOrBuilder(int index) Output only.List<? extends CandidateOrBuilder>Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only. response_id is used to identify each response.com.google.protobuf.ByteStringOutput only. response_id is used to identify each response.Usage metadata about the response(s).Usage metadata about the response(s).booleanOutput only.booleanOutput only.booleanUsage metadata about the response(s).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
-
getCandidatesList
Output only. Generated candidates.
repeated .google.cloud.aiplatform.v1.Candidate candidates = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCandidates
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
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
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.v1.GenerateContentResponse.PromptFeedback prompt_feedback = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The promptFeedback.
-
getPromptFeedbackOrBuilder
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.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
GenerateContentResponse.UsageMetadata getUsageMetadata()Usage metadata about the response(s).
.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata usage_metadata = 4;- Returns:
- The usageMetadata.
-
getUsageMetadataOrBuilder
GenerateContentResponse.UsageMetadataOrBuilder getUsageMetadataOrBuilder()Usage metadata about the response(s).
.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata usage_metadata = 4;
-