Class Datasource (0.1.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

BIGQUERY_TABLE_REFERENCE_FIELD_NUMBER

public static final int BIGQUERY_TABLE_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

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

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

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

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.

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.

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.

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