publicfinalclass CandidateextendsGeneratedMessageV3implementsCandidateOrBuilder
A response candidate generated from the model.
Protobuf type google.cloud.vertexai.v1.Candidate
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AVG_LOGPROBS_FIELD_NUMBER
publicstaticfinalintAVG_LOGPROBS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintCITATION_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CONTENT_FIELD_NUMBER
publicstaticfinalintCONTENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FINISH_MESSAGE_FIELD_NUMBER
publicstaticfinalintFINISH_MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FINISH_REASON_FIELD_NUMBER
publicstaticfinalintFINISH_REASON_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintGROUNDING_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INDEX_FIELD_NUMBER
publicstaticfinalintINDEX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SAFETY_RATINGS_FIELD_NUMBER
publicstaticfinalintSAFETY_RATINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SCORE_FIELD_NUMBER
publicstaticfinalintSCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticCandidategetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCandidate.BuildernewBuilder()
newBuilder(Candidate prototype)
publicstaticCandidate.BuildernewBuilder(Candidateprototype)
| Parameter |
| Name |
Description |
prototype |
Candidate
|
publicstaticCandidateparseDelimitedFrom(InputStreaminput)
publicstaticCandidateparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCandidateparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCandidateparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCandidateparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCandidateparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCandidateparseFrom(CodedInputStreaminput)
publicstaticCandidateparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCandidateparseFrom(InputStreaminput)
publicstaticCandidateparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCandidateparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCandidateparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<Candidate>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAvgLogprobs()
publicdoublegetAvgLogprobs()
Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
double |
The avgLogprobs.
|
publicCitationMetadatagetCitationMetadata()
Output only. Source attribution of the generated content.
.google.cloud.vertexai.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
publicCitationMetadataOrBuildergetCitationMetadataOrBuilder()
Output only. Source attribution of the generated content.
.google.cloud.vertexai.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getContent()
publicContentgetContent()
Output only. Content parts of the candidate.
.google.cloud.vertexai.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Content |
The content.
|
getContentOrBuilder()
publicContentOrBuildergetContentOrBuilder()
Output only. Content parts of the candidate.
.google.cloud.vertexai.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
publicCandidategetDefaultInstanceForType()
getFinishMessage()
publicStringgetFinishMessage()
Output only. Describes the reason the mode stopped generating tokens in
more detail. This is only filled when finish_reason is set.
optional string finish_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The finishMessage.
|
getFinishMessageBytes()
publicByteStringgetFinishMessageBytes()
Output only. Describes the reason the mode stopped generating tokens in
more detail. This is only filled when finish_reason is set.
optional string finish_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for finishMessage.
|
getFinishReason()
publicCandidate.FinishReasongetFinishReason()
Output only. The reason why the model stopped generating tokens.
If empty, the model has not stopped generating the tokens.
.google.cloud.vertexai.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFinishReasonValue()
publicintgetFinishReasonValue()
Output only. The reason why the model stopped generating tokens.
If empty, the model has not stopped generating the tokens.
.google.cloud.vertexai.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for finishReason.
|
publicGroundingMetadatagetGroundingMetadata()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.vertexai.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
publicGroundingMetadataOrBuildergetGroundingMetadataOrBuilder()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.vertexai.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIndex()
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The index.
|
getParserForType()
publicParser<Candidate>getParserForType()
Overrides
getSafetyRatings(int index)
publicSafetyRatinggetSafetyRatings(intindex)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSafetyRatingsCount()
publicintgetSafetyRatingsCount()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
getSafetyRatingsList()
publicList<SafetyRating>getSafetyRatingsList()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSafetyRatingsOrBuilder(int index)
publicSafetyRatingOrBuildergetSafetyRatingsOrBuilder(intindex)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSafetyRatingsOrBuilderList()
publicList<?extendsSafetyRatingOrBuilder>getSafetyRatingsOrBuilderList()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.vertexai.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.vertexai.api.SafetyRatingOrBuilder> |
getScore()
Output only. Confidence score of the candidate.
double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
double |
The score.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
publicbooleanhasCitationMetadata()
Output only. Source attribution of the generated content.
.google.cloud.vertexai.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the citationMetadata field is set.
|
hasContent()
publicbooleanhasContent()
Output only. Content parts of the candidate.
.google.cloud.vertexai.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the content field is set.
|
hasFinishMessage()
publicbooleanhasFinishMessage()
Output only. Describes the reason the mode stopped generating tokens in
more detail. This is only filled when finish_reason is set.
optional string finish_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the finishMessage field is set.
|
publicbooleanhasGroundingMetadata()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.vertexai.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the groundingMetadata field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCandidate.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCandidate.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCandidate.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides