Class GoogleSearchRetrieval.Builder (3.46.0)

public static final class GoogleSearchRetrieval.Builder extends GeneratedMessageV3.Builder<GoogleSearchRetrieval.Builder> implements GoogleSearchRetrievalOrBuilder

Tool to retrieve public web data for grounding, powered by Google.

Protobuf type google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoogleSearchRetrieval build()
Returns
Type Description
GoogleSearchRetrieval

buildPartial()

public GoogleSearchRetrieval buildPartial()
Returns
Type Description
GoogleSearchRetrieval

clear()

public GoogleSearchRetrieval.Builder clear()
Returns
Type Description
GoogleSearchRetrieval.Builder
Overrides

clearDisableAttribution()

public GoogleSearchRetrieval.Builder clearDisableAttribution()

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GoogleSearchRetrieval.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GoogleSearchRetrieval.Builder clone()
Returns
Type Description
GoogleSearchRetrieval.Builder
Overrides

getDefaultInstanceForType()

public GoogleSearchRetrieval getDefaultInstanceForType()
Returns
Type Description
GoogleSearchRetrieval

getDescriptorForType()

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

getDisableAttribution()

public boolean getDisableAttribution()

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableAttribution.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleSearchRetrieval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisableAttribution(boolean value)

public GoogleSearchRetrieval.Builder setDisableAttribution(boolean value)

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableAttribution to set.

Returns
Type Description
GoogleSearchRetrieval.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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