public final class QueryDataResponse extends GeneratedMessage implements QueryDataResponseOrBuilder
Response containing the generated query and related information.
Protobuf type google.cloud.geminidataanalytics.v1beta.QueryDataResponse
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DISAMBIGUATION_QUESTION_FIELD_NUMBER
public static final int DISAMBIGUATION_QUESTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
GENERATED_QUERY_FIELD_NUMBER
public static final int GENERATED_QUERY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INTENT_EXPLANATION_FIELD_NUMBER
public static final int INTENT_EXPLANATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER
public static final int NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
QUERY_RESULT_FIELD_NUMBER
public static final int QUERY_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static QueryDataResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static QueryDataResponse.Builder newBuilder()
newBuilder(QueryDataResponse prototype)
public static QueryDataResponse.Builder newBuilder(QueryDataResponse prototype)
public static QueryDataResponse parseDelimitedFrom(InputStream input)
public static QueryDataResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static QueryDataResponse parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueryDataResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static QueryDataResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryDataResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryDataResponse parseFrom(CodedInputStream input)
public static QueryDataResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryDataResponse parseFrom(InputStream input)
public static QueryDataResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static QueryDataResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QueryDataResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<QueryDataResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public QueryDataResponse getDefaultInstanceForType()
getDisambiguationQuestion(int index)
public String getDisambiguationQuestion(int index)
If ambiguity was detected in the natural language query and
options.generate_disambiguation_question was true, this field contains a
question to the user for clarification. The returned represents the
service's best effort based on the ambiguous input.
repeated string disambiguation_question = 5;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The disambiguationQuestion at the given index.
|
getDisambiguationQuestionBytes(int index)
public ByteString getDisambiguationQuestionBytes(int index)
If ambiguity was detected in the natural language query and
options.generate_disambiguation_question was true, this field contains a
question to the user for clarification. The returned represents the
service's best effort based on the ambiguous input.
repeated string disambiguation_question = 5;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the disambiguationQuestion at the given index.
|
getDisambiguationQuestionCount()
public int getDisambiguationQuestionCount()
If ambiguity was detected in the natural language query and
options.generate_disambiguation_question was true, this field contains a
question to the user for clarification. The returned represents the
service's best effort based on the ambiguous input.
repeated string disambiguation_question = 5;
| Returns |
| Type |
Description |
int |
The count of disambiguationQuestion.
|
getDisambiguationQuestionList()
public ProtocolStringList getDisambiguationQuestionList()
If ambiguity was detected in the natural language query and
options.generate_disambiguation_question was true, this field contains a
question to the user for clarification. The returned represents the
service's best effort based on the ambiguous input.
repeated string disambiguation_question = 5;
getGeneratedQuery()
public String getGeneratedQuery()
Generated query for the given user prompt.
string generated_query = 1;
| Returns |
| Type |
Description |
String |
The generatedQuery.
|
getGeneratedQueryBytes()
public ByteString getGeneratedQueryBytes()
Generated query for the given user prompt.
string generated_query = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for generatedQuery.
|
getIntentExplanation()
public String getIntentExplanation()
A natural language explanation of the generated query.
Populated if options.generate_explanation was true in the request.
string intent_explanation = 2;
| Returns |
| Type |
Description |
String |
The intentExplanation.
|
getIntentExplanationBytes()
public ByteString getIntentExplanationBytes()
A natural language explanation of the generated query.
Populated if options.generate_explanation was true in the request.
string intent_explanation = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for intentExplanation.
|
getNaturalLanguageAnswer()
public String getNaturalLanguageAnswer()
A natural language answer to the query, based on the query_result.
Populated if options.generate_natural_language_answer was true in the
request and query execution was successful based in the response from
executeSql API.
string natural_language_answer = 4;
| Returns |
| Type |
Description |
String |
The naturalLanguageAnswer.
|
getNaturalLanguageAnswerBytes()
public ByteString getNaturalLanguageAnswerBytes()
A natural language answer to the query, based on the query_result.
Populated if options.generate_natural_language_answer was true in the
request and query execution was successful based in the response from
executeSql API.
string natural_language_answer = 4;
| Returns |
| Type |
Description |
ByteString |
The bytes for naturalLanguageAnswer.
|
getParserForType()
public Parser<QueryDataResponse> getParserForType()
Overrides
getQueryResult()
public ExecutedQueryResult getQueryResult()
The result of executing the query.
Populated if options.generate_query_result or
options.generate_natural_language_answer was true in the request, and
execution was successful or attempted.
.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3;
getQueryResultOrBuilder()
public ExecutedQueryResultOrBuilder getQueryResultOrBuilder()
The result of executing the query.
Populated if options.generate_query_result or
options.generate_natural_language_answer was true in the request, and
execution was successful or attempted.
.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasQueryResult()
public boolean hasQueryResult()
The result of executing the query.
Populated if options.generate_query_result or
options.generate_natural_language_answer was true in the request, and
execution was successful or attempted.
.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3;
| Returns |
| Type |
Description |
boolean |
Whether the queryResult field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public QueryDataResponse.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected QueryDataResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public QueryDataResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides