Class GoogleSearchRetrieval.Builder (3.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GoogleSearchRetrieval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

build()

public GoogleSearchRetrieval build()
Returns
TypeDescription
GoogleSearchRetrieval

buildPartial()

public GoogleSearchRetrieval buildPartial()
Returns
TypeDescription
GoogleSearchRetrieval

clear()

public GoogleSearchRetrieval.Builder clear()
Returns
TypeDescription
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
TypeDescription
GoogleSearchRetrieval.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GoogleSearchRetrieval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GoogleSearchRetrieval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

clone()

public GoogleSearchRetrieval.Builder clone()
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

getDefaultInstanceForType()

public GoogleSearchRetrieval getDefaultInstanceForType()
Returns
TypeDescription
GoogleSearchRetrieval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The disableAttribution.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GoogleSearchRetrieval other)

public GoogleSearchRetrieval.Builder mergeFrom(GoogleSearchRetrieval other)
Parameter
NameDescription
otherGoogleSearchRetrieval
Returns
TypeDescription
GoogleSearchRetrieval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GoogleSearchRetrieval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GoogleSearchRetrieval.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GoogleSearchRetrieval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The disableAttribution to set.

Returns
TypeDescription
GoogleSearchRetrieval.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GoogleSearchRetrieval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

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

public GoogleSearchRetrieval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GoogleSearchRetrieval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GoogleSearchRetrieval.Builder
Overrides