public static final class DataQuery.Builder extends GeneratedMessageV3.Builder<DataQuery.Builder> implements DataQueryOrBuilderA query for retrieving data.
Protobuf type google.cloud.geminidataanalytics.v1beta.DataQuery
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataQuery.BuilderImplements
DataQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDatasources(Iterable<? extends Datasource> values)
public DataQuery.Builder addAllDatasources(Iterable<? extends Datasource> values)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.Datasource> |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
addDatasources(Datasource value)
public DataQuery.Builder addDatasources(Datasource value)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Datasource |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
addDatasources(Datasource.Builder builderForValue)
public DataQuery.Builder addDatasources(Datasource.Builder builderForValue)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Datasource.Builder |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
addDatasources(int index, Datasource value)
public DataQuery.Builder addDatasources(int index, Datasource value)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Datasource |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
addDatasources(int index, Datasource.Builder builderForValue)
public DataQuery.Builder addDatasources(int index, Datasource.Builder builderForValue)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Datasource.Builder |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
addDatasourcesBuilder()
public Datasource.Builder addDatasourcesBuilder()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Datasource.Builder |
|
addDatasourcesBuilder(int index)
public Datasource.Builder addDatasourcesBuilder(int index)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Datasource.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
build()
public DataQuery build()| Returns | |
|---|---|
| Type | Description |
DataQuery |
|
buildPartial()
public DataQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
DataQuery |
|
clear()
public DataQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearDatasources()
public DataQuery.Builder clearDatasources()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public DataQuery.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearLooker()
public DataQuery.Builder clearLooker()Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearName()
public DataQuery.Builder clearName()Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"
string name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DataQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearQueryType()
public DataQuery.Builder clearQueryType()| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
clearQuestion()
public DataQuery.Builder clearQuestion()Optional. A natural language question to answer.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
clone()
public DataQuery.Builder clone()| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
getDatasources(int index)
public Datasource getDatasources(int index)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Datasource |
|
getDatasourcesBuilder(int index)
public Datasource.Builder getDatasourcesBuilder(int index)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Datasource.Builder |
|
getDatasourcesBuilderList()
public List<Datasource.Builder> getDatasourcesBuilderList()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDatasourcesCount()
public int getDatasourcesCount()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getDatasourcesList()
public List<Datasource> getDatasourcesList()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Datasource> |
|
getDatasourcesOrBuilder(int index)
public DatasourceOrBuilder getDatasourcesOrBuilder(int index)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DatasourceOrBuilder |
|
getDatasourcesOrBuilderList()
public List<? extends DatasourceOrBuilder> getDatasourcesOrBuilderList()Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.geminidataanalytics.v1beta.DatasourceOrBuilder> |
|
getDefaultInstanceForType()
public DataQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLooker()
public LookerQuery getLooker()Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQuery |
The looker. |
getLookerBuilder()
public LookerQuery.Builder getLookerBuilder()Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQuery.Builder |
|
getLookerOrBuilder()
public LookerQueryOrBuilder getLookerOrBuilder()Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQueryOrBuilder |
|
getName()
public String getName()Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"
string name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"
string name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getQueryTypeCase()
public DataQuery.QueryTypeCase getQueryTypeCase()| Returns | |
|---|---|
| Type | Description |
DataQuery.QueryTypeCase |
|
getQuestion()
public String getQuestion()Optional. A natural language question to answer.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The question. |
getQuestionBytes()
public ByteString getQuestionBytes()Optional. A natural language question to answer.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for question. |
hasLooker()
public boolean hasLooker()Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the looker field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DataQuery other)
public DataQuery.Builder mergeFrom(DataQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
DataQuery |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
mergeLooker(LookerQuery value)
public DataQuery.Builder mergeLooker(LookerQuery value)Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LookerQuery |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
removeDatasources(int index)
public DataQuery.Builder removeDatasources(int index)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setDatasources(int index, Datasource value)
public DataQuery.Builder setDatasources(int index, Datasource value)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Datasource |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setDatasources(int index, Datasource.Builder builderForValue)
public DataQuery.Builder setDatasources(int index, Datasource.Builder builderForValue)Optional. The datasources available to answer the question.
repeated .google.cloud.geminidataanalytics.v1beta.Datasource datasources = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Datasource.Builder |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public DataQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setLooker(LookerQuery value)
public DataQuery.Builder setLooker(LookerQuery value)Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LookerQuery |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setLooker(LookerQuery.Builder builderForValue)
public DataQuery.Builder setLooker(LookerQuery.Builder builderForValue)Optional. A query for retrieving data from a Looker explore.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
LookerQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setName(String value)
public DataQuery.Builder setName(String value)Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"
string name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DataQuery.Builder setNameBytes(ByteString value)Optional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"
string name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
setQuestion(String value)
public DataQuery.Builder setQuestion(String value)Optional. A natural language question to answer.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe question to set. |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
setQuestionBytes(ByteString value)
public DataQuery.Builder setQuestionBytes(ByteString value)Optional. A natural language question to answer.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for question to set. |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DataQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataQuery.Builder |
|