public static final class CheckGroundingSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder> implements CheckGroundingSpecOrBuilder
Specification for the grounding check.Protobuf type
google.cloud.discoveryengine.v1alpha.CheckGroundingSpec| Modifier and Type | Method and Description |
|---|---|
CheckGroundingSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingSpec |
build() |
CheckGroundingSpec |
buildPartial() |
CheckGroundingSpec.Builder |
clear() |
CheckGroundingSpec.Builder |
clearCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CheckGroundingSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CheckGroundingSpec.Builder |
clone() |
double |
getCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
hasCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CheckGroundingSpec.Builder |
mergeFrom(CheckGroundingSpec other) |
CheckGroundingSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CheckGroundingSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
CheckGroundingSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CheckGroundingSpec.Builder |
setCitationThreshold(double value)
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CheckGroundingSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CheckGroundingSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder mergeFrom(CheckGroundingSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingSpec.Builder>IOExceptionpublic boolean hasCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;hasCitationThreshold in interface CheckGroundingSpecOrBuilderpublic double getCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;getCitationThreshold in interface CheckGroundingSpecOrBuilderpublic CheckGroundingSpec.Builder setCitationThreshold(double value)
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;value - The citationThreshold to set.public CheckGroundingSpec.Builder clearCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;public final CheckGroundingSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>public final CheckGroundingSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingSpec.Builder>Copyright © 2024 Google LLC. All rights reserved.