Class DataStore.Builder (0.45.0)

public static final class DataStore.Builder extends GeneratedMessageV3.Builder<DataStore.Builder> implements DataStoreOrBuilder

DataStore captures global settings and configs at the DataStore level.

Protobuf type google.cloud.discoveryengine.v1alpha.DataStore

Implements

DataStoreOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSolutionTypes(Iterable<? extends SolutionType> values)

public DataStore.Builder addAllSolutionTypes(Iterable<? extends SolutionType> values)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.SolutionType>

The solutionTypes to add.

Returns
Type Description
DataStore.Builder

This builder for chaining.

addAllSolutionTypesValue(Iterable<Integer> values)

public DataStore.Builder addAllSolutionTypesValue(Iterable<Integer> values)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for solutionTypes to add.

Returns
Type Description
DataStore.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSolutionTypes(SolutionType value)

public DataStore.Builder addSolutionTypes(SolutionType value)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
value SolutionType

The solutionTypes to add.

Returns
Type Description
DataStore.Builder

This builder for chaining.

addSolutionTypesValue(int value)

public DataStore.Builder addSolutionTypesValue(int value)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for solutionTypes to add.

Returns
Type Description
DataStore.Builder

This builder for chaining.

build()

public DataStore build()
Returns
Type Description
DataStore

buildPartial()

public DataStore buildPartial()
Returns
Type Description
DataStore

clear()

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

clearAclEnabled()

public DataStore.Builder clearAclEnabled()

Immutable. Whether data in the DataStore has ACL information. If set to true, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods.

When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments.

Currently ACL is only supported in GENERIC industry vertical with non-PUBLIC_WEBSITE content config.

bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearContentConfig()

public DataStore.Builder clearContentConfig()

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

.google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearCreateTime()

public DataStore.Builder clearCreateTime()

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStore.Builder

clearDefaultSchemaId()

public DataStore.Builder clearDefaultSchemaId()

Output only. The id of the default Schema asscociated to this data store.

string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearDisplayName()

public DataStore.Builder clearDisplayName()

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearDocumentProcessingConfig()

public DataStore.Builder clearDocumentProcessingConfig()

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Returns
Type Description
DataStore.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIdpConfig()

public DataStore.Builder clearIdpConfig()

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataStore.Builder

clearIndustryVertical()

public DataStore.Builder clearIndustryVertical()

Immutable. The industry vertical that the data store registers.

.google.cloud.discoveryengine.v1alpha.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearLanguageInfo()

public DataStore.Builder clearLanguageInfo()

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Returns
Type Description
DataStore.Builder

clearName()

public DataStore.Builder clearName()

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSolutionTypes()

public DataStore.Builder clearSolutionTypes()

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Returns
Type Description
DataStore.Builder

This builder for chaining.

clearStartingSchema()

public DataStore.Builder clearStartingSchema()

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Returns
Type Description
DataStore.Builder

clone()

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

getAclEnabled()

public boolean getAclEnabled()

Immutable. Whether data in the DataStore has ACL information. If set to true, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods.

When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments.

Currently ACL is only supported in GENERIC industry vertical with non-PUBLIC_WEBSITE content config.

bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

The aclEnabled.

getContentConfig()

public DataStore.ContentConfig getContentConfig()

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

.google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DataStore.ContentConfig

The contentConfig.

getContentConfigValue()

public int getContentConfigValue()

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

.google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for contentConfig.

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DataStore getDefaultInstanceForType()
Returns
Type Description
DataStore

getDefaultSchemaId()

public String getDefaultSchemaId()

Output only. The id of the default Schema asscociated to this data store.

string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The defaultSchemaId.

getDefaultSchemaIdBytes()

public ByteString getDefaultSchemaIdBytes()

Output only. The id of the default Schema asscociated to this data store.

string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for defaultSchemaId.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

Returns
Type Description
ByteString

The bytes for displayName.

getDocumentProcessingConfig()

public DocumentProcessingConfig getDocumentProcessingConfig()

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Returns
Type Description
DocumentProcessingConfig

The documentProcessingConfig.

getDocumentProcessingConfigBuilder()

public DocumentProcessingConfig.Builder getDocumentProcessingConfigBuilder()

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Returns
Type Description
DocumentProcessingConfig.Builder

getDocumentProcessingConfigOrBuilder()

public DocumentProcessingConfigOrBuilder getDocumentProcessingConfigOrBuilder()

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Returns
Type Description
DocumentProcessingConfigOrBuilder

getIdpConfig()

public IdpConfig getIdpConfig()

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IdpConfig

The idpConfig.

getIdpConfigBuilder()

public IdpConfig.Builder getIdpConfigBuilder()

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IdpConfig.Builder

getIdpConfigOrBuilder()

public IdpConfigOrBuilder getIdpConfigOrBuilder()

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IdpConfigOrBuilder

getIndustryVertical()

public IndustryVertical getIndustryVertical()

Immutable. The industry vertical that the data store registers.

.google.cloud.discoveryengine.v1alpha.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
IndustryVertical

The industryVertical.

getIndustryVerticalValue()

public int getIndustryVerticalValue()

Immutable. The industry vertical that the data store registers.

.google.cloud.discoveryengine.v1alpha.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for industryVertical.

getLanguageInfo()

public LanguageInfo getLanguageInfo()

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Returns
Type Description
LanguageInfo

The languageInfo.

getLanguageInfoBuilder()

public LanguageInfo.Builder getLanguageInfoBuilder()

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Returns
Type Description
LanguageInfo.Builder

getLanguageInfoOrBuilder()

public LanguageInfoOrBuilder getLanguageInfoOrBuilder()

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Returns
Type Description
LanguageInfoOrBuilder

getName()

public String getName()

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getSolutionTypes(int index)

public SolutionType getSolutionTypes(int index)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SolutionType

The solutionTypes at the given index.

getSolutionTypesCount()

public int getSolutionTypesCount()

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Returns
Type Description
int

The count of solutionTypes.

getSolutionTypesList()

public List<SolutionType> getSolutionTypesList()

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Returns
Type Description
List<SolutionType>

A list containing the solutionTypes.

getSolutionTypesValue(int index)

public int getSolutionTypesValue(int index)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of solutionTypes at the given index.

getSolutionTypesValueList()

public List<Integer> getSolutionTypesValueList()

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for solutionTypes.

getStartingSchema()

public Schema getStartingSchema()

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Returns
Type Description
Schema

The startingSchema.

getStartingSchemaBuilder()

public Schema.Builder getStartingSchemaBuilder()

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Returns
Type Description
Schema.Builder

getStartingSchemaOrBuilder()

public SchemaOrBuilder getStartingSchemaOrBuilder()

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Returns
Type Description
SchemaOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDocumentProcessingConfig()

public boolean hasDocumentProcessingConfig()

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Returns
Type Description
boolean

Whether the documentProcessingConfig field is set.

hasIdpConfig()

public boolean hasIdpConfig()

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the idpConfig field is set.

hasLanguageInfo()

public boolean hasLanguageInfo()

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Returns
Type Description
boolean

Whether the languageInfo field is set.

hasStartingSchema()

public boolean hasStartingSchema()

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Returns
Type Description
boolean

Whether the startingSchema field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public DataStore.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStore.Builder

mergeDocumentProcessingConfig(DocumentProcessingConfig value)

public DataStore.Builder mergeDocumentProcessingConfig(DocumentProcessingConfig value)

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Parameter
Name Description
value DocumentProcessingConfig
Returns
Type Description
DataStore.Builder

mergeFrom(DataStore other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIdpConfig(IdpConfig value)

public DataStore.Builder mergeIdpConfig(IdpConfig value)

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value IdpConfig
Returns
Type Description
DataStore.Builder

mergeLanguageInfo(LanguageInfo value)

public DataStore.Builder mergeLanguageInfo(LanguageInfo value)

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Parameter
Name Description
value LanguageInfo
Returns
Type Description
DataStore.Builder

mergeStartingSchema(Schema value)

public DataStore.Builder mergeStartingSchema(Schema value)

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Parameter
Name Description
value Schema
Returns
Type Description
DataStore.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAclEnabled(boolean value)

public DataStore.Builder setAclEnabled(boolean value)

Immutable. Whether data in the DataStore has ACL information. If set to true, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods.

When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments.

Currently ACL is only supported in GENERIC industry vertical with non-PUBLIC_WEBSITE content config.

bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value boolean

The aclEnabled to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setContentConfig(DataStore.ContentConfig value)

public DataStore.Builder setContentConfig(DataStore.ContentConfig value)

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

.google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value DataStore.ContentConfig

The contentConfig to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setContentConfigValue(int value)

public DataStore.Builder setContentConfigValue(int value)

Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.

.google.cloud.discoveryengine.v1alpha.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

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

Returns
Type Description
DataStore.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public DataStore.Builder setCreateTime(Timestamp value)

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DataStore.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DataStore.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp the DataStore was created at.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataStore.Builder

setDefaultSchemaId(String value)

public DataStore.Builder setDefaultSchemaId(String value)

Output only. The id of the default Schema asscociated to this data store.

string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The defaultSchemaId to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setDefaultSchemaIdBytes(ByteString value)

public DataStore.Builder setDefaultSchemaIdBytes(ByteString value)

Output only. The id of the default Schema asscociated to this data store.

string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for defaultSchemaId to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setDisplayName(String value)

public DataStore.Builder setDisplayName(String value)

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DataStore.Builder setDisplayNameBytes(ByteString value)

Required. The data store display name.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setDocumentProcessingConfig(DocumentProcessingConfig value)

public DataStore.Builder setDocumentProcessingConfig(DocumentProcessingConfig value)

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Parameter
Name Description
value DocumentProcessingConfig
Returns
Type Description
DataStore.Builder

setDocumentProcessingConfig(DocumentProcessingConfig.Builder builderForValue)

public DataStore.Builder setDocumentProcessingConfig(DocumentProcessingConfig.Builder builderForValue)

Configuration for Document understanding and enrichment.

.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27;

Parameter
Name Description
builderForValue DocumentProcessingConfig.Builder
Returns
Type Description
DataStore.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdpConfig(IdpConfig value)

public DataStore.Builder setIdpConfig(IdpConfig value)

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value IdpConfig
Returns
Type Description
DataStore.Builder

setIdpConfig(IdpConfig.Builder builderForValue)

public DataStore.Builder setIdpConfig(IdpConfig.Builder builderForValue)

Output only. Data store level identity provider config.

.google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue IdpConfig.Builder
Returns
Type Description
DataStore.Builder

setIndustryVertical(IndustryVertical value)

public DataStore.Builder setIndustryVertical(IndustryVertical value)

Immutable. The industry vertical that the data store registers.

.google.cloud.discoveryengine.v1alpha.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value IndustryVertical

The industryVertical to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setIndustryVerticalValue(int value)

public DataStore.Builder setIndustryVerticalValue(int value)

Immutable. The industry vertical that the data store registers.

.google.cloud.discoveryengine.v1alpha.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

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

Returns
Type Description
DataStore.Builder

This builder for chaining.

setLanguageInfo(LanguageInfo value)

public DataStore.Builder setLanguageInfo(LanguageInfo value)

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Parameter
Name Description
value LanguageInfo
Returns
Type Description
DataStore.Builder

setLanguageInfo(LanguageInfo.Builder builderForValue)

public DataStore.Builder setLanguageInfo(LanguageInfo.Builder builderForValue)

Language info for DataStore.

.google.cloud.discoveryengine.v1alpha.LanguageInfo language_info = 14;

Parameter
Name Description
builderForValue LanguageInfo.Builder
Returns
Type Description
DataStore.Builder

setName(String value)

public DataStore.Builder setName(String value)

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataStore.Builder setNameBytes(ByteString value)

Immutable. The full resource name of the data store. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

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

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

setSolutionTypes(int index, SolutionType value)

public DataStore.Builder setSolutionTypes(int index, SolutionType value)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameters
Name Description
index int

The index to set the value at.

value SolutionType

The solutionTypes to set.

Returns
Type Description
DataStore.Builder

This builder for chaining.

setSolutionTypesValue(int index, int value)

public DataStore.Builder setSolutionTypesValue(int index, int value)

The solutions that the data store enrolls. Available solutions for each industry_vertical:

  • MEDIA: SOLUTION_TYPE_RECOMMENDATION and SOLUTION_TYPE_SEARCH.
  • SITE_SEARCH: SOLUTION_TYPE_SEARCH is automatically enrolled. Other solutions cannot be enrolled.

repeated .google.cloud.discoveryengine.v1alpha.SolutionType solution_types = 5;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
DataStore.Builder

This builder for chaining.

setStartingSchema(Schema value)

public DataStore.Builder setStartingSchema(Schema value)

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Parameter
Name Description
value Schema
Returns
Type Description
DataStore.Builder

setStartingSchema(Schema.Builder builderForValue)

public DataStore.Builder setStartingSchema(Schema.Builder builderForValue)

The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used.

This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead.

The provided schema will be validated against certain rules on schema. Learn more from this doc.

.google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28;

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
DataStore.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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