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.v1beta1.Tool.GoogleSearch
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.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 |
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 |
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.aiplatform.v1beta1.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. |
clearField(Descriptors.FieldDescriptor field)
public Tool.GoogleSearch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Tool.GoogleSearch.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Tool.GoogleSearch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Tool.GoogleSearch.Builder |
clone()
public Tool.GoogleSearch.Builder clone()
Returns | |
---|---|
Type | Description |
Tool.GoogleSearch.Builder |
getBlockingConfidence()
public Tool.PhishBlockThreshold getBlockingConfidence()
Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.aiplatform.v1beta1.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.aiplatform.v1beta1.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 |
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. |
hasBlockingConfidence()
public boolean hasBlockingConfidence()
Optional. Sites with confidence level chosen & above this value will be blocked from the search results.
optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the blockingConfidence field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Tool.GoogleSearch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Tool.PhishBlockThreshold The 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.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The 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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Tool.GoogleSearch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Tool.GoogleSearch.Builder |