Class GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder
- All Implemented Interfaces:
GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor
public static final class GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
implements GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder
Describes the predictor settings for dynamic retrieval.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The value of the threshold.The version of the predictor to be used in dynamic retrieval.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatThe value of the threshold.The version of the predictor to be used in dynamic retrieval.intThe version of the predictor to be used in dynamic retrieval.booleanThe value of the threshold.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setThreshold(float value) The value of the threshold.setVersion(GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version value) The version of the predictor to be used in dynamic retrieval.setVersionValue(int value) The version of the predictor to be used in dynamic retrieval.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<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
-
clear
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.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<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.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<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
-
getDefaultInstanceForType
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor build()- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor buildPartial()- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>
-
mergeFrom
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.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<GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder>- Throws:
IOException
-
getVersionValue
public int getVersionValue()The version of the predictor to be used in dynamic retrieval.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1;- Specified by:
getVersionValuein interfaceGenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder- Returns:
- The enum numeric value on the wire for version.
-
setVersionValue
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder setVersionValue(int value) The version of the predictor to be used in dynamic retrieval.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1;- Parameters:
value- The enum numeric value on the wire for version to set.- Returns:
- This builder for chaining.
-
getVersion
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version getVersion()The version of the predictor to be used in dynamic retrieval.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1;- Specified by:
getVersionin interfaceGenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder- Returns:
- The version.
-
setVersion
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder setVersion(GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version value) The version of the predictor to be used in dynamic retrieval.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder clearVersion()The version of the predictor to be used in dynamic retrieval.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1;- Returns:
- This builder for chaining.
-
hasThreshold
public boolean hasThreshold()The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.
optional float threshold = 2;- Specified by:
hasThresholdin interfaceGenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder- Returns:
- Whether the threshold field is set.
-
getThreshold
public float getThreshold()The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.
optional float threshold = 2;- Specified by:
getThresholdin interfaceGenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictorOrBuilder- Returns:
- The threshold.
-
setThreshold
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder setThreshold(float value) The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.
optional float threshold = 2;- Parameters:
value- The threshold to set.- Returns:
- This builder for chaining.
-
clearThreshold
public GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Builder clearThreshold()The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source.
optional float threshold = 2;- Returns:
- This builder for chaining.
-