public static final class AnalysisQuery.Builder extends GeneratedMessage.Builder<AnalysisQuery.Builder> implements AnalysisQueryOrBuilderA query for performing an analysis.
Protobuf type google.cloud.geminidataanalytics.v1beta.AnalysisQuery
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AnalysisQuery.BuilderImplements
AnalysisQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDataResultNames(Iterable<String> values)
public AnalysisQuery.Builder addAllDataResultNames(Iterable<String> values)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The dataResultNames to add. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
addDataResultNames(String value)
public AnalysisQuery.Builder addDataResultNames(String value)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataResultNames to add. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
addDataResultNamesBytes(ByteString value)
public AnalysisQuery.Builder addDataResultNamesBytes(ByteString value)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the dataResultNames to add. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
build()
public AnalysisQuery build()| Returns | |
|---|---|
| Type | Description |
AnalysisQuery |
|
buildPartial()
public AnalysisQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
AnalysisQuery |
|
clear()
public AnalysisQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
|
clearDataResultNames()
public AnalysisQuery.Builder clearDataResultNames()Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
clearQuestion()
public AnalysisQuery.Builder clearQuestion()Optional. An analysis question to help answer the user's original question.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
getDataResultNames(int index)
public String getDataResultNames(int index)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The dataResultNames at the given index. |
getDataResultNamesBytes(int index)
public ByteString getDataResultNamesBytes(int index)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the dataResultNames at the given index. |
getDataResultNamesCount()
public int getDataResultNamesCount()Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of dataResultNames. |
getDataResultNamesList()
public ProtocolStringList getDataResultNamesList()Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the dataResultNames. |
getDefaultInstanceForType()
public AnalysisQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnalysisQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQuestion()
public String getQuestion()Optional. An analysis question to help answer the user's original question.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The question. |
getQuestionBytes()
public ByteString getQuestionBytes()Optional. An analysis question to help answer the user's original question.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for question. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AnalysisQuery other)
public AnalysisQuery.Builder mergeFrom(AnalysisQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
AnalysisQuery |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnalysisQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AnalysisQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
|
setDataResultNames(int index, String value)
public AnalysisQuery.Builder setDataResultNames(int index, String value)Optional. The names of previously retrieved data results to analyze.
repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe dataResultNames to set. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
setQuestion(String value)
public AnalysisQuery.Builder setQuestion(String value)Optional. An analysis question to help answer the user's original question.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe question to set. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |
setQuestionBytes(ByteString value)
public AnalysisQuery.Builder setQuestionBytes(ByteString value)Optional. An analysis question to help answer the user's original question.
string question = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for question to set. |
| Returns | |
|---|---|
| Type | Description |
AnalysisQuery.Builder |
This builder for chaining. |