Class Tool.GoogleSearch.Builder (3.73.0)

public static final class Tool.GoogleSearch.Builder extends GeneratedMessageV3.Builder<Tool.GoogleSearch.Builder> implements Tool.GoogleSearchOrBuilder

GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.

Protobuf type google.cloud.aiplatform.v1.Tool.GoogleSearch

Static Methods

getDescriptor()

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

Methods

addAllExcludeDomains(Iterable<String> values)

public Tool.GoogleSearch.Builder addAllExcludeDomains(Iterable<String> values)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The excludeDomains to add.

Returns
Type Description
Tool.GoogleSearch.Builder

This builder for chaining.

addExcludeDomains(String value)

public Tool.GoogleSearch.Builder addExcludeDomains(String value)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The excludeDomains to add.

Returns
Type Description
Tool.GoogleSearch.Builder

This builder for chaining.

addExcludeDomainsBytes(ByteString value)

public Tool.GoogleSearch.Builder addExcludeDomainsBytes(ByteString value)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the excludeDomains to add.

Returns
Type Description
Tool.GoogleSearch.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Tool.GoogleSearch build()
Returns
Type Description
Tool.GoogleSearch

buildPartial()

public Tool.GoogleSearch buildPartial()
Returns
Type Description
Tool.GoogleSearch

clear()

public Tool.GoogleSearch.Builder clear()
Returns
Type Description
Tool.GoogleSearch.Builder
Overrides

clearExcludeDomains()

public Tool.GoogleSearch.Builder clearExcludeDomains()

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.GoogleSearch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Tool.GoogleSearch.Builder clone()
Returns
Type Description
Tool.GoogleSearch.Builder
Overrides

getDefaultInstanceForType()

public Tool.GoogleSearch getDefaultInstanceForType()
Returns
Type Description
Tool.GoogleSearch

getDescriptorForType()

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

getExcludeDomains(int index)

public String getExcludeDomains(int index)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludeDomains at the given index.

getExcludeDomainsBytes(int index)

public ByteString getExcludeDomainsBytes(int index)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludeDomains at the given index.

getExcludeDomainsCount()

public int getExcludeDomainsCount()

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of excludeDomains.

getExcludeDomainsList()

public ProtocolStringList getExcludeDomainsList()

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the excludeDomains.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tool.GoogleSearch other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExcludeDomains(int index, String value)

public Tool.GoogleSearch.Builder setExcludeDomains(int index, String value)

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"].

repeated string exclude_domains = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The excludeDomains to set.

Returns
Type Description
Tool.GoogleSearch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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