public static final class CheckGroundingSpec.Builder extends GeneratedMessageV3.Builder<CheckGroundingSpec.Builder> implements CheckGroundingSpecOrBuilder
Specification for the grounding check.
Protobuf type google.cloud.discoveryengine.v1beta.CheckGroundingSpec
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 CheckGroundingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CheckGroundingSpec build()
buildPartial()
public CheckGroundingSpec buildPartial()
clear()
public CheckGroundingSpec.Builder clear()
Overrides
clearCitationThreshold()
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;
clearField(Descriptors.FieldDescriptor field)
public CheckGroundingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CheckGroundingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CheckGroundingSpec.Builder clone()
Overrides
getCitationThreshold()
public 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;
Returns |
Type |
Description |
double |
The citationThreshold.
|
getDefaultInstanceForType()
public CheckGroundingSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasCitationThreshold()
public 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;
Returns |
Type |
Description |
boolean |
Whether the citationThreshold field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CheckGroundingSpec other)
public CheckGroundingSpec.Builder mergeFrom(CheckGroundingSpec other)
public CheckGroundingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CheckGroundingSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CheckGroundingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCitationThreshold(double value)
public 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;
Parameter |
Name |
Description |
value |
double
The citationThreshold to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CheckGroundingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CheckGroundingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CheckGroundingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides