Send feedback
Class GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Builder (0.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder extends GeneratedMessageV3 . Builder<GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder > implements GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadataOrBuilder
Describes the metadata about the dynamic retrieval predictor.
Protobuf type
google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata
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
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata build ()
buildPartial()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata buildPartial ()
clear()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPrediction()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clearPrediction ()
The value of the predictor. This should be between [0, 1] where
a value of 0 means that the query would not benefit from grounding,
while a value of 1.0 means that the query would benefit the most.
In between values allow to differentiate between different usefulness
scores for grounding.
optional float prediction = 2;
clearVersion()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clearVersion ()
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
clone()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder clone ()
Overrides
getDefaultInstanceForType()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getPrediction()
public float getPrediction ()
The value of the predictor. This should be between [0, 1] where
a value of 0 means that the query would not benefit from grounding,
while a value of 1.0 means that the query would benefit the most.
In between values allow to differentiate between different usefulness
scores for grounding.
optional float prediction = 2;
Returns
Type
Description
float
The prediction.
getVersion()
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Version getVersion ()
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
getVersionValue()
public int getVersionValue ()
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
Returns
Type
Description
int
The enum numeric value on the wire for version.
hasPrediction()
public boolean hasPrediction ()
The value of the predictor. This should be between [0, 1] where
a value of 0 means that the query would not benefit from grounding,
while a value of 1.0 means that the query would benefit the most.
In between values allow to differentiate between different usefulness
scores for grounding.
optional float prediction = 2;
Returns
Type
Description
boolean
Whether the prediction field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata other)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder mergeFrom ( GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setPrediction(float value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setPrediction ( float value )
The value of the predictor. This should be between [0, 1] where
a value of 0 means that the query would not benefit from grounding,
while a value of 1.0 means that the query would benefit the most.
In between values allow to differentiate between different usefulness
scores for grounding.
optional float prediction = 2;
Parameter
Name
Description
value
float
The prediction to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setVersion(GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setVersion ( GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Version value )
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
setVersionValue(int value)
public GenerateGroundedContentResponse . Candidate . GroundingMetadata . DynamicRetrievalPredictorMetadata . Builder setVersionValue ( int value )
The version of the predictor which was used in dynamic retrieval.
.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1;
Parameter
Name
Description
value
int
The enum numeric value on the wire for version to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]