Class GoogleSearchRetrieval.Builder (3.56.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

clearDynamicRetrievalConfig()

public GoogleSearchRetrieval.Builder clearDynamicRetrievalConfig()

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Returns
Type Description
GoogleSearchRetrieval.Builder

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

getDynamicRetrievalConfig()

public DynamicRetrievalConfig getDynamicRetrievalConfig()

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Returns
Type Description
DynamicRetrievalConfig

The dynamicRetrievalConfig.

getDynamicRetrievalConfigBuilder()

public DynamicRetrievalConfig.Builder getDynamicRetrievalConfigBuilder()

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Returns
Type Description
DynamicRetrievalConfig.Builder

getDynamicRetrievalConfigOrBuilder()

public DynamicRetrievalConfigOrBuilder getDynamicRetrievalConfigOrBuilder()

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Returns
Type Description
DynamicRetrievalConfigOrBuilder

hasDynamicRetrievalConfig()

public boolean hasDynamicRetrievalConfig()

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Returns
Type Description
boolean

Whether the dynamicRetrievalConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDynamicRetrievalConfig(DynamicRetrievalConfig value)

public GoogleSearchRetrieval.Builder mergeDynamicRetrievalConfig(DynamicRetrievalConfig value)

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Parameter
Name Description
value DynamicRetrievalConfig
Returns
Type Description
GoogleSearchRetrieval.Builder

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

setDynamicRetrievalConfig(DynamicRetrievalConfig value)

public GoogleSearchRetrieval.Builder setDynamicRetrievalConfig(DynamicRetrievalConfig value)

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Parameter
Name Description
value DynamicRetrievalConfig
Returns
Type Description
GoogleSearchRetrieval.Builder

setDynamicRetrievalConfig(DynamicRetrievalConfig.Builder builderForValue)

public GoogleSearchRetrieval.Builder setDynamicRetrievalConfig(DynamicRetrievalConfig.Builder builderForValue)

Specifies the dynamic retrieval configuration for the given source.

.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig dynamic_retrieval_config = 2;

Parameter
Name Description
builderForValue DynamicRetrievalConfig.Builder
Returns
Type Description
GoogleSearchRetrieval.Builder

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