Class DataConnector.SourceEntity.Builder (0.99.0)

public static final class DataConnector.SourceEntity.Builder extends GeneratedMessage.Builder<DataConnector.SourceEntity.Builder> implements DataConnector.SourceEntityOrBuilder

Represents an entity in the data source. For example, the Account object in Salesforce.

Protobuf type google.cloud.discoveryengine.v1.DataConnector.SourceEntity

Static Methods

getDescriptor()

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

Methods

build()

public DataConnector.SourceEntity build()
Returns
Type Description
DataConnector.SourceEntity

buildPartial()

public DataConnector.SourceEntity buildPartial()
Returns
Type Description
DataConnector.SourceEntity

clear()

public DataConnector.SourceEntity.Builder clear()
Returns
Type Description
DataConnector.SourceEntity.Builder
Overrides

clearDataStore()

public DataConnector.SourceEntity.Builder clearDataStore()

Output only. The full resource name of the associated data store for the source entity. Format: projects/*/locations/*/collections/*/dataStores/*. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity.

string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

clearEntityName()

public DataConnector.SourceEntity.Builder clearEntityName()

The name of the entity. Supported values by data source:

  • Salesforce: Lead, Opportunity, Contact, Account, Case, Contract, Campaign
  • Jira: Issue
  • Confluence: Content, Space

string entity_name = 1;

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

clearEntityParams()

public DataConnector.SourceEntity.Builder clearEntityParams()
Returns
Type Description
DataConnector.SourceEntity.Builder

clearHealthcareFhirConfig()

public DataConnector.SourceEntity.Builder clearHealthcareFhirConfig()

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataConnector.SourceEntity.Builder

clearJsonParams()

public DataConnector.SourceEntity.Builder clearJsonParams()

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

clearKeyPropertyMappings()

public DataConnector.SourceEntity.Builder clearKeyPropertyMappings()
Returns
Type Description
DataConnector.SourceEntity.Builder

clearParams()

public DataConnector.SourceEntity.Builder clearParams()

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Returns
Type Description
DataConnector.SourceEntity.Builder

clearStartingSchema()

public DataConnector.SourceEntity.Builder clearStartingSchema()

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataConnector.SourceEntity.Builder

containsKeyPropertyMappings(String key)

public boolean containsKeyPropertyMappings(String key)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDataStore()

public String getDataStore()

Output only. The full resource name of the associated data store for the source entity. Format: projects/*/locations/*/collections/*/dataStores/*. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity.

string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataStore.

getDataStoreBytes()

public ByteString getDataStoreBytes()

Output only. The full resource name of the associated data store for the source entity. Format: projects/*/locations/*/collections/*/dataStores/*. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity.

string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataStore.

getDefaultInstanceForType()

public DataConnector.SourceEntity getDefaultInstanceForType()
Returns
Type Description
DataConnector.SourceEntity

getDescriptorForType()

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

getEntityName()

public String getEntityName()

The name of the entity. Supported values by data source:

  • Salesforce: Lead, Opportunity, Contact, Account, Case, Contract, Campaign
  • Jira: Issue
  • Confluence: Content, Space

string entity_name = 1;

Returns
Type Description
String

The entityName.

getEntityNameBytes()

public ByteString getEntityNameBytes()

The name of the entity. Supported values by data source:

  • Salesforce: Lead, Opportunity, Contact, Account, Case, Contract, Campaign
  • Jira: Issue
  • Confluence: Content, Space

string entity_name = 1;

Returns
Type Description
ByteString

The bytes for entityName.

getEntityParamsCase()

public DataConnector.SourceEntity.EntityParamsCase getEntityParamsCase()
Returns
Type Description
DataConnector.SourceEntity.EntityParamsCase

getHealthcareFhirConfig()

public HealthcareFhirConfig getHealthcareFhirConfig()

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HealthcareFhirConfig

The healthcareFhirConfig.

getHealthcareFhirConfigBuilder()

public HealthcareFhirConfig.Builder getHealthcareFhirConfigBuilder()

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HealthcareFhirConfig.Builder

getHealthcareFhirConfigOrBuilder()

public HealthcareFhirConfigOrBuilder getHealthcareFhirConfigOrBuilder()

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HealthcareFhirConfigOrBuilder

getJsonParams()

public String getJsonParams()

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Returns
Type Description
String

The jsonParams.

getJsonParamsBytes()

public ByteString getJsonParamsBytes()

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Returns
Type Description
ByteString

The bytes for jsonParams.

getKeyPropertyMappings() (deprecated)

public Map<String,String> getKeyPropertyMappings()
Returns
Type Description
Map<String,String>

getKeyPropertyMappingsCount()

public int getKeyPropertyMappingsCount()

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Returns
Type Description
int

getKeyPropertyMappingsMap()

public Map<String,String> getKeyPropertyMappingsMap()

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Returns
Type Description
Map<String,String>

getKeyPropertyMappingsOrDefault(String key, String defaultValue)

public String getKeyPropertyMappingsOrDefault(String key, String defaultValue)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getKeyPropertyMappingsOrThrow(String key)

public String getKeyPropertyMappingsOrThrow(String key)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableKeyPropertyMappings() (deprecated)

public Map<String,String> getMutableKeyPropertyMappings()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParams()

public Struct getParams()

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Returns
Type Description
Struct

The params.

getParamsBuilder()

public Struct.Builder getParamsBuilder()

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Returns
Type Description
Builder

getParamsOrBuilder()

public StructOrBuilder getParamsOrBuilder()

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Returns
Type Description
StructOrBuilder

getStartingSchema()

public Schema getStartingSchema()

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The startingSchema.

getStartingSchemaBuilder()

public Schema.Builder getStartingSchemaBuilder()

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema.Builder

getStartingSchemaOrBuilder()

public SchemaOrBuilder getStartingSchemaOrBuilder()

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

hasHealthcareFhirConfig()

public boolean hasHealthcareFhirConfig()

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the healthcareFhirConfig field is set.

hasJsonParams()

public boolean hasJsonParams()

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Returns
Type Description
boolean

Whether the jsonParams field is set.

hasParams()

public boolean hasParams()

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Returns
Type Description
boolean

Whether the params field is set.

hasStartingSchema()

public boolean hasStartingSchema()

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startingSchema field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataConnector.SourceEntity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHealthcareFhirConfig(HealthcareFhirConfig value)

public DataConnector.SourceEntity.Builder mergeHealthcareFhirConfig(HealthcareFhirConfig value)

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HealthcareFhirConfig
Returns
Type Description
DataConnector.SourceEntity.Builder

mergeParams(Struct value)

public DataConnector.SourceEntity.Builder mergeParams(Struct value)

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Parameter
Name Description
value Struct
Returns
Type Description
DataConnector.SourceEntity.Builder

mergeStartingSchema(Schema value)

public DataConnector.SourceEntity.Builder mergeStartingSchema(Schema value)

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
DataConnector.SourceEntity.Builder

putAllKeyPropertyMappings(Map<String,String> values)

public DataConnector.SourceEntity.Builder putAllKeyPropertyMappings(Map<String,String> values)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
DataConnector.SourceEntity.Builder

putKeyPropertyMappings(String key, String value)

public DataConnector.SourceEntity.Builder putKeyPropertyMappings(String key, String value)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
DataConnector.SourceEntity.Builder

removeKeyPropertyMappings(String key)

public DataConnector.SourceEntity.Builder removeKeyPropertyMappings(String key)

Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as title, and description. Supported key properties:

  • title: The title for data record. This would be displayed on search results.
  • description: The description for data record. This would be displayed on search results.

map<string, string> key_property_mappings = 2;

Parameter
Name Description
key String
Returns
Type Description
DataConnector.SourceEntity.Builder

setDataStore(String value)

public DataConnector.SourceEntity.Builder setDataStore(String value)

Output only. The full resource name of the associated data store for the source entity. Format: projects/*/locations/*/collections/*/dataStores/*. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity.

string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataStore to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setDataStoreBytes(ByteString value)

public DataConnector.SourceEntity.Builder setDataStoreBytes(ByteString value)

Output only. The full resource name of the associated data store for the source entity. Format: projects/*/locations/*/collections/*/dataStores/*. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity.

string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataStore to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setEntityName(String value)

public DataConnector.SourceEntity.Builder setEntityName(String value)

The name of the entity. Supported values by data source:

  • Salesforce: Lead, Opportunity, Contact, Account, Case, Contract, Campaign
  • Jira: Issue
  • Confluence: Content, Space

string entity_name = 1;

Parameter
Name Description
value String

The entityName to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setEntityNameBytes(ByteString value)

public DataConnector.SourceEntity.Builder setEntityNameBytes(ByteString value)

The name of the entity. Supported values by data source:

  • Salesforce: Lead, Opportunity, Contact, Account, Case, Contract, Campaign
  • Jira: Issue
  • Confluence: Content, Space

string entity_name = 1;

Parameter
Name Description
value ByteString

The bytes for entityName to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setHealthcareFhirConfig(HealthcareFhirConfig value)

public DataConnector.SourceEntity.Builder setHealthcareFhirConfig(HealthcareFhirConfig value)

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HealthcareFhirConfig
Returns
Type Description
DataConnector.SourceEntity.Builder

setHealthcareFhirConfig(HealthcareFhirConfig.Builder builderForValue)

public DataConnector.SourceEntity.Builder setHealthcareFhirConfig(HealthcareFhirConfig.Builder builderForValue)

Optional. Configuration for HEALTHCARE_FHIR vertical.

.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue HealthcareFhirConfig.Builder
Returns
Type Description
DataConnector.SourceEntity.Builder

setJsonParams(String value)

public DataConnector.SourceEntity.Builder setJsonParams(String value)

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Parameter
Name Description
value String

The jsonParams to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setJsonParamsBytes(ByteString value)

public DataConnector.SourceEntity.Builder setJsonParamsBytes(ByteString value)

The parameters for the entity to facilitate data ingestion in json string format.

string json_params = 10;

Parameter
Name Description
value ByteString

The bytes for jsonParams to set.

Returns
Type Description
DataConnector.SourceEntity.Builder

This builder for chaining.

setParams(Struct value)

public DataConnector.SourceEntity.Builder setParams(Struct value)

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Parameter
Name Description
value Struct
Returns
Type Description
DataConnector.SourceEntity.Builder

setParams(Struct.Builder builderForValue)

public DataConnector.SourceEntity.Builder setParams(Struct.Builder builderForValue)

The parameters for the entity to facilitate data ingestion in structured json format.

.google.protobuf.Struct params = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataConnector.SourceEntity.Builder

setStartingSchema(Schema value)

public DataConnector.SourceEntity.Builder setStartingSchema(Schema value)

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
DataConnector.SourceEntity.Builder

setStartingSchema(Schema.Builder builderForValue)

public DataConnector.SourceEntity.Builder setStartingSchema(Schema.Builder builderForValue)

Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used.

This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector 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.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
DataConnector.SourceEntity.Builder