Constants
DataAgentService_ListDataAgents_FullMethodName, DataAgentService_ListAccessibleDataAgents_FullMethodName, DataAgentService_GetDataAgent_FullMethodName, DataAgentService_CreateDataAgent_FullMethodName, DataAgentService_CreateDataAgentSync_FullMethodName, DataAgentService_UpdateDataAgent_FullMethodName, DataAgentService_UpdateDataAgentSync_FullMethodName, DataAgentService_DeleteDataAgent_FullMethodName, DataAgentService_DeleteDataAgentSync_FullMethodName, DataAgentService_GetIamPolicy_FullMethodName, DataAgentService_SetIamPolicy_FullMethodName
const (
DataAgentService_ListDataAgents_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListDataAgents"
DataAgentService_ListAccessibleDataAgents_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/ListAccessibleDataAgents"
DataAgentService_GetDataAgent_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/GetDataAgent"
DataAgentService_CreateDataAgent_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgent"
DataAgentService_CreateDataAgentSync_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/CreateDataAgentSync"
DataAgentService_UpdateDataAgent_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgent"
DataAgentService_UpdateDataAgentSync_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/UpdateDataAgentSync"
DataAgentService_DeleteDataAgent_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgent"
DataAgentService_DeleteDataAgentSync_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/DeleteDataAgentSync"
DataAgentService_GetIamPolicy_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/GetIamPolicy"
DataAgentService_SetIamPolicy_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataAgentService/SetIamPolicy"
)DataChatService_Chat_FullMethodName, DataChatService_CreateConversation_FullMethodName, DataChatService_DeleteConversation_FullMethodName, DataChatService_GetConversation_FullMethodName, DataChatService_ListConversations_FullMethodName, DataChatService_ListMessages_FullMethodName, DataChatService_QueryData_FullMethodName
const (
DataChatService_Chat_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/Chat"
DataChatService_CreateConversation_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/CreateConversation"
DataChatService_DeleteConversation_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/DeleteConversation"
DataChatService_GetConversation_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/GetConversation"
DataChatService_ListConversations_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/ListConversations"
DataChatService_ListMessages_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/ListMessages"
DataChatService_QueryData_FullMethodName = "/google.cloud.geminidataanalytics.v1beta.DataChatService/QueryData"
)Variables
Context_SchemaRelationship_Source_name, Context_SchemaRelationship_Source_value
var (
Context_SchemaRelationship_Source_name = map[int32]string{
0: "SOURCE_UNSPECIFIED",
1: "BIGQUERY_JOB_HISTORY",
2: "LLM_SUGGESTED",
3: "BIGQUERY_TABLE_CONSTRAINTS",
}
Context_SchemaRelationship_Source_value = map[string]int32{
"SOURCE_UNSPECIFIED": 0,
"BIGQUERY_JOB_HISTORY": 1,
"LLM_SUGGESTED": 2,
"BIGQUERY_TABLE_CONSTRAINTS": 3,
}
)Enum value maps for Context_SchemaRelationship_Source.
ListAccessibleDataAgentsRequest_CreatorFilter_name, ListAccessibleDataAgentsRequest_CreatorFilter_value
var (
ListAccessibleDataAgentsRequest_CreatorFilter_name = map[int32]string{
0: "CREATOR_FILTER_UNSPECIFIED",
1: "NONE",
2: "CREATOR_ONLY",
3: "NOT_CREATOR_ONLY",
}
ListAccessibleDataAgentsRequest_CreatorFilter_value = map[string]int32{
"CREATOR_FILTER_UNSPECIFIED": 0,
"NONE": 1,
"CREATOR_ONLY": 2,
"NOT_CREATOR_ONLY": 3,
}
)Enum value maps for ListAccessibleDataAgentsRequest_CreatorFilter.
ChatRequest_ThinkingMode_name, ChatRequest_ThinkingMode_value
var (
ChatRequest_ThinkingMode_name = map[int32]string{
0: "THINKING_MODE_UNSPECIFIED",
1: "FAST",
2: "THINKING",
}
ChatRequest_ThinkingMode_value = map[string]int32{
"THINKING_MODE_UNSPECIFIED": 0,
"FAST": 1,
"THINKING": 2,
}
)Enum value maps for ChatRequest_ThinkingMode.
DataAgentContext_ContextVersion_name, DataAgentContext_ContextVersion_value
var (
DataAgentContext_ContextVersion_name = map[int32]string{
0: "CONTEXT_VERSION_UNSPECIFIED",
1: "STAGING",
2: "PUBLISHED",
}
DataAgentContext_ContextVersion_value = map[string]int32{
"CONTEXT_VERSION_UNSPECIFIED": 0,
"STAGING": 1,
"PUBLISHED": 2,
}
)Enum value maps for DataAgentContext_ContextVersion.
TextMessage_TextType_name, TextMessage_TextType_value
var (
TextMessage_TextType_name = map[int32]string{
0: "TEXT_TYPE_UNSPECIFIED",
1: "FINAL_RESPONSE",
2: "THOUGHT",
3: "PROGRESS",
}
TextMessage_TextType_value = map[string]int32{
"TEXT_TYPE_UNSPECIFIED": 0,
"FINAL_RESPONSE": 1,
"THOUGHT": 2,
"PROGRESS": 3,
}
)Enum value maps for TextMessage_TextType.
ClarificationQuestion_SelectionMode_name, ClarificationQuestion_SelectionMode_value
var (
ClarificationQuestion_SelectionMode_name = map[int32]string{
0: "SELECTION_MODE_UNSPECIFIED",
1: "SINGLE_SELECT",
2: "MULTI_SELECT",
}
ClarificationQuestion_SelectionMode_value = map[string]int32{
"SELECTION_MODE_UNSPECIFIED": 0,
"SINGLE_SELECT": 1,
"MULTI_SELECT": 2,
}
)Enum value maps for ClarificationQuestion_SelectionMode.
ClarificationQuestion_ClarificationQuestionType_name, ClarificationQuestion_ClarificationQuestionType_value
var (
ClarificationQuestion_ClarificationQuestionType_name = map[int32]string{
0: "CLARIFICATION_QUESTION_TYPE_UNSPECIFIED",
1: "FILTER_VALUES",
2: "FIELDS",
}
ClarificationQuestion_ClarificationQuestionType_value = map[string]int32{
"CLARIFICATION_QUESTION_TYPE_UNSPECIFIED": 0,
"FILTER_VALUES": 1,
"FIELDS": 2,
}
)Enum value maps for ClarificationQuestion_ClarificationQuestionType.
DataFilterType_name, DataFilterType_value
var (
DataFilterType_name = map[int32]string{
0: "DATA_FILTER_TYPE_UNSPECIFIED",
1: "ALWAYS_FILTER",
}
DataFilterType_value = map[string]int32{
"DATA_FILTER_TYPE_UNSPECIFIED": 0,
"ALWAYS_FILTER": 1,
}
)Enum value maps for DataFilterType.
SpannerDatabaseReference_Engine_name, SpannerDatabaseReference_Engine_value
var (
SpannerDatabaseReference_Engine_name = map[int32]string{
0: "ENGINE_UNSPECIFIED",
1: "GOOGLE_SQL",
2: "POSTGRESQL",
}
SpannerDatabaseReference_Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
"GOOGLE_SQL": 1,
"POSTGRESQL": 2,
}
)Enum value maps for SpannerDatabaseReference_Engine.
CloudSqlDatabaseReference_Engine_name, CloudSqlDatabaseReference_Engine_value
var (
CloudSqlDatabaseReference_Engine_name = map[int32]string{
0: "ENGINE_UNSPECIFIED",
1: "POSTGRESQL",
2: "MYSQL",
}
CloudSqlDatabaseReference_Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
"POSTGRESQL": 1,
"MYSQL": 2,
}
)Enum value maps for CloudSqlDatabaseReference_Engine.
DataAgentService_ServiceDesc
var DataAgentService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.geminidataanalytics.v1beta.DataAgentService",
HandlerType: (*DataAgentServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListDataAgents",
Handler: _DataAgentService_ListDataAgents_Handler,
},
{
MethodName: "ListAccessibleDataAgents",
Handler: _DataAgentService_ListAccessibleDataAgents_Handler,
},
{
MethodName: "GetDataAgent",
Handler: _DataAgentService_GetDataAgent_Handler,
},
{
MethodName: "CreateDataAgent",
Handler: _DataAgentService_CreateDataAgent_Handler,
},
{
MethodName: "CreateDataAgentSync",
Handler: _DataAgentService_CreateDataAgentSync_Handler,
},
{
MethodName: "UpdateDataAgent",
Handler: _DataAgentService_UpdateDataAgent_Handler,
},
{
MethodName: "UpdateDataAgentSync",
Handler: _DataAgentService_UpdateDataAgentSync_Handler,
},
{
MethodName: "DeleteDataAgent",
Handler: _DataAgentService_DeleteDataAgent_Handler,
},
{
MethodName: "DeleteDataAgentSync",
Handler: _DataAgentService_DeleteDataAgentSync_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _DataAgentService_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _DataAgentService_SetIamPolicy_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/geminidataanalytics/v1beta/data_agent_service.proto",
}DataAgentService_ServiceDesc is the grpc.ServiceDesc for DataAgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
DataChatService_ServiceDesc
var DataChatService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.geminidataanalytics.v1beta.DataChatService",
HandlerType: (*DataChatServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConversation",
Handler: _DataChatService_CreateConversation_Handler,
},
{
MethodName: "DeleteConversation",
Handler: _DataChatService_DeleteConversation_Handler,
},
{
MethodName: "GetConversation",
Handler: _DataChatService_GetConversation_Handler,
},
{
MethodName: "ListConversations",
Handler: _DataChatService_ListConversations_Handler,
},
{
MethodName: "ListMessages",
Handler: _DataChatService_ListMessages_Handler,
},
{
MethodName: "QueryData",
Handler: _DataChatService_QueryData_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Chat",
Handler: _DataChatService_Chat_Handler,
ServerStreams: true,
},
},
Metadata: "google/cloud/geminidataanalytics/v1beta/data_chat_service.proto",
}DataChatService_ServiceDesc is the grpc.ServiceDesc for DataChatService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_geminidataanalytics_v1beta_agent_context_proto
var File_google_cloud_geminidataanalytics_v1beta_agent_context_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_context_proto
var File_google_cloud_geminidataanalytics_v1beta_context_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_conversation_proto
var File_google_cloud_geminidataanalytics_v1beta_conversation_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_credentials_proto
var File_google_cloud_geminidataanalytics_v1beta_credentials_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_data_agent_proto
var File_google_cloud_geminidataanalytics_v1beta_data_agent_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_data_agent_service_proto
var File_google_cloud_geminidataanalytics_v1beta_data_agent_service_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_data_analytics_agent_proto
var File_google_cloud_geminidataanalytics_v1beta_data_analytics_agent_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_data_chat_service_proto
var File_google_cloud_geminidataanalytics_v1beta_data_chat_service_proto protoreflect.FileDescriptorFile_google_cloud_geminidataanalytics_v1beta_datasource_proto
var File_google_cloud_geminidataanalytics_v1beta_datasource_proto protoreflect.FileDescriptorFunctions
func RegisterDataAgentServiceServer
func RegisterDataAgentServiceServer(s grpc.ServiceRegistrar, srv DataAgentServiceServer)func RegisterDataChatServiceServer
func RegisterDataChatServiceServer(s grpc.ServiceRegistrar, srv DataChatServiceServer)AgentContextReference
type AgentContextReference struct {
// Required. Context set ID to retrieve.
ContextSetId string `protobuf:"bytes,1,opt,name=context_set_id,json=contextSetId,proto3" json:"context_set_id,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to Agent Context.
func (*AgentContextReference) Descriptor
func (*AgentContextReference) Descriptor() ([]byte, []int)Deprecated: Use AgentContextReference.ProtoReflect.Descriptor instead.
func (*AgentContextReference) GetContextSetId
func (x *AgentContextReference) GetContextSetId() stringfunc (*AgentContextReference) ProtoMessage
func (*AgentContextReference) ProtoMessage()func (*AgentContextReference) ProtoReflect
func (x *AgentContextReference) ProtoReflect() protoreflect.Messagefunc (*AgentContextReference) Reset
func (x *AgentContextReference) Reset()func (*AgentContextReference) String
func (x *AgentContextReference) String() stringAlloyDbDatabaseReference
type AlloyDbDatabaseReference struct {
// Required. The project the instance belongs to.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The region of the instance.
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// Required. The cluster id.
ClusterId string `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
// Required. The instance id.
InstanceId string `protobuf:"bytes,4,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Required. The database id.
DatabaseId string `protobuf:"bytes,5,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
// Optional. The table ids. Denotes all tables if unset.
TableIds []string `protobuf:"bytes,6,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single AlloyDB database.
func (*AlloyDbDatabaseReference) Descriptor
func (*AlloyDbDatabaseReference) Descriptor() ([]byte, []int)Deprecated: Use AlloyDbDatabaseReference.ProtoReflect.Descriptor instead.
func (*AlloyDbDatabaseReference) GetClusterId
func (x *AlloyDbDatabaseReference) GetClusterId() stringfunc (*AlloyDbDatabaseReference) GetDatabaseId
func (x *AlloyDbDatabaseReference) GetDatabaseId() stringfunc (*AlloyDbDatabaseReference) GetInstanceId
func (x *AlloyDbDatabaseReference) GetInstanceId() stringfunc (*AlloyDbDatabaseReference) GetProjectId
func (x *AlloyDbDatabaseReference) GetProjectId() stringfunc (*AlloyDbDatabaseReference) GetRegion
func (x *AlloyDbDatabaseReference) GetRegion() stringfunc (*AlloyDbDatabaseReference) GetTableIds
func (x *AlloyDbDatabaseReference) GetTableIds() []stringfunc (*AlloyDbDatabaseReference) ProtoMessage
func (*AlloyDbDatabaseReference) ProtoMessage()func (*AlloyDbDatabaseReference) ProtoReflect
func (x *AlloyDbDatabaseReference) ProtoReflect() protoreflect.Messagefunc (*AlloyDbDatabaseReference) Reset
func (x *AlloyDbDatabaseReference) Reset()func (*AlloyDbDatabaseReference) String
func (x *AlloyDbDatabaseReference) String() stringAlloyDbReference
type AlloyDbReference struct {
// Required. Singular proto that supports specifying which database and tables
// to include.
DatabaseReference *AlloyDbDatabaseReference `protobuf:"bytes,1,opt,name=database_reference,json=databaseReference,proto3" json:"database_reference,omitempty"`
// Optional. Parameters for retrieving data from Agent Context.
AgentContextReference *AgentContextReference `protobuf:"bytes,3,opt,name=agent_context_reference,json=agentContextReference,proto3" json:"agent_context_reference,omitempty"`
// contains filtered or unexported fields
}Message representing reference to an AlloyDB database and agent context.
Only supported for the QueryData method.
func (*AlloyDbReference) Descriptor
func (*AlloyDbReference) Descriptor() ([]byte, []int)Deprecated: Use AlloyDbReference.ProtoReflect.Descriptor instead.
func (*AlloyDbReference) GetAgentContextReference
func (x *AlloyDbReference) GetAgentContextReference() *AgentContextReferencefunc (*AlloyDbReference) GetDatabaseReference
func (x *AlloyDbReference) GetDatabaseReference() *AlloyDbDatabaseReferencefunc (*AlloyDbReference) ProtoMessage
func (*AlloyDbReference) ProtoMessage()func (*AlloyDbReference) ProtoReflect
func (x *AlloyDbReference) ProtoReflect() protoreflect.Messagefunc (*AlloyDbReference) Reset
func (x *AlloyDbReference) Reset()func (*AlloyDbReference) String
func (x *AlloyDbReference) String() stringAnalysisEvent
type AnalysisEvent struct {
// The kind of event that occurred during the analysis.
//
// Types that are valid to be assigned to Kind:
//
// *AnalysisEvent_PlannerReasoning
// *AnalysisEvent_CoderInstruction
// *AnalysisEvent_Code
// *AnalysisEvent_ExecutionOutput
// *AnalysisEvent_ExecutionError
// *AnalysisEvent_ResultVegaChartJson
// *AnalysisEvent_ResultNaturalLanguage
// *AnalysisEvent_ResultCsvData
// *AnalysisEvent_ResultReferenceData
// *AnalysisEvent_Error
Kind isAnalysisEvent_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}An event indicating the progress of an analysis.
func (*AnalysisEvent) Descriptor
func (*AnalysisEvent) Descriptor() ([]byte, []int)Deprecated: Use AnalysisEvent.ProtoReflect.Descriptor instead.
func (*AnalysisEvent) GetCode
func (x *AnalysisEvent) GetCode() stringfunc (*AnalysisEvent) GetCoderInstruction
func (x *AnalysisEvent) GetCoderInstruction() stringfunc (*AnalysisEvent) GetError
func (x *AnalysisEvent) GetError() stringfunc (*AnalysisEvent) GetExecutionError
func (x *AnalysisEvent) GetExecutionError() stringfunc (*AnalysisEvent) GetExecutionOutput
func (x *AnalysisEvent) GetExecutionOutput() stringfunc (*AnalysisEvent) GetKind
func (x *AnalysisEvent) GetKind() isAnalysisEvent_Kindfunc (*AnalysisEvent) GetPlannerReasoning
func (x *AnalysisEvent) GetPlannerReasoning() stringfunc (*AnalysisEvent) GetResultCsvData
func (x *AnalysisEvent) GetResultCsvData() stringfunc (*AnalysisEvent) GetResultNaturalLanguage
func (x *AnalysisEvent) GetResultNaturalLanguage() stringfunc (*AnalysisEvent) GetResultReferenceData
func (x *AnalysisEvent) GetResultReferenceData() stringfunc (*AnalysisEvent) GetResultVegaChartJson
func (x *AnalysisEvent) GetResultVegaChartJson() stringfunc (*AnalysisEvent) ProtoMessage
func (*AnalysisEvent) ProtoMessage()func (*AnalysisEvent) ProtoReflect
func (x *AnalysisEvent) ProtoReflect() protoreflect.Messagefunc (*AnalysisEvent) Reset
func (x *AnalysisEvent) Reset()func (*AnalysisEvent) String
func (x *AnalysisEvent) String() stringAnalysisEvent_Code
type AnalysisEvent_Code struct {
// Generated code.
Code string `protobuf:"bytes,4,opt,name=code,proto3,oneof"`
}AnalysisEvent_CoderInstruction
type AnalysisEvent_CoderInstruction struct {
// Instructions issued for code generation.
CoderInstruction string `protobuf:"bytes,3,opt,name=coder_instruction,json=coderInstruction,proto3,oneof"`
}AnalysisEvent_Error
type AnalysisEvent_Error struct {
// A generic error message.
Error string `protobuf:"bytes,11,opt,name=error,proto3,oneof"`
}AnalysisEvent_ExecutionError
type AnalysisEvent_ExecutionError struct {
// An error from code execution.
ExecutionError string `protobuf:"bytes,6,opt,name=execution_error,json=executionError,proto3,oneof"`
}AnalysisEvent_ExecutionOutput
type AnalysisEvent_ExecutionOutput struct {
// Output from code execution.
ExecutionOutput string `protobuf:"bytes,5,opt,name=execution_output,json=executionOutput,proto3,oneof"`
}AnalysisEvent_PlannerReasoning
type AnalysisEvent_PlannerReasoning struct {
// Python codegen planner's reasoning.
PlannerReasoning string `protobuf:"bytes,2,opt,name=planner_reasoning,json=plannerReasoning,proto3,oneof"`
}AnalysisEvent_ResultCsvData
type AnalysisEvent_ResultCsvData struct {
// Result as CSV string.
ResultCsvData string `protobuf:"bytes,9,opt,name=result_csv_data,json=resultCsvData,proto3,oneof"`
}AnalysisEvent_ResultNaturalLanguage
type AnalysisEvent_ResultNaturalLanguage struct {
// Result as NL string.
ResultNaturalLanguage string `protobuf:"bytes,8,opt,name=result_natural_language,json=resultNaturalLanguage,proto3,oneof"`
}AnalysisEvent_ResultReferenceData
type AnalysisEvent_ResultReferenceData struct {
// Result as a reference to a data source.
ResultReferenceData string `protobuf:"bytes,10,opt,name=result_reference_data,json=resultReferenceData,proto3,oneof"`
}AnalysisEvent_ResultVegaChartJson
type AnalysisEvent_ResultVegaChartJson struct {
// Result as Vega chart JSON string.
ResultVegaChartJson string `protobuf:"bytes,7,opt,name=result_vega_chart_json,json=resultVegaChartJson,proto3,oneof"`
}AnalysisMessage
type AnalysisMessage struct {
// Whether this message contains the query or one of the events from the
// analysis.
//
// Types that are valid to be assigned to Kind:
//
// *AnalysisMessage_Query
// *AnalysisMessage_ProgressEvent
Kind isAnalysisMessage_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}A message produced during analysis.
func (*AnalysisMessage) Descriptor
func (*AnalysisMessage) Descriptor() ([]byte, []int)Deprecated: Use AnalysisMessage.ProtoReflect.Descriptor instead.
func (*AnalysisMessage) GetKind
func (x *AnalysisMessage) GetKind() isAnalysisMessage_Kindfunc (*AnalysisMessage) GetProgressEvent
func (x *AnalysisMessage) GetProgressEvent() *AnalysisEventfunc (*AnalysisMessage) GetQuery
func (x *AnalysisMessage) GetQuery() *AnalysisQueryfunc (*AnalysisMessage) ProtoMessage
func (*AnalysisMessage) ProtoMessage()func (*AnalysisMessage) ProtoReflect
func (x *AnalysisMessage) ProtoReflect() protoreflect.Messagefunc (*AnalysisMessage) Reset
func (x *AnalysisMessage) Reset()func (*AnalysisMessage) String
func (x *AnalysisMessage) String() stringAnalysisMessage_ProgressEvent
type AnalysisMessage_ProgressEvent struct {
// An event indicating the progress of the analysis.
ProgressEvent *AnalysisEvent `protobuf:"bytes,2,opt,name=progress_event,json=progressEvent,proto3,oneof"`
}AnalysisMessage_Query
type AnalysisMessage_Query struct {
// An analysis query.
Query *AnalysisQuery `protobuf:"bytes,1,opt,name=query,proto3,oneof"`
}AnalysisOptions
type AnalysisOptions struct {
// Optional. Options for Python analysis.
Python *AnalysisOptions_Python `protobuf:"bytes,1,opt,name=python,proto3" json:"python,omitempty"`
// contains filtered or unexported fields
}Options for analysis.
func (*AnalysisOptions) Descriptor
func (*AnalysisOptions) Descriptor() ([]byte, []int)Deprecated: Use AnalysisOptions.ProtoReflect.Descriptor instead.
func (*AnalysisOptions) GetPython
func (x *AnalysisOptions) GetPython() *AnalysisOptions_Pythonfunc (*AnalysisOptions) ProtoMessage
func (*AnalysisOptions) ProtoMessage()func (*AnalysisOptions) ProtoReflect
func (x *AnalysisOptions) ProtoReflect() protoreflect.Messagefunc (*AnalysisOptions) Reset
func (x *AnalysisOptions) Reset()func (*AnalysisOptions) String
func (x *AnalysisOptions) String() stringAnalysisOptions_Python
type AnalysisOptions_Python struct {
// Optional. Whether to enable Python analysis.
// Defaults to false.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// contains filtered or unexported fields
}Options for Python analysis.
func (*AnalysisOptions_Python) Descriptor
func (*AnalysisOptions_Python) Descriptor() ([]byte, []int)Deprecated: Use AnalysisOptions_Python.ProtoReflect.Descriptor instead.
func (*AnalysisOptions_Python) GetEnabled
func (x *AnalysisOptions_Python) GetEnabled() boolfunc (*AnalysisOptions_Python) ProtoMessage
func (*AnalysisOptions_Python) ProtoMessage()func (*AnalysisOptions_Python) ProtoReflect
func (x *AnalysisOptions_Python) ProtoReflect() protoreflect.Messagefunc (*AnalysisOptions_Python) Reset
func (x *AnalysisOptions_Python) Reset()func (*AnalysisOptions_Python) String
func (x *AnalysisOptions_Python) String() stringAnalysisQuery
type AnalysisQuery struct {
// Optional. An analysis question to help answer the user's original question.
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
// Optional. The names of previously retrieved data results to analyze.
DataResultNames []string `protobuf:"bytes,2,rep,name=data_result_names,json=dataResultNames,proto3" json:"data_result_names,omitempty"`
// contains filtered or unexported fields
}A query for performing an analysis.
func (*AnalysisQuery) Descriptor
func (*AnalysisQuery) Descriptor() ([]byte, []int)Deprecated: Use AnalysisQuery.ProtoReflect.Descriptor instead.
func (*AnalysisQuery) GetDataResultNames
func (x *AnalysisQuery) GetDataResultNames() []stringfunc (*AnalysisQuery) GetQuestion
func (x *AnalysisQuery) GetQuestion() stringfunc (*AnalysisQuery) ProtoMessage
func (*AnalysisQuery) ProtoMessage()func (*AnalysisQuery) ProtoReflect
func (x *AnalysisQuery) ProtoReflect() protoreflect.Messagefunc (*AnalysisQuery) Reset
func (x *AnalysisQuery) Reset()func (*AnalysisQuery) String
func (x *AnalysisQuery) String() stringBigQueryJob
type BigQueryJob struct {
// Required. The project that the job belongs to.
//
// See
// [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The ID of the job.
//
// See
// [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// Optional. The location of the job.
//
// See
// [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
// Optional. A reference to the destination table of the job's query results.
//
// See
// [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery).
DestinationTable *BigQueryTableReference `protobuf:"bytes,3,opt,name=destination_table,json=destinationTable,proto3" json:"destination_table,omitempty"`
// Optional. The schema of the job's query results.
//
// See
// [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2).
Schema *Schema `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"`
// contains filtered or unexported fields
}A BigQuery job executed by the system.
func (*BigQueryJob) Descriptor
func (*BigQueryJob) Descriptor() ([]byte, []int)Deprecated: Use BigQueryJob.ProtoReflect.Descriptor instead.
func (*BigQueryJob) GetDestinationTable
func (x *BigQueryJob) GetDestinationTable() *BigQueryTableReferencefunc (*BigQueryJob) GetJobId
func (x *BigQueryJob) GetJobId() stringfunc (*BigQueryJob) GetLocation
func (x *BigQueryJob) GetLocation() stringfunc (*BigQueryJob) GetProjectId
func (x *BigQueryJob) GetProjectId() stringfunc (*BigQueryJob) GetSchema
func (x *BigQueryJob) GetSchema() *Schemafunc (*BigQueryJob) ProtoMessage
func (*BigQueryJob) ProtoMessage()func (*BigQueryJob) ProtoReflect
func (x *BigQueryJob) ProtoReflect() protoreflect.Messagefunc (*BigQueryJob) Reset
func (x *BigQueryJob) Reset()func (*BigQueryJob) String
func (x *BigQueryJob) String() stringBigQueryTableReference
type BigQueryTableReference struct {
// Required. The project that the table belongs to.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The dataset that the table belongs to.
DatasetId string `protobuf:"bytes,3,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Required. The table id.
TableId string `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// Optional. The schema of the datasource.
Schema *Schema `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single BigQuery table.
func (*BigQueryTableReference) Descriptor
func (*BigQueryTableReference) Descriptor() ([]byte, []int)Deprecated: Use BigQueryTableReference.ProtoReflect.Descriptor instead.
func (*BigQueryTableReference) GetDatasetId
func (x *BigQueryTableReference) GetDatasetId() stringfunc (*BigQueryTableReference) GetProjectId
func (x *BigQueryTableReference) GetProjectId() stringfunc (*BigQueryTableReference) GetSchema
func (x *BigQueryTableReference) GetSchema() *Schemafunc (*BigQueryTableReference) GetTableId
func (x *BigQueryTableReference) GetTableId() stringfunc (*BigQueryTableReference) ProtoMessage
func (*BigQueryTableReference) ProtoMessage()func (*BigQueryTableReference) ProtoReflect
func (x *BigQueryTableReference) ProtoReflect() protoreflect.Messagefunc (*BigQueryTableReference) Reset
func (x *BigQueryTableReference) Reset()func (*BigQueryTableReference) String
func (x *BigQueryTableReference) String() stringBigQueryTableReferences
type BigQueryTableReferences struct {
// Optional. References to BigQuery tables.
TableReferences []*BigQueryTableReference `protobuf:"bytes,1,rep,name=table_references,json=tableReferences,proto3" json:"table_references,omitempty"`
// contains filtered or unexported fields
}Message representing references to BigQuery tables and property graphs.
At least one of table_references or property_graph_references must be
populated.
func (*BigQueryTableReferences) Descriptor
func (*BigQueryTableReferences) Descriptor() ([]byte, []int)Deprecated: Use BigQueryTableReferences.ProtoReflect.Descriptor instead.
func (*BigQueryTableReferences) GetTableReferences
func (x *BigQueryTableReferences) GetTableReferences() []*BigQueryTableReferencefunc (*BigQueryTableReferences) ProtoMessage
func (*BigQueryTableReferences) ProtoMessage()func (*BigQueryTableReferences) ProtoReflect
func (x *BigQueryTableReferences) ProtoReflect() protoreflect.Messagefunc (*BigQueryTableReferences) Reset
func (x *BigQueryTableReferences) Reset()func (*BigQueryTableReferences) String
func (x *BigQueryTableReferences) String() stringBlob
type Blob struct {
// Required. The IANA standard MIME type of the message data.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Required. The data represented as bytes.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}A blob of data with a MIME type.
func (*Blob) Descriptor
Deprecated: Use Blob.ProtoReflect.Descriptor instead.
func (*Blob) GetData
func (*Blob) GetMimeType
func (*Blob) ProtoMessage
func (*Blob) ProtoMessage()func (*Blob) ProtoReflect
func (x *Blob) ProtoReflect() protoreflect.Messagefunc (*Blob) Reset
func (x *Blob) Reset()func (*Blob) String
ChartMessage
type ChartMessage struct {
// Whether this message contains the query or the result of the chart
// generation.
//
// Types that are valid to be assigned to Kind:
//
// *ChartMessage_Query
// *ChartMessage_Result
Kind isChartMessage_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}A message produced during chart generation.
func (*ChartMessage) Descriptor
func (*ChartMessage) Descriptor() ([]byte, []int)Deprecated: Use ChartMessage.ProtoReflect.Descriptor instead.
func (*ChartMessage) GetKind
func (x *ChartMessage) GetKind() isChartMessage_Kindfunc (*ChartMessage) GetQuery
func (x *ChartMessage) GetQuery() *ChartQueryfunc (*ChartMessage) GetResult
func (x *ChartMessage) GetResult() *ChartResultfunc (*ChartMessage) ProtoMessage
func (*ChartMessage) ProtoMessage()func (*ChartMessage) ProtoReflect
func (x *ChartMessage) ProtoReflect() protoreflect.Messagefunc (*ChartMessage) Reset
func (x *ChartMessage) Reset()func (*ChartMessage) String
func (x *ChartMessage) String() stringChartMessage_Query
type ChartMessage_Query struct {
// A query for generating a chart.
Query *ChartQuery `protobuf:"bytes,1,opt,name=query,proto3,oneof"`
}ChartMessage_Result
type ChartMessage_Result struct {
// The result of a chart generation query.
Result *ChartResult `protobuf:"bytes,2,opt,name=result,proto3,oneof"`
}ChartOptions
type ChartOptions struct {
// Optional. When specified, the agent will render generated charts using the
// provided format. Defaults to no image.
Image *ChartOptions_ImageOptions `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}Options for chart generation.
func (*ChartOptions) Descriptor
func (*ChartOptions) Descriptor() ([]byte, []int)Deprecated: Use ChartOptions.ProtoReflect.Descriptor instead.
func (*ChartOptions) GetImage
func (x *ChartOptions) GetImage() *ChartOptions_ImageOptionsfunc (*ChartOptions) ProtoMessage
func (*ChartOptions) ProtoMessage()func (*ChartOptions) ProtoReflect
func (x *ChartOptions) ProtoReflect() protoreflect.Messagefunc (*ChartOptions) Reset
func (x *ChartOptions) Reset()func (*ChartOptions) String
func (x *ChartOptions) String() stringChartOptions_ImageOptions
type ChartOptions_ImageOptions struct {
// The kind of image to render.
//
// Types that are valid to be assigned to Kind:
//
// *ChartOptions_ImageOptions_NoImage_
// *ChartOptions_ImageOptions_Svg
Kind isChartOptions_ImageOptions_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}Options for rendering images of generated charts.
func (*ChartOptions_ImageOptions) Descriptor
func (*ChartOptions_ImageOptions) Descriptor() ([]byte, []int)Deprecated: Use ChartOptions_ImageOptions.ProtoReflect.Descriptor instead.
func (*ChartOptions_ImageOptions) GetKind
func (x *ChartOptions_ImageOptions) GetKind() isChartOptions_ImageOptions_Kindfunc (*ChartOptions_ImageOptions) GetNoImage
func (x *ChartOptions_ImageOptions) GetNoImage() *ChartOptions_ImageOptions_NoImagefunc (*ChartOptions_ImageOptions) GetSvg
func (x *ChartOptions_ImageOptions) GetSvg() *ChartOptions_ImageOptions_SvgOptionsfunc (*ChartOptions_ImageOptions) ProtoMessage
func (*ChartOptions_ImageOptions) ProtoMessage()func (*ChartOptions_ImageOptions) ProtoReflect
func (x *ChartOptions_ImageOptions) ProtoReflect() protoreflect.Messagefunc (*ChartOptions_ImageOptions) Reset
func (x *ChartOptions_ImageOptions) Reset()func (*ChartOptions_ImageOptions) String
func (x *ChartOptions_ImageOptions) String() stringChartOptions_ImageOptions_NoImage
type ChartOptions_ImageOptions_NoImage struct {
// contains filtered or unexported fields
}No image.
func (*ChartOptions_ImageOptions_NoImage) Descriptor
func (*ChartOptions_ImageOptions_NoImage) Descriptor() ([]byte, []int)Deprecated: Use ChartOptions_ImageOptions_NoImage.ProtoReflect.Descriptor instead.
func (*ChartOptions_ImageOptions_NoImage) ProtoMessage
func (*ChartOptions_ImageOptions_NoImage) ProtoMessage()func (*ChartOptions_ImageOptions_NoImage) ProtoReflect
func (x *ChartOptions_ImageOptions_NoImage) ProtoReflect() protoreflect.Messagefunc (*ChartOptions_ImageOptions_NoImage) Reset
func (x *ChartOptions_ImageOptions_NoImage) Reset()func (*ChartOptions_ImageOptions_NoImage) String
func (x *ChartOptions_ImageOptions_NoImage) String() stringChartOptions_ImageOptions_NoImage_
type ChartOptions_ImageOptions_NoImage_ struct {
// No image.
NoImage *ChartOptions_ImageOptions_NoImage `protobuf:"bytes,1,opt,name=no_image,json=noImage,proto3,oneof"`
}ChartOptions_ImageOptions_Svg
type ChartOptions_ImageOptions_Svg struct {
// SVG format.
Svg *ChartOptions_ImageOptions_SvgOptions `protobuf:"bytes,2,opt,name=svg,proto3,oneof"`
}ChartOptions_ImageOptions_SvgOptions
type ChartOptions_ImageOptions_SvgOptions struct {
// contains filtered or unexported fields
}SVG options.
func (*ChartOptions_ImageOptions_SvgOptions) Descriptor
func (*ChartOptions_ImageOptions_SvgOptions) Descriptor() ([]byte, []int)Deprecated: Use ChartOptions_ImageOptions_SvgOptions.ProtoReflect.Descriptor instead.
func (*ChartOptions_ImageOptions_SvgOptions) ProtoMessage
func (*ChartOptions_ImageOptions_SvgOptions) ProtoMessage()func (*ChartOptions_ImageOptions_SvgOptions) ProtoReflect
func (x *ChartOptions_ImageOptions_SvgOptions) ProtoReflect() protoreflect.Messagefunc (*ChartOptions_ImageOptions_SvgOptions) Reset
func (x *ChartOptions_ImageOptions_SvgOptions) Reset()func (*ChartOptions_ImageOptions_SvgOptions) String
func (x *ChartOptions_ImageOptions_SvgOptions) String() stringChartQuery
type ChartQuery struct {
// Optional. Natural language instructions for generating the chart.
Instructions string `protobuf:"bytes,1,opt,name=instructions,proto3" json:"instructions,omitempty"`
// Optional. The name of a previously retrieved data result to use in the
// chart.
DataResultName string `protobuf:"bytes,2,opt,name=data_result_name,json=dataResultName,proto3" json:"data_result_name,omitempty"`
// contains filtered or unexported fields
}A query for generating a chart.
func (*ChartQuery) Descriptor
func (*ChartQuery) Descriptor() ([]byte, []int)Deprecated: Use ChartQuery.ProtoReflect.Descriptor instead.
func (*ChartQuery) GetDataResultName
func (x *ChartQuery) GetDataResultName() stringfunc (*ChartQuery) GetInstructions
func (x *ChartQuery) GetInstructions() stringfunc (*ChartQuery) ProtoMessage
func (*ChartQuery) ProtoMessage()func (*ChartQuery) ProtoReflect
func (x *ChartQuery) ProtoReflect() protoreflect.Messagefunc (*ChartQuery) Reset
func (x *ChartQuery) Reset()func (*ChartQuery) String
func (x *ChartQuery) String() stringChartResult
type ChartResult struct {
// Optional. A generated Vega chart config.
// See https://vega.github.io/vega/docs/config/
VegaConfig *structpb.Struct `protobuf:"bytes,2,opt,name=vega_config,json=vegaConfig,proto3" json:"vega_config,omitempty"`
// Optional. A rendering of the chart if this was requested in the context.
Image *Blob `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}The result of a chart generation query.
func (*ChartResult) Descriptor
func (*ChartResult) Descriptor() ([]byte, []int)Deprecated: Use ChartResult.ProtoReflect.Descriptor instead.
func (*ChartResult) GetImage
func (x *ChartResult) GetImage() *Blobfunc (*ChartResult) GetVegaConfig
func (x *ChartResult) GetVegaConfig() *structpb.Structfunc (*ChartResult) ProtoMessage
func (*ChartResult) ProtoMessage()func (*ChartResult) ProtoReflect
func (x *ChartResult) ProtoReflect() protoreflect.Messagefunc (*ChartResult) Reset
func (x *ChartResult) Reset()func (*ChartResult) String
func (x *ChartResult) String() stringChatRequest
type ChatRequest struct {
// Context Provider for the chat request.
// It can either be -
// inline_context, which is a context provided inline in the request.
// data_agent, which is a reference to a data agent resource.
// conversation_reference, which is a reference to a persisted conversation
// and context using conversation_id and agent_id.
//
// Types that are valid to be assigned to ContextProvider:
//
// *ChatRequest_InlineContext
// *ChatRequest_ConversationReference
// *ChatRequest_DataAgentContext
// *ChatRequest_ClientManagedResourceContext
ContextProvider isChatRequest_ContextProvider `protobuf_oneof:"context_provider"`
// Optional. The Google Cloud project to be used for quota and billing.
//
// Deprecated: Marked as deprecated in google/cloud/geminidataanalytics/v1beta/data_chat_service.proto.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// Required. The parent value for chat request.
// Pattern: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Content of current conversation.
Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
// Optional. The thinking mode to use for the agent loop.
// Defaults to THINKING_MODE_UNSPECIFIED if not specified.
ThinkingMode ChatRequest_ThinkingMode `protobuf:"varint,9,opt,name=thinking_mode,json=thinkingMode,proto3,enum=google.cloud.geminidataanalytics.v1beta.ChatRequest_ThinkingMode" json:"thinking_mode,omitempty"`
// contains filtered or unexported fields
}Request for Chat.
func (*ChatRequest) Descriptor
func (*ChatRequest) Descriptor() ([]byte, []int)Deprecated: Use ChatRequest.ProtoReflect.Descriptor instead.
func (*ChatRequest) GetClientManagedResourceContext
func (x *ChatRequest) GetClientManagedResourceContext() *ClientManagedResourceContextfunc (*ChatRequest) GetContextProvider
func (x *ChatRequest) GetContextProvider() isChatRequest_ContextProviderfunc (*ChatRequest) GetConversationReference
func (x *ChatRequest) GetConversationReference() *ConversationReferencefunc (*ChatRequest) GetDataAgentContext
func (x *ChatRequest) GetDataAgentContext() *DataAgentContextfunc (*ChatRequest) GetInlineContext
func (x *ChatRequest) GetInlineContext() *Contextfunc (*ChatRequest) GetMessages
func (x *ChatRequest) GetMessages() []*Messagefunc (*ChatRequest) GetParent
func (x *ChatRequest) GetParent() stringfunc (*ChatRequest) GetProject
func (x *ChatRequest) GetProject() stringDeprecated: Marked as deprecated in google/cloud/geminidataanalytics/v1beta/data_chat_service.proto.
func (*ChatRequest) GetThinkingMode
func (x *ChatRequest) GetThinkingMode() ChatRequest_ThinkingModefunc (*ChatRequest) ProtoMessage
func (*ChatRequest) ProtoMessage()func (*ChatRequest) ProtoReflect
func (x *ChatRequest) ProtoReflect() protoreflect.Messagefunc (*ChatRequest) Reset
func (x *ChatRequest) Reset()func (*ChatRequest) String
func (x *ChatRequest) String() stringChatRequest_ClientManagedResourceContext
type ChatRequest_ClientManagedResourceContext struct {
// Optional. Context with client managed resources.
// Some clients may not use GDA managed resources including
// conversations and agents, instead they create and manage their own
// conversations and agents resources.
ClientManagedResourceContext *ClientManagedResourceContext `protobuf:"bytes,105,opt,name=client_managed_resource_context,json=clientManagedResourceContext,proto3,oneof"`
}ChatRequest_ConversationReference
type ChatRequest_ConversationReference struct {
// Optional. Reference to a persisted conversation and agent context.
// Use this to chat with an Agent using managed conversation persistence.
ConversationReference *ConversationReference `protobuf:"bytes,103,opt,name=conversation_reference,json=conversationReference,proto3,oneof"`
}ChatRequest_DataAgentContext
type ChatRequest_DataAgentContext struct {
// Optional. Context for the chat request. Use this to chat with an Agent
// statelessly, without managed conversation persistence.
DataAgentContext *DataAgentContext `protobuf:"bytes,104,opt,name=data_agent_context,json=dataAgentContext,proto3,oneof"`
}ChatRequest_InlineContext
type ChatRequest_InlineContext struct {
// Optional. Inline context for the chat request. Use this to chat
// statelessly (without managed conversation persistence and without an
// Agent) by passing all context inline.
InlineContext *Context `protobuf:"bytes,101,opt,name=inline_context,json=inlineContext,proto3,oneof"`
}ChatRequest_ThinkingMode
type ChatRequest_ThinkingMode int32Mode of thinking for the agent.
ChatRequest_THINKING_MODE_UNSPECIFIED, ChatRequest_FAST, ChatRequest_THINKING
const (
// Unspecified thinking mode, agent will use THINKING mode by default.
ChatRequest_THINKING_MODE_UNSPECIFIED ChatRequest_ThinkingMode = 0
// Fast mode, answers quickly.
ChatRequest_FAST ChatRequest_ThinkingMode = 1
// Thinking mode, solves complex problems.
ChatRequest_THINKING ChatRequest_ThinkingMode = 2
)func (ChatRequest_ThinkingMode) Descriptor
func (ChatRequest_ThinkingMode) Descriptor() protoreflect.EnumDescriptorfunc (ChatRequest_ThinkingMode) Enum
func (x ChatRequest_ThinkingMode) Enum() *ChatRequest_ThinkingModefunc (ChatRequest_ThinkingMode) EnumDescriptor
func (ChatRequest_ThinkingMode) EnumDescriptor() ([]byte, []int)Deprecated: Use ChatRequest_ThinkingMode.Descriptor instead.
func (ChatRequest_ThinkingMode) Number
func (x ChatRequest_ThinkingMode) Number() protoreflect.EnumNumberfunc (ChatRequest_ThinkingMode) String
func (x ChatRequest_ThinkingMode) String() stringfunc (ChatRequest_ThinkingMode) Type
func (ChatRequest_ThinkingMode) Type() protoreflect.EnumTypeClarificationMessage
type ClarificationMessage struct {
// Required. A batch of clarification questions to ask the user.
Questions []*ClarificationQuestion `protobuf:"bytes,1,rep,name=questions,proto3" json:"questions,omitempty"`
// contains filtered or unexported fields
}A message of questions to help clarify the user's query. This is returned when the system cannot confidently answer the user's question.
func (*ClarificationMessage) Descriptor
func (*ClarificationMessage) Descriptor() ([]byte, []int)Deprecated: Use ClarificationMessage.ProtoReflect.Descriptor instead.
func (*ClarificationMessage) GetQuestions
func (x *ClarificationMessage) GetQuestions() []*ClarificationQuestionfunc (*ClarificationMessage) ProtoMessage
func (*ClarificationMessage) ProtoMessage()func (*ClarificationMessage) ProtoReflect
func (x *ClarificationMessage) ProtoReflect() protoreflect.Messagefunc (*ClarificationMessage) Reset
func (x *ClarificationMessage) Reset()func (*ClarificationMessage) String
func (x *ClarificationMessage) String() stringClarificationQuestion
type ClarificationQuestion struct {
// Required. The natural language question to ask the user.
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
// Required. The selection mode for this question.
SelectionMode ClarificationQuestion_SelectionMode `protobuf:"varint,2,opt,name=selection_mode,json=selectionMode,proto3,enum=google.cloud.geminidataanalytics.v1beta.ClarificationQuestion_SelectionMode" json:"selection_mode,omitempty"`
// Required. A list of distinct options for the user to choose from.
// The number of options is limited to a maximum of 5.
Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
// Optional. The type of clarification question.
ClarificationQuestionType ClarificationQuestion_ClarificationQuestionType `protobuf:"varint,4,opt,name=clarification_question_type,json=clarificationQuestionType,proto3,enum=google.cloud.geminidataanalytics.v1beta.ClarificationQuestion_ClarificationQuestionType" json:"clarification_question_type,omitempty"`
// contains filtered or unexported fields
}Represents a single question to the user to help clarify their query.
func (*ClarificationQuestion) Descriptor
func (*ClarificationQuestion) Descriptor() ([]byte, []int)Deprecated: Use ClarificationQuestion.ProtoReflect.Descriptor instead.
func (*ClarificationQuestion) GetClarificationQuestionType
func (x *ClarificationQuestion) GetClarificationQuestionType() ClarificationQuestion_ClarificationQuestionTypefunc (*ClarificationQuestion) GetOptions
func (x *ClarificationQuestion) GetOptions() []stringfunc (*ClarificationQuestion) GetQuestion
func (x *ClarificationQuestion) GetQuestion() stringfunc (*ClarificationQuestion) GetSelectionMode
func (x *ClarificationQuestion) GetSelectionMode() ClarificationQuestion_SelectionModefunc (*ClarificationQuestion) ProtoMessage
func (*ClarificationQuestion) ProtoMessage()func (*ClarificationQuestion) ProtoReflect
func (x *ClarificationQuestion) ProtoReflect() protoreflect.Messagefunc (*ClarificationQuestion) Reset
func (x *ClarificationQuestion) Reset()func (*ClarificationQuestion) String
func (x *ClarificationQuestion) String() stringClarificationQuestion_ClarificationQuestionType
type ClarificationQuestion_ClarificationQuestionType int32The type of clarification question. This enum may be extended with new values in the future.
ClarificationQuestion_CLARIFICATION_QUESTION_TYPE_UNSPECIFIED, ClarificationQuestion_FILTER_VALUES, ClarificationQuestion_FIELDS
const (
// Unspecified clarification question type.
ClarificationQuestion_CLARIFICATION_QUESTION_TYPE_UNSPECIFIED ClarificationQuestion_ClarificationQuestionType = 0
// The clarification question is for filter values.
ClarificationQuestion_FILTER_VALUES ClarificationQuestion_ClarificationQuestionType = 1
// The clarification question is for data fields. This is a generic term
// encompassing SQL columns, Looker fields (dimensions/measures), or
// nested data structure properties.
ClarificationQuestion_FIELDS ClarificationQuestion_ClarificationQuestionType = 2
)func (ClarificationQuestion_ClarificationQuestionType) Descriptor
func (ClarificationQuestion_ClarificationQuestionType) Descriptor() protoreflect.EnumDescriptorfunc (ClarificationQuestion_ClarificationQuestionType) Enum
func (x ClarificationQuestion_ClarificationQuestionType) Enum() *ClarificationQuestion_ClarificationQuestionTypefunc (ClarificationQuestion_ClarificationQuestionType) EnumDescriptor
func (ClarificationQuestion_ClarificationQuestionType) EnumDescriptor() ([]byte, []int)Deprecated: Use ClarificationQuestion_ClarificationQuestionType.Descriptor instead.
func (ClarificationQuestion_ClarificationQuestionType) Number
func (x ClarificationQuestion_ClarificationQuestionType) Number() protoreflect.EnumNumberfunc (ClarificationQuestion_ClarificationQuestionType) String
func (x ClarificationQuestion_ClarificationQuestionType) String() stringfunc (ClarificationQuestion_ClarificationQuestionType) Type
ClarificationQuestion_SelectionMode
type ClarificationQuestion_SelectionMode int32The selection mode for the clarification question.
ClarificationQuestion_SELECTION_MODE_UNSPECIFIED, ClarificationQuestion_SINGLE_SELECT, ClarificationQuestion_MULTI_SELECT
const (
// Unspecified selection mode.
ClarificationQuestion_SELECTION_MODE_UNSPECIFIED ClarificationQuestion_SelectionMode = 0
// The user can select only one option.
ClarificationQuestion_SINGLE_SELECT ClarificationQuestion_SelectionMode = 1
// The user can select multiple options.
ClarificationQuestion_MULTI_SELECT ClarificationQuestion_SelectionMode = 2
)func (ClarificationQuestion_SelectionMode) Descriptor
func (ClarificationQuestion_SelectionMode) Descriptor() protoreflect.EnumDescriptorfunc (ClarificationQuestion_SelectionMode) Enum
func (x ClarificationQuestion_SelectionMode) Enum() *ClarificationQuestion_SelectionModefunc (ClarificationQuestion_SelectionMode) EnumDescriptor
func (ClarificationQuestion_SelectionMode) EnumDescriptor() ([]byte, []int)Deprecated: Use ClarificationQuestion_SelectionMode.Descriptor instead.
func (ClarificationQuestion_SelectionMode) Number
func (x ClarificationQuestion_SelectionMode) Number() protoreflect.EnumNumberfunc (ClarificationQuestion_SelectionMode) String
func (x ClarificationQuestion_SelectionMode) String() stringfunc (ClarificationQuestion_SelectionMode) Type
func (ClarificationQuestion_SelectionMode) Type() protoreflect.EnumTypeClientManagedResourceContext
type ClientManagedResourceContext struct {
// Required. Context for the chat request. Use this to chat without GDA API
// managed conversation and agent persistence by passing all context inline.
InlineContext *Context `protobuf:"bytes,1,opt,name=inline_context,json=inlineContext,proto3" json:"inline_context,omitempty"`
// Optional. The client managed conversation id.
ConversationId string `protobuf:"bytes,2,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
// Optional. The client managed agent id.
AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
// contains filtered or unexported fields
}Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
func (*ClientManagedResourceContext) Descriptor
func (*ClientManagedResourceContext) Descriptor() ([]byte, []int)Deprecated: Use ClientManagedResourceContext.ProtoReflect.Descriptor instead.
func (*ClientManagedResourceContext) GetAgentId
func (x *ClientManagedResourceContext) GetAgentId() stringfunc (*ClientManagedResourceContext) GetConversationId
func (x *ClientManagedResourceContext) GetConversationId() stringfunc (*ClientManagedResourceContext) GetInlineContext
func (x *ClientManagedResourceContext) GetInlineContext() *Contextfunc (*ClientManagedResourceContext) ProtoMessage
func (*ClientManagedResourceContext) ProtoMessage()func (*ClientManagedResourceContext) ProtoReflect
func (x *ClientManagedResourceContext) ProtoReflect() protoreflect.Messagefunc (*ClientManagedResourceContext) Reset
func (x *ClientManagedResourceContext) Reset()func (*ClientManagedResourceContext) String
func (x *ClientManagedResourceContext) String() stringCloudSqlDatabaseReference
type CloudSqlDatabaseReference struct {
// Required. The engine of the Cloud SQL instance.
Engine CloudSqlDatabaseReference_Engine `protobuf:"varint,1,opt,name=engine,proto3,enum=google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference_Engine" json:"engine,omitempty"`
// Required. The project the instance belongs to.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The region of the instance.
Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
// Required. The instance id.
InstanceId string `protobuf:"bytes,4,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Required. The database id.
DatabaseId string `protobuf:"bytes,5,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
// Optional. The table ids. Denotes all tables if unset.
TableIds []string `protobuf:"bytes,7,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single CloudSQL database.
func (*CloudSqlDatabaseReference) Descriptor
func (*CloudSqlDatabaseReference) Descriptor() ([]byte, []int)Deprecated: Use CloudSqlDatabaseReference.ProtoReflect.Descriptor instead.
func (*CloudSqlDatabaseReference) GetDatabaseId
func (x *CloudSqlDatabaseReference) GetDatabaseId() stringfunc (*CloudSqlDatabaseReference) GetEngine
func (x *CloudSqlDatabaseReference) GetEngine() CloudSqlDatabaseReference_Enginefunc (*CloudSqlDatabaseReference) GetInstanceId
func (x *CloudSqlDatabaseReference) GetInstanceId() stringfunc (*CloudSqlDatabaseReference) GetProjectId
func (x *CloudSqlDatabaseReference) GetProjectId() stringfunc (*CloudSqlDatabaseReference) GetRegion
func (x *CloudSqlDatabaseReference) GetRegion() stringfunc (*CloudSqlDatabaseReference) GetTableIds
func (x *CloudSqlDatabaseReference) GetTableIds() []stringfunc (*CloudSqlDatabaseReference) ProtoMessage
func (*CloudSqlDatabaseReference) ProtoMessage()func (*CloudSqlDatabaseReference) ProtoReflect
func (x *CloudSqlDatabaseReference) ProtoReflect() protoreflect.Messagefunc (*CloudSqlDatabaseReference) Reset
func (x *CloudSqlDatabaseReference) Reset()func (*CloudSqlDatabaseReference) String
func (x *CloudSqlDatabaseReference) String() stringCloudSqlDatabaseReference_Engine
type CloudSqlDatabaseReference_Engine int32The database engine.
CloudSqlDatabaseReference_ENGINE_UNSPECIFIED, CloudSqlDatabaseReference_POSTGRESQL, CloudSqlDatabaseReference_MYSQL
const (
// Engine is not specified.
CloudSqlDatabaseReference_ENGINE_UNSPECIFIED CloudSqlDatabaseReference_Engine = 0
// PostgreSQL
CloudSqlDatabaseReference_POSTGRESQL CloudSqlDatabaseReference_Engine = 1
// MySQL
CloudSqlDatabaseReference_MYSQL CloudSqlDatabaseReference_Engine = 2
)func (CloudSqlDatabaseReference_Engine) Descriptor
func (CloudSqlDatabaseReference_Engine) Descriptor() protoreflect.EnumDescriptorfunc (CloudSqlDatabaseReference_Engine) Enum
func (x CloudSqlDatabaseReference_Engine) Enum() *CloudSqlDatabaseReference_Enginefunc (CloudSqlDatabaseReference_Engine) EnumDescriptor
func (CloudSqlDatabaseReference_Engine) EnumDescriptor() ([]byte, []int)Deprecated: Use CloudSqlDatabaseReference_Engine.Descriptor instead.
func (CloudSqlDatabaseReference_Engine) Number
func (x CloudSqlDatabaseReference_Engine) Number() protoreflect.EnumNumberfunc (CloudSqlDatabaseReference_Engine) String
func (x CloudSqlDatabaseReference_Engine) String() stringfunc (CloudSqlDatabaseReference_Engine) Type
func (CloudSqlDatabaseReference_Engine) Type() protoreflect.EnumTypeCloudSqlReference
type CloudSqlReference struct {
// Required. Singular proto that supports specifying which database and tables
// to include.
DatabaseReference *CloudSqlDatabaseReference `protobuf:"bytes,1,opt,name=database_reference,json=databaseReference,proto3" json:"database_reference,omitempty"`
// Optional. Parameters for retrieving data from Agent Context.
AgentContextReference *AgentContextReference `protobuf:"bytes,2,opt,name=agent_context_reference,json=agentContextReference,proto3" json:"agent_context_reference,omitempty"`
// contains filtered or unexported fields
}Message representing reference to a CloudSQL database and agent context.
Only supported for the QueryData method.
func (*CloudSqlReference) Descriptor
func (*CloudSqlReference) Descriptor() ([]byte, []int)Deprecated: Use CloudSqlReference.ProtoReflect.Descriptor instead.
func (*CloudSqlReference) GetAgentContextReference
func (x *CloudSqlReference) GetAgentContextReference() *AgentContextReferencefunc (*CloudSqlReference) GetDatabaseReference
func (x *CloudSqlReference) GetDatabaseReference() *CloudSqlDatabaseReferencefunc (*CloudSqlReference) ProtoMessage
func (*CloudSqlReference) ProtoMessage()func (*CloudSqlReference) ProtoReflect
func (x *CloudSqlReference) ProtoReflect() protoreflect.Messagefunc (*CloudSqlReference) Reset
func (x *CloudSqlReference) Reset()func (*CloudSqlReference) String
func (x *CloudSqlReference) String() stringContext
type Context struct {
// 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.
SystemInstruction string `protobuf:"bytes,1,opt,name=system_instruction,json=systemInstruction,proto3" json:"system_instruction,omitempty"`
// Required. Data sources that are available for answering the question.
DatasourceReferences *DatasourceReferences `protobuf:"bytes,7,opt,name=datasource_references,json=datasourceReferences,proto3" json:"datasource_references,omitempty"`
// Optional. Additional options for the conversation.
Options *ConversationOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
// Optional. A list of example queries, providing examples of relevant and
// commonly used SQL queries and their corresponding natural language queries
// optionally present. Currently only used for BigQuery data sources.
ExampleQueries []*ExampleQuery `protobuf:"bytes,5,rep,name=example_queries,json=exampleQueries,proto3" json:"example_queries,omitempty"`
// Optional. A list of golden queries, providing examples of relevant and
// commonly used Looker queries and their corresponding natural language
// queries optionally present.
LookerGoldenQueries []*LookerGoldenQuery `protobuf:"bytes,11,rep,name=looker_golden_queries,json=lookerGoldenQueries,proto3" json:"looker_golden_queries,omitempty"`
// Optional. Term definitions (currently, only user authored)
GlossaryTerms []*GlossaryTerm `protobuf:"bytes,8,rep,name=glossary_terms,json=glossaryTerms,proto3" json:"glossary_terms,omitempty"`
// Optional. Relationships between table schema, including referencing and
// referenced columns.
SchemaRelationships []*Context_SchemaRelationship `protobuf:"bytes,9,rep,name=schema_relationships,json=schemaRelationships,proto3" json:"schema_relationships,omitempty"`
// contains filtered or unexported fields
}A collection of context to apply to this conversation
func (*Context) Descriptor
Deprecated: Use Context.ProtoReflect.Descriptor instead.
func (*Context) GetDatasourceReferences
func (x *Context) GetDatasourceReferences() *DatasourceReferencesfunc (*Context) GetExampleQueries
func (x *Context) GetExampleQueries() []*ExampleQueryfunc (*Context) GetGlossaryTerms
func (x *Context) GetGlossaryTerms() []*GlossaryTermfunc (*Context) GetLookerGoldenQueries
func (x *Context) GetLookerGoldenQueries() []*LookerGoldenQueryfunc (*Context) GetOptions
func (x *Context) GetOptions() *ConversationOptionsfunc (*Context) GetSchemaRelationships
func (x *Context) GetSchemaRelationships() []*Context_SchemaRelationshipfunc (*Context) GetSystemInstruction
func (*Context) ProtoMessage
func (*Context) ProtoMessage()func (*Context) ProtoReflect
func (x *Context) ProtoReflect() protoreflect.Messagefunc (*Context) Reset
func (x *Context) Reset()func (*Context) String
Context_SchemaRelationship
type Context_SchemaRelationship struct {
// An ordered list of fields for the join from the first table.
// The size of this list must be the same as `right_schema_paths`.
// Each field at index i in this list must correspond to a field at the same
// index in the `right_schema_paths` list.
LeftSchemaPaths *Context_SchemaRelationship_SchemaPaths `protobuf:"bytes,1,opt,name=left_schema_paths,json=leftSchemaPaths,proto3" json:"left_schema_paths,omitempty"`
// An ordered list of fields for the join from the second table.
// The size of this list must be the same as `left_schema_paths`.
// Each field at index i in this list must correspond to a field at the same
// index in the `left_schema_paths` list.
RightSchemaPaths *Context_SchemaRelationship_SchemaPaths `protobuf:"bytes,2,opt,name=right_schema_paths,json=rightSchemaPaths,proto3" json:"right_schema_paths,omitempty"`
// Sources which generated the schema relation edge.
Sources []Context_SchemaRelationship_Source `protobuf:"varint,3,rep,packed,name=sources,proto3,enum=google.cloud.geminidataanalytics.v1beta.Context_SchemaRelationship_Source" json:"sources,omitempty"`
// A confidence score for the suggested relationship.
// Manually added edges have the highest confidence score.
ConfidenceScore float32 `protobuf:"fixed32,4,opt,name=confidence_score,json=confidenceScore,proto3" json:"confidence_score,omitempty"`
// contains filtered or unexported fields
}The relationship between two tables, including referencing and referenced columns. This is a derived context retrieved from Dataplex Dataset Insights.
func (*Context_SchemaRelationship) Descriptor
func (*Context_SchemaRelationship) Descriptor() ([]byte, []int)Deprecated: Use Context_SchemaRelationship.ProtoReflect.Descriptor instead.
func (*Context_SchemaRelationship) GetConfidenceScore
func (x *Context_SchemaRelationship) GetConfidenceScore() float32func (*Context_SchemaRelationship) GetLeftSchemaPaths
func (x *Context_SchemaRelationship) GetLeftSchemaPaths() *Context_SchemaRelationship_SchemaPathsfunc (*Context_SchemaRelationship) GetRightSchemaPaths
func (x *Context_SchemaRelationship) GetRightSchemaPaths() *Context_SchemaRelationship_SchemaPathsfunc (*Context_SchemaRelationship) GetSources
func (x *Context_SchemaRelationship) GetSources() []Context_SchemaRelationship_Sourcefunc (*Context_SchemaRelationship) ProtoMessage
func (*Context_SchemaRelationship) ProtoMessage()func (*Context_SchemaRelationship) ProtoReflect
func (x *Context_SchemaRelationship) ProtoReflect() protoreflect.Messagefunc (*Context_SchemaRelationship) Reset
func (x *Context_SchemaRelationship) Reset()func (*Context_SchemaRelationship) String
func (x *Context_SchemaRelationship) String() stringContext_SchemaRelationship_SchemaPaths
type Context_SchemaRelationship_SchemaPaths struct {
// The service-qualified full resource name of the table
// Ex:
// bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
TableFqn string `protobuf:"bytes,1,opt,name=table_fqn,json=tableFqn,proto3" json:"table_fqn,omitempty"`
// The ordered list of paths within the table schema.
Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
// contains filtered or unexported fields
}Represents an ordered set of paths within the table schema.
func (*Context_SchemaRelationship_SchemaPaths) Descriptor
func (*Context_SchemaRelationship_SchemaPaths) Descriptor() ([]byte, []int)Deprecated: Use Context_SchemaRelationship_SchemaPaths.ProtoReflect.Descriptor instead.
func (*Context_SchemaRelationship_SchemaPaths) GetPaths
func (x *Context_SchemaRelationship_SchemaPaths) GetPaths() []stringfunc (*Context_SchemaRelationship_SchemaPaths) GetTableFqn
func (x *Context_SchemaRelationship_SchemaPaths) GetTableFqn() stringfunc (*Context_SchemaRelationship_SchemaPaths) ProtoMessage
func (*Context_SchemaRelationship_SchemaPaths) ProtoMessage()func (*Context_SchemaRelationship_SchemaPaths) ProtoReflect
func (x *Context_SchemaRelationship_SchemaPaths) ProtoReflect() protoreflect.Messagefunc (*Context_SchemaRelationship_SchemaPaths) Reset
func (x *Context_SchemaRelationship_SchemaPaths) Reset()func (*Context_SchemaRelationship_SchemaPaths) String
func (x *Context_SchemaRelationship_SchemaPaths) String() stringContext_SchemaRelationship_Source
type Context_SchemaRelationship_Source int32Source which generated the schema relation edge.
Context_SchemaRelationship_SOURCE_UNSPECIFIED, Context_SchemaRelationship_BIGQUERY_JOB_HISTORY, Context_SchemaRelationship_LLM_SUGGESTED, Context_SchemaRelationship_BIGQUERY_TABLE_CONSTRAINTS
const (
// The source of the schema relationship is unspecified.
Context_SchemaRelationship_SOURCE_UNSPECIFIED Context_SchemaRelationship_Source = 0
// The source of the schema relationship is BigQuery job history.
Context_SchemaRelationship_BIGQUERY_JOB_HISTORY Context_SchemaRelationship_Source = 1
// The source of the schema relationship is LLM suggested.
Context_SchemaRelationship_LLM_SUGGESTED Context_SchemaRelationship_Source = 2
// The source of the schema relationship is BigQuery table constraints.
Context_SchemaRelationship_BIGQUERY_TABLE_CONSTRAINTS Context_SchemaRelationship_Source = 3
)func (Context_SchemaRelationship_Source) Descriptor
func (Context_SchemaRelationship_Source) Descriptor() protoreflect.EnumDescriptorfunc (Context_SchemaRelationship_Source) Enum
func (x Context_SchemaRelationship_Source) Enum() *Context_SchemaRelationship_Sourcefunc (Context_SchemaRelationship_Source) EnumDescriptor
func (Context_SchemaRelationship_Source) EnumDescriptor() ([]byte, []int)Deprecated: Use Context_SchemaRelationship_Source.Descriptor instead.
func (Context_SchemaRelationship_Source) Number
func (x Context_SchemaRelationship_Source) Number() protoreflect.EnumNumberfunc (Context_SchemaRelationship_Source) String
func (x Context_SchemaRelationship_Source) String() stringfunc (Context_SchemaRelationship_Source) Type
func (Context_SchemaRelationship_Source) Type() protoreflect.EnumTypeConversation
type Conversation struct {
// Optional. Identifier. The unique resource name of a conversation. Format:
// `projects/{project}/locations/{location}/conversations/{conversation_id}`
// `{conversation_id}` is the resource id and should be 63 characters or less
// and must match the format described in
// https://google.aip.dev/122#resource-id-segments
//
// Example:
// `projects/1234567890/locations/global/conversations/my-conversation`.
//
// It is recommended to skip setting this field during conversation creation
// as it will be inferred automatically and overwritten with the
// {parent}/conversations/{conversation_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Agent(s) in the conversation.
// Currently, only one agent is supported. This field is repeated to allow
// for future support of multiple agents in a conversation.
// Format: `projects/{project}/locations/{location}/dataAgents/{agent}`
Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"`
// Output only. Creation timestamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp of the last used conversation.
LastUsedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_used_time,json=lastUsedTime,proto3" json:"last_used_time,omitempty"`
// Optional. Open-ended and user-defined labels that can be set by the client
// to tag a conversation (e.g. to filter conversations for specific
// surfaces/products).
Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}Message for a conversation.
func (*Conversation) Descriptor
func (*Conversation) Descriptor() ([]byte, []int)Deprecated: Use Conversation.ProtoReflect.Descriptor instead.
func (*Conversation) GetAgents
func (x *Conversation) GetAgents() []stringfunc (*Conversation) GetCreateTime
func (x *Conversation) GetCreateTime() *timestamppb.Timestampfunc (*Conversation) GetLabels
func (x *Conversation) GetLabels() map[string]stringfunc (*Conversation) GetLastUsedTime
func (x *Conversation) GetLastUsedTime() *timestamppb.Timestampfunc (*Conversation) GetName
func (x *Conversation) GetName() stringfunc (*Conversation) ProtoMessage
func (*Conversation) ProtoMessage()func (*Conversation) ProtoReflect
func (x *Conversation) ProtoReflect() protoreflect.Messagefunc (*Conversation) Reset
func (x *Conversation) Reset()func (*Conversation) String
func (x *Conversation) String() stringConversationOptions
type ConversationOptions struct {
// Optional. Options for chart generation.
Chart *ChartOptions `protobuf:"bytes,1,opt,name=chart,proto3" json:"chart,omitempty"`
// Optional. Options for analysis.
Analysis *AnalysisOptions `protobuf:"bytes,2,opt,name=analysis,proto3" json:"analysis,omitempty"`
// Optional. Options for datasources.
Datasource *DatasourceOptions `protobuf:"bytes,3,opt,name=datasource,proto3" json:"datasource,omitempty"`
// contains filtered or unexported fields
}Options for the conversation.
func (*ConversationOptions) Descriptor
func (*ConversationOptions) Descriptor() ([]byte, []int)Deprecated: Use ConversationOptions.ProtoReflect.Descriptor instead.
func (*ConversationOptions) GetAnalysis
func (x *ConversationOptions) GetAnalysis() *AnalysisOptionsfunc (*ConversationOptions) GetChart
func (x *ConversationOptions) GetChart() *ChartOptionsfunc (*ConversationOptions) GetDatasource
func (x *ConversationOptions) GetDatasource() *DatasourceOptionsfunc (*ConversationOptions) ProtoMessage
func (*ConversationOptions) ProtoMessage()func (*ConversationOptions) ProtoReflect
func (x *ConversationOptions) ProtoReflect() protoreflect.Messagefunc (*ConversationOptions) Reset
func (x *ConversationOptions) Reset()func (*ConversationOptions) String
func (x *ConversationOptions) String() stringConversationReference
type ConversationReference struct {
// Required. Name of the conversation resource.
// Format:
// `projects/{project}/locations/{location}/conversations/{conversation_id}`
Conversation string `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"`
// Required. Context for the chat request using a data agent.
DataAgentContext *DataAgentContext `protobuf:"bytes,3,opt,name=data_agent_context,json=dataAgentContext,proto3" json:"data_agent_context,omitempty"`
// contains filtered or unexported fields
}Reference to a persisted conversation and agent context.
func (*ConversationReference) Descriptor
func (*ConversationReference) Descriptor() ([]byte, []int)Deprecated: Use ConversationReference.ProtoReflect.Descriptor instead.
func (*ConversationReference) GetConversation
func (x *ConversationReference) GetConversation() stringfunc (*ConversationReference) GetDataAgentContext
func (x *ConversationReference) GetDataAgentContext() *DataAgentContextfunc (*ConversationReference) ProtoMessage
func (*ConversationReference) ProtoMessage()func (*ConversationReference) ProtoReflect
func (x *ConversationReference) ProtoReflect() protoreflect.Messagefunc (*ConversationReference) Reset
func (x *ConversationReference) Reset()func (*ConversationReference) String
func (x *ConversationReference) String() stringCreateConversationRequest
type CreateConversationRequest struct {
// Required. Parent value for CreateConversationRequest.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The conversation id of the conversation to create.
// Must be unique within the parent.
// The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
// If not provided, the server will auto-generate a value for the id.
ConversationId string `protobuf:"bytes,2,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
// Required. The conversation to create.
Conversation *Conversation `protobuf:"bytes,3,opt,name=conversation,proto3" json:"conversation,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for creating a conversation.
func (*CreateConversationRequest) Descriptor
func (*CreateConversationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversationRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationRequest) GetConversation
func (x *CreateConversationRequest) GetConversation() *Conversationfunc (*CreateConversationRequest) GetConversationId
func (x *CreateConversationRequest) GetConversationId() stringfunc (*CreateConversationRequest) GetParent
func (x *CreateConversationRequest) GetParent() stringfunc (*CreateConversationRequest) GetRequestId
func (x *CreateConversationRequest) GetRequestId() stringfunc (*CreateConversationRequest) ProtoMessage
func (*CreateConversationRequest) ProtoMessage()func (*CreateConversationRequest) ProtoReflect
func (x *CreateConversationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversationRequest) Reset
func (x *CreateConversationRequest) Reset()func (*CreateConversationRequest) String
func (x *CreateConversationRequest) String() stringCreateDataAgentRequest
type CreateDataAgentRequest struct {
// Required. Value for parent.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Id of the requesting object. Must be unique within the parent.
// The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
// If not provided, the server will auto-generate a value for the id.
DataAgentId string `protobuf:"bytes,2,opt,name=data_agent_id,json=dataAgentId,proto3" json:"data_agent_id,omitempty"`
// Required. The resource being created.
DataAgent *DataAgent `protobuf:"bytes,3,opt,name=data_agent,json=dataAgent,proto3" json:"data_agent,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for creating a DataAgent.
func (*CreateDataAgentRequest) Descriptor
func (*CreateDataAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDataAgentRequest.ProtoReflect.Descriptor instead.
func (*CreateDataAgentRequest) GetDataAgent
func (x *CreateDataAgentRequest) GetDataAgent() *DataAgentfunc (*CreateDataAgentRequest) GetDataAgentId
func (x *CreateDataAgentRequest) GetDataAgentId() stringfunc (*CreateDataAgentRequest) GetParent
func (x *CreateDataAgentRequest) GetParent() stringfunc (*CreateDataAgentRequest) GetRequestId
func (x *CreateDataAgentRequest) GetRequestId() stringfunc (*CreateDataAgentRequest) ProtoMessage
func (*CreateDataAgentRequest) ProtoMessage()func (*CreateDataAgentRequest) ProtoReflect
func (x *CreateDataAgentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDataAgentRequest) Reset
func (x *CreateDataAgentRequest) Reset()func (*CreateDataAgentRequest) String
func (x *CreateDataAgentRequest) String() stringCredentials
type Credentials struct {
// The kind of credentials.
// }
//
// Types that are valid to be assigned to Kind:
//
// *Credentials_Oauth
Kind isCredentials_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}Represents different forms of credential specification.
func (*Credentials) Descriptor
func (*Credentials) Descriptor() ([]byte, []int)Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
func (*Credentials) GetKind
func (x *Credentials) GetKind() isCredentials_Kindfunc (*Credentials) GetOauth
func (x *Credentials) GetOauth() *OAuthCredentialsfunc (*Credentials) ProtoMessage
func (*Credentials) ProtoMessage()func (*Credentials) ProtoReflect
func (x *Credentials) ProtoReflect() protoreflect.Messagefunc (*Credentials) Reset
func (x *Credentials) Reset()func (*Credentials) String
func (x *Credentials) String() stringCredentials_Oauth
type Credentials_Oauth struct {
// OAuth credentials.
Oauth *OAuthCredentials `protobuf:"bytes,1,opt,name=oauth,proto3,oneof"`
}DataAgent
type DataAgent struct {
// The type of the agent. Can be one of the following:
// * Data analytics agent.
// * Data engineering agent
//
// Types that are valid to be assigned to Type:
//
// *DataAgent_DataAnalyticsAgent
Type isDataAgent_Type `protobuf_oneof:"type"`
// Optional. Identifier. The unique resource name of a DataAgent.
// Format:
// `projects/{project}/locations/{location}/dataAgents/{data_agent_id}`
// `{data_agent}` is the resource id and should be 63 characters or less and
// must match the format described in
// https://google.aip.dev/122#resource-id-segments
//
// Example: `projects/1234567890/locations/global/dataAgents/my-agent`.
//
// It is recommended to skip setting this field during agent creation as it
// will be inferred automatically and overwritten with the
// {parent}/dataAgents/{data_agent_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. User friendly display name.
//
// * Must be between 1-256 characters.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. Description of the agent.
//
// * Must be between 1-1024 characters.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Labels to help users filter related agents.
// For example, "sales", "business", "etl", and so on.
// Note labels are used only for filtering and not for policies.
// See the [labels
// documentation](https://cloud.google.com/resource-manager/docs/labels-overview)
// for more details on label usage.
Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Output only. The time when the data agent was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the data agent was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. [Output only] The time the data agent was soft deleted.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Output only. Timestamp in UTC of when this data agent is considered
// expired. This is *always* provided on output, regardless of what was sent
// on input.
PurgeTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"`
// contains filtered or unexported fields
}Message describing a DataAgent object.
func (*DataAgent) Descriptor
Deprecated: Use DataAgent.ProtoReflect.Descriptor instead.
func (*DataAgent) GetCreateTime
func (x *DataAgent) GetCreateTime() *timestamppb.Timestampfunc (*DataAgent) GetDataAnalyticsAgent
func (x *DataAgent) GetDataAnalyticsAgent() *DataAnalyticsAgentfunc (*DataAgent) GetDeleteTime
func (x *DataAgent) GetDeleteTime() *timestamppb.Timestampfunc (*DataAgent) GetDescription
func (*DataAgent) GetDisplayName
func (*DataAgent) GetLabels
func (*DataAgent) GetName
func (*DataAgent) GetPurgeTime
func (x *DataAgent) GetPurgeTime() *timestamppb.Timestampfunc (*DataAgent) GetType
func (x *DataAgent) GetType() isDataAgent_Typefunc (*DataAgent) GetUpdateTime
func (x *DataAgent) GetUpdateTime() *timestamppb.Timestampfunc (*DataAgent) ProtoMessage
func (*DataAgent) ProtoMessage()func (*DataAgent) ProtoReflect
func (x *DataAgent) ProtoReflect() protoreflect.Messagefunc (*DataAgent) Reset
func (x *DataAgent) Reset()func (*DataAgent) String
DataAgentContext
type DataAgentContext struct {
// Required. The name of the data agent resource.
DataAgent string `protobuf:"bytes,1,opt,name=data_agent,json=dataAgent,proto3" json:"data_agent,omitempty"`
// Optional. The credentials to use when calling the Looker data source.
//
// Currently supports both OAuth token and API key-based credentials, as
// described in
// [Authentication with an
// SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
Credentials *Credentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
// Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
ContextVersion DataAgentContext_ContextVersion `protobuf:"varint,3,opt,name=context_version,json=contextVersion,proto3,enum=google.cloud.geminidataanalytics.v1beta.DataAgentContext_ContextVersion" json:"context_version,omitempty"`
// contains filtered or unexported fields
}Context for the chat request using a data agent.
func (*DataAgentContext) Descriptor
func (*DataAgentContext) Descriptor() ([]byte, []int)Deprecated: Use DataAgentContext.ProtoReflect.Descriptor instead.
func (*DataAgentContext) GetContextVersion
func (x *DataAgentContext) GetContextVersion() DataAgentContext_ContextVersionfunc (*DataAgentContext) GetCredentials
func (x *DataAgentContext) GetCredentials() *Credentialsfunc (*DataAgentContext) GetDataAgent
func (x *DataAgentContext) GetDataAgent() stringfunc (*DataAgentContext) ProtoMessage
func (*DataAgentContext) ProtoMessage()func (*DataAgentContext) ProtoReflect
func (x *DataAgentContext) ProtoReflect() protoreflect.Messagefunc (*DataAgentContext) Reset
func (x *DataAgentContext) Reset()func (*DataAgentContext) String
func (x *DataAgentContext) String() stringDataAgentContext_ContextVersion
type DataAgentContext_ContextVersion int32List of context versions supported by DCS. There are two versions of context. This is to maintain versioning for the data agent.
DataAgentContext_CONTEXT_VERSION_UNSPECIFIED, DataAgentContext_STAGING, DataAgentContext_PUBLISHED
const (
// Unspecified or unrecognized.
DataAgentContext_CONTEXT_VERSION_UNSPECIFIED DataAgentContext_ContextVersion = 0
// Using this version, DCS will use the latest staging context for the
// data agent.
DataAgentContext_STAGING DataAgentContext_ContextVersion = 1
// Using this version, DCS will use the latest published context for the
// data agent.
DataAgentContext_PUBLISHED DataAgentContext_ContextVersion = 2
)func (DataAgentContext_ContextVersion) Descriptor
func (DataAgentContext_ContextVersion) Descriptor() protoreflect.EnumDescriptorfunc (DataAgentContext_ContextVersion) Enum
func (x DataAgentContext_ContextVersion) Enum() *DataAgentContext_ContextVersionfunc (DataAgentContext_ContextVersion) EnumDescriptor
func (DataAgentContext_ContextVersion) EnumDescriptor() ([]byte, []int)Deprecated: Use DataAgentContext_ContextVersion.Descriptor instead.
func (DataAgentContext_ContextVersion) Number
func (x DataAgentContext_ContextVersion) Number() protoreflect.EnumNumberfunc (DataAgentContext_ContextVersion) String
func (x DataAgentContext_ContextVersion) String() stringfunc (DataAgentContext_ContextVersion) Type
func (DataAgentContext_ContextVersion) Type() protoreflect.EnumTypeDataAgentServiceClient
type DataAgentServiceClient interface {
// Lists DataAgents in a given project and location.
ListDataAgents(ctx context.Context, in *ListDataAgentsRequest, opts ...grpc.CallOption) (*ListDataAgentsResponse, error)
// Lists DataAgents that are accessible to the caller in a given project and
// location.
ListAccessibleDataAgents(ctx context.Context, in *ListAccessibleDataAgentsRequest, opts ...grpc.CallOption) (*ListAccessibleDataAgentsResponse, error)
// Gets details of a single DataAgent.
GetDataAgent(ctx context.Context, in *GetDataAgentRequest, opts ...grpc.CallOption) (*DataAgent, error)
// Creates a new DataAgent in a given project and location.
CreateDataAgent(ctx context.Context, in *CreateDataAgentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a new DataAgent in a given project and location synchronously.
CreateDataAgentSync(ctx context.Context, in *CreateDataAgentRequest, opts ...grpc.CallOption) (*DataAgent, error)
// Updates the parameters of a single DataAgent.
UpdateDataAgent(ctx context.Context, in *UpdateDataAgentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single DataAgent synchronously.
UpdateDataAgentSync(ctx context.Context, in *UpdateDataAgentRequest, opts ...grpc.CallOption) (*DataAgent, error)
// Deletes a single DataAgent.
DeleteDataAgent(ctx context.Context, in *DeleteDataAgentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single DataAgent synchronously.
DeleteDataAgentSync(ctx context.Context, in *DeleteDataAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the IAM policy for DataAgent
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the IAM policy for a DataAgent.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
}DataAgentServiceClient is the client API for DataAgentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataAgentServiceClient
func NewDataAgentServiceClient(cc grpc.ClientConnInterface) DataAgentServiceClientDataAgentServiceServer
type DataAgentServiceServer interface {
// Lists DataAgents in a given project and location.
ListDataAgents(context.Context, *ListDataAgentsRequest) (*ListDataAgentsResponse, error)
// Lists DataAgents that are accessible to the caller in a given project and
// location.
ListAccessibleDataAgents(context.Context, *ListAccessibleDataAgentsRequest) (*ListAccessibleDataAgentsResponse, error)
// Gets details of a single DataAgent.
GetDataAgent(context.Context, *GetDataAgentRequest) (*DataAgent, error)
// Creates a new DataAgent in a given project and location.
CreateDataAgent(context.Context, *CreateDataAgentRequest) (*longrunningpb.Operation, error)
// Creates a new DataAgent in a given project and location synchronously.
CreateDataAgentSync(context.Context, *CreateDataAgentRequest) (*DataAgent, error)
// Updates the parameters of a single DataAgent.
UpdateDataAgent(context.Context, *UpdateDataAgentRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single DataAgent synchronously.
UpdateDataAgentSync(context.Context, *UpdateDataAgentRequest) (*DataAgent, error)
// Deletes a single DataAgent.
DeleteDataAgent(context.Context, *DeleteDataAgentRequest) (*longrunningpb.Operation, error)
// Deletes a single DataAgent synchronously.
DeleteDataAgentSync(context.Context, *DeleteDataAgentRequest) (*emptypb.Empty, error)
// Gets the IAM policy for DataAgent
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the IAM policy for a DataAgent.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
}DataAgentServiceServer is the server API for DataAgentService service. All implementations should embed UnimplementedDataAgentServiceServer for forward compatibility
DataAgent_DataAnalyticsAgent
type DataAgent_DataAnalyticsAgent struct {
// Data analytics agent.
DataAnalyticsAgent *DataAnalyticsAgent `protobuf:"bytes,101,opt,name=data_analytics_agent,json=dataAnalyticsAgent,proto3,oneof"`
}DataAnalyticsAgent
type DataAnalyticsAgent struct {
// Optional. The staging context for the agent.
// This context is used to test and validate changes before publishing.
StagingContext *Context `protobuf:"bytes,5,opt,name=staging_context,json=stagingContext,proto3" json:"staging_context,omitempty"`
// Optional. The published context for the agent.
// This context is used by the Chat API in production.
PublishedContext *Context `protobuf:"bytes,6,opt,name=published_context,json=publishedContext,proto3" json:"published_context,omitempty"`
// Output only. The last published context for the agent.
// This is an output-only field populated by the system when the
// published context is updated. It is used to restore the agent to a
// previous state.
LastPublishedContext *Context `protobuf:"bytes,7,opt,name=last_published_context,json=lastPublishedContext,proto3" json:"last_published_context,omitempty"`
// contains filtered or unexported fields
}Message describing a DataAnalyticsAgent object.
func (*DataAnalyticsAgent) Descriptor
func (*DataAnalyticsAgent) Descriptor() ([]byte, []int)Deprecated: Use DataAnalyticsAgent.ProtoReflect.Descriptor instead.
func (*DataAnalyticsAgent) GetLastPublishedContext
func (x *DataAnalyticsAgent) GetLastPublishedContext() *Contextfunc (*DataAnalyticsAgent) GetPublishedContext
func (x *DataAnalyticsAgent) GetPublishedContext() *Contextfunc (*DataAnalyticsAgent) GetStagingContext
func (x *DataAnalyticsAgent) GetStagingContext() *Contextfunc (*DataAnalyticsAgent) ProtoMessage
func (*DataAnalyticsAgent) ProtoMessage()func (*DataAnalyticsAgent) ProtoReflect
func (x *DataAnalyticsAgent) ProtoReflect() protoreflect.Messagefunc (*DataAnalyticsAgent) Reset
func (x *DataAnalyticsAgent) Reset()func (*DataAnalyticsAgent) String
func (x *DataAnalyticsAgent) String() stringDataChatServiceClient
type DataChatServiceClient interface {
// Answers a data question by generating a stream of
// [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.
Chat(ctx context.Context, in *ChatRequest, opts ...grpc.CallOption) (DataChatService_ChatClient, error)
// Creates a new conversation to persist the conversation history. Each
// conversation will have multiple messages associated with it.
CreateConversation(ctx context.Context, in *CreateConversationRequest, opts ...grpc.CallOption) (*Conversation, error)
// Deletes a conversation.
DeleteConversation(ctx context.Context, in *DeleteConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets details of a single conversation by using conversation id and parent.
GetConversation(ctx context.Context, in *GetConversationRequest, opts ...grpc.CallOption) (*Conversation, error)
// Lists all conversations for a given parent.
ListConversations(ctx context.Context, in *ListConversationsRequest, opts ...grpc.CallOption) (*ListConversationsResponse, error)
// Lists all messages for a given conversation.
ListMessages(ctx context.Context, in *ListMessagesRequest, opts ...grpc.CallOption) (*ListMessagesResponse, error)
// Queries data from a natural language user query.
QueryData(ctx context.Context, in *QueryDataRequest, opts ...grpc.CallOption) (*QueryDataResponse, error)
}DataChatServiceClient is the client API for DataChatService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataChatServiceClient
func NewDataChatServiceClient(cc grpc.ClientConnInterface) DataChatServiceClientDataChatServiceServer
type DataChatServiceServer interface {
// Answers a data question by generating a stream of
// [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.
Chat(*ChatRequest, DataChatService_ChatServer) error
// Creates a new conversation to persist the conversation history. Each
// conversation will have multiple messages associated with it.
CreateConversation(context.Context, *CreateConversationRequest) (*Conversation, error)
// Deletes a conversation.
DeleteConversation(context.Context, *DeleteConversationRequest) (*emptypb.Empty, error)
// Gets details of a single conversation by using conversation id and parent.
GetConversation(context.Context, *GetConversationRequest) (*Conversation, error)
// Lists all conversations for a given parent.
ListConversations(context.Context, *ListConversationsRequest) (*ListConversationsResponse, error)
// Lists all messages for a given conversation.
ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)
// Queries data from a natural language user query.
QueryData(context.Context, *QueryDataRequest) (*QueryDataResponse, error)
}DataChatServiceServer is the server API for DataChatService service. All implementations should embed UnimplementedDataChatServiceServer for forward compatibility
DataChatService_ChatClient
type DataChatService_ChatClient interface {
Recv() (*Message, error)
grpc.ClientStream
}DataChatService_ChatServer
type DataChatService_ChatServer interface {
Send(*Message) error
grpc.ServerStream
}DataFilter
type DataFilter struct {
// Optional. The field to filter on. For example: ["event_date",
// "customer_id", "product_category"]
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// Optional. The default value used for this filter if the filter is not
// overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// Optional. The type of filter present on a datasource, such as
// ALWAYS_FILTER.
Type DataFilterType `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.geminidataanalytics.v1beta.DataFilterType" json:"type,omitempty"`
// contains filtered or unexported fields
}A filter on a datasource's underlying data. Filter syntax documentation: https://cloud.google.com/looker/docs/filter-expressions
func (*DataFilter) Descriptor
func (*DataFilter) Descriptor() ([]byte, []int)Deprecated: Use DataFilter.ProtoReflect.Descriptor instead.
func (*DataFilter) GetField
func (x *DataFilter) GetField() stringfunc (*DataFilter) GetType
func (x *DataFilter) GetType() DataFilterTypefunc (*DataFilter) GetValue
func (x *DataFilter) GetValue() stringfunc (*DataFilter) ProtoMessage
func (*DataFilter) ProtoMessage()func (*DataFilter) ProtoReflect
func (x *DataFilter) ProtoReflect() protoreflect.Messagefunc (*DataFilter) Reset
func (x *DataFilter) Reset()func (*DataFilter) String
func (x *DataFilter) String() stringDataFilterType
type DataFilterType int32The type of filter present on a datasource, such as ALWAYS_FILTER.
DataFilterType_DATA_FILTER_TYPE_UNSPECIFIED, DataFilterType_ALWAYS_FILTER
const (
// The filter type was not specified.
DataFilterType_DATA_FILTER_TYPE_UNSPECIFIED DataFilterType = 0
// A filter that the user configures, and any queries to the Explore will
// always apply this filter by default. Currently only used for Looker data
// sources.
DataFilterType_ALWAYS_FILTER DataFilterType = 1
)func (DataFilterType) Descriptor
func (DataFilterType) Descriptor() protoreflect.EnumDescriptorfunc (DataFilterType) Enum
func (x DataFilterType) Enum() *DataFilterTypefunc (DataFilterType) EnumDescriptor
func (DataFilterType) EnumDescriptor() ([]byte, []int)Deprecated: Use DataFilterType.Descriptor instead.
func (DataFilterType) Number
func (x DataFilterType) Number() protoreflect.EnumNumberfunc (DataFilterType) String
func (x DataFilterType) String() stringfunc (DataFilterType) Type
func (DataFilterType) Type() protoreflect.EnumTypeDataMessage
type DataMessage struct {
// Whether this message contains the query, the result, or generated SQL for
// the data retrieval.
//
// Types that are valid to be assigned to Kind:
//
// *DataMessage_Query
// *DataMessage_GeneratedSql
// *DataMessage_Result
// *DataMessage_GeneratedLookerQuery
// *DataMessage_BigQueryJob
Kind isDataMessage_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}A message produced during data retrieval.
func (*DataMessage) Descriptor
func (*DataMessage) Descriptor() ([]byte, []int)Deprecated: Use DataMessage.ProtoReflect.Descriptor instead.
func (*DataMessage) GetBigQueryJob
func (x *DataMessage) GetBigQueryJob() *BigQueryJobfunc (*DataMessage) GetGeneratedLookerQuery
func (x *DataMessage) GetGeneratedLookerQuery() *LookerQueryDeprecated: Marked as deprecated in google/cloud/geminidataanalytics/v1beta/data_chat_service.proto.
func (*DataMessage) GetGeneratedSql
func (x *DataMessage) GetGeneratedSql() stringfunc (*DataMessage) GetKind
func (x *DataMessage) GetKind() isDataMessage_Kindfunc (*DataMessage) GetQuery
func (x *DataMessage) GetQuery() *DataQueryfunc (*DataMessage) GetResult
func (x *DataMessage) GetResult() *DataResultfunc (*DataMessage) ProtoMessage
func (*DataMessage) ProtoMessage()func (*DataMessage) ProtoReflect
func (x *DataMessage) ProtoReflect() protoreflect.Messagefunc (*DataMessage) Reset
func (x *DataMessage) Reset()func (*DataMessage) String
func (x *DataMessage) String() stringDataMessage_BigQueryJob
type DataMessage_BigQueryJob struct {
// A BigQuery job executed by the system to retrieve data.
BigQueryJob *BigQueryJob `protobuf:"bytes,5,opt,name=big_query_job,json=bigQueryJob,proto3,oneof"`
}DataMessage_GeneratedLookerQuery
type DataMessage_GeneratedLookerQuery struct {
// Looker Query generated by the system to retrieve data.
// Deprecated: generated looker query is now under DataQuery.looker.
//
// Deprecated: Marked as deprecated in google/cloud/geminidataanalytics/v1beta/data_chat_service.proto.
GeneratedLookerQuery *LookerQuery `protobuf:"bytes,4,opt,name=generated_looker_query,json=generatedLookerQuery,proto3,oneof"`
}DataMessage_GeneratedSql
type DataMessage_GeneratedSql struct {
// SQL generated by the system to retrieve data.
GeneratedSql string `protobuf:"bytes,2,opt,name=generated_sql,json=generatedSql,proto3,oneof"`
}DataMessage_Query
type DataMessage_Query struct {
// A data retrieval query.
Query *DataQuery `protobuf:"bytes,1,opt,name=query,proto3,oneof"`
}DataMessage_Result
type DataMessage_Result struct {
// Retrieved data.
Result *DataResult `protobuf:"bytes,3,opt,name=result,proto3,oneof"`
}DataQuery
type DataQuery struct {
// The type of query to execute.
//
// Types that are valid to be assigned to QueryType:
//
// *DataQuery_Looker
QueryType isDataQuery_QueryType `protobuf_oneof:"query_type"`
// Optional. A natural language question to answer.
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
// 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"
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The datasources available to answer the question.
Datasources []*Datasource `protobuf:"bytes,2,rep,name=datasources,proto3" json:"datasources,omitempty"`
// contains filtered or unexported fields
}A query for retrieving data.
func (*DataQuery) Descriptor
Deprecated: Use DataQuery.ProtoReflect.Descriptor instead.
func (*DataQuery) GetDatasources
func (x *DataQuery) GetDatasources() []*Datasourcefunc (*DataQuery) GetLooker
func (x *DataQuery) GetLooker() *LookerQueryfunc (*DataQuery) GetName
func (*DataQuery) GetQueryType
func (x *DataQuery) GetQueryType() isDataQuery_QueryTypefunc (*DataQuery) GetQuestion
func (*DataQuery) ProtoMessage
func (*DataQuery) ProtoMessage()func (*DataQuery) ProtoReflect
func (x *DataQuery) ProtoReflect() protoreflect.Messagefunc (*DataQuery) Reset
func (x *DataQuery) Reset()func (*DataQuery) String
DataQuery_Looker
type DataQuery_Looker struct {
// Optional. A query for retrieving data from a Looker explore.
Looker *LookerQuery `protobuf:"bytes,4,opt,name=looker,proto3,oneof"`
}DataResult
type DataResult struct {
// Optional. A snake-case name for the data result that reflects its contents.
// The name is used to pass the result around by reference, and serves as a
// signal about its meaning.
//
// * Example: "total_sales_by_product"
// * Example: "sales_for_product_12345"
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The schema of the data.
Schema *Schema `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
// Optional. The content of the data. Each row is a struct that matches the
// schema. Simple values are represented as strings, while nested structures
// are represented as lists or structs.
Data []*structpb.Struct `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// Optional. Formatted representation of the data, when applicable.
// Each row is a struct that directly corresponds to the row at the same index
// within the `data` field. Its values are string representations of the
// original data, formatted according to data source specifications (e.g.,
// "$1,234.56" for currency). Columns without formatting will default to
// their raw value representation. If no columns have formatting rules, this
// field will be empty.
FormattedData []*structpb.Struct `protobuf:"bytes,6,rep,name=formatted_data,json=formattedData,proto3" json:"formatted_data,omitempty"`
// contains filtered or unexported fields
}Retrieved data.
func (*DataResult) Descriptor
func (*DataResult) Descriptor() ([]byte, []int)Deprecated: Use DataResult.ProtoReflect.Descriptor instead.
func (*DataResult) GetData
func (x *DataResult) GetData() []*structpb.Structfunc (*DataResult) GetFormattedData
func (x *DataResult) GetFormattedData() []*structpb.Structfunc (*DataResult) GetName
func (x *DataResult) GetName() stringfunc (*DataResult) GetSchema
func (x *DataResult) GetSchema() *Schemafunc (*DataResult) ProtoMessage
func (*DataResult) ProtoMessage()func (*DataResult) ProtoReflect
func (x *DataResult) ProtoReflect() protoreflect.Messagefunc (*DataResult) Reset
func (x *DataResult) Reset()func (*DataResult) String
func (x *DataResult) String() stringDatasource
type Datasource struct {
// The reference to the datasource.
//
// Types that are valid to be assigned to Reference:
//
// *Datasource_BigqueryTableReference
// *Datasource_StudioDatasourceId
// *Datasource_LookerExploreReference
// *Datasource_AlloyDbReference
// *Datasource_SpannerReference
// *Datasource_CloudSqlReference
Reference isDatasource_Reference `protobuf_oneof:"reference"`
// Optional. The schema of the datasource.
Schema *Schema `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"`
// Optional. A struct representation of the schema.
// This is populated for datasources with schemas that cannot be
// fully represented by the strongly-typed `schema` field.
//
// For Looker datasources, this maps to the LookmlModelExplore type:
// https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
StructSchema *structpb.Struct `protobuf:"bytes,10,opt,name=struct_schema,json=structSchema,proto3" json:"struct_schema,omitempty"`
// contains filtered or unexported fields
}A datasource that can be used to answer questions.
func (*Datasource) Descriptor
func (*Datasource) Descriptor() ([]byte, []int)Deprecated: Use Datasource.ProtoReflect.Descriptor instead.
func (*Datasource) GetAlloyDbReference
func (x *Datasource) GetAlloyDbReference() *AlloyDbReferencefunc (*Datasource) GetBigqueryTableReference
func (x *Datasource) GetBigqueryTableReference() *BigQueryTableReferencefunc (*Datasource) GetCloudSqlReference
func (x *Datasource) GetCloudSqlReference() *CloudSqlReferencefunc (*Datasource) GetLookerExploreReference
func (x *Datasource) GetLookerExploreReference() *LookerExploreReferencefunc (*Datasource) GetReference
func (x *Datasource) GetReference() isDatasource_Referencefunc (*Datasource) GetSchema
func (x *Datasource) GetSchema() *Schemafunc (*Datasource) GetSpannerReference
func (x *Datasource) GetSpannerReference() *SpannerReferencefunc (*Datasource) GetStructSchema
func (x *Datasource) GetStructSchema() *structpb.Structfunc (*Datasource) GetStudioDatasourceId
func (x *Datasource) GetStudioDatasourceId() stringfunc (*Datasource) ProtoMessage
func (*Datasource) ProtoMessage()func (*Datasource) ProtoReflect
func (x *Datasource) ProtoReflect() protoreflect.Messagefunc (*Datasource) Reset
func (x *Datasource) Reset()func (*Datasource) String
func (x *Datasource) String() stringDatasourceOptions
type DatasourceOptions struct {
// Optional. This option applies to datasources that require BigQuery queries
// only. Limits the bytes billed for each BQ query job. Queries that will have
// bytes billed beyond this limit will fail (without incurring a charge).
// If unspecified, no limit will be applied.
BigQueryMaxBilledBytes *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=big_query_max_billed_bytes,json=bigQueryMaxBilledBytes,proto3" json:"big_query_max_billed_bytes,omitempty"`
// contains filtered or unexported fields
}Options for datasources configurations.
func (*DatasourceOptions) Descriptor
func (*DatasourceOptions) Descriptor() ([]byte, []int)Deprecated: Use DatasourceOptions.ProtoReflect.Descriptor instead.
func (*DatasourceOptions) GetBigQueryMaxBilledBytes
func (x *DatasourceOptions) GetBigQueryMaxBilledBytes() *wrapperspb.Int64Valuefunc (*DatasourceOptions) ProtoMessage
func (*DatasourceOptions) ProtoMessage()func (*DatasourceOptions) ProtoReflect
func (x *DatasourceOptions) ProtoReflect() protoreflect.Messagefunc (*DatasourceOptions) Reset
func (x *DatasourceOptions) Reset()func (*DatasourceOptions) String
func (x *DatasourceOptions) String() stringDatasourceReferences
type DatasourceReferences struct {
// The datasources to use.
//
// Types that are valid to be assigned to References:
//
// *DatasourceReferences_Bq
// *DatasourceReferences_Studio
// *DatasourceReferences_Looker
// *DatasourceReferences_Alloydb
// *DatasourceReferences_SpannerReference
// *DatasourceReferences_CloudSqlReference
References isDatasourceReferences_References `protobuf_oneof:"references"`
// contains filtered or unexported fields
}A collection of references to datasources.
func (*DatasourceReferences) Descriptor
func (*DatasourceReferences) Descriptor() ([]byte, []int)Deprecated: Use DatasourceReferences.ProtoReflect.Descriptor instead.
func (*DatasourceReferences) GetAlloydb
func (x *DatasourceReferences) GetAlloydb() *AlloyDbReferencefunc (*DatasourceReferences) GetBq
func (x *DatasourceReferences) GetBq() *BigQueryTableReferencesfunc (*DatasourceReferences) GetCloudSqlReference
func (x *DatasourceReferences) GetCloudSqlReference() *CloudSqlReferencefunc (*DatasourceReferences) GetLooker
func (x *DatasourceReferences) GetLooker() *LookerExploreReferencesfunc (*DatasourceReferences) GetReferences
func (x *DatasourceReferences) GetReferences() isDatasourceReferences_Referencesfunc (*DatasourceReferences) GetSpannerReference
func (x *DatasourceReferences) GetSpannerReference() *SpannerReferencefunc (*DatasourceReferences) GetStudio
func (x *DatasourceReferences) GetStudio() *StudioDatasourceReferencesfunc (*DatasourceReferences) ProtoMessage
func (*DatasourceReferences) ProtoMessage()func (*DatasourceReferences) ProtoReflect
func (x *DatasourceReferences) ProtoReflect() protoreflect.Messagefunc (*DatasourceReferences) Reset
func (x *DatasourceReferences) Reset()func (*DatasourceReferences) String
func (x *DatasourceReferences) String() stringDatasourceReferences_Alloydb
type DatasourceReferences_Alloydb struct {
// Reference to an AlloyDB database. Only supported for the `QueryData`
// method.
Alloydb *AlloyDbReference `protobuf:"bytes,8,opt,name=alloydb,proto3,oneof"`
}DatasourceReferences_Bq
type DatasourceReferences_Bq struct {
// References to BigQuery tables.
Bq *BigQueryTableReferences `protobuf:"bytes,1,opt,name=bq,proto3,oneof"`
}DatasourceReferences_CloudSqlReference
type DatasourceReferences_CloudSqlReference struct {
// Reference to a CloudSql database. Only supported for the `QueryData`
// method.
CloudSqlReference *CloudSqlReference `protobuf:"bytes,10,opt,name=cloud_sql_reference,json=cloudSqlReference,proto3,oneof"`
}DatasourceReferences_Looker
type DatasourceReferences_Looker struct {
// References to Looker Explores.
Looker *LookerExploreReferences `protobuf:"bytes,3,opt,name=looker,proto3,oneof"`
}DatasourceReferences_SpannerReference
type DatasourceReferences_SpannerReference struct {
// Reference to a Spanner database. Only supported for the `QueryData`
// method.
SpannerReference *SpannerReference `protobuf:"bytes,9,opt,name=spanner_reference,json=spannerReference,proto3,oneof"`
}DatasourceReferences_Studio
type DatasourceReferences_Studio struct {
// References to Looker Studio datasources.
Studio *StudioDatasourceReferences `protobuf:"bytes,2,opt,name=studio,proto3,oneof"`
}Datasource_AlloyDbReference
type Datasource_AlloyDbReference struct {
// A reference to an AlloyDB database.
AlloyDbReference *AlloyDbReference `protobuf:"bytes,12,opt,name=alloy_db_reference,json=alloyDbReference,proto3,oneof"`
}Datasource_BigqueryTableReference
type Datasource_BigqueryTableReference struct {
// A reference to a BigQuery table.
BigqueryTableReference *BigQueryTableReference `protobuf:"bytes,1,opt,name=bigquery_table_reference,json=bigqueryTableReference,proto3,oneof"`
}Datasource_CloudSqlReference
type Datasource_CloudSqlReference struct {
// A reference to a CloudSQL database.
CloudSqlReference *CloudSqlReference `protobuf:"bytes,14,opt,name=cloud_sql_reference,json=cloudSqlReference,proto3,oneof"`
}Datasource_LookerExploreReference
type Datasource_LookerExploreReference struct {
// A reference to a Looker explore.
LookerExploreReference *LookerExploreReference `protobuf:"bytes,4,opt,name=looker_explore_reference,json=lookerExploreReference,proto3,oneof"`
}Datasource_SpannerReference
type Datasource_SpannerReference struct {
// A reference to a Spanner database.
SpannerReference *SpannerReference `protobuf:"bytes,13,opt,name=spanner_reference,json=spannerReference,proto3,oneof"`
}Datasource_StudioDatasourceId
type Datasource_StudioDatasourceId struct {
// A reference to a Looker Studio datasource.
StudioDatasourceId string `protobuf:"bytes,2,opt,name=studio_datasource_id,json=studioDatasourceId,proto3,oneof"`
}DeleteConversationRequest
type DeleteConversationRequest struct {
// Required. Name of the resource.
// Format:
// `projects/{project}/locations/{location}/conversations/{conversation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for deleting a conversation based on parent and conversation id.
func (*DeleteConversationRequest) Descriptor
func (*DeleteConversationRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversationRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversationRequest) GetName
func (x *DeleteConversationRequest) GetName() stringfunc (*DeleteConversationRequest) ProtoMessage
func (*DeleteConversationRequest) ProtoMessage()func (*DeleteConversationRequest) ProtoReflect
func (x *DeleteConversationRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConversationRequest) Reset
func (x *DeleteConversationRequest) Reset()func (*DeleteConversationRequest) String
func (x *DeleteConversationRequest) String() stringDeleteDataAgentRequest
type DeleteDataAgentRequest struct {
// Required. Name of the resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for deleting a DataAgent.
func (*DeleteDataAgentRequest) Descriptor
func (*DeleteDataAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDataAgentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDataAgentRequest) GetName
func (x *DeleteDataAgentRequest) GetName() stringfunc (*DeleteDataAgentRequest) GetRequestId
func (x *DeleteDataAgentRequest) GetRequestId() stringfunc (*DeleteDataAgentRequest) ProtoMessage
func (*DeleteDataAgentRequest) ProtoMessage()func (*DeleteDataAgentRequest) ProtoReflect
func (x *DeleteDataAgentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDataAgentRequest) Reset
func (x *DeleteDataAgentRequest) Reset()func (*DeleteDataAgentRequest) String
func (x *DeleteDataAgentRequest) String() stringErrorMessage
type ErrorMessage struct {
// Output only. The text of the error.
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}An error message from a tool call. This message is used to represent an error that occurred while an agent was trying to use a tool. It's important to note that not all errors are terminal. Many are recoverable, and the agent may use the information from this error message to self-correct and retry the tool call or try a different approach.
For example, if a data query fails, the agent might receive an
ErrorMessage, analyze it, and then generate a corrected query.
Clients should be cautious about interpreting this message as a definitive failure. It can be part of the agent's normal, iterative process of completing a task. Surfacing these errors directly to end-users without context (e.g., as a "hard failure") may be misleading.
func (*ErrorMessage) Descriptor
func (*ErrorMessage) Descriptor() ([]byte, []int)Deprecated: Use ErrorMessage.ProtoReflect.Descriptor instead.
func (*ErrorMessage) GetText
func (x *ErrorMessage) GetText() stringfunc (*ErrorMessage) ProtoMessage
func (*ErrorMessage) ProtoMessage()func (*ErrorMessage) ProtoReflect
func (x *ErrorMessage) ProtoReflect() protoreflect.Messagefunc (*ErrorMessage) Reset
func (x *ErrorMessage) Reset()func (*ErrorMessage) String
func (x *ErrorMessage) String() stringExampleQueries
type ExampleQueries struct {
// Optional. A list of derived and authored example queries, providing
// examples of relevant and commonly used SQL queries and their corresponding
// natural language queries optionally present. Currently only used for
// BigQuery data sources.
ExampleQueries []*ExampleQuery `protobuf:"bytes,1,rep,name=example_queries,json=exampleQueries,proto3" json:"example_queries,omitempty"`
// contains filtered or unexported fields
}A message containing derived and authored example queries.
func (*ExampleQueries) Descriptor
func (*ExampleQueries) Descriptor() ([]byte, []int)Deprecated: Use ExampleQueries.ProtoReflect.Descriptor instead.
func (*ExampleQueries) GetExampleQueries
func (x *ExampleQueries) GetExampleQueries() []*ExampleQueryfunc (*ExampleQueries) ProtoMessage
func (*ExampleQueries) ProtoMessage()func (*ExampleQueries) ProtoReflect
func (x *ExampleQueries) ProtoReflect() protoreflect.Messagefunc (*ExampleQueries) Reset
func (x *ExampleQueries) Reset()func (*ExampleQueries) String
func (x *ExampleQueries) String() stringExampleQuery
type ExampleQuery struct {
// The SQL or Looker query that should be generated to answer the natural
// language query.
//
// Types that are valid to be assigned to Query:
//
// *ExampleQuery_SqlQuery
Query isExampleQuery_Query `protobuf_oneof:"query"`
// Optional. A natural language question that a user might ask.
// For example: "How many orders were placed last month?"
NaturalLanguageQuestion string `protobuf:"bytes,1,opt,name=natural_language_question,json=naturalLanguageQuestion,proto3" json:"natural_language_question,omitempty"`
// contains filtered or unexported fields
}Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present. Currently only used for BigQuery data sources.
func (*ExampleQuery) Descriptor
func (*ExampleQuery) Descriptor() ([]byte, []int)Deprecated: Use ExampleQuery.ProtoReflect.Descriptor instead.
func (*ExampleQuery) GetNaturalLanguageQuestion
func (x *ExampleQuery) GetNaturalLanguageQuestion() stringfunc (*ExampleQuery) GetQuery
func (x *ExampleQuery) GetQuery() isExampleQuery_Queryfunc (*ExampleQuery) GetSqlQuery
func (x *ExampleQuery) GetSqlQuery() stringfunc (*ExampleQuery) ProtoMessage
func (*ExampleQuery) ProtoMessage()func (*ExampleQuery) ProtoReflect
func (x *ExampleQuery) ProtoReflect() protoreflect.Messagefunc (*ExampleQuery) Reset
func (x *ExampleQuery) Reset()func (*ExampleQuery) String
func (x *ExampleQuery) String() stringExampleQuery_SqlQuery
type ExampleQuery_SqlQuery struct {
// Optional. The SQL query that should be generated to answer the natural
// language question. For example: "SELECT COUNT(*) FROM orders WHERE
// order_date BETWEEN '2024-01-01' AND '2024-01-31'"
SqlQuery string `protobuf:"bytes,101,opt,name=sql_query,json=sqlQuery,proto3,oneof"`
}ExecutedQueryResult
type ExecutedQueryResult struct {
// The columns in the result set, in order.
Columns []*ExecutedQueryResult_Column `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
// The rows returned by the query.
Rows []*ExecutedQueryResult_Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
// The total number of rows in the full result set, if known.
// This may be an estimate or an exact count.
TotalRowCount int64 `protobuf:"varint,3,opt,name=total_row_count,json=totalRowCount,proto3" json:"total_row_count,omitempty"`
// Set to true if the returned rows in `query_result` are a subset of the
// full result. This can happen, for example, if the query execution hits a
// row limit. When true, the `query_result` does not contain all
// rows. To retrieve the complete result, consider using the
// `generated_query` in `QueryDataResponse` and executing it in your own
// environment.
PartialResult bool `protobuf:"varint,4,opt,name=partial_result,json=partialResult,proto3" json:"partial_result,omitempty"`
// The error message if the query execution failed.
QueryExecutionError string `protobuf:"bytes,5,opt,name=query_execution_error,json=queryExecutionError,proto3" json:"query_execution_error,omitempty"`
// contains filtered or unexported fields
}The result of a query execution. The design is generic for all dialects.
func (*ExecutedQueryResult) Descriptor
func (*ExecutedQueryResult) Descriptor() ([]byte, []int)Deprecated: Use ExecutedQueryResult.ProtoReflect.Descriptor instead.
func (*ExecutedQueryResult) GetColumns
func (x *ExecutedQueryResult) GetColumns() []*ExecutedQueryResult_Columnfunc (*ExecutedQueryResult) GetPartialResult
func (x *ExecutedQueryResult) GetPartialResult() boolfunc (*ExecutedQueryResult) GetQueryExecutionError
func (x *ExecutedQueryResult) GetQueryExecutionError() stringfunc (*ExecutedQueryResult) GetRows
func (x *ExecutedQueryResult) GetRows() []*ExecutedQueryResult_Rowfunc (*ExecutedQueryResult) GetTotalRowCount
func (x *ExecutedQueryResult) GetTotalRowCount() int64func (*ExecutedQueryResult) ProtoMessage
func (*ExecutedQueryResult) ProtoMessage()func (*ExecutedQueryResult) ProtoReflect
func (x *ExecutedQueryResult) ProtoReflect() protoreflect.Messagefunc (*ExecutedQueryResult) Reset
func (x *ExecutedQueryResult) Reset()func (*ExecutedQueryResult) String
func (x *ExecutedQueryResult) String() stringExecutedQueryResult_Column
type ExecutedQueryResult_Column struct {
// The name of the column.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}Describes a single column in the result set.
func (*ExecutedQueryResult_Column) Descriptor
func (*ExecutedQueryResult_Column) Descriptor() ([]byte, []int)Deprecated: Use ExecutedQueryResult_Column.ProtoReflect.Descriptor instead.
func (*ExecutedQueryResult_Column) GetName
func (x *ExecutedQueryResult_Column) GetName() stringfunc (*ExecutedQueryResult_Column) GetType
func (x *ExecutedQueryResult_Column) GetType() stringfunc (*ExecutedQueryResult_Column) ProtoMessage
func (*ExecutedQueryResult_Column) ProtoMessage()func (*ExecutedQueryResult_Column) ProtoReflect
func (x *ExecutedQueryResult_Column) ProtoReflect() protoreflect.Messagefunc (*ExecutedQueryResult_Column) Reset
func (x *ExecutedQueryResult_Column) Reset()func (*ExecutedQueryResult_Column) String
func (x *ExecutedQueryResult_Column) String() stringExecutedQueryResult_Row
type ExecutedQueryResult_Row struct {
// The values in the row, corresponding positionally to the columns.
Values []*ExecutedQueryResult_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}Represents a single row in the result set.
func (*ExecutedQueryResult_Row) Descriptor
func (*ExecutedQueryResult_Row) Descriptor() ([]byte, []int)Deprecated: Use ExecutedQueryResult_Row.ProtoReflect.Descriptor instead.
func (*ExecutedQueryResult_Row) GetValues
func (x *ExecutedQueryResult_Row) GetValues() []*ExecutedQueryResult_Valuefunc (*ExecutedQueryResult_Row) ProtoMessage
func (*ExecutedQueryResult_Row) ProtoMessage()func (*ExecutedQueryResult_Row) ProtoReflect
func (x *ExecutedQueryResult_Row) ProtoReflect() protoreflect.Messagefunc (*ExecutedQueryResult_Row) Reset
func (x *ExecutedQueryResult_Row) Reset()func (*ExecutedQueryResult_Row) String
func (x *ExecutedQueryResult_Row) String() stringExecutedQueryResult_Value
type ExecutedQueryResult_Value struct {
// The cell value, represented in a string format.
// Timestamps could be formatted, for example, using RFC3339Nano.
// This field is used if the value is not null.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}Represents a single value within a row.
func (*ExecutedQueryResult_Value) Descriptor
func (*ExecutedQueryResult_Value) Descriptor() ([]byte, []int)Deprecated: Use ExecutedQueryResult_Value.ProtoReflect.Descriptor instead.
func (*ExecutedQueryResult_Value) GetValue
func (x *ExecutedQueryResult_Value) GetValue() stringfunc (*ExecutedQueryResult_Value) ProtoMessage
func (*ExecutedQueryResult_Value) ProtoMessage()func (*ExecutedQueryResult_Value) ProtoReflect
func (x *ExecutedQueryResult_Value) ProtoReflect() protoreflect.Messagefunc (*ExecutedQueryResult_Value) Reset
func (x *ExecutedQueryResult_Value) Reset()func (*ExecutedQueryResult_Value) String
func (x *ExecutedQueryResult_Value) String() stringField
type Field struct {
// Optional. The name of the field.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The type of the field.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Optional. A brief description of the field.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The mode of the field (e.g., NULLABLE, REPEATED).
Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
// Optional. A list of alternative names or synonyms that can be used to refer
// to this field. For example: ["id", "customerid", "cust_id"]. Currently only
// used for BigQuery data sources.
Synonyms []string `protobuf:"bytes,6,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
// Optional. A list of tags or keywords associated with the field, used for
// categorization. For example: ["identifier", "customer", "pii"]. Currently
// only used for BigQuery data sources.
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// Optional. Field display_name (same as label in
DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. Recursive property for nested schema structures.
Subfields []*Field `protobuf:"bytes,9,rep,name=subfields,proto3" json:"subfields,omitempty"`
// Optional. Field category, not required, currently only useful for Looker.
// We are using a string to avoid depending on an external package and keep
// this package self-contained.
Category string `protobuf:"bytes,10,opt,name=category,proto3" json:"category,omitempty"`
// Optional. Looker only. Value format of the field.
// Ref:
// https://cloud.google.com/looker/docs/reference/param-field-value-format
ValueFormat string `protobuf:"bytes,11,opt,name=value_format,json=valueFormat,proto3" json:"value_format,omitempty"`
// contains filtered or unexported fields
}A field in a schema.
func (*Field) Descriptor
Deprecated: Use Field.ProtoReflect.Descriptor instead.
func (*Field) GetCategory
func (*Field) GetDescription
func (*Field) GetDisplayName
func (*Field) GetMode
func (*Field) GetName
func (*Field) GetSubfields
func (*Field) GetSynonyms
func (*Field) GetTags
func (*Field) GetType
func (*Field) GetValueFormat
func (*Field) ProtoMessage
func (*Field) ProtoMessage()func (*Field) ProtoReflect
func (x *Field) ProtoReflect() protoreflect.Messagefunc (*Field) Reset
func (x *Field) Reset()func (*Field) String
GenerationOptions
type GenerationOptions struct {
// Optional. If true, the generated query will be executed, and the result
// data will be returned in the response.
GenerateQueryResult bool `protobuf:"varint,1,opt,name=generate_query_result,json=generateQueryResult,proto3" json:"generate_query_result,omitempty"`
// Optional. If true, a natural language answer based on the query execution
// result will be generated and returned in the response.
GenerateNaturalLanguageAnswer bool `protobuf:"varint,2,opt,name=generate_natural_language_answer,json=generateNaturalLanguageAnswer,proto3" json:"generate_natural_language_answer,omitempty"`
// Optional. If true, an explanation of the generated query will be returned
// in the response.
GenerateExplanation bool `protobuf:"varint,3,opt,name=generate_explanation,json=generateExplanation,proto3" json:"generate_explanation,omitempty"`
// Optional. If true (default to false), the service may return a
// clarifying_question if the input query is ambiguous.
GenerateDisambiguationQuestion bool `protobuf:"varint,4,opt,name=generate_disambiguation_question,json=generateDisambiguationQuestion,proto3" json:"generate_disambiguation_question,omitempty"`
// contains filtered or unexported fields
}Options to control query generation, execution, and response format.
func (*GenerationOptions) Descriptor
func (*GenerationOptions) Descriptor() ([]byte, []int)Deprecated: Use GenerationOptions.ProtoReflect.Descriptor instead.
func (*GenerationOptions) GetGenerateDisambiguationQuestion
func (x *GenerationOptions) GetGenerateDisambiguationQuestion() boolfunc (*GenerationOptions) GetGenerateExplanation
func (x *GenerationOptions) GetGenerateExplanation() boolfunc (*GenerationOptions) GetGenerateNaturalLanguageAnswer
func (x *GenerationOptions) GetGenerateNaturalLanguageAnswer() boolfunc (*GenerationOptions) GetGenerateQueryResult
func (x *GenerationOptions) GetGenerateQueryResult() boolfunc (*GenerationOptions) ProtoMessage
func (*GenerationOptions) ProtoMessage()func (*GenerationOptions) ProtoReflect
func (x *GenerationOptions) ProtoReflect() protoreflect.Messagefunc (*GenerationOptions) Reset
func (x *GenerationOptions) Reset()func (*GenerationOptions) String
func (x *GenerationOptions) String() stringGetConversationRequest
type GetConversationRequest struct {
// Required. Name of the resource.
// Format:
// `projects/{project}/locations/{location}/conversations/{conversation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for getting a conversation based on parent and conversation id.
func (*GetConversationRequest) Descriptor
func (*GetConversationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversationRequest.ProtoReflect.Descriptor instead.
func (*GetConversationRequest) GetName
func (x *GetConversationRequest) GetName() stringfunc (*GetConversationRequest) ProtoMessage
func (*GetConversationRequest) ProtoMessage()func (*GetConversationRequest) ProtoReflect
func (x *GetConversationRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversationRequest) Reset
func (x *GetConversationRequest) Reset()func (*GetConversationRequest) String
func (x *GetConversationRequest) String() stringGetDataAgentRequest
type GetDataAgentRequest struct {
// Required. Name of the resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a DataAgent.
func (*GetDataAgentRequest) Descriptor
func (*GetDataAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDataAgentRequest.ProtoReflect.Descriptor instead.
func (*GetDataAgentRequest) GetName
func (x *GetDataAgentRequest) GetName() stringfunc (*GetDataAgentRequest) ProtoMessage
func (*GetDataAgentRequest) ProtoMessage()func (*GetDataAgentRequest) ProtoReflect
func (x *GetDataAgentRequest) ProtoReflect() protoreflect.Messagefunc (*GetDataAgentRequest) Reset
func (x *GetDataAgentRequest) Reset()func (*GetDataAgentRequest) String
func (x *GetDataAgentRequest) String() stringGlossaryTerm
type GlossaryTerm struct {
// Required. User friendly display name of the glossary term being defined.
// For example: "CTR", "conversion rate", "pending"
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The description or meaning of the term.
// For example: "Click-through rate", "The percentage of users who complete a
// desired action", "An order that is waiting to be processed."
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Optional. A list of general purpose labels associated to this term.
// For example: ["click rate", "clickthrough", "waiting"]
Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
// contains filtered or unexported fields
}Definition of a term within a specific domain.
func (*GlossaryTerm) Descriptor
func (*GlossaryTerm) Descriptor() ([]byte, []int)Deprecated: Use GlossaryTerm.ProtoReflect.Descriptor instead.
func (*GlossaryTerm) GetDescription
func (x *GlossaryTerm) GetDescription() stringfunc (*GlossaryTerm) GetDisplayName
func (x *GlossaryTerm) GetDisplayName() stringfunc (*GlossaryTerm) GetLabels
func (x *GlossaryTerm) GetLabels() []stringfunc (*GlossaryTerm) ProtoMessage
func (*GlossaryTerm) ProtoMessage()func (*GlossaryTerm) ProtoReflect
func (x *GlossaryTerm) ProtoReflect() protoreflect.Messagefunc (*GlossaryTerm) Reset
func (x *GlossaryTerm) Reset()func (*GlossaryTerm) String
func (x *GlossaryTerm) String() stringListAccessibleDataAgentsRequest
type ListAccessibleDataAgentsRequest struct {
// Required. Parent value for ListAccessibleDataAgentsRequest.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Server may return fewer items than requested.
// If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListAccessibleDataAgents`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListAccessibleDataAgents` must match the call that provided the page
// token. The service may return fewer than this value.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for
// syntax.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. User specification for how to order the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. If true, the list results will include soft-deleted DataAgents.
// Defaults to false.
ShowDeleted bool `protobuf:"varint,6,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// Optional. Filter for the creator of the agent.
CreatorFilter ListAccessibleDataAgentsRequest_CreatorFilter `protobuf:"varint,7,opt,name=creator_filter,json=creatorFilter,proto3,enum=google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest_CreatorFilter" json:"creator_filter,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of accessible DataAgents.
func (*ListAccessibleDataAgentsRequest) Descriptor
func (*ListAccessibleDataAgentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAccessibleDataAgentsRequest.ProtoReflect.Descriptor instead.
func (*ListAccessibleDataAgentsRequest) GetCreatorFilter
func (x *ListAccessibleDataAgentsRequest) GetCreatorFilter() ListAccessibleDataAgentsRequest_CreatorFilterfunc (*ListAccessibleDataAgentsRequest) GetFilter
func (x *ListAccessibleDataAgentsRequest) GetFilter() stringfunc (*ListAccessibleDataAgentsRequest) GetOrderBy
func (x *ListAccessibleDataAgentsRequest) GetOrderBy() stringfunc (*ListAccessibleDataAgentsRequest) GetPageSize
func (x *ListAccessibleDataAgentsRequest) GetPageSize() int32func (*ListAccessibleDataAgentsRequest) GetPageToken
func (x *ListAccessibleDataAgentsRequest) GetPageToken() stringfunc (*ListAccessibleDataAgentsRequest) GetParent
func (x *ListAccessibleDataAgentsRequest) GetParent() stringfunc (*ListAccessibleDataAgentsRequest) GetShowDeleted
func (x *ListAccessibleDataAgentsRequest) GetShowDeleted() boolfunc (*ListAccessibleDataAgentsRequest) ProtoMessage
func (*ListAccessibleDataAgentsRequest) ProtoMessage()func (*ListAccessibleDataAgentsRequest) ProtoReflect
func (x *ListAccessibleDataAgentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAccessibleDataAgentsRequest) Reset
func (x *ListAccessibleDataAgentsRequest) Reset()func (*ListAccessibleDataAgentsRequest) String
func (x *ListAccessibleDataAgentsRequest) String() stringListAccessibleDataAgentsRequest_CreatorFilter
type ListAccessibleDataAgentsRequest_CreatorFilter int32Filter for the creator of the agent.
ListAccessibleDataAgentsRequest_CREATOR_FILTER_UNSPECIFIED, ListAccessibleDataAgentsRequest_NONE, ListAccessibleDataAgentsRequest_CREATOR_ONLY, ListAccessibleDataAgentsRequest_NOT_CREATOR_ONLY
const (
// Default value.
ListAccessibleDataAgentsRequest_CREATOR_FILTER_UNSPECIFIED ListAccessibleDataAgentsRequest_CreatorFilter = 0
// No creator-specific filter will be applied. All agents will be returned.
ListAccessibleDataAgentsRequest_NONE ListAccessibleDataAgentsRequest_CreatorFilter = 1
// Only agents created by the user calling the API will be returned.
ListAccessibleDataAgentsRequest_CREATOR_ONLY ListAccessibleDataAgentsRequest_CreatorFilter = 2
// Only agents not created by the user calling the API will be returned.
ListAccessibleDataAgentsRequest_NOT_CREATOR_ONLY ListAccessibleDataAgentsRequest_CreatorFilter = 3
)func (ListAccessibleDataAgentsRequest_CreatorFilter) Descriptor
func (ListAccessibleDataAgentsRequest_CreatorFilter) Descriptor() protoreflect.EnumDescriptorfunc (ListAccessibleDataAgentsRequest_CreatorFilter) Enum
func (x ListAccessibleDataAgentsRequest_CreatorFilter) Enum() *ListAccessibleDataAgentsRequest_CreatorFilterfunc (ListAccessibleDataAgentsRequest_CreatorFilter) EnumDescriptor
func (ListAccessibleDataAgentsRequest_CreatorFilter) EnumDescriptor() ([]byte, []int)Deprecated: Use ListAccessibleDataAgentsRequest_CreatorFilter.Descriptor instead.
func (ListAccessibleDataAgentsRequest_CreatorFilter) Number
func (x ListAccessibleDataAgentsRequest_CreatorFilter) Number() protoreflect.EnumNumberfunc (ListAccessibleDataAgentsRequest_CreatorFilter) String
func (x ListAccessibleDataAgentsRequest_CreatorFilter) String() stringfunc (ListAccessibleDataAgentsRequest_CreatorFilter) Type
ListAccessibleDataAgentsResponse
type ListAccessibleDataAgentsResponse struct {
// The list of accessible DataAgent.
DataAgents []*DataAgent `protobuf:"bytes,1,rep,name=data_agents,json=dataAgents,proto3" json:"data_agents,omitempty"`
// The next page token or empty if none.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Unordered list. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing accessible DataAgents.
func (*ListAccessibleDataAgentsResponse) Descriptor
func (*ListAccessibleDataAgentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAccessibleDataAgentsResponse.ProtoReflect.Descriptor instead.
func (*ListAccessibleDataAgentsResponse) GetDataAgents
func (x *ListAccessibleDataAgentsResponse) GetDataAgents() []*DataAgentfunc (*ListAccessibleDataAgentsResponse) GetNextPageToken
func (x *ListAccessibleDataAgentsResponse) GetNextPageToken() stringfunc (*ListAccessibleDataAgentsResponse) GetUnreachable
func (x *ListAccessibleDataAgentsResponse) GetUnreachable() []stringfunc (*ListAccessibleDataAgentsResponse) ProtoMessage
func (*ListAccessibleDataAgentsResponse) ProtoMessage()func (*ListAccessibleDataAgentsResponse) ProtoReflect
func (x *ListAccessibleDataAgentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAccessibleDataAgentsResponse) Reset
func (x *ListAccessibleDataAgentsResponse) Reset()func (*ListAccessibleDataAgentsResponse) String
func (x *ListAccessibleDataAgentsResponse) String() stringListConversationsRequest
type ListConversationsRequest struct {
// Required. Parent value for ListConversationsRequest.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. The max page size is 100. All larger page sizes will be coerced
// to 100. If unspecified, server will pick 50 as an approperiate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Returned conversations will match criteria specified within the
// filter. ListConversations allows filtering by:
// - agents
// - labels
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request for listing conversations based on parent.
func (*ListConversationsRequest) Descriptor
func (*ListConversationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversationsRequest.ProtoReflect.Descriptor instead.
func (*ListConversationsRequest) GetFilter
func (x *ListConversationsRequest) GetFilter() stringfunc (*ListConversationsRequest) GetPageSize
func (x *ListConversationsRequest) GetPageSize() int32func (*ListConversationsRequest) GetPageToken
func (x *ListConversationsRequest) GetPageToken() stringfunc (*ListConversationsRequest) GetParent
func (x *ListConversationsRequest) GetParent() stringfunc (*ListConversationsRequest) ProtoMessage
func (*ListConversationsRequest) ProtoMessage()func (*ListConversationsRequest) ProtoReflect
func (x *ListConversationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversationsRequest) Reset
func (x *ListConversationsRequest) Reset()func (*ListConversationsRequest) String
func (x *ListConversationsRequest) String() stringListConversationsResponse
type ListConversationsResponse struct {
// The list of conversations.
Conversations []*Conversation `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing conversations.
func (*ListConversationsResponse) Descriptor
func (*ListConversationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversationsResponse.ProtoReflect.Descriptor instead.
func (*ListConversationsResponse) GetConversations
func (x *ListConversationsResponse) GetConversations() []*Conversationfunc (*ListConversationsResponse) GetNextPageToken
func (x *ListConversationsResponse) GetNextPageToken() stringfunc (*ListConversationsResponse) ProtoMessage
func (*ListConversationsResponse) ProtoMessage()func (*ListConversationsResponse) ProtoReflect
func (x *ListConversationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversationsResponse) Reset
func (x *ListConversationsResponse) Reset()func (*ListConversationsResponse) String
func (x *ListConversationsResponse) String() stringListDataAgentsRequest
type ListDataAgentsRequest struct {
// Required. Parent value for ListDataAgentsRequest.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Server may return fewer items than requested.
// If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListDataAgents` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListDataAgents` must
// match the call that provided the page token. The service may return fewer
// than this value.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for
// syntax.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. User specification for how to order the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. If true, the list results will include soft-deleted DataAgents.
// Defaults to false.
ShowDeleted bool `protobuf:"varint,6,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of DataAgents.
func (*ListDataAgentsRequest) Descriptor
func (*ListDataAgentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDataAgentsRequest.ProtoReflect.Descriptor instead.
func (*ListDataAgentsRequest) GetFilter
func (x *ListDataAgentsRequest) GetFilter() stringfunc (*ListDataAgentsRequest) GetOrderBy
func (x *ListDataAgentsRequest) GetOrderBy() stringfunc (*ListDataAgentsRequest) GetPageSize
func (x *ListDataAgentsRequest) GetPageSize() int32func (*ListDataAgentsRequest) GetPageToken
func (x *ListDataAgentsRequest) GetPageToken() stringfunc (*ListDataAgentsRequest) GetParent
func (x *ListDataAgentsRequest) GetParent() stringfunc (*ListDataAgentsRequest) GetShowDeleted
func (x *ListDataAgentsRequest) GetShowDeleted() boolfunc (*ListDataAgentsRequest) ProtoMessage
func (*ListDataAgentsRequest) ProtoMessage()func (*ListDataAgentsRequest) ProtoReflect
func (x *ListDataAgentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDataAgentsRequest) Reset
func (x *ListDataAgentsRequest) Reset()func (*ListDataAgentsRequest) String
func (x *ListDataAgentsRequest) String() stringListDataAgentsResponse
type ListDataAgentsResponse struct {
// The list of DataAgent.
DataAgents []*DataAgent `protobuf:"bytes,1,rep,name=data_agents,json=dataAgents,proto3" json:"data_agents,omitempty"`
// The next page token or empty if none.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Unordered list. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing DataAgents.
func (*ListDataAgentsResponse) Descriptor
func (*ListDataAgentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDataAgentsResponse.ProtoReflect.Descriptor instead.
func (*ListDataAgentsResponse) GetDataAgents
func (x *ListDataAgentsResponse) GetDataAgents() []*DataAgentfunc (*ListDataAgentsResponse) GetNextPageToken
func (x *ListDataAgentsResponse) GetNextPageToken() stringfunc (*ListDataAgentsResponse) GetUnreachable
func (x *ListDataAgentsResponse) GetUnreachable() []stringfunc (*ListDataAgentsResponse) ProtoMessage
func (*ListDataAgentsResponse) ProtoMessage()func (*ListDataAgentsResponse) ProtoReflect
func (x *ListDataAgentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDataAgentsResponse) Reset
func (x *ListDataAgentsResponse) Reset()func (*ListDataAgentsResponse) String
func (x *ListDataAgentsResponse) String() stringListMessagesRequest
type ListMessagesRequest struct {
// Required. The conversation to list messages under.
// Format:
// `projects/{project}/locations/{location}/conversations/{conversation_id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. The max page size is 100. All larger page sizes will be coerced
// to 100. If unspecified, server will pick 50 as an approperiate default.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filtering results. See [AIP-160](https://google.aip.dev/160) for
// syntax.
//
// ListMessages allows filtering by:
// - create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`)
// - update_time
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request for listing chat messages based on parent and conversation_id.
func (*ListMessagesRequest) Descriptor
func (*ListMessagesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListMessagesRequest.ProtoReflect.Descriptor instead.
func (*ListMessagesRequest) GetFilter
func (x *ListMessagesRequest) GetFilter() stringfunc (*ListMessagesRequest) GetPageSize
func (x *ListMessagesRequest) GetPageSize() int32func (*ListMessagesRequest) GetPageToken
func (x *ListMessagesRequest) GetPageToken() stringfunc (*ListMessagesRequest) GetParent
func (x *ListMessagesRequest) GetParent() stringfunc (*ListMessagesRequest) ProtoMessage
func (*ListMessagesRequest) ProtoMessage()func (*ListMessagesRequest) ProtoReflect
func (x *ListMessagesRequest) ProtoReflect() protoreflect.Messagefunc (*ListMessagesRequest) Reset
func (x *ListMessagesRequest) Reset()func (*ListMessagesRequest) String
func (x *ListMessagesRequest) String() stringListMessagesResponse
type ListMessagesResponse struct {
// The list of chat messages.
Messages []*StorageMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response for listing chat messages.
func (*ListMessagesResponse) Descriptor
func (*ListMessagesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListMessagesResponse.ProtoReflect.Descriptor instead.
func (*ListMessagesResponse) GetMessages
func (x *ListMessagesResponse) GetMessages() []*StorageMessagefunc (*ListMessagesResponse) GetNextPageToken
func (x *ListMessagesResponse) GetNextPageToken() stringfunc (*ListMessagesResponse) ProtoMessage
func (*ListMessagesResponse) ProtoMessage()func (*ListMessagesResponse) ProtoReflect
func (x *ListMessagesResponse) ProtoReflect() protoreflect.Messagefunc (*ListMessagesResponse) Reset
func (x *ListMessagesResponse) Reset()func (*ListMessagesResponse) String
func (x *ListMessagesResponse) String() stringLookerExploreReference
type LookerExploreReference struct {
// The instance of the Looker explore.
//
// Types that are valid to be assigned to Instance:
//
// *LookerExploreReference_LookerInstanceUri
// *LookerExploreReference_PrivateLookerInstanceInfo
Instance isLookerExploreReference_Instance `protobuf_oneof:"instance"`
// Required. Looker model, as outlined in
// [Major LookML
// structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures).
// Name of the LookML model.
LookmlModel string `protobuf:"bytes,4,opt,name=lookml_model,json=lookmlModel,proto3" json:"lookml_model,omitempty"`
// Required. Looker Explore, as outlined in
// [Major LookML
// structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures).
// Name of the LookML Explore.
Explore string `protobuf:"bytes,5,opt,name=explore,proto3" json:"explore,omitempty"`
// Optional. The schema of the datasource.
Schema *Schema `protobuf:"bytes,8,opt,name=schema,proto3" json:"schema,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single Looker explore.
func (*LookerExploreReference) Descriptor
func (*LookerExploreReference) Descriptor() ([]byte, []int)Deprecated: Use LookerExploreReference.ProtoReflect.Descriptor instead.
func (*LookerExploreReference) GetExplore
func (x *LookerExploreReference) GetExplore() stringfunc (*LookerExploreReference) GetInstance
func (x *LookerExploreReference) GetInstance() isLookerExploreReference_Instancefunc (*LookerExploreReference) GetLookerInstanceUri
func (x *LookerExploreReference) GetLookerInstanceUri() stringfunc (*LookerExploreReference) GetLookmlModel
func (x *LookerExploreReference) GetLookmlModel() stringfunc (*LookerExploreReference) GetPrivateLookerInstanceInfo
func (x *LookerExploreReference) GetPrivateLookerInstanceInfo() *PrivateLookerInstanceInfofunc (*LookerExploreReference) GetSchema
func (x *LookerExploreReference) GetSchema() *Schemafunc (*LookerExploreReference) ProtoMessage
func (*LookerExploreReference) ProtoMessage()func (*LookerExploreReference) ProtoReflect
func (x *LookerExploreReference) ProtoReflect() protoreflect.Messagefunc (*LookerExploreReference) Reset
func (x *LookerExploreReference) Reset()func (*LookerExploreReference) String
func (x *LookerExploreReference) String() stringLookerExploreReference_LookerInstanceUri
type LookerExploreReference_LookerInstanceUri struct {
// Required. The base url of the Looker instance.
LookerInstanceUri string `protobuf:"bytes,9,opt,name=looker_instance_uri,json=lookerInstanceUri,proto3,oneof"`
}LookerExploreReference_PrivateLookerInstanceInfo
type LookerExploreReference_PrivateLookerInstanceInfo struct {
// Private Looker instance info.
PrivateLookerInstanceInfo *PrivateLookerInstanceInfo `protobuf:"bytes,10,opt,name=private_looker_instance_info,json=privateLookerInstanceInfo,proto3,oneof"`
}LookerExploreReferences
type LookerExploreReferences struct {
// Required. References to Looker explores.
ExploreReferences []*LookerExploreReference `protobuf:"bytes,1,rep,name=explore_references,json=exploreReferences,proto3" json:"explore_references,omitempty"`
// Optional. The credentials to use when calling the Looker API.
//
// Currently supports both OAuth token and API key-based credentials, as
// described in
// [Authentication with an
// SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
Credentials *Credentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
// contains filtered or unexported fields
}Message representing references to Looker explores.
func (*LookerExploreReferences) Descriptor
func (*LookerExploreReferences) Descriptor() ([]byte, []int)Deprecated: Use LookerExploreReferences.ProtoReflect.Descriptor instead.
func (*LookerExploreReferences) GetCredentials
func (x *LookerExploreReferences) GetCredentials() *Credentialsfunc (*LookerExploreReferences) GetExploreReferences
func (x *LookerExploreReferences) GetExploreReferences() []*LookerExploreReferencefunc (*LookerExploreReferences) ProtoMessage
func (*LookerExploreReferences) ProtoMessage()func (*LookerExploreReferences) ProtoReflect
func (x *LookerExploreReferences) ProtoReflect() protoreflect.Messagefunc (*LookerExploreReferences) Reset
func (x *LookerExploreReferences) Reset()func (*LookerExploreReferences) String
func (x *LookerExploreReferences) String() stringLookerGoldenQuery
type LookerGoldenQuery struct {
// Optional. Natural language questions that a user might ask.
// For example: "How many orders were placed last month?"
NaturalLanguageQuestions []string `protobuf:"bytes,4,rep,name=natural_language_questions,json=naturalLanguageQuestions,proto3" json:"natural_language_questions,omitempty"`
// Optional. The Looker Query corresponding to the natural language questions.
LookerQuery *LookerQuery `protobuf:"bytes,5,opt,name=looker_query,json=lookerQuery,proto3" json:"looker_query,omitempty"`
// contains filtered or unexported fields
}A golden query for Looker, including natural language questions and a corresponding Looker Query. Analogous to ExampleQuery.
func (*LookerGoldenQuery) Descriptor
func (*LookerGoldenQuery) Descriptor() ([]byte, []int)Deprecated: Use LookerGoldenQuery.ProtoReflect.Descriptor instead.
func (*LookerGoldenQuery) GetLookerQuery
func (x *LookerGoldenQuery) GetLookerQuery() *LookerQueryfunc (*LookerGoldenQuery) GetNaturalLanguageQuestions
func (x *LookerGoldenQuery) GetNaturalLanguageQuestions() []stringfunc (*LookerGoldenQuery) ProtoMessage
func (*LookerGoldenQuery) ProtoMessage()func (*LookerGoldenQuery) ProtoReflect
func (x *LookerGoldenQuery) ProtoReflect() protoreflect.Messagefunc (*LookerGoldenQuery) Reset
func (x *LookerGoldenQuery) Reset()func (*LookerGoldenQuery) String
func (x *LookerGoldenQuery) String() stringLookerQuery
type LookerQuery struct {
// Required. The LookML model used to generate the query.
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
// Required. The LookML explore used to generate the query.
Explore string `protobuf:"bytes,2,opt,name=explore,proto3" json:"explore,omitempty"`
// Optional. The fields to retrieve from the explore.
Fields []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
// Optional. The filters to apply to the explore.
Filters []*LookerQuery_Filter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
// Optional. The sorts to apply to the explore.
Sorts []string `protobuf:"bytes,5,rep,name=sorts,proto3" json:"sorts,omitempty"`
// Optional. Limit in the query.
Limit *string `protobuf:"bytes,6,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
// contains filtered or unexported fields
}Looker Query Object Looker API documentation.
func (*LookerQuery) Descriptor
func (*LookerQuery) Descriptor() ([]byte, []int)Deprecated: Use LookerQuery.ProtoReflect.Descriptor instead.
func (*LookerQuery) GetExplore
func (x *LookerQuery) GetExplore() stringfunc (*LookerQuery) GetFields
func (x *LookerQuery) GetFields() []stringfunc (*LookerQuery) GetFilters
func (x *LookerQuery) GetFilters() []*LookerQuery_Filterfunc (*LookerQuery) GetLimit
func (x *LookerQuery) GetLimit() stringfunc (*LookerQuery) GetModel
func (x *LookerQuery) GetModel() stringfunc (*LookerQuery) GetSorts
func (x *LookerQuery) GetSorts() []stringfunc (*LookerQuery) ProtoMessage
func (*LookerQuery) ProtoMessage()func (*LookerQuery) ProtoReflect
func (x *LookerQuery) ProtoReflect() protoreflect.Messagefunc (*LookerQuery) Reset
func (x *LookerQuery) Reset()func (*LookerQuery) String
func (x *LookerQuery) String() stringLookerQuery_Filter
type LookerQuery_Filter struct {
// Required. The field to filter on.
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// Required. The value for the field to filter on.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}A Looker query filter.
func (*LookerQuery_Filter) Descriptor
func (*LookerQuery_Filter) Descriptor() ([]byte, []int)Deprecated: Use LookerQuery_Filter.ProtoReflect.Descriptor instead.
func (*LookerQuery_Filter) GetField
func (x *LookerQuery_Filter) GetField() stringfunc (*LookerQuery_Filter) GetValue
func (x *LookerQuery_Filter) GetValue() stringfunc (*LookerQuery_Filter) ProtoMessage
func (*LookerQuery_Filter) ProtoMessage()func (*LookerQuery_Filter) ProtoReflect
func (x *LookerQuery_Filter) ProtoReflect() protoreflect.Messagefunc (*LookerQuery_Filter) Reset
func (x *LookerQuery_Filter) Reset()func (*LookerQuery_Filter) String
func (x *LookerQuery_Filter) String() stringMessage
type Message struct {
// The kind of message.
//
// Types that are valid to be assigned to Kind:
//
// *Message_UserMessage
// *Message_SystemMessage
Kind isMessage_Kind `protobuf_oneof:"kind"`
// Output only. For user messages, this is the time at which the system
// received the message. For system messages, this is the time at which the
// system generated the message.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Optional. unique id of the message in the conversation for persistence.
MessageId string `protobuf:"bytes,4,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// contains filtered or unexported fields
}A message from an interaction between the user and the system.
func (*Message) Descriptor
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) GetKind
func (x *Message) GetKind() isMessage_Kindfunc (*Message) GetMessageId
func (*Message) GetSystemMessage
func (x *Message) GetSystemMessage() *SystemMessagefunc (*Message) GetTimestamp
func (x *Message) GetTimestamp() *timestamppb.Timestampfunc (*Message) GetUserMessage
func (x *Message) GetUserMessage() *UserMessagefunc (*Message) ProtoMessage
func (*Message) ProtoMessage()func (*Message) ProtoReflect
func (x *Message) ProtoReflect() protoreflect.Messagefunc (*Message) Reset
func (x *Message) Reset()func (*Message) String
Message_SystemMessage
type Message_SystemMessage struct {
// A message from the system in response to the user.
SystemMessage *SystemMessage `protobuf:"bytes,3,opt,name=system_message,json=systemMessage,proto3,oneof"`
}Message_UserMessage
type Message_UserMessage struct {
// A message from the user that is interacting with the system.
UserMessage *UserMessage `protobuf:"bytes,2,opt,name=user_message,json=userMessage,proto3,oneof"`
}OAuthCredentials
type OAuthCredentials struct {
// The kind of OAuth credentials.
//
// Types that are valid to be assigned to Kind:
//
// *OAuthCredentials_Secret
// *OAuthCredentials_Token
Kind isOAuthCredentials_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}Represents OAuth credentials.
func (*OAuthCredentials) Descriptor
func (*OAuthCredentials) Descriptor() ([]byte, []int)Deprecated: Use OAuthCredentials.ProtoReflect.Descriptor instead.
func (*OAuthCredentials) GetKind
func (x *OAuthCredentials) GetKind() isOAuthCredentials_Kindfunc (*OAuthCredentials) GetSecret
func (x *OAuthCredentials) GetSecret() *OAuthCredentials_SecretBasedfunc (*OAuthCredentials) GetToken
func (x *OAuthCredentials) GetToken() *OAuthCredentials_TokenBasedfunc (*OAuthCredentials) ProtoMessage
func (*OAuthCredentials) ProtoMessage()func (*OAuthCredentials) ProtoReflect
func (x *OAuthCredentials) ProtoReflect() protoreflect.Messagefunc (*OAuthCredentials) Reset
func (x *OAuthCredentials) Reset()func (*OAuthCredentials) String
func (x *OAuthCredentials) String() stringOAuthCredentials_Secret
type OAuthCredentials_Secret struct {
// Secret-based OAuth credentials.
Secret *OAuthCredentials_SecretBased `protobuf:"bytes,2,opt,name=secret,proto3,oneof"`
}OAuthCredentials_SecretBased
type OAuthCredentials_SecretBased struct {
// Required. An OAuth client ID.
ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Required. An OAuth client secret.
ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
// contains filtered or unexported fields
}The name of the secret containing the access token. Represents secret-based OAuth credentials.
func (*OAuthCredentials_SecretBased) Descriptor
func (*OAuthCredentials_SecretBased) Descriptor() ([]byte, []int)Deprecated: Use OAuthCredentials_SecretBased.ProtoReflect.Descriptor instead.
func (*OAuthCredentials_SecretBased) GetClientId
func (x *OAuthCredentials_SecretBased) GetClientId() stringfunc (*OAuthCredentials_SecretBased) GetClientSecret
func (x *OAuthCredentials_SecretBased) GetClientSecret() stringfunc (*OAuthCredentials_SecretBased) ProtoMessage
func (*OAuthCredentials_SecretBased) ProtoMessage()func (*OAuthCredentials_SecretBased) ProtoReflect
func (x *OAuthCredentials_SecretBased) ProtoReflect() protoreflect.Messagefunc (*OAuthCredentials_SecretBased) Reset
func (x *OAuthCredentials_SecretBased) Reset()func (*OAuthCredentials_SecretBased) String
func (x *OAuthCredentials_SecretBased) String() stringOAuthCredentials_Token
type OAuthCredentials_Token struct {
// Token-based OAuth credentials.
Token *OAuthCredentials_TokenBased `protobuf:"bytes,3,opt,name=token,proto3,oneof"`
}OAuthCredentials_TokenBased
type OAuthCredentials_TokenBased struct {
// Required. The name of the secret containing the access token.
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
// contains filtered or unexported fields
}Read more about Looker access tokens here: https://developers.looker.com/api/advanced-usage/looker-api-oauth
func (*OAuthCredentials_TokenBased) Descriptor
func (*OAuthCredentials_TokenBased) Descriptor() ([]byte, []int)Deprecated: Use OAuthCredentials_TokenBased.ProtoReflect.Descriptor instead.
func (*OAuthCredentials_TokenBased) GetAccessToken
func (x *OAuthCredentials_TokenBased) GetAccessToken() stringfunc (*OAuthCredentials_TokenBased) ProtoMessage
func (*OAuthCredentials_TokenBased) ProtoMessage()func (*OAuthCredentials_TokenBased) ProtoReflect
func (x *OAuthCredentials_TokenBased) ProtoReflect() protoreflect.Messagefunc (*OAuthCredentials_TokenBased) Reset
func (x *OAuthCredentials_TokenBased) Reset()func (*OAuthCredentials_TokenBased) String
func (x *OAuthCredentials_TokenBased) String() stringOperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have been cancelled successfully
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringParameterizedSecureViewParameters
type ParameterizedSecureViewParameters struct {
// Optional. Named parameters for Parameterized Secure Views (PSV).
// The map keys are parameter names (e.g., `"user_id"`), and values are the
// corresponding parameter values (e.g., `"123"`).
Parameters map[string]string `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}Parameters for Parameterized Secure Views (PSV). These parameters are used to enforce row-level security during SQL generation and query execution.
func (*ParameterizedSecureViewParameters) Descriptor
func (*ParameterizedSecureViewParameters) Descriptor() ([]byte, []int)Deprecated: Use ParameterizedSecureViewParameters.ProtoReflect.Descriptor instead.
func (*ParameterizedSecureViewParameters) GetParameters
func (x *ParameterizedSecureViewParameters) GetParameters() map[string]stringfunc (*ParameterizedSecureViewParameters) ProtoMessage
func (*ParameterizedSecureViewParameters) ProtoMessage()func (*ParameterizedSecureViewParameters) ProtoReflect
func (x *ParameterizedSecureViewParameters) ProtoReflect() protoreflect.Messagefunc (*ParameterizedSecureViewParameters) Reset
func (x *ParameterizedSecureViewParameters) Reset()func (*ParameterizedSecureViewParameters) String
func (x *ParameterizedSecureViewParameters) String() stringPrivateLookerInstanceInfo
type PrivateLookerInstanceInfo struct {
// The Looker instance id.
LookerInstanceId string `protobuf:"bytes,1,opt,name=looker_instance_id,json=lookerInstanceId,proto3" json:"looker_instance_id,omitempty"`
// The service directory name of the Looker instance.
ServiceDirectoryName string `protobuf:"bytes,2,opt,name=service_directory_name,json=serviceDirectoryName,proto3" json:"service_directory_name,omitempty"`
// contains filtered or unexported fields
}Message representing a private Looker instance info required if the Looker instance is behind a private network.
func (*PrivateLookerInstanceInfo) Descriptor
func (*PrivateLookerInstanceInfo) Descriptor() ([]byte, []int)Deprecated: Use PrivateLookerInstanceInfo.ProtoReflect.Descriptor instead.
func (*PrivateLookerInstanceInfo) GetLookerInstanceId
func (x *PrivateLookerInstanceInfo) GetLookerInstanceId() stringfunc (*PrivateLookerInstanceInfo) GetServiceDirectoryName
func (x *PrivateLookerInstanceInfo) GetServiceDirectoryName() stringfunc (*PrivateLookerInstanceInfo) ProtoMessage
func (*PrivateLookerInstanceInfo) ProtoMessage()func (*PrivateLookerInstanceInfo) ProtoReflect
func (x *PrivateLookerInstanceInfo) ProtoReflect() protoreflect.Messagefunc (*PrivateLookerInstanceInfo) Reset
func (x *PrivateLookerInstanceInfo) Reset()func (*PrivateLookerInstanceInfo) String
func (x *PrivateLookerInstanceInfo) String() stringQueryDataContext
type QueryDataContext struct {
// Required. The datasource references to use for the query.
DatasourceReferences *DatasourceReferences `protobuf:"bytes,1,opt,name=datasource_references,json=datasourceReferences,proto3" json:"datasource_references,omitempty"`
// Optional. Parameters for Parameterized Secure Views (PSV).
ParameterizedSecureViewParameters *ParameterizedSecureViewParameters `protobuf:"bytes,2,opt,name=parameterized_secure_view_parameters,json=parameterizedSecureViewParameters,proto3" json:"parameterized_secure_view_parameters,omitempty"`
// contains filtered or unexported fields
}References to data sources and context to use for the query.
func (*QueryDataContext) Descriptor
func (*QueryDataContext) Descriptor() ([]byte, []int)Deprecated: Use QueryDataContext.ProtoReflect.Descriptor instead.
func (*QueryDataContext) GetDatasourceReferences
func (x *QueryDataContext) GetDatasourceReferences() *DatasourceReferencesfunc (*QueryDataContext) GetParameterizedSecureViewParameters
func (x *QueryDataContext) GetParameterizedSecureViewParameters() *ParameterizedSecureViewParametersfunc (*QueryDataContext) ProtoMessage
func (*QueryDataContext) ProtoMessage()func (*QueryDataContext) ProtoReflect
func (x *QueryDataContext) ProtoReflect() protoreflect.Messagefunc (*QueryDataContext) Reset
func (x *QueryDataContext) Reset()func (*QueryDataContext) String
func (x *QueryDataContext) String() stringQueryDataRequest
type QueryDataRequest struct {
// Required. The parent resource to generate the query for.
// Format: projects/{project}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The natural language query for which to generate query.
// Example: "What are the top 5 best selling products this month?"
Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"`
// Required. The context for the data query, including the data sources to
// use.
Context *QueryDataContext `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
// Optional. Options to control query generation and execution behavior.
GenerationOptions *GenerationOptions `protobuf:"bytes,4,opt,name=generation_options,json=generationOptions,proto3" json:"generation_options,omitempty"`
// contains filtered or unexported fields
}Request to query data from a natural language query.
func (*QueryDataRequest) Descriptor
func (*QueryDataRequest) Descriptor() ([]byte, []int)Deprecated: Use QueryDataRequest.ProtoReflect.Descriptor instead.
func (*QueryDataRequest) GetContext
func (x *QueryDataRequest) GetContext() *QueryDataContextfunc (*QueryDataRequest) GetGenerationOptions
func (x *QueryDataRequest) GetGenerationOptions() *GenerationOptionsfunc (*QueryDataRequest) GetParent
func (x *QueryDataRequest) GetParent() stringfunc (*QueryDataRequest) GetPrompt
func (x *QueryDataRequest) GetPrompt() stringfunc (*QueryDataRequest) ProtoMessage
func (*QueryDataRequest) ProtoMessage()func (*QueryDataRequest) ProtoReflect
func (x *QueryDataRequest) ProtoReflect() protoreflect.Messagefunc (*QueryDataRequest) Reset
func (x *QueryDataRequest) Reset()func (*QueryDataRequest) String
func (x *QueryDataRequest) String() stringQueryDataResponse
type QueryDataResponse struct {
// Generated query for the given user prompt.
GeneratedQuery string `protobuf:"bytes,1,opt,name=generated_query,json=generatedQuery,proto3" json:"generated_query,omitempty"`
// A natural language explanation of the generated query.
// Populated if options.generate_explanation was true in the request.
IntentExplanation string `protobuf:"bytes,2,opt,name=intent_explanation,json=intentExplanation,proto3" json:"intent_explanation,omitempty"`
// 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.
QueryResult *ExecutedQueryResult `protobuf:"bytes,3,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
// 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.
NaturalLanguageAnswer string `protobuf:"bytes,4,opt,name=natural_language_answer,json=naturalLanguageAnswer,proto3" json:"natural_language_answer,omitempty"`
// 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.
DisambiguationQuestion []string `protobuf:"bytes,5,rep,name=disambiguation_question,json=disambiguationQuestion,proto3" json:"disambiguation_question,omitempty"`
// contains filtered or unexported fields
}Response containing the generated query and related information.
func (*QueryDataResponse) Descriptor
func (*QueryDataResponse) Descriptor() ([]byte, []int)Deprecated: Use QueryDataResponse.ProtoReflect.Descriptor instead.
func (*QueryDataResponse) GetDisambiguationQuestion
func (x *QueryDataResponse) GetDisambiguationQuestion() []stringfunc (*QueryDataResponse) GetGeneratedQuery
func (x *QueryDataResponse) GetGeneratedQuery() stringfunc (*QueryDataResponse) GetIntentExplanation
func (x *QueryDataResponse) GetIntentExplanation() stringfunc (*QueryDataResponse) GetNaturalLanguageAnswer
func (x *QueryDataResponse) GetNaturalLanguageAnswer() stringfunc (*QueryDataResponse) GetQueryResult
func (x *QueryDataResponse) GetQueryResult() *ExecutedQueryResultfunc (*QueryDataResponse) ProtoMessage
func (*QueryDataResponse) ProtoMessage()func (*QueryDataResponse) ProtoReflect
func (x *QueryDataResponse) ProtoReflect() protoreflect.Messagefunc (*QueryDataResponse) Reset
func (x *QueryDataResponse) Reset()func (*QueryDataResponse) String
func (x *QueryDataResponse) String() stringSchema
type Schema struct {
// Optional. The fields in the schema.
Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
// Optional. A textual description of the table's content and purpose.
// For example: "Contains information about customer orders in our e-commerce
// store." Currently only used for BigQuery data sources.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Optional. A list of alternative names or synonyms that can be used to refer
// to the table. For example: ["sales", "orders", "purchases"]. Currently only
// used for BigQuery data sources.
Synonyms []string `protobuf:"bytes,3,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
// Optional. A list of tags or keywords associated with the table, used for
// categorization. For example: ["transaction", "revenue", "customer_data"].
// Currently only used for BigQuery data sources.
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
// Optional. Table display_name (same as label in
// cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not
// required, currently only Looker has this field.
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The filters on the datasource's underlying data. Currently only
// used for Looker data sources.
Filters []*DataFilter `protobuf:"bytes,6,rep,name=filters,proto3" json:"filters,omitempty"`
// contains filtered or unexported fields
}The schema of a Datasource or QueryResult instance.
func (*Schema) Descriptor
Deprecated: Use Schema.ProtoReflect.Descriptor instead.
func (*Schema) GetDescription
func (*Schema) GetDisplayName
func (*Schema) GetFields
func (*Schema) GetFilters
func (x *Schema) GetFilters() []*DataFilterfunc (*Schema) GetSynonyms
func (*Schema) GetTags
func (*Schema) ProtoMessage
func (*Schema) ProtoMessage()func (*Schema) ProtoReflect
func (x *Schema) ProtoReflect() protoreflect.Messagefunc (*Schema) Reset
func (x *Schema) Reset()func (*Schema) String
SchemaMessage
type SchemaMessage struct {
// Whether this message contains the query or the result of the schema
// resolution.
//
// Types that are valid to be assigned to Kind:
//
// *SchemaMessage_Query
// *SchemaMessage_Result
Kind isSchemaMessage_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}A message produced during schema resolution.
func (*SchemaMessage) Descriptor
func (*SchemaMessage) Descriptor() ([]byte, []int)Deprecated: Use SchemaMessage.ProtoReflect.Descriptor instead.
func (*SchemaMessage) GetKind
func (x *SchemaMessage) GetKind() isSchemaMessage_Kindfunc (*SchemaMessage) GetQuery
func (x *SchemaMessage) GetQuery() *SchemaQueryfunc (*SchemaMessage) GetResult
func (x *SchemaMessage) GetResult() *SchemaResultfunc (*SchemaMessage) ProtoMessage
func (*SchemaMessage) ProtoMessage()func (*SchemaMessage) ProtoReflect
func (x *SchemaMessage) ProtoReflect() protoreflect.Messagefunc (*SchemaMessage) Reset
func (x *SchemaMessage) Reset()func (*SchemaMessage) String
func (x *SchemaMessage) String() stringSchemaMessage_Query
type SchemaMessage_Query struct {
// A schema resolution query.
Query *SchemaQuery `protobuf:"bytes,1,opt,name=query,proto3,oneof"`
}SchemaMessage_Result
type SchemaMessage_Result struct {
// The result of a schema resolution query.
Result *SchemaResult `protobuf:"bytes,2,opt,name=result,proto3,oneof"`
}SchemaQuery
type SchemaQuery struct {
// Optional. The question to send to the system for schema resolution.
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
// contains filtered or unexported fields
}A query for resolving the schema relevant to the posed question.
func (*SchemaQuery) Descriptor
func (*SchemaQuery) Descriptor() ([]byte, []int)Deprecated: Use SchemaQuery.ProtoReflect.Descriptor instead.
func (*SchemaQuery) GetQuestion
func (x *SchemaQuery) GetQuestion() stringfunc (*SchemaQuery) ProtoMessage
func (*SchemaQuery) ProtoMessage()func (*SchemaQuery) ProtoReflect
func (x *SchemaQuery) ProtoReflect() protoreflect.Messagefunc (*SchemaQuery) Reset
func (x *SchemaQuery) Reset()func (*SchemaQuery) String
func (x *SchemaQuery) String() stringSchemaResult
type SchemaResult struct {
// Optional. The datasources used to resolve the schema query.
Datasources []*Datasource `protobuf:"bytes,1,rep,name=datasources,proto3" json:"datasources,omitempty"`
// contains filtered or unexported fields
}The result of schema resolution.
func (*SchemaResult) Descriptor
func (*SchemaResult) Descriptor() ([]byte, []int)Deprecated: Use SchemaResult.ProtoReflect.Descriptor instead.
func (*SchemaResult) GetDatasources
func (x *SchemaResult) GetDatasources() []*Datasourcefunc (*SchemaResult) ProtoMessage
func (*SchemaResult) ProtoMessage()func (*SchemaResult) ProtoReflect
func (x *SchemaResult) ProtoReflect() protoreflect.Messagefunc (*SchemaResult) Reset
func (x *SchemaResult) Reset()func (*SchemaResult) String
func (x *SchemaResult) String() stringSpannerDatabaseReference
type SpannerDatabaseReference struct {
// Required. The engine of the Spanner instance.
Engine SpannerDatabaseReference_Engine `protobuf:"varint,6,opt,name=engine,proto3,enum=google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference_Engine" json:"engine,omitempty"`
// Required. The project the instance belongs to.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The region of the instance.
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// Required. The instance id.
InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Required. The database id.
DatabaseId string `protobuf:"bytes,4,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
// Optional. The table ids. Denotes all tables if unset.
TableIds []string `protobuf:"bytes,5,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single Spanner database.
func (*SpannerDatabaseReference) Descriptor
func (*SpannerDatabaseReference) Descriptor() ([]byte, []int)Deprecated: Use SpannerDatabaseReference.ProtoReflect.Descriptor instead.
func (*SpannerDatabaseReference) GetDatabaseId
func (x *SpannerDatabaseReference) GetDatabaseId() stringfunc (*SpannerDatabaseReference) GetEngine
func (x *SpannerDatabaseReference) GetEngine() SpannerDatabaseReference_Enginefunc (*SpannerDatabaseReference) GetInstanceId
func (x *SpannerDatabaseReference) GetInstanceId() stringfunc (*SpannerDatabaseReference) GetProjectId
func (x *SpannerDatabaseReference) GetProjectId() stringfunc (*SpannerDatabaseReference) GetRegion
func (x *SpannerDatabaseReference) GetRegion() stringfunc (*SpannerDatabaseReference) GetTableIds
func (x *SpannerDatabaseReference) GetTableIds() []stringfunc (*SpannerDatabaseReference) ProtoMessage
func (*SpannerDatabaseReference) ProtoMessage()func (*SpannerDatabaseReference) ProtoReflect
func (x *SpannerDatabaseReference) ProtoReflect() protoreflect.Messagefunc (*SpannerDatabaseReference) Reset
func (x *SpannerDatabaseReference) Reset()func (*SpannerDatabaseReference) String
func (x *SpannerDatabaseReference) String() stringSpannerDatabaseReference_Engine
type SpannerDatabaseReference_Engine int32The database engine.
SpannerDatabaseReference_ENGINE_UNSPECIFIED, SpannerDatabaseReference_GOOGLE_SQL, SpannerDatabaseReference_POSTGRESQL
const (
// Engine is not specified.
SpannerDatabaseReference_ENGINE_UNSPECIFIED SpannerDatabaseReference_Engine = 0
// Google SQL
SpannerDatabaseReference_GOOGLE_SQL SpannerDatabaseReference_Engine = 1
// PostgreSQL
SpannerDatabaseReference_POSTGRESQL SpannerDatabaseReference_Engine = 2
)func (SpannerDatabaseReference_Engine) Descriptor
func (SpannerDatabaseReference_Engine) Descriptor() protoreflect.EnumDescriptorfunc (SpannerDatabaseReference_Engine) Enum
func (x SpannerDatabaseReference_Engine) Enum() *SpannerDatabaseReference_Enginefunc (SpannerDatabaseReference_Engine) EnumDescriptor
func (SpannerDatabaseReference_Engine) EnumDescriptor() ([]byte, []int)Deprecated: Use SpannerDatabaseReference_Engine.Descriptor instead.
func (SpannerDatabaseReference_Engine) Number
func (x SpannerDatabaseReference_Engine) Number() protoreflect.EnumNumberfunc (SpannerDatabaseReference_Engine) String
func (x SpannerDatabaseReference_Engine) String() stringfunc (SpannerDatabaseReference_Engine) Type
func (SpannerDatabaseReference_Engine) Type() protoreflect.EnumTypeSpannerReference
type SpannerReference struct {
// Required. Singular proto that supports specifying which database and tables
// to include.
DatabaseReference *SpannerDatabaseReference `protobuf:"bytes,1,opt,name=database_reference,json=databaseReference,proto3" json:"database_reference,omitempty"`
// Optional. Parameters for retrieving data from Agent Context.
AgentContextReference *AgentContextReference `protobuf:"bytes,2,opt,name=agent_context_reference,json=agentContextReference,proto3" json:"agent_context_reference,omitempty"`
// contains filtered or unexported fields
}Message representing reference to a Spanner database and agent context.
Only supported for the QueryData method.
func (*SpannerReference) Descriptor
func (*SpannerReference) Descriptor() ([]byte, []int)Deprecated: Use SpannerReference.ProtoReflect.Descriptor instead.
func (*SpannerReference) GetAgentContextReference
func (x *SpannerReference) GetAgentContextReference() *AgentContextReferencefunc (*SpannerReference) GetDatabaseReference
func (x *SpannerReference) GetDatabaseReference() *SpannerDatabaseReferencefunc (*SpannerReference) ProtoMessage
func (*SpannerReference) ProtoMessage()func (*SpannerReference) ProtoReflect
func (x *SpannerReference) ProtoReflect() protoreflect.Messagefunc (*SpannerReference) Reset
func (x *SpannerReference) Reset()func (*SpannerReference) String
func (x *SpannerReference) String() stringStorageMessage
type StorageMessage struct {
// The unique resource name of a chat message.
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// The message content.
Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}A stored message containing user message or system message.
func (*StorageMessage) Descriptor
func (*StorageMessage) Descriptor() ([]byte, []int)Deprecated: Use StorageMessage.ProtoReflect.Descriptor instead.
func (*StorageMessage) GetMessage
func (x *StorageMessage) GetMessage() *Messagefunc (*StorageMessage) GetMessageId
func (x *StorageMessage) GetMessageId() stringfunc (*StorageMessage) ProtoMessage
func (*StorageMessage) ProtoMessage()func (*StorageMessage) ProtoReflect
func (x *StorageMessage) ProtoReflect() protoreflect.Messagefunc (*StorageMessage) Reset
func (x *StorageMessage) Reset()func (*StorageMessage) String
func (x *StorageMessage) String() stringStudioDatasourceReference
type StudioDatasourceReference struct {
// Required. The id of the datasource.
DatasourceId string `protobuf:"bytes,1,opt,name=datasource_id,json=datasourceId,proto3" json:"datasource_id,omitempty"`
// contains filtered or unexported fields
}Message representing a reference to a single Looker Studio datasource.
func (*StudioDatasourceReference) Descriptor
func (*StudioDatasourceReference) Descriptor() ([]byte, []int)Deprecated: Use StudioDatasourceReference.ProtoReflect.Descriptor instead.
func (*StudioDatasourceReference) GetDatasourceId
func (x *StudioDatasourceReference) GetDatasourceId() stringfunc (*StudioDatasourceReference) ProtoMessage
func (*StudioDatasourceReference) ProtoMessage()func (*StudioDatasourceReference) ProtoReflect
func (x *StudioDatasourceReference) ProtoReflect() protoreflect.Messagefunc (*StudioDatasourceReference) Reset
func (x *StudioDatasourceReference) Reset()func (*StudioDatasourceReference) String
func (x *StudioDatasourceReference) String() stringStudioDatasourceReferences
type StudioDatasourceReferences struct {
// The references to the studio datasources.
StudioReferences []*StudioDatasourceReference `protobuf:"bytes,2,rep,name=studio_references,json=studioReferences,proto3" json:"studio_references,omitempty"`
// contains filtered or unexported fields
}Message representing references to Looker Studio datasources.
func (*StudioDatasourceReferences) Descriptor
func (*StudioDatasourceReferences) Descriptor() ([]byte, []int)Deprecated: Use StudioDatasourceReferences.ProtoReflect.Descriptor instead.
func (*StudioDatasourceReferences) GetStudioReferences
func (x *StudioDatasourceReferences) GetStudioReferences() []*StudioDatasourceReferencefunc (*StudioDatasourceReferences) ProtoMessage
func (*StudioDatasourceReferences) ProtoMessage()func (*StudioDatasourceReferences) ProtoReflect
func (x *StudioDatasourceReferences) ProtoReflect() protoreflect.Messagefunc (*StudioDatasourceReferences) Reset
func (x *StudioDatasourceReferences) Reset()func (*StudioDatasourceReferences) String
func (x *StudioDatasourceReferences) String() stringSystemMessage
type SystemMessage struct {
// The kind of content in the system message.
//
// Types that are valid to be assigned to Kind:
//
// *SystemMessage_Text
// *SystemMessage_Schema
// *SystemMessage_Data
// *SystemMessage_Analysis
// *SystemMessage_Chart
// *SystemMessage_Error
// *SystemMessage_ExampleQueries
// *SystemMessage_Clarification
Kind isSystemMessage_Kind `protobuf_oneof:"kind"`
// Identifies the group that the event belongs to. Similar events are deemed
// to be logically relevant to each other and should be shown together in
// the UI.
GroupId *int32 `protobuf:"varint,12,opt,name=group_id,json=groupId,proto3,oneof" json:"group_id,omitempty"`
// contains filtered or unexported fields
}A message from the system in response to the user. This message can also be a message from the user as historical context for multiturn conversations with the system.
func (*SystemMessage) Descriptor
func (*SystemMessage) Descriptor() ([]byte, []int)Deprecated: Use SystemMessage.ProtoReflect.Descriptor instead.
func (*SystemMessage) GetAnalysis
func (x *SystemMessage) GetAnalysis() *AnalysisMessagefunc (*SystemMessage) GetChart
func (x *SystemMessage) GetChart() *ChartMessagefunc (*SystemMessage) GetClarification
func (x *SystemMessage) GetClarification() *ClarificationMessagefunc (*SystemMessage) GetData
func (x *SystemMessage) GetData() *DataMessagefunc (*SystemMessage) GetError
func (x *SystemMessage) GetError() *ErrorMessagefunc (*SystemMessage) GetExampleQueries
func (x *SystemMessage) GetExampleQueries() *ExampleQueriesfunc (*SystemMessage) GetGroupId
func (x *SystemMessage) GetGroupId() int32func (*SystemMessage) GetKind
func (x *SystemMessage) GetKind() isSystemMessage_Kindfunc (*SystemMessage) GetSchema
func (x *SystemMessage) GetSchema() *SchemaMessagefunc (*SystemMessage) GetText
func (x *SystemMessage) GetText() *TextMessagefunc (*SystemMessage) ProtoMessage
func (*SystemMessage) ProtoMessage()func (*SystemMessage) ProtoReflect
func (x *SystemMessage) ProtoReflect() protoreflect.Messagefunc (*SystemMessage) Reset
func (x *SystemMessage) Reset()func (*SystemMessage) String
func (x *SystemMessage) String() stringSystemMessage_Analysis
type SystemMessage_Analysis struct {
// A message produced during analysis.
Analysis *AnalysisMessage `protobuf:"bytes,4,opt,name=analysis,proto3,oneof"`
}SystemMessage_Chart
type SystemMessage_Chart struct {
// A message produced during chart generation.
Chart *ChartMessage `protobuf:"bytes,5,opt,name=chart,proto3,oneof"`
}SystemMessage_Clarification
type SystemMessage_Clarification struct {
// Optional. A message containing clarification questions.
Clarification *ClarificationMessage `protobuf:"bytes,14,opt,name=clarification,proto3,oneof"`
}SystemMessage_Data
type SystemMessage_Data struct {
// A message produced during data retrieval.
Data *DataMessage `protobuf:"bytes,3,opt,name=data,proto3,oneof"`
}SystemMessage_Error
type SystemMessage_Error struct {
// An error message.
Error *ErrorMessage `protobuf:"bytes,6,opt,name=error,proto3,oneof"`
}SystemMessage_ExampleQueries
type SystemMessage_ExampleQueries struct {
// Optional. A message containing example queries.
ExampleQueries *ExampleQueries `protobuf:"bytes,13,opt,name=example_queries,json=exampleQueries,proto3,oneof"`
}SystemMessage_Schema
type SystemMessage_Schema struct {
// A message produced during schema resolution.
Schema *SchemaMessage `protobuf:"bytes,2,opt,name=schema,proto3,oneof"`
}SystemMessage_Text
type SystemMessage_Text struct {
// A direct natural language response to the user message.
Text *TextMessage `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}TextMessage
type TextMessage struct {
// Optional. The parts of the message.
Parts []string `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"`
// Optional. The type of the text message.
TextType TextMessage_TextType `protobuf:"varint,2,opt,name=text_type,json=textType,proto3,enum=google.cloud.geminidataanalytics.v1beta.TextMessage_TextType" json:"text_type,omitempty"`
// Optional. An opaque signature for a thought so it can be reused in
// subsequent requests.
ThoughtSignature []byte `protobuf:"bytes,3,opt,name=thought_signature,json=thoughtSignature,proto3" json:"thought_signature,omitempty"`
// contains filtered or unexported fields
}A multi-part text message.
func (*TextMessage) Descriptor
func (*TextMessage) Descriptor() ([]byte, []int)Deprecated: Use TextMessage.ProtoReflect.Descriptor instead.
func (*TextMessage) GetParts
func (x *TextMessage) GetParts() []stringfunc (*TextMessage) GetTextType
func (x *TextMessage) GetTextType() TextMessage_TextTypefunc (*TextMessage) GetThoughtSignature
func (x *TextMessage) GetThoughtSignature() []bytefunc (*TextMessage) ProtoMessage
func (*TextMessage) ProtoMessage()func (*TextMessage) ProtoReflect
func (x *TextMessage) ProtoReflect() protoreflect.Messagefunc (*TextMessage) Reset
func (x *TextMessage) Reset()func (*TextMessage) String
func (x *TextMessage) String() stringTextMessage_TextType
type TextMessage_TextType int32The type of the text message.
TextMessage_TEXT_TYPE_UNSPECIFIED, TextMessage_FINAL_RESPONSE, TextMessage_THOUGHT, TextMessage_PROGRESS
const (
// The default text type.
TextMessage_TEXT_TYPE_UNSPECIFIED TextMessage_TextType = 0
// The text is a final response to the user question.
TextMessage_FINAL_RESPONSE TextMessage_TextType = 1
// The text is a thought from the model.
TextMessage_THOUGHT TextMessage_TextType = 2
// The text is an informational message about the agent's progress, such as
// a tool being invoked. This is distinct from the agent's internal thought
// process (`THOUGHT`) and the final answer to the user
// (`FINAL_RESPONSE`). These messages provide insight into the agent's
// actions.
TextMessage_PROGRESS TextMessage_TextType = 3
)func (TextMessage_TextType) Descriptor
func (TextMessage_TextType) Descriptor() protoreflect.EnumDescriptorfunc (TextMessage_TextType) Enum
func (x TextMessage_TextType) Enum() *TextMessage_TextTypefunc (TextMessage_TextType) EnumDescriptor
func (TextMessage_TextType) EnumDescriptor() ([]byte, []int)Deprecated: Use TextMessage_TextType.Descriptor instead.
func (TextMessage_TextType) Number
func (x TextMessage_TextType) Number() protoreflect.EnumNumberfunc (TextMessage_TextType) String
func (x TextMessage_TextType) String() stringfunc (TextMessage_TextType) Type
func (TextMessage_TextType) Type() protoreflect.EnumTypeUnimplementedDataAgentServiceServer
type UnimplementedDataAgentServiceServer struct {
}UnimplementedDataAgentServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDataAgentServiceServer) CreateDataAgent
func (UnimplementedDataAgentServiceServer) CreateDataAgent(context.Context, *CreateDataAgentRequest) (*longrunningpb.Operation, error)func (UnimplementedDataAgentServiceServer) CreateDataAgentSync
func (UnimplementedDataAgentServiceServer) CreateDataAgentSync(context.Context, *CreateDataAgentRequest) (*DataAgent, error)func (UnimplementedDataAgentServiceServer) DeleteDataAgent
func (UnimplementedDataAgentServiceServer) DeleteDataAgent(context.Context, *DeleteDataAgentRequest) (*longrunningpb.Operation, error)func (UnimplementedDataAgentServiceServer) DeleteDataAgentSync
func (UnimplementedDataAgentServiceServer) DeleteDataAgentSync(context.Context, *DeleteDataAgentRequest) (*emptypb.Empty, error)func (UnimplementedDataAgentServiceServer) GetDataAgent
func (UnimplementedDataAgentServiceServer) GetDataAgent(context.Context, *GetDataAgentRequest) (*DataAgent, error)func (UnimplementedDataAgentServiceServer) GetIamPolicy
func (UnimplementedDataAgentServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedDataAgentServiceServer) ListAccessibleDataAgents
func (UnimplementedDataAgentServiceServer) ListAccessibleDataAgents(context.Context, *ListAccessibleDataAgentsRequest) (*ListAccessibleDataAgentsResponse, error)func (UnimplementedDataAgentServiceServer) ListDataAgents
func (UnimplementedDataAgentServiceServer) ListDataAgents(context.Context, *ListDataAgentsRequest) (*ListDataAgentsResponse, error)func (UnimplementedDataAgentServiceServer) SetIamPolicy
func (UnimplementedDataAgentServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedDataAgentServiceServer) UpdateDataAgent
func (UnimplementedDataAgentServiceServer) UpdateDataAgent(context.Context, *UpdateDataAgentRequest) (*longrunningpb.Operation, error)func (UnimplementedDataAgentServiceServer) UpdateDataAgentSync
func (UnimplementedDataAgentServiceServer) UpdateDataAgentSync(context.Context, *UpdateDataAgentRequest) (*DataAgent, error)UnimplementedDataChatServiceServer
type UnimplementedDataChatServiceServer struct {
}UnimplementedDataChatServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDataChatServiceServer) Chat
func (UnimplementedDataChatServiceServer) CreateConversation
func (UnimplementedDataChatServiceServer) CreateConversation(context.Context, *CreateConversationRequest) (*Conversation, error)func (UnimplementedDataChatServiceServer) DeleteConversation
func (UnimplementedDataChatServiceServer) DeleteConversation(context.Context, *DeleteConversationRequest) (*emptypb.Empty, error)func (UnimplementedDataChatServiceServer) GetConversation
func (UnimplementedDataChatServiceServer) GetConversation(context.Context, *GetConversationRequest) (*Conversation, error)func (UnimplementedDataChatServiceServer) ListConversations
func (UnimplementedDataChatServiceServer) ListConversations(context.Context, *ListConversationsRequest) (*ListConversationsResponse, error)func (UnimplementedDataChatServiceServer) ListMessages
func (UnimplementedDataChatServiceServer) ListMessages(context.Context, *ListMessagesRequest) (*ListMessagesResponse, error)func (UnimplementedDataChatServiceServer) QueryData
func (UnimplementedDataChatServiceServer) QueryData(context.Context, *QueryDataRequest) (*QueryDataResponse, error)UnsafeDataAgentServiceServer
type UnsafeDataAgentServiceServer interface {
// contains filtered or unexported methods
}UnsafeDataAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataAgentServiceServer will result in compilation errors.
UnsafeDataChatServiceServer
type UnsafeDataChatServiceServer interface {
// contains filtered or unexported methods
}UnsafeDataChatServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataChatServiceServer will result in compilation errors.
UpdateDataAgentRequest
type UpdateDataAgentRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// DataAgent resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields with non-default values
// present in the request will be overwritten. If a wildcard mask is provided,
// all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated.
DataAgent *DataAgent `protobuf:"bytes,2,opt,name=data_agent,json=dataAgent,proto3" json:"data_agent,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Message for updating a DataAgent.
func (*UpdateDataAgentRequest) Descriptor
func (*UpdateDataAgentRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateDataAgentRequest.ProtoReflect.Descriptor instead.
func (*UpdateDataAgentRequest) GetDataAgent
func (x *UpdateDataAgentRequest) GetDataAgent() *DataAgentfunc (*UpdateDataAgentRequest) GetRequestId
func (x *UpdateDataAgentRequest) GetRequestId() stringfunc (*UpdateDataAgentRequest) GetUpdateMask
func (x *UpdateDataAgentRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateDataAgentRequest) ProtoMessage
func (*UpdateDataAgentRequest) ProtoMessage()func (*UpdateDataAgentRequest) ProtoReflect
func (x *UpdateDataAgentRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateDataAgentRequest) Reset
func (x *UpdateDataAgentRequest) Reset()func (*UpdateDataAgentRequest) String
func (x *UpdateDataAgentRequest) String() stringUserMessage
type UserMessage struct {
// The kind of content in the user message.
//
// Types that are valid to be assigned to Kind:
//
// *UserMessage_Text
Kind isUserMessage_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}A message from the user that is interacting with the system.
func (*UserMessage) Descriptor
func (*UserMessage) Descriptor() ([]byte, []int)Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
func (*UserMessage) GetKind
func (x *UserMessage) GetKind() isUserMessage_Kindfunc (*UserMessage) GetText
func (x *UserMessage) GetText() stringfunc (*UserMessage) ProtoMessage
func (*UserMessage) ProtoMessage()func (*UserMessage) ProtoReflect
func (x *UserMessage) ProtoReflect() protoreflect.Messagefunc (*UserMessage) Reset
func (x *UserMessage) Reset()func (*UserMessage) String
func (x *UserMessage) String() stringUserMessage_Text
type UserMessage_Text struct {
// Text should use this field instead of blob.
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}