public static final class LookerGoldenQuery.Builder extends GeneratedMessage.Builder<LookerGoldenQuery.Builder> implements LookerGoldenQueryOrBuilderA golden query for Looker, including natural language questions and a corresponding Looker Query. Analogous to ExampleQuery.
Protobuf type google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LookerGoldenQuery.BuilderImplements
LookerGoldenQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNaturalLanguageQuestions(Iterable<String> values)
public LookerGoldenQuery.Builder addAllNaturalLanguageQuestions(Iterable<String> values)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The naturalLanguageQuestions to add. |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
This builder for chaining. |
addNaturalLanguageQuestions(String value)
public LookerGoldenQuery.Builder addNaturalLanguageQuestions(String value)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe naturalLanguageQuestions to add. |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
This builder for chaining. |
addNaturalLanguageQuestionsBytes(ByteString value)
public LookerGoldenQuery.Builder addNaturalLanguageQuestionsBytes(ByteString value)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the naturalLanguageQuestions to add. |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
This builder for chaining. |
build()
public LookerGoldenQuery build()| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery |
|
buildPartial()
public LookerGoldenQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery |
|
clear()
public LookerGoldenQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
clearLookerQuery()
public LookerGoldenQuery.Builder clearLookerQuery()Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
clearNaturalLanguageQuestions()
public LookerGoldenQuery.Builder clearNaturalLanguageQuestions()Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LookerGoldenQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLookerQuery()
public LookerQuery getLookerQuery()Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQuery |
The lookerQuery. |
getLookerQueryBuilder()
public LookerQuery.Builder getLookerQueryBuilder()Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQuery.Builder |
|
getLookerQueryOrBuilder()
public LookerQueryOrBuilder getLookerQueryOrBuilder()Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LookerQueryOrBuilder |
|
getNaturalLanguageQuestions(int index)
public String getNaturalLanguageQuestions(int index)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The naturalLanguageQuestions at the given index. |
getNaturalLanguageQuestionsBytes(int index)
public ByteString getNaturalLanguageQuestionsBytes(int index)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the naturalLanguageQuestions at the given index. |
getNaturalLanguageQuestionsCount()
public int getNaturalLanguageQuestionsCount()Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of naturalLanguageQuestions. |
getNaturalLanguageQuestionsList()
public ProtocolStringList getNaturalLanguageQuestionsList()Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the naturalLanguageQuestions. |
hasLookerQuery()
public boolean hasLookerQuery()Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lookerQuery field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LookerGoldenQuery other)
public LookerGoldenQuery.Builder mergeFrom(LookerGoldenQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
LookerGoldenQuery |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LookerGoldenQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LookerGoldenQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
mergeLookerQuery(LookerQuery value)
public LookerGoldenQuery.Builder mergeLookerQuery(LookerQuery value)Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LookerQuery |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
setLookerQuery(LookerQuery value)
public LookerGoldenQuery.Builder setLookerQuery(LookerQuery value)Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LookerQuery |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
setLookerQuery(LookerQuery.Builder builderForValue)
public LookerGoldenQuery.Builder setLookerQuery(LookerQuery.Builder builderForValue)Optional. The Looker Query corresponding to the natural language questions.
.google.cloud.geminidataanalytics.v1beta.LookerQuery looker_query = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
LookerQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
|
setNaturalLanguageQuestions(int index, String value)
public LookerGoldenQuery.Builder setNaturalLanguageQuestions(int index, String value)Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"
repeated string natural_language_questions = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe naturalLanguageQuestions to set. |
| Returns | |
|---|---|
| Type | Description |
LookerGoldenQuery.Builder |
This builder for chaining. |