Class RecrawlUrisRequest.Builder (0.37.0)

public static final class RecrawlUrisRequest.Builder extends GeneratedMessageV3.Builder<RecrawlUrisRequest.Builder> implements RecrawlUrisRequestOrBuilder

Request message for SiteSearchEngineService.RecrawlUris method.

Protobuf type google.cloud.discoveryengine.v1alpha.RecrawlUrisRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllUris(Iterable<String> values)

public RecrawlUrisRequest.Builder addAllUris(Iterable<String> values)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The uris to add.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecrawlUrisRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

addUris(String value)

public RecrawlUrisRequest.Builder addUris(String value)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The uris to add.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

addUrisBytes(ByteString value)

public RecrawlUrisRequest.Builder addUrisBytes(ByteString value)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the uris to add.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

build()

public RecrawlUrisRequest build()
Returns
TypeDescription
RecrawlUrisRequest

buildPartial()

public RecrawlUrisRequest buildPartial()
Returns
TypeDescription
RecrawlUrisRequest

clear()

public RecrawlUrisRequest.Builder clear()
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RecrawlUrisRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RecrawlUrisRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

clearSiteSearchEngine()

public RecrawlUrisRequest.Builder clearSiteSearchEngine()

Required. Full resource name of the SiteSearchEngine, such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine.

string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

clearUris()

public RecrawlUrisRequest.Builder clearUris()

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

clone()

public RecrawlUrisRequest.Builder clone()
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

getDefaultInstanceForType()

public RecrawlUrisRequest getDefaultInstanceForType()
Returns
TypeDescription
RecrawlUrisRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSiteSearchEngine()

public String getSiteSearchEngine()

Required. Full resource name of the SiteSearchEngine, such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine.

string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The siteSearchEngine.

getSiteSearchEngineBytes()

public ByteString getSiteSearchEngineBytes()

Required. Full resource name of the SiteSearchEngine, such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine.

string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for siteSearchEngine.

getUris(int index)

public String getUris(int index)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The uris at the given index.

getUrisBytes(int index)

public ByteString getUrisBytes(int index)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the uris at the given index.

getUrisCount()

public int getUrisCount()

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the uris.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecrawlUrisRequest other)

public RecrawlUrisRequest.Builder mergeFrom(RecrawlUrisRequest other)
Parameter
NameDescription
otherRecrawlUrisRequest
Returns
TypeDescription
RecrawlUrisRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecrawlUrisRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RecrawlUrisRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecrawlUrisRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RecrawlUrisRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

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

public RecrawlUrisRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

setSiteSearchEngine(String value)

public RecrawlUrisRequest.Builder setSiteSearchEngine(String value)

Required. Full resource name of the SiteSearchEngine, such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine.

string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The siteSearchEngine to set.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

setSiteSearchEngineBytes(ByteString value)

public RecrawlUrisRequest.Builder setSiteSearchEngineBytes(ByteString value)

Required. Full resource name of the SiteSearchEngine, such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine.

string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for siteSearchEngine to set.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RecrawlUrisRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecrawlUrisRequest.Builder
Overrides

setUris(int index, String value)

public RecrawlUrisRequest.Builder setUris(int index, String value)

Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in site_search_engine.

repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The uris to set.

Returns
TypeDescription
RecrawlUrisRequest.Builder

This builder for chaining.