- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class Candidate.Builder extends GeneratedMessageV3.Builder<Candidate.Builder> implements CandidateOrBuilder
A response candidate generated from the model.
Protobuf type google.cloud.aiplatform.v1beta1.Candidate
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Candidate.BuilderImplements
CandidateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllSafetyRatings(Iterable<? extends SafetyRating> values)
public Candidate.Builder addAllSafetyRatings(Iterable<? extends SafetyRating> values)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.SafetyRating> |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Candidate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addSafetyRatings(SafetyRating value)
public Candidate.Builder addSafetyRatings(SafetyRating value)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
SafetyRating |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addSafetyRatings(SafetyRating.Builder builderForValue)
public Candidate.Builder addSafetyRatings(SafetyRating.Builder builderForValue)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
SafetyRating.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addSafetyRatings(int index, SafetyRating value)
public Candidate.Builder addSafetyRatings(int index, SafetyRating value)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SafetyRating |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addSafetyRatings(int index, SafetyRating.Builder builderForValue)
public Candidate.Builder addSafetyRatings(int index, SafetyRating.Builder builderForValue)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SafetyRating.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
addSafetyRatingsBuilder()
public SafetyRating.Builder addSafetyRatingsBuilder()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SafetyRating.Builder |
addSafetyRatingsBuilder(int index)
public SafetyRating.Builder addSafetyRatingsBuilder(int index)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SafetyRating.Builder |
build()
public Candidate build()
Returns | |
---|---|
Type | Description |
Candidate |
buildPartial()
public Candidate buildPartial()
Returns | |
---|---|
Type | Description |
Candidate |
clear()
public Candidate.Builder clear()
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearAvgLogprobs()
public Candidate.Builder clearAvgLogprobs()
Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
clearCitationMetadata()
public Candidate.Builder clearCitationMetadata()
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearContent()
public Candidate.Builder clearContent()
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearField(Descriptors.FieldDescriptor field)
public Candidate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearFinishMessage()
public Candidate.Builder clearFinishMessage()
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 |
Candidate.Builder |
This builder for chaining. |
clearFinishReason()
public Candidate.Builder clearFinishReason()
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1beta1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
clearGroundingMetadata()
public Candidate.Builder clearGroundingMetadata()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearIndex()
public Candidate.Builder clearIndex()
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
clearLogprobsResult()
public Candidate.Builder clearLogprobsResult()
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Candidate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clearSafetyRatings()
public Candidate.Builder clearSafetyRatings()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.Builder |
clone()
public Candidate.Builder clone()
Returns | |
---|---|
Type | Description |
Candidate.Builder |
getAvgLogprobs()
public double getAvgLogprobs()
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. |
getCitationMetadata()
public CitationMetadata getCitationMetadata()
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
CitationMetadata |
The citationMetadata. |
getCitationMetadataBuilder()
public CitationMetadata.Builder getCitationMetadataBuilder()
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
CitationMetadata.Builder |
getCitationMetadataOrBuilder()
public CitationMetadataOrBuilder getCitationMetadataOrBuilder()
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
CitationMetadataOrBuilder |
getContent()
public Content getContent()
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Content |
The content. |
getContentBuilder()
public Content.Builder getContentBuilder()
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Content.Builder |
getContentOrBuilder()
public ContentOrBuilder getContentOrBuilder()
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ContentOrBuilder |
getDefaultInstanceForType()
public Candidate getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Candidate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFinishMessage()
public String getFinishMessage()
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()
public ByteString getFinishMessageBytes()
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()
public Candidate.FinishReason getFinishReason()
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1beta1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Candidate.FinishReason |
The finishReason. |
getFinishReasonValue()
public int getFinishReasonValue()
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1beta1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for finishReason. |
getGroundingMetadata()
public GroundingMetadata getGroundingMetadata()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
GroundingMetadata |
The groundingMetadata. |
getGroundingMetadataBuilder()
public GroundingMetadata.Builder getGroundingMetadataBuilder()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
GroundingMetadata.Builder |
getGroundingMetadataOrBuilder()
public GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
GroundingMetadataOrBuilder |
getIndex()
public int getIndex()
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The index. |
getLogprobsResult()
public LogprobsResult getLogprobsResult()
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LogprobsResult |
The logprobsResult. |
getLogprobsResultBuilder()
public LogprobsResult.Builder getLogprobsResultBuilder()
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LogprobsResult.Builder |
getLogprobsResultOrBuilder()
public LogprobsResultOrBuilder getLogprobsResultOrBuilder()
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LogprobsResultOrBuilder |
getSafetyRatings(int index)
public SafetyRating getSafetyRatings(int index)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SafetyRating |
getSafetyRatingsBuilder(int index)
public SafetyRating.Builder getSafetyRatingsBuilder(int index)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SafetyRating.Builder |
getSafetyRatingsBuilderList()
public List<SafetyRating.Builder> getSafetyRatingsBuilderList()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<Builder> |
getSafetyRatingsCount()
public int getSafetyRatingsCount()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getSafetyRatingsList()
public List<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.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<SafetyRating> |
getSafetyRatingsOrBuilder(int index)
public SafetyRatingOrBuilder getSafetyRatingsOrBuilder(int index)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SafetyRatingOrBuilder |
getSafetyRatingsOrBuilderList()
public List<? extends SafetyRatingOrBuilder> getSafetyRatingsOrBuilderList()
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.SafetyRatingOrBuilder> |
hasCitationMetadata()
public boolean hasCitationMetadata()
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the citationMetadata field is set. |
hasContent()
public boolean hasContent()
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the content field is set. |
hasFinishMessage()
public boolean hasFinishMessage()
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. |
hasGroundingMetadata()
public boolean hasGroundingMetadata()
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the groundingMetadata field is set. |
hasLogprobsResult()
public boolean hasLogprobsResult()
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the logprobsResult field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCitationMetadata(CitationMetadata value)
public Candidate.Builder mergeCitationMetadata(CitationMetadata value)
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
CitationMetadata |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeContent(Content value)
public Candidate.Builder mergeContent(Content value)
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Content |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeFrom(Candidate other)
public Candidate.Builder mergeFrom(Candidate other)
Parameter | |
---|---|
Name | Description |
other |
Candidate |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Candidate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Candidate.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeGroundingMetadata(GroundingMetadata value)
public Candidate.Builder mergeGroundingMetadata(GroundingMetadata value)
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
GroundingMetadata |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeLogprobsResult(LogprobsResult value)
public Candidate.Builder mergeLogprobsResult(LogprobsResult value)
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
LogprobsResult |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Candidate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
removeSafetyRatings(int index)
public Candidate.Builder removeSafetyRatings(int index)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setAvgLogprobs(double value)
public Candidate.Builder setAvgLogprobs(double value)
Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
double The avgLogprobs to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setCitationMetadata(CitationMetadata value)
public Candidate.Builder setCitationMetadata(CitationMetadata value)
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
CitationMetadata |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setCitationMetadata(CitationMetadata.Builder builderForValue)
public Candidate.Builder setCitationMetadata(CitationMetadata.Builder builderForValue)
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1beta1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
CitationMetadata.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setContent(Content value)
public Candidate.Builder setContent(Content value)
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Content |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setContent(Content.Builder builderForValue)
public Candidate.Builder setContent(Content.Builder builderForValue)
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Content.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Candidate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setFinishMessage(String value)
public Candidate.Builder setFinishMessage(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The finishMessage to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setFinishMessageBytes(ByteString value)
public Candidate.Builder setFinishMessageBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for finishMessage to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setFinishReason(Candidate.FinishReason value)
public Candidate.Builder setFinishReason(Candidate.FinishReason value)
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1beta1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Candidate.FinishReason The finishReason to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setFinishReasonValue(int value)
public Candidate.Builder setFinishReasonValue(int value)
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1beta1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for finishReason to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setGroundingMetadata(GroundingMetadata value)
public Candidate.Builder setGroundingMetadata(GroundingMetadata value)
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
GroundingMetadata |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setGroundingMetadata(GroundingMetadata.Builder builderForValue)
public Candidate.Builder setGroundingMetadata(GroundingMetadata.Builder builderForValue)
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
GroundingMetadata.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setIndex(int value)
public Candidate.Builder setIndex(int value)
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The index to set. |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
This builder for chaining. |
setLogprobsResult(LogprobsResult value)
public Candidate.Builder setLogprobsResult(LogprobsResult value)
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
LogprobsResult |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setLogprobsResult(LogprobsResult.Builder builderForValue)
public Candidate.Builder setLogprobsResult(LogprobsResult.Builder builderForValue)
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1beta1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
LogprobsResult.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Candidate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setSafetyRatings(int index, SafetyRating value)
public Candidate.Builder setSafetyRatings(int index, SafetyRating value)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SafetyRating |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setSafetyRatings(int index, SafetyRating.Builder builderForValue)
public Candidate.Builder setSafetyRatings(int index, SafetyRating.Builder builderForValue)
Output only. List of ratings for the safety of a response candidate.
There is at most one rating per category.
repeated .google.cloud.aiplatform.v1beta1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SafetyRating.Builder |
Returns | |
---|---|
Type | Description |
Candidate.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Candidate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Candidate.Builder |