public static final class Context.Builder extends GeneratedMessageV3.Builder<Context.Builder> implements ContextOrBuilderA collection of context to apply to this conversation
Protobuf type google.cloud.geminidataanalytics.v1beta.Context
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Context.BuilderImplements
ContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllExampleQueries(Iterable<? extends ExampleQuery> values)
public Context.Builder addAllExampleQueries(Iterable<? extends ExampleQuery> values)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.geminidataanalytics.v1beta.ExampleQuery> |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
addExampleQueries(ExampleQuery value)
public Context.Builder addExampleQueries(ExampleQuery value)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExampleQuery |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
addExampleQueries(ExampleQuery.Builder builderForValue)
public Context.Builder addExampleQueries(ExampleQuery.Builder builderForValue)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExampleQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
addExampleQueries(int index, ExampleQuery value)
public Context.Builder addExampleQueries(int index, ExampleQuery value)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ExampleQuery |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
addExampleQueries(int index, ExampleQuery.Builder builderForValue)
public Context.Builder addExampleQueries(int index, ExampleQuery.Builder builderForValue)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ExampleQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
addExampleQueriesBuilder()
public ExampleQuery.Builder addExampleQueriesBuilder()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExampleQuery.Builder |
|
addExampleQueriesBuilder(int index)
public ExampleQuery.Builder addExampleQueriesBuilder(int index)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExampleQuery.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Context.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
build()
public Context build()| Returns | |
|---|---|
| Type | Description |
Context |
|
buildPartial()
public Context buildPartial()| Returns | |
|---|---|
| Type | Description |
Context |
|
clear()
public Context.Builder clear()| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearDatasourceReferences()
public Context.Builder clearDatasourceReferences()Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearExampleQueries()
public Context.Builder clearExampleQueries()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Context.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Context.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearOptions()
public Context.Builder clearOptions()Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
clearSystemInstruction()
public Context.Builder clearSystemInstruction()Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
This builder for chaining. |
clone()
public Context.Builder clone()| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
getDatasourceReferences()
public DatasourceReferences getDatasourceReferences()Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DatasourceReferences |
The datasourceReferences. |
getDatasourceReferencesBuilder()
public DatasourceReferences.Builder getDatasourceReferencesBuilder()Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DatasourceReferences.Builder |
|
getDatasourceReferencesOrBuilder()
public DatasourceReferencesOrBuilder getDatasourceReferencesOrBuilder()Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DatasourceReferencesOrBuilder |
|
getDefaultInstanceForType()
public Context getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Context |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExampleQueries(int index)
public ExampleQuery getExampleQueries(int index)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExampleQuery |
|
getExampleQueriesBuilder(int index)
public ExampleQuery.Builder getExampleQueriesBuilder(int index)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExampleQuery.Builder |
|
getExampleQueriesBuilderList()
public List<ExampleQuery.Builder> getExampleQueriesBuilderList()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getExampleQueriesCount()
public int getExampleQueriesCount()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getExampleQueriesList()
public List<ExampleQuery> getExampleQueriesList()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ExampleQuery> |
|
getExampleQueriesOrBuilder(int index)
public ExampleQueryOrBuilder getExampleQueriesOrBuilder(int index)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExampleQueryOrBuilder |
|
getExampleQueriesOrBuilderList()
public List<? extends ExampleQueryOrBuilder> getExampleQueriesOrBuilderList()Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.geminidataanalytics.v1beta.ExampleQueryOrBuilder> |
|
getOptions()
public ConversationOptions getOptions()Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationOptions |
The options. |
getOptionsBuilder()
public ConversationOptions.Builder getOptionsBuilder()Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationOptions.Builder |
|
getOptionsOrBuilder()
public ConversationOptionsOrBuilder getOptionsOrBuilder()Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationOptionsOrBuilder |
|
getSystemInstruction()
public String getSystemInstruction()Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The systemInstruction. |
getSystemInstructionBytes()
public ByteString getSystemInstructionBytes()Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for systemInstruction. |
hasDatasourceReferences()
public boolean hasDatasourceReferences()Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the datasourceReferences field is set. |
hasOptions()
public boolean hasOptions()Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the options field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDatasourceReferences(DatasourceReferences value)
public Context.Builder mergeDatasourceReferences(DatasourceReferences value)Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DatasourceReferences |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
mergeFrom(Context other)
public Context.Builder mergeFrom(Context other)| Parameter | |
|---|---|
| Name | Description |
other |
Context |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Context.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Context.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
mergeOptions(ConversationOptions value)
public Context.Builder mergeOptions(ConversationOptions value)Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConversationOptions |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Context.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
removeExampleQueries(int index)
public Context.Builder removeExampleQueries(int index)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setDatasourceReferences(DatasourceReferences value)
public Context.Builder setDatasourceReferences(DatasourceReferences value)Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DatasourceReferences |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setDatasourceReferences(DatasourceReferences.Builder builderForValue)
public Context.Builder setDatasourceReferences(DatasourceReferences.Builder builderForValue)Required. Data sources that are available for answering the question.
.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DatasourceReferences.Builder |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setExampleQueries(int index, ExampleQuery value)
public Context.Builder setExampleQueries(int index, ExampleQuery value)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ExampleQuery |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setExampleQueries(int index, ExampleQuery.Builder builderForValue)
public Context.Builder setExampleQueries(int index, ExampleQuery.Builder builderForValue)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present.
repeated .google.cloud.geminidataanalytics.v1beta.ExampleQuery example_queries = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ExampleQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Context.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setOptions(ConversationOptions value)
public Context.Builder setOptions(ConversationOptions value)Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConversationOptions |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setOptions(ConversationOptions.Builder builderForValue)
public Context.Builder setOptions(ConversationOptions.Builder builderForValue)Optional. Additional options for the conversation.
.google.cloud.geminidataanalytics.v1beta.ConversationOptions options = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ConversationOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Context.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
setSystemInstruction(String value)
public Context.Builder setSystemInstruction(String value)Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe systemInstruction to set. |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
This builder for chaining. |
setSystemInstructionBytes(ByteString value)
public Context.Builder setSystemInstructionBytes(ByteString value)Optional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
string system_instruction = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for systemInstruction to set. |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Context.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|