Class GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder (0.90.0)

public static final class GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder extends GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder> implements GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSourceOrBuilder

Params for using enterprise web retrieval as grounding source.

Protobuf type google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

Static Methods

getDescriptor()

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

Methods

addAllExcludeDomains(Iterable<String> values)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder addAllExcludeDomains(Iterable<String> values)

Optional. List of domains to be excluded from the search results.

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

Parameter
Name Description
values Iterable<String>

The excludeDomains to add.

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

addExcludeDomains(String value)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder addExcludeDomains(String value)

Optional. List of domains to be excluded from the search results.

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

Parameter
Name Description
value String

The excludeDomains to add.

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

addExcludeDomainsBytes(ByteString value)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder addExcludeDomainsBytes(ByteString value)

Optional. List of domains to be excluded from the search results.

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

Parameter
Name Description
value ByteString

The bytes of the excludeDomains to add.

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

build()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource build()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource

buildPartial()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource buildPartial()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource

clear()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder clear()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder
Overrides

clearBlockingConfidence()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder clearBlockingConfidence()

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

clearExcludeDomains()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder clearExcludeDomains()

Optional. List of domains to be excluded from the search results.

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

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

getBlockingConfidence()

public Citation.PhishBlockThreshold getBlockingConfidence()

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Citation.PhishBlockThreshold

The blockingConfidence.

getBlockingConfidenceValue()

public int getBlockingConfidenceValue()

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for blockingConfidence.

getDefaultInstanceForType()

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource getDefaultInstanceForType()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource

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.

repeated string exclude_domains = 1 [(.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.

repeated string exclude_domains = 1 [(.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.

repeated string exclude_domains = 1 [(.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.

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

Returns
Type Description
ProtocolStringList

A list containing the excludeDomains.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource other)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource other)
Parameter
Name Description
other GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder
Overrides

setBlockingConfidence(Citation.PhishBlockThreshold value)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder setBlockingConfidence(Citation.PhishBlockThreshold value)

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Citation.PhishBlockThreshold

The blockingConfidence to set.

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

setBlockingConfidenceValue(int value)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder setBlockingConfidenceValue(int value)

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for blockingConfidence to set.

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.

setExcludeDomains(int index, String value)

public GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder setExcludeDomains(int index, String value)

Optional. List of domains to be excluded from the search results.

repeated string exclude_domains = 1 [(.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
GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.Builder

This builder for chaining.