public static final class Tool.GoogleSearch.Builder extends GeneratedMessage.Builder<Tool.GoogleSearch.Builder> implements Tool.GoogleSearchOrBuilderGoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
Protobuf type google.cloud.vertexai.v1.Tool.GoogleSearch
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Tool.GoogleSearch.BuilderImplements
Tool.GoogleSearchOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the excludeDomains to add. |
| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch.Builder |
This builder for chaining. |
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 |
|
clearBlockingConfidence()
public Tool.GoogleSearch.Builder clearBlockingConfidence()Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch.Builder |
This builder for chaining. |
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. |
getBlockingConfidence()
public Tool.PhishBlockThreshold getBlockingConfidence()Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Tool.PhishBlockThreshold |
The blockingConfidence. |
getBlockingConfidenceValue()
public int getBlockingConfidenceValue()Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for blockingConfidence. |
getDefaultInstanceForType()
public Tool.GoogleSearch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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. |
hasBlockingConfidence()
public boolean hasBlockingConfidence()Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the blockingConfidence field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
setBlockingConfidence(Tool.PhishBlockThreshold value)
public Tool.GoogleSearch.Builder setBlockingConfidence(Tool.PhishBlockThreshold value)Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool.PhishBlockThresholdThe blockingConfidence to set. |
| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch.Builder |
This builder for chaining. |
setBlockingConfidenceValue(int value)
public Tool.GoogleSearch.Builder setBlockingConfidenceValue(int value)Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.vertexai.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for blockingConfidence to set. |
| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch.Builder |
This builder for chaining. |
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 |
intThe index to set the value at. |
value |
StringThe excludeDomains to set. |
| Returns | |
|---|---|
| Type | Description |
Tool.GoogleSearch.Builder |
This builder for chaining. |