Class DataConnector.SourceEntity (0.99.0)

public static final class DataConnector.SourceEntity extends GeneratedMessage 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 Fields

DATA_STORE_FIELD_NUMBER

public static final int DATA_STORE_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_NAME_FIELD_NUMBER

public static final int ENTITY_NAME_FIELD_NUMBER
Field Value
Type Description
int

HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER

public static final int HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

JSON_PARAMS_FIELD_NUMBER

public static final int JSON_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

KEY_PROPERTY_MAPPINGS_FIELD_NUMBER

public static final int KEY_PROPERTY_MAPPINGS_FIELD_NUMBER
Field Value
Type Description
int

PARAMS_FIELD_NUMBER

public static final int PARAMS_FIELD_NUMBER
Field Value
Type Description
int

STARTING_SCHEMA_FIELD_NUMBER

public static final int STARTING_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataConnector.SourceEntity getDefaultInstance()
Returns
Type Description
DataConnector.SourceEntity

getDescriptor()

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

newBuilder()

public static DataConnector.SourceEntity.Builder newBuilder()
Returns
Type Description
DataConnector.SourceEntity.Builder

newBuilder(DataConnector.SourceEntity prototype)

public static DataConnector.SourceEntity.Builder newBuilder(DataConnector.SourceEntity prototype)
Parameter
Name Description
prototype DataConnector.SourceEntity
Returns
Type Description
DataConnector.SourceEntity.Builder

parseDelimitedFrom(InputStream input)

public static DataConnector.SourceEntity parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataConnector.SourceEntity parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataConnector.SourceEntity parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataConnector.SourceEntity parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataConnector.SourceEntity parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataConnector.SourceEntity parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataConnector.SourceEntity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataConnector.SourceEntity
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataConnector.SourceEntity> parser()
Returns
Type Description
Parser<SourceEntity>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

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

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.

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

getParserForType()

public Parser<DataConnector.SourceEntity> getParserForType()
Returns
Type Description
Parser<SourceEntity>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DataConnector.SourceEntity.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataConnector.SourceEntity.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException