public static final class RetrievalMetadata.Builder extends GeneratedMessageV3.Builder<RetrievalMetadata.Builder> implements RetrievalMetadataOrBuilder
Metadata related to retrieval in the grounding flow.
Protobuf type google.cloud.aiplatform.v1.RetrievalMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RetrievalMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RetrievalMetadata build()
public RetrievalMetadata buildPartial()
public RetrievalMetadata.Builder clear()
Overrides
public RetrievalMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RetrievalMetadata.Builder clearGoogleSearchDynamicRetrievalScore()
Optional. Score indicating how likely information from google search could
help answer the prompt. The score is in the range [0, 1]
, where 0 is the
least likely and 1 is the most likely. This score is only populated when
google search grounding and dynamic retrieval is enabled. It will be
compared to the threshold to determine whether to trigger google search.
float google_search_dynamic_retrieval_score = 2 [(.google.api.field_behavior) = OPTIONAL];
public RetrievalMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RetrievalMetadata.Builder clone()
Overrides
public RetrievalMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public float getGoogleSearchDynamicRetrievalScore()
Optional. Score indicating how likely information from google search could
help answer the prompt. The score is in the range [0, 1]
, where 0 is the
least likely and 1 is the most likely. This score is only populated when
google search grounding and dynamic retrieval is enabled. It will be
compared to the threshold to determine whether to trigger google search.
float google_search_dynamic_retrieval_score = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
float |
The googleSearchDynamicRetrievalScore.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RetrievalMetadata.Builder mergeFrom(RetrievalMetadata other)
public RetrievalMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RetrievalMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RetrievalMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RetrievalMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RetrievalMetadata.Builder setGoogleSearchDynamicRetrievalScore(float value)
Optional. Score indicating how likely information from google search could
help answer the prompt. The score is in the range [0, 1]
, where 0 is the
least likely and 1 is the most likely. This score is only populated when
google search grounding and dynamic retrieval is enabled. It will be
compared to the threshold to determine whether to trigger google search.
float google_search_dynamic_retrieval_score = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
float
The googleSearchDynamicRetrievalScore to set.
|
public RetrievalMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final RetrievalMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides