Class AnswerQueryRequest.GroundingSpec.Builder (0.50.0)

public static final class AnswerQueryRequest.GroundingSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.GroundingSpec.Builder> implements AnswerQueryRequest.GroundingSpecOrBuilder

Grounding specification.

Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.GroundingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

build()

public AnswerQueryRequest.GroundingSpec build()
Returns
Type Description
AnswerQueryRequest.GroundingSpec

buildPartial()

public AnswerQueryRequest.GroundingSpec buildPartial()
Returns
Type Description
AnswerQueryRequest.GroundingSpec

clear()

public AnswerQueryRequest.GroundingSpec.Builder clear()
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryRequest.GroundingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

clearFilteringLevel()

public AnswerQueryRequest.GroundingSpec.Builder clearFilteringLevel()

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

This builder for chaining.

clearIncludeGroundingSupports()

public AnswerQueryRequest.GroundingSpec.Builder clearIncludeGroundingSupports()

Optional. Specifies whether to include grounding_supports in the answer. The default value is false.

When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.

bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryRequest.GroundingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

clone()

public AnswerQueryRequest.GroundingSpec.Builder clone()
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.GroundingSpec getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.GroundingSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilteringLevel()

public AnswerQueryRequest.GroundingSpec.FilteringLevel getFilteringLevel()

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnswerQueryRequest.GroundingSpec.FilteringLevel

The filteringLevel.

getFilteringLevelValue()

public int getFilteringLevelValue()

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for filteringLevel.

getIncludeGroundingSupports()

public boolean getIncludeGroundingSupports()

Optional. Specifies whether to include grounding_supports in the answer. The default value is false.

When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.

bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The includeGroundingSupports.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.GroundingSpec other)

public AnswerQueryRequest.GroundingSpec.Builder mergeFrom(AnswerQueryRequest.GroundingSpec other)
Parameter
Name Description
other AnswerQueryRequest.GroundingSpec
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerQueryRequest.GroundingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnswerQueryRequest.GroundingSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.GroundingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.GroundingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

setFilteringLevel(AnswerQueryRequest.GroundingSpec.FilteringLevel value)

public AnswerQueryRequest.GroundingSpec.Builder setFilteringLevel(AnswerQueryRequest.GroundingSpec.FilteringLevel value)

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AnswerQueryRequest.GroundingSpec.FilteringLevel

The filteringLevel to set.

Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

This builder for chaining.

setFilteringLevelValue(int value)

public AnswerQueryRequest.GroundingSpec.Builder setFilteringLevelValue(int value)

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for filteringLevel to set.

Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

This builder for chaining.

setIncludeGroundingSupports(boolean value)

public AnswerQueryRequest.GroundingSpec.Builder setIncludeGroundingSupports(boolean value)

Optional. Specifies whether to include grounding_supports in the answer. The default value is false.

When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.

bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The includeGroundingSupports to set.

Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnswerQueryRequest.GroundingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.GroundingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.GroundingSpec.Builder
Overrides