Class CreateDataStoreRequest.Builder (0.36.0)

public static final class CreateDataStoreRequest.Builder extends GeneratedMessageV3.Builder<CreateDataStoreRequest.Builder> implements CreateDataStoreRequestOrBuilder

Request for DataStoreService.CreateDataStore method.

Protobuf type google.cloud.discoveryengine.v1alpha.CreateDataStoreRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDataStoreRequest build()
Returns
TypeDescription
CreateDataStoreRequest

buildPartial()

public CreateDataStoreRequest buildPartial()
Returns
TypeDescription
CreateDataStoreRequest

clear()

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

clearCreateAdvancedSiteSearch()

public CreateDataStoreRequest.Builder clearCreateAdvancedSiteSearch()

A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.

bool create_advanced_site_search = 4;

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

clearDataStore()

public CreateDataStoreRequest.Builder clearDataStore()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateDataStoreRequest.Builder

clearDataStoreId()

public CreateDataStoreRequest.Builder clearDataStoreId()

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDataStoreRequest.Builder clearParent()

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

clone()

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

getCreateAdvancedSiteSearch()

public boolean getCreateAdvancedSiteSearch()

A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.

bool create_advanced_site_search = 4;

Returns
TypeDescription
boolean

The createAdvancedSiteSearch.

getDataStore()

public DataStore getDataStore()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataStore

The dataStore.

getDataStoreBuilder()

public DataStore.Builder getDataStoreBuilder()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataStore.Builder

getDataStoreId()

public String getDataStoreId()

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The dataStoreId.

getDataStoreIdBytes()

public ByteString getDataStoreIdBytes()

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for dataStoreId.

getDataStoreOrBuilder()

public DataStoreOrBuilder getDataStoreOrBuilder()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataStoreOrBuilder

getDefaultInstanceForType()

public CreateDataStoreRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDataStoreRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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 name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasDataStore()

public boolean hasDataStore()

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the dataStore field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDataStore(DataStore value)

public CreateDataStoreRequest.Builder mergeDataStore(DataStore value)

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataStore
Returns
TypeDescription
CreateDataStoreRequest.Builder

mergeFrom(CreateDataStoreRequest other)

public CreateDataStoreRequest.Builder mergeFrom(CreateDataStoreRequest other)
Parameter
NameDescription
otherCreateDataStoreRequest
Returns
TypeDescription
CreateDataStoreRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateAdvancedSiteSearch(boolean value)

public CreateDataStoreRequest.Builder setCreateAdvancedSiteSearch(boolean value)

A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.

bool create_advanced_site_search = 4;

Parameter
NameDescription
valueboolean

The createAdvancedSiteSearch to set.

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

setDataStore(DataStore value)

public CreateDataStoreRequest.Builder setDataStore(DataStore value)

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDataStore
Returns
TypeDescription
CreateDataStoreRequest.Builder

setDataStore(DataStore.Builder builderForValue)

public CreateDataStoreRequest.Builder setDataStore(DataStore.Builder builderForValue)

Required. The DataStore to create.

.google.cloud.discoveryengine.v1alpha.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDataStore.Builder
Returns
TypeDescription
CreateDataStoreRequest.Builder

setDataStoreId(String value)

public CreateDataStoreRequest.Builder setDataStoreId(String value)

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The dataStoreId to set.

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

setDataStoreIdBytes(ByteString value)

public CreateDataStoreRequest.Builder setDataStoreIdBytes(ByteString value)

Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.

This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.

string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for dataStoreId to set.

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDataStoreRequest.Builder setParent(String value)

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataStoreRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateDataStoreRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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