Class Datasource (0.9.0)

public final class Datasource extends GeneratedMessageV3 implements DatasourceOrBuilder

A datasource that can be used to answer questions.

Protobuf type google.cloud.geminidataanalytics.v1beta.Datasource

Implements

DatasourceOrBuilder

Static Fields

ALLOY_DB_REFERENCE_FIELD_NUMBER

public static final int ALLOY_DB_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

BIGQUERY_TABLE_REFERENCE_FIELD_NUMBER

public static final int BIGQUERY_TABLE_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_SQL_REFERENCE_FIELD_NUMBER

public static final int CLOUD_SQL_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

LOOKER_EXPLORE_REFERENCE_FIELD_NUMBER

public static final int LOOKER_EXPLORE_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

SPANNER_REFERENCE_FIELD_NUMBER

public static final int SPANNER_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

STRUCT_SCHEMA_FIELD_NUMBER

public static final int STRUCT_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

STUDIO_DATASOURCE_ID_FIELD_NUMBER

public static final int STUDIO_DATASOURCE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Datasource getDefaultInstance()
Returns
Type Description
Datasource

getDescriptor()

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

newBuilder()

public static Datasource.Builder newBuilder()
Returns
Type Description
Datasource.Builder

newBuilder(Datasource prototype)

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

parseDelimitedFrom(InputStream input)

public static Datasource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Datasource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Datasource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Datasource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Datasource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Datasource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Datasource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Datasource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Datasource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Datasource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Datasource> parser()
Returns
Type Description
Parser<Datasource>

Methods

equals(Object obj)

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

getAlloyDbReference()

public AlloyDbReference getAlloyDbReference()

A reference to an AlloyDB database.

.google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12;

Returns
Type Description
AlloyDbReference

The alloyDbReference.

getAlloyDbReferenceOrBuilder()

public AlloyDbReferenceOrBuilder getAlloyDbReferenceOrBuilder()

A reference to an AlloyDB database.

.google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12;

Returns
Type Description
AlloyDbReferenceOrBuilder

getBigqueryTableReference()

public BigQueryTableReference getBigqueryTableReference()

A reference to a BigQuery table.

.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1;

Returns
Type Description
BigQueryTableReference

The bigqueryTableReference.

getBigqueryTableReferenceOrBuilder()

public BigQueryTableReferenceOrBuilder getBigqueryTableReferenceOrBuilder()

A reference to a BigQuery table.

.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1;

Returns
Type Description
BigQueryTableReferenceOrBuilder

getCloudSqlReference()

public CloudSqlReference getCloudSqlReference()

A reference to a CloudSQL database.

.google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14;

Returns
Type Description
CloudSqlReference

The cloudSqlReference.

getCloudSqlReferenceOrBuilder()

public CloudSqlReferenceOrBuilder getCloudSqlReferenceOrBuilder()

A reference to a CloudSQL database.

.google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14;

Returns
Type Description
CloudSqlReferenceOrBuilder

getDefaultInstanceForType()

public Datasource getDefaultInstanceForType()
Returns
Type Description
Datasource

getLookerExploreReference()

public LookerExploreReference getLookerExploreReference()

A reference to a Looker explore.

.google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4;

Returns
Type Description
LookerExploreReference

The lookerExploreReference.

getLookerExploreReferenceOrBuilder()

public LookerExploreReferenceOrBuilder getLookerExploreReferenceOrBuilder()

A reference to a Looker explore.

.google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4;

Returns
Type Description
LookerExploreReferenceOrBuilder

getParserForType()

public Parser<Datasource> getParserForType()
Returns
Type Description
Parser<Datasource>
Overrides

getReferenceCase()

public Datasource.ReferenceCase getReferenceCase()
Returns
Type Description
Datasource.ReferenceCase

getSchema()

public Schema getSchema()

Optional. The schema of the datasource.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The schema.

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Optional. The schema of the datasource.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSpannerReference()

public SpannerReference getSpannerReference()

A reference to a Spanner database.

.google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13;

Returns
Type Description
SpannerReference

The spannerReference.

getSpannerReferenceOrBuilder()

public SpannerReferenceOrBuilder getSpannerReferenceOrBuilder()

A reference to a Spanner database.

.google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13;

Returns
Type Description
SpannerReferenceOrBuilder

getStructSchema()

public Struct getStructSchema()

Optional. A struct representation of the schema. This is populated for datasources with schemas that cannot be fully represented by the strongly-typed schema field.

For Looker datasources, this maps to the LookmlModelExplore type: https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore

.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The structSchema.

getStructSchemaOrBuilder()

public StructOrBuilder getStructSchemaOrBuilder()

Optional. A struct representation of the schema. This is populated for datasources with schemas that cannot be fully represented by the strongly-typed schema field.

For Looker datasources, this maps to the LookmlModelExplore type: https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore

.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getStudioDatasourceId()

public String getStudioDatasourceId()

A reference to a Looker Studio datasource.

string studio_datasource_id = 2;

Returns
Type Description
String

The studioDatasourceId.

getStudioDatasourceIdBytes()

public ByteString getStudioDatasourceIdBytes()

A reference to a Looker Studio datasource.

string studio_datasource_id = 2;

Returns
Type Description
ByteString

The bytes for studioDatasourceId.

hasAlloyDbReference()

public boolean hasAlloyDbReference()

A reference to an AlloyDB database.

.google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12;

Returns
Type Description
boolean

Whether the alloyDbReference field is set.

hasBigqueryTableReference()

public boolean hasBigqueryTableReference()

A reference to a BigQuery table.

.google.cloud.geminidataanalytics.v1beta.BigQueryTableReference bigquery_table_reference = 1;

Returns
Type Description
boolean

Whether the bigqueryTableReference field is set.

hasCloudSqlReference()

public boolean hasCloudSqlReference()

A reference to a CloudSQL database.

.google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14;

Returns
Type Description
boolean

Whether the cloudSqlReference field is set.

hasLookerExploreReference()

public boolean hasLookerExploreReference()

A reference to a Looker explore.

.google.cloud.geminidataanalytics.v1beta.LookerExploreReference looker_explore_reference = 4;

Returns
Type Description
boolean

Whether the lookerExploreReference field is set.

hasSchema()

public boolean hasSchema()

Optional. The schema of the datasource.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the schema field is set.

hasSpannerReference()

public boolean hasSpannerReference()

A reference to a Spanner database.

.google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13;

Returns
Type Description
boolean

Whether the spannerReference field is set.

hasStructSchema()

public boolean hasStructSchema()

Optional. A struct representation of the schema. This is populated for datasources with schemas that cannot be fully represented by the strongly-typed schema field.

For Looker datasources, this maps to the LookmlModelExplore type: https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore

.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the structSchema field is set.

hasStudioDatasourceId()

public boolean hasStudioDatasourceId()

A reference to a Looker Studio datasource.

string studio_datasource_id = 2;

Returns
Type Description
boolean

Whether the studioDatasourceId field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Datasource.Builder newBuilderForType()
Returns
Type Description
Datasource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Datasource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Datasource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Datasource.Builder toBuilder()
Returns
Type Description
Datasource.Builder

writeTo(CodedOutputStream output)

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