Class BatchCreateTargetSitesRequest.Builder (0.49.0)

public static final class BatchCreateTargetSitesRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateTargetSitesRequest.Builder> implements BatchCreateTargetSitesRequestOrBuilder

Request message for SiteSearchEngineService.BatchCreateTargetSites method.

Protobuf type google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateTargetSiteRequest> values)

public BatchCreateTargetSitesRequest.Builder addAllRequests(Iterable<? extends CreateTargetSiteRequest> values)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest>
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(CreateTargetSiteRequest value)

public BatchCreateTargetSitesRequest.Builder addRequests(CreateTargetSiteRequest value)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreateTargetSiteRequest
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

addRequests(CreateTargetSiteRequest.Builder builderForValue)

public BatchCreateTargetSitesRequest.Builder addRequests(CreateTargetSiteRequest.Builder builderForValue)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreateTargetSiteRequest.Builder
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

addRequests(int index, CreateTargetSiteRequest value)

public BatchCreateTargetSitesRequest.Builder addRequests(int index, CreateTargetSiteRequest value)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateTargetSiteRequest
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

addRequests(int index, CreateTargetSiteRequest.Builder builderForValue)

public BatchCreateTargetSitesRequest.Builder addRequests(int index, CreateTargetSiteRequest.Builder builderForValue)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateTargetSiteRequest.Builder
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

addRequestsBuilder()

public CreateTargetSiteRequest.Builder addRequestsBuilder()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTargetSiteRequest.Builder

addRequestsBuilder(int index)

public CreateTargetSiteRequest.Builder addRequestsBuilder(int index)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateTargetSiteRequest.Builder

build()

public BatchCreateTargetSitesRequest build()
Returns
Type Description
BatchCreateTargetSitesRequest

buildPartial()

public BatchCreateTargetSitesRequest buildPartial()
Returns
Type Description
BatchCreateTargetSitesRequest

clear()

public BatchCreateTargetSitesRequest.Builder clear()
Returns
Type Description
BatchCreateTargetSitesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchCreateTargetSitesRequest.Builder clearParent()

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

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

Returns
Type Description
BatchCreateTargetSitesRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateTargetSitesRequest.Builder clearRequests()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreateTargetSitesRequest.Builder

clone()

public BatchCreateTargetSitesRequest.Builder clone()
Returns
Type Description
BatchCreateTargetSitesRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateTargetSitesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateTargetSitesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public CreateTargetSiteRequest getRequests(int index)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateTargetSiteRequest

getRequestsBuilder(int index)

public CreateTargetSiteRequest.Builder getRequestsBuilder(int index)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateTargetSiteRequest.Builder

getRequestsBuilderList()

public List<CreateTargetSiteRequest.Builder> getRequestsBuilderList()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreateTargetSiteRequest> getRequestsList()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreateTargetSiteRequest>

getRequestsOrBuilder(int index)

public CreateTargetSiteRequestOrBuilder getRequestsOrBuilder(int index)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateTargetSiteRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateTargetSiteRequestOrBuilder> getRequestsOrBuilderList()

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateTargetSitesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchCreateTargetSitesRequest.Builder removeRequests(int index)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchCreateTargetSitesRequest.Builder setParent(String value)

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchCreateTargetSitesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateTargetSitesRequest.Builder setParentBytes(ByteString value)

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchCreateTargetSitesRequest.Builder

This builder for chaining.

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

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

setRequests(int index, CreateTargetSiteRequest value)

public BatchCreateTargetSitesRequest.Builder setRequests(int index, CreateTargetSiteRequest value)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateTargetSiteRequest
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

setRequests(int index, CreateTargetSiteRequest.Builder builderForValue)

public BatchCreateTargetSitesRequest.Builder setRequests(int index, CreateTargetSiteRequest.Builder builderForValue)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

repeated .google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateTargetSiteRequest.Builder
Returns
Type Description
BatchCreateTargetSitesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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