Class BatchCreateTargetSitesRequest.Builder (0.32.0)

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

Request message for [SiteSearchEngineService.s][] method.

Protobuf type google.cloud.discoveryengine.v1alpha.BatchCreateTargetSitesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1alpha.CreateTargetSiteRequest>
Returns
TypeDescription
BatchCreateTargetSitesRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateTargetSitesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCreateTargetSiteRequest
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCreateTargetSiteRequest.Builder
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueCreateTargetSiteRequest
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueCreateTargetSiteRequest.Builder
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
CreateTargetSiteRequest.Builder

build()

public BatchCreateTargetSitesRequest build()
Returns
TypeDescription
BatchCreateTargetSitesRequest

buildPartial()

public BatchCreateTargetSitesRequest buildPartial()
Returns
TypeDescription
BatchCreateTargetSitesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateTargetSitesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchCreateTargetSitesRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchCreateTargetSitesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateTargetSitesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1alpha.CreateTargetSiteRequestOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateTargetSitesRequest other)

public BatchCreateTargetSitesRequest.Builder mergeFrom(BatchCreateTargetSitesRequest other)
Parameter
NameDescription
otherBatchCreateTargetSitesRequest
Returns
TypeDescription
BatchCreateTargetSitesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateTargetSitesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchCreateTargetSitesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateTargetSitesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueCreateTargetSiteRequest
Returns
TypeDescription
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.v1alpha.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueCreateTargetSiteRequest.Builder
Returns
TypeDescription
BatchCreateTargetSitesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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