Package com.google.cloud.aiplatform.v1
Class Candidate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
com.google.cloud.aiplatform.v1.Candidate.Builder
- All Implemented Interfaces:
CandidateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Candidate
public static final class Candidate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
implements CandidateOrBuilder
A response candidate generated from the model.Protobuf type
google.cloud.aiplatform.v1.Candidate-
Method Summary
Modifier and TypeMethodDescriptionaddAllSafetyRatings(Iterable<? extends SafetyRating> values) Output only.addSafetyRatings(int index, SafetyRating value) Output only.addSafetyRatings(int index, SafetyRating.Builder builderForValue) Output only.addSafetyRatings(SafetyRating value) Output only.addSafetyRatings(SafetyRating.Builder builderForValue) Output only.Output only.addSafetyRatingsBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.doubleOutput only.Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.Output only.Output only.intgetIndex()Output only.Output only.Output only.Output only.getSafetyRatings(int index) Output only.getSafetyRatingsBuilder(int index) Output only.Output only.intOutput only.Output only.getSafetyRatingsOrBuilder(int index) Output only.List<? extends SafetyRatingOrBuilder>Output only.doublegetScore()Output only.Output only.Output only.Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeContent(Content value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.Output only.Output only.removeSafetyRatings(int index) Output only.setAvgLogprobs(double value) Output only.Output only.setCitationMetadata(CitationMetadata.Builder builderForValue) Output only.setContent(Content value) Output only.setContent(Content.Builder builderForValue) Output only.setFinishMessage(String value) Output only.setFinishMessageBytes(com.google.protobuf.ByteString value) Output only.Output only.setFinishReasonValue(int value) Output only.Output only.setGroundingMetadata(GroundingMetadata.Builder builderForValue) Output only.setIndex(int value) Output only.setLogprobsResult(LogprobsResult value) Output only.setLogprobsResult(LogprobsResult.Builder builderForValue) Output only.setSafetyRatings(int index, SafetyRating value) Output only.setSafetyRatings(int index, SafetyRating.Builder builderForValue) Output only.setScore(double value) Output only.Output only.setUrlContextMetadata(UrlContextMetadata.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Candidate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Candidate.Builder>
-
mergeFrom
public Candidate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Candidate.Builder>- Throws:
IOException
-
getIndex
public int getIndex()Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIndexin interfaceCandidateOrBuilder- Returns:
- The index.
-
setIndex
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
Output only. Index of the candidate.
int32 index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasContent
public boolean hasContent()Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasContentin interfaceCandidateOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContentin interfaceCandidateOrBuilder- Returns:
- The content.
-
setContent
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setContent
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeContent
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearContent
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getContentBuilder
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getContentOrBuilder
Output only. Content parts of the candidate.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContentOrBuilderin interfaceCandidateOrBuilder
-
getScore
public double getScore()Output only. Confidence score of the candidate.
double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScorein interfaceCandidateOrBuilder- Returns:
- The score.
-
setScore
Output only. Confidence score of the candidate.
double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Output only. Confidence score of the candidate.
double score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAvgLogprobs
public double getAvgLogprobs()Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAvgLogprobsin interfaceCandidateOrBuilder- Returns:
- The avgLogprobs.
-
setAvgLogprobs
Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The avgLogprobs to set.- Returns:
- This builder for chaining.
-
clearAvgLogprobs
Output only. Average log probability score of the candidate.
double avg_logprobs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasLogprobsResult
public boolean hasLogprobsResult()Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLogprobsResultin interfaceCandidateOrBuilder- Returns:
- Whether the logprobsResult field is set.
-
getLogprobsResult
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLogprobsResultin interfaceCandidateOrBuilder- Returns:
- The logprobsResult.
-
setLogprobsResult
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLogprobsResult
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeLogprobsResult
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLogprobsResult
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLogprobsResultBuilder
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLogprobsResultOrBuilder
Output only. Log-likelihood scores for the response tokens and top tokens
.google.cloud.aiplatform.v1.LogprobsResult logprobs_result = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLogprobsResultOrBuilderin interfaceCandidateOrBuilder
-
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.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFinishReasonValuein interfaceCandidateOrBuilder- Returns:
- The enum numeric value on the wire for finishReason.
-
setFinishReasonValue
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for finishReason to set.- Returns:
- This builder for chaining.
-
getFinishReason
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFinishReasonin interfaceCandidateOrBuilder- Returns:
- The finishReason.
-
setFinishReason
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The finishReason to set.- Returns:
- This builder for chaining.
-
clearFinishReason
Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
.google.cloud.aiplatform.v1.Candidate.FinishReason finish_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSafetyRatingsListin interfaceCandidateOrBuilder
-
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSafetyRatingsCountin interfaceCandidateOrBuilder
-
getSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSafetyRatingsin interfaceCandidateOrBuilder
-
setSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeSafetyRatings
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatingsBuilder
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSafetyRatingsOrBuilder
Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.
repeated .google.cloud.aiplatform.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSafetyRatingsOrBuilderin interfaceCandidateOrBuilder
-
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSafetyRatingsOrBuilderListin interfaceCandidateOrBuilder
-
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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.v1.SafetyRating safety_ratings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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];- Specified by:
hasFinishMessagein interfaceCandidateOrBuilder- Returns:
- Whether the finishMessage field is set.
-
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];- Specified by:
getFinishMessagein interfaceCandidateOrBuilder- Returns:
- The finishMessage.
-
getFinishMessageBytes
public com.google.protobuf.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];- Specified by:
getFinishMessageBytesin interfaceCandidateOrBuilder- Returns:
- The bytes for finishMessage.
-
setFinishMessage
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];- Parameters:
value- The finishMessage to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFinishMessageBytes
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];- Parameters:
value- The bytes for finishMessage to set.- Returns:
- This builder for chaining.
-
hasCitationMetadata
public boolean hasCitationMetadata()Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCitationMetadatain interfaceCandidateOrBuilder- Returns:
- Whether the citationMetadata field is set.
-
getCitationMetadata
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCitationMetadatain interfaceCandidateOrBuilder- Returns:
- The citationMetadata.
-
setCitationMetadata
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCitationMetadata
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCitationMetadata
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCitationMetadata
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCitationMetadataBuilder
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCitationMetadataOrBuilder
Output only. Source attribution of the generated content.
.google.cloud.aiplatform.v1.CitationMetadata citation_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCitationMetadataOrBuilderin interfaceCandidateOrBuilder
-
hasGroundingMetadata
public boolean hasGroundingMetadata()Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasGroundingMetadatain interfaceCandidateOrBuilder- Returns:
- Whether the groundingMetadata field is set.
-
getGroundingMetadata
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGroundingMetadatain interfaceCandidateOrBuilder- Returns:
- The groundingMetadata.
-
setGroundingMetadata
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setGroundingMetadata
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeGroundingMetadata
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearGroundingMetadata
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getGroundingMetadataBuilder
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getGroundingMetadataOrBuilder
Output only. Metadata specifies sources used to ground generated content.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGroundingMetadataOrBuilderin interfaceCandidateOrBuilder
-
hasUrlContextMetadata
public boolean hasUrlContextMetadata()Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUrlContextMetadatain interfaceCandidateOrBuilder- Returns:
- Whether the urlContextMetadata field is set.
-
getUrlContextMetadata
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUrlContextMetadatain interfaceCandidateOrBuilder- Returns:
- The urlContextMetadata.
-
setUrlContextMetadata
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUrlContextMetadata
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUrlContextMetadata
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUrlContextMetadata
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUrlContextMetadataBuilder
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUrlContextMetadataOrBuilder
Output only. Metadata related to url context retrieval tool.
.google.cloud.aiplatform.v1.UrlContextMetadata url_context_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUrlContextMetadataOrBuilderin interfaceCandidateOrBuilder
-