google-cloud-gemini_data_analytics-v1beta 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +5 -6
- data/lib/google/cloud/gemini_data_analytics/v1beta/bindings_override.rb +2 -2
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/client.rb +697 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/credentials.rb +47 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest/client.rb +643 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest/service_stub.rb +283 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service/rest.rb +53 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_a2_a_service.rb +55 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +237 -2
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/credentials.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/paths.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +223 -2
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/operations.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb +124 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +106 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/credentials.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/paths.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +99 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +63 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/rest.rb +3 -2
- data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta.rb +4 -3
- data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +2 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +3 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_a2a_service_pb.rb +64 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_a2a_service_services_pb.rb +52 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_pb.rb +2 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb +6 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb +7 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +2 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +3 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +5 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/usage_pb.rb +21 -0
- data/lib/google-cloud-gemini_data_analytics-v1beta.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/agent_context.rb +1 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +83 -2
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +28 -4
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/credentials.rb +1 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_a2a_service.rb +825 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +52 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent_service.rb +101 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_analytics_agent.rb +1 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +23 -4
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +108 -18
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/usage.rb +38 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +1 -1
- data/proto_docs/google/iam/v1/options.rb +1 -1
- data/proto_docs/google/iam/v1/policy.rb +1 -1
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/protobuf/wrappers.rb +1 -1
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/expr.rb +1 -1
- metadata +20 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -77,6 +77,57 @@ module Google
|
|
|
77
77
|
# DataAgent resources. Cloud KMS CryptoKeys must reside in the same location
|
|
78
78
|
# as the DataAgent. The expected format is
|
|
79
79
|
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
80
|
+
# @!attribute [rw] bigquery_agent_analytics_enabled
|
|
81
|
+
# @return [::Boolean]
|
|
82
|
+
# Optional. Controls whether BigQuery Agent Analytics trace logging is
|
|
83
|
+
# enabled for the agent.
|
|
84
|
+
#
|
|
85
|
+
# BigQuery Agent Analytics is in Preview and is delivered to enrolled
|
|
86
|
+
# projects only. In a project that is not enrolled this field is accepted
|
|
87
|
+
# and stored, but no trace rows are written and no error is returned.
|
|
88
|
+
#
|
|
89
|
+
# Trace logging is additionally suppressed for the entire turn, without
|
|
90
|
+
# error, when any table in the agent's datasource carries row-level
|
|
91
|
+
# security, column-level security or policy tags. It is also suppressed
|
|
92
|
+
# when that determination cannot be made, for example when the caller
|
|
93
|
+
# lacks permission to list a table's row access policies.
|
|
94
|
+
#
|
|
95
|
+
# Trace rows are written only when this is `true` and
|
|
96
|
+
# `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling
|
|
97
|
+
# this without a table has no effect: no table is created for the agent
|
|
98
|
+
# and no rows are written. On an agent whose datasource is not BigQuery,
|
|
99
|
+
# `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`.
|
|
100
|
+
#
|
|
101
|
+
# This setting is independent of the project-level BigQuery Agent Analytics
|
|
102
|
+
# setting configured through `SetAgentOpsObservability`. An agent does not
|
|
103
|
+
# inherit that setting.
|
|
104
|
+
# @!attribute [rw] bigquery_agent_analytics_table
|
|
105
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReference]
|
|
106
|
+
# Optional. The BigQuery table that BigQuery Agent Analytics trace rows are
|
|
107
|
+
# written to. Has no effect unless `bigquery_agent_analytics_enabled` is
|
|
108
|
+
# `true`. The Preview enrollment described on that field applies here too.
|
|
109
|
+
#
|
|
110
|
+
# The trace table is validated when it is set on `CreateDataAgent`, or when
|
|
111
|
+
# it is included in the `update_mask` of an `UpdateDataAgent` call. The
|
|
112
|
+
# following are rejected with `INVALID_ARGUMENT`:
|
|
113
|
+
#
|
|
114
|
+
# * The table must belong to the same project as the agent.
|
|
115
|
+
# * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not
|
|
116
|
+
# supported for Looker, Looker Studio or AlloyDB agents.
|
|
117
|
+
#
|
|
118
|
+
# These are validated against the agent as sent in the request. An agent
|
|
119
|
+
# that carries no datasource is not validated, and an agent switched to a
|
|
120
|
+
# non-BigQuery datasource is not re-validated; in the latter case no trace
|
|
121
|
+
# rows are written.
|
|
122
|
+
#
|
|
123
|
+
# The destination dataset must already exist and must grant write access to
|
|
124
|
+
# the project's Gemini Data Analytics service agent, whose address is
|
|
125
|
+
# `service-PROJECT_NUMBER@gcp-sa-geminidataanalytics.iam.gserviceaccount.com`
|
|
126
|
+
# (that grant is not performed on your behalf). Without it the agent answers
|
|
127
|
+
# normally and no trace rows are written.
|
|
128
|
+
#
|
|
129
|
+
# Changing the table on an existing agent affects subsequent turns only. Rows
|
|
130
|
+
# already written to the previous table are left in place.
|
|
80
131
|
class DataAgent
|
|
81
132
|
include ::Google::Protobuf::MessageExts
|
|
82
133
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -48,6 +48,9 @@ module Google
|
|
|
48
48
|
# @return [::Boolean]
|
|
49
49
|
# Optional. If true, the list results will include soft-deleted DataAgents.
|
|
50
50
|
# Defaults to false.
|
|
51
|
+
# @!attribute [rw] creator_filter
|
|
52
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ListAccessibleDataAgentsRequest::CreatorFilter]
|
|
53
|
+
# Optional. Filter for the creator of the agent.
|
|
51
54
|
class ListDataAgentsRequest
|
|
52
55
|
include ::Google::Protobuf::MessageExts
|
|
53
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -261,6 +264,103 @@ module Google
|
|
|
261
264
|
include ::Google::Protobuf::MessageExts
|
|
262
265
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
263
266
|
end
|
|
267
|
+
|
|
268
|
+
# Request for SetAgentOpsObservability.
|
|
269
|
+
# @!attribute [rw] parent
|
|
270
|
+
# @return [::String]
|
|
271
|
+
# Required. Parent value for SetAgentOpsObservabilityRequest.
|
|
272
|
+
# Format: projects/\\{project}/locations/\\{location}
|
|
273
|
+
# @!attribute [rw] telemetry_enabled
|
|
274
|
+
# @return [::Boolean]
|
|
275
|
+
# Optional. Whether to enable or disable AgentOps observability.
|
|
276
|
+
# When update_mask is provided, this field is ignored unless specified in the
|
|
277
|
+
# mask.
|
|
278
|
+
# @!attribute [rw] data_source_type
|
|
279
|
+
# @return [::String]
|
|
280
|
+
# Required. The data source type for which to set observability settings.
|
|
281
|
+
# Examples: "bigquery", "looker"
|
|
282
|
+
# @!attribute [rw] bqaa_enabled
|
|
283
|
+
# @return [::Boolean]
|
|
284
|
+
# Optional. Whether BigQuery Agent Analytics is enabled.
|
|
285
|
+
# Note: An explicit `update_mask` containing "bqaa_enabled" is required to
|
|
286
|
+
# modify this field. If `update_mask` is omitted, this field is ignored and
|
|
287
|
+
# an existing enabled setting cannot be disabled.
|
|
288
|
+
#
|
|
289
|
+
# This is a project-level setting and does not by itself enable trace
|
|
290
|
+
# logging for any individual agent. Per-agent trace logging is controlled
|
|
291
|
+
# by `DataAgent.bigquery_agent_analytics_enabled` together with
|
|
292
|
+
# `DataAgent.bigquery_agent_analytics_table`; an agent does not inherit
|
|
293
|
+
# this setting.
|
|
294
|
+
# @!attribute [rw] update_mask
|
|
295
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
296
|
+
# Optional. Field mask is used to specify the fields to be overwritten by the
|
|
297
|
+
# update. The fields specified in the update_mask are relative to the
|
|
298
|
+
# resource. A field will be overwritten if it is in the mask.
|
|
299
|
+
#
|
|
300
|
+
# If the user does not provide a mask, only `telemetry_enabled` will be
|
|
301
|
+
# updated (for backward compatibility with legacy callers). Note that
|
|
302
|
+
# disabling BigQuery Agent Analytics (`bqaa_enabled = false`) requires
|
|
303
|
+
# providing an explicit `update_mask` containing "bqaa_enabled".
|
|
304
|
+
#
|
|
305
|
+
# Per AIP-161:
|
|
306
|
+
# - The special wildcard value '*' is supported to update all fields.
|
|
307
|
+
# - Field paths should use snake_case, though camelCase equivalents
|
|
308
|
+
# (`telemetryEnabled`, `bqaaEnabled`) are accepted for REST/JSON
|
|
309
|
+
# transcoding compatibility.
|
|
310
|
+
class SetAgentOpsObservabilityRequest
|
|
311
|
+
include ::Google::Protobuf::MessageExts
|
|
312
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Response for SetAgentOpsObservability.
|
|
316
|
+
class SetAgentOpsObservabilityResponse
|
|
317
|
+
include ::Google::Protobuf::MessageExts
|
|
318
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Metadata for SetAgentOpsObservability.
|
|
322
|
+
class SetAgentOpsObservabilityMetadata
|
|
323
|
+
include ::Google::Protobuf::MessageExts
|
|
324
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Request for RetrieveAgentOpsObservability.
|
|
328
|
+
# @!attribute [rw] parent
|
|
329
|
+
# @return [::String]
|
|
330
|
+
# Required. Parent value for RetrieveAgentOpsObservabilityRequest.
|
|
331
|
+
# Format: projects/\\{project}/locations/\\{location}
|
|
332
|
+
# @!attribute [rw] data_source_type
|
|
333
|
+
# @return [::String]
|
|
334
|
+
# Required. The data source type for which to retrieve observability
|
|
335
|
+
# settings. Examples: "bigquery", "looker"
|
|
336
|
+
class RetrieveAgentOpsObservabilityRequest
|
|
337
|
+
include ::Google::Protobuf::MessageExts
|
|
338
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Response for RetrieveAgentOpsObservability.
|
|
342
|
+
# @!attribute [r] telemetry_enabled
|
|
343
|
+
# @return [::Boolean]
|
|
344
|
+
# Output only. Whether AgentOps observability telemetry is enabled.
|
|
345
|
+
# @!attribute [r] bigquery_enabled
|
|
346
|
+
# @return [::Boolean]
|
|
347
|
+
# Output only. Whether BigQuery API is enabled.
|
|
348
|
+
# @!attribute [r] cloud_trace_enabled
|
|
349
|
+
# @return [::Boolean]
|
|
350
|
+
# Output only. Whether Cloud Trace API is enabled.
|
|
351
|
+
# @!attribute [r] cloud_monitoring_enabled
|
|
352
|
+
# @return [::Boolean]
|
|
353
|
+
# Output only. Whether Cloud Monitoring API is enabled.
|
|
354
|
+
# @!attribute [r] cloud_logging_enabled
|
|
355
|
+
# @return [::Boolean]
|
|
356
|
+
# Output only. Whether Cloud Logging API is enabled.
|
|
357
|
+
# @!attribute [r] bqaa_enabled
|
|
358
|
+
# @return [::Boolean]
|
|
359
|
+
# Output only. Whether BigQuery Agent Analytics is enabled.
|
|
360
|
+
class RetrieveAgentOpsObservabilityResponse
|
|
361
|
+
include ::Google::Protobuf::MessageExts
|
|
362
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
363
|
+
end
|
|
264
364
|
end
|
|
265
365
|
end
|
|
266
366
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -59,6 +59,10 @@ module Google
|
|
|
59
59
|
# @return [::Boolean]
|
|
60
60
|
# Optional. If true (default to false), the service may return a
|
|
61
61
|
# clarifying_question if the input query is ambiguous.
|
|
62
|
+
# @!attribute [rw] generate_debug_info
|
|
63
|
+
# @return [::Boolean]
|
|
64
|
+
# Optional. If true (default to false), returns internal debugging
|
|
65
|
+
# information.
|
|
62
66
|
class GenerationOptions
|
|
63
67
|
include ::Google::Protobuf::MessageExts
|
|
64
68
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -125,6 +129,17 @@ module Google
|
|
|
125
129
|
# options.generate_disambiguation_question was true, this field contains a
|
|
126
130
|
# question to the user for clarification. The returned represents the
|
|
127
131
|
# service's best effort based on the ambiguous input.
|
|
132
|
+
# @!attribute [rw] pipeline_debug_info
|
|
133
|
+
# @return [::Google::Protobuf::Struct]
|
|
134
|
+
# Detailed step-by-step pipeline execution information.
|
|
135
|
+
# Populated only if generation_options.generate_debug_info was true.
|
|
136
|
+
# Provided for debugging and transparency purposes only.
|
|
137
|
+
# The structure and content of this object is not guaranteed and may
|
|
138
|
+
# change at any time without notice. Do not write production code or
|
|
139
|
+
# business logic depending on the fields in this object.
|
|
140
|
+
# @!attribute [rw] token_usage
|
|
141
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::TokenUsage]
|
|
142
|
+
# Overall token usage for the request.
|
|
128
143
|
class QueryDataResponse
|
|
129
144
|
include ::Google::Protobuf::MessageExts
|
|
130
145
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -141,6 +156,9 @@ module Google
|
|
|
141
156
|
# @return [::Integer]
|
|
142
157
|
# The total number of rows in the full result set, if known.
|
|
143
158
|
# This may be an estimate or an exact count.
|
|
159
|
+
# Note: if an internal limit (such as LIMIT 1000) was applied during query
|
|
160
|
+
# execution to guard against excessive data transfer, this count reflects the
|
|
161
|
+
# truncated result size rather than the unrestricted table result size.
|
|
144
162
|
# @!attribute [rw] partial_result
|
|
145
163
|
# @return [::Boolean]
|
|
146
164
|
# Set to true if the returned rows in `query_result` are a subset of the
|
|
@@ -308,7 +326,8 @@ module Google
|
|
|
308
326
|
|
|
309
327
|
# Mode of thinking for the agent.
|
|
310
328
|
module ThinkingMode
|
|
311
|
-
# Unspecified thinking mode, agent will use THINKING mode by default
|
|
329
|
+
# Unspecified thinking mode, agent will use THINKING mode by default except
|
|
330
|
+
# for BigQuery user defaulting to FAST mode by default.
|
|
312
331
|
THINKING_MODE_UNSPECIFIED = 0
|
|
313
332
|
|
|
314
333
|
# Fast mode, answers quickly.
|
|
@@ -318,9 +337,9 @@ module Google
|
|
|
318
337
|
THINKING = 2
|
|
319
338
|
end
|
|
320
339
|
|
|
321
|
-
# Model selection for the agent.
|
|
340
|
+
# Model selection for the agent for BigQuery users.
|
|
322
341
|
module Model
|
|
323
|
-
# No model specified.
|
|
342
|
+
# No model specified. Either preview or non preview model can be used.
|
|
324
343
|
MODEL_UNSPECIFIED = 0
|
|
325
344
|
|
|
326
345
|
# Use the most up-to-date non-preview model. This may constrain certain
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -26,35 +26,45 @@ module Google
|
|
|
26
26
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReferences]
|
|
27
27
|
# References to BigQuery tables.
|
|
28
28
|
#
|
|
29
|
-
# Note: The following fields are mutually exclusive: `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
29
|
+
# Note: The following fields are mutually exclusive: `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
30
30
|
# @!attribute [rw] studio
|
|
31
31
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::StudioDatasourceReferences]
|
|
32
32
|
# References to Looker Studio datasources.
|
|
33
33
|
#
|
|
34
|
-
# Note: The following fields are mutually exclusive: `studio`, `bq`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
34
|
+
# Note: The following fields are mutually exclusive: `studio`, `bq`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
35
35
|
# @!attribute [rw] looker
|
|
36
36
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReferences]
|
|
37
37
|
# References to Looker Explores.
|
|
38
38
|
#
|
|
39
|
-
# Note: The following fields are mutually exclusive: `looker`, `bq`, `studio`, `alloydb`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
39
|
+
# Note: The following fields are mutually exclusive: `looker`, `bq`, `studio`, `alloydb`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
40
40
|
# @!attribute [rw] alloydb
|
|
41
41
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AlloyDbReference]
|
|
42
42
|
# Reference to an AlloyDB database. Only supported for the `QueryData`
|
|
43
43
|
# method.
|
|
44
44
|
#
|
|
45
|
-
# Note: The following fields are mutually exclusive: `alloydb`, `bq`, `studio`, `looker`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
45
|
+
# Note: The following fields are mutually exclusive: `alloydb`, `bq`, `studio`, `looker`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
46
46
|
# @!attribute [rw] spanner_reference
|
|
47
47
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerReference]
|
|
48
48
|
# Reference to a Spanner database. Only supported for the `QueryData`
|
|
49
49
|
# method.
|
|
50
50
|
#
|
|
51
|
-
# Note: The following fields are mutually exclusive: `spanner_reference`, `bq`, `studio`, `looker`, `alloydb`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
51
|
+
# Note: The following fields are mutually exclusive: `spanner_reference`, `bq`, `studio`, `looker`, `alloydb`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
52
52
|
# @!attribute [rw] cloud_sql_reference
|
|
53
53
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlReference]
|
|
54
54
|
# Reference to a CloudSql database. Only supported for the `QueryData`
|
|
55
55
|
# method.
|
|
56
56
|
#
|
|
57
|
-
# Note: The following fields are mutually exclusive: `cloud_sql_reference`, `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
57
|
+
# Note: The following fields are mutually exclusive: `cloud_sql_reference`, `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
58
|
+
# @!attribute [rw] bigtable_reference
|
|
59
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigtableReference]
|
|
60
|
+
# Reference to a Bigtable instance.
|
|
61
|
+
#
|
|
62
|
+
# Note: The following fields are mutually exclusive: `bigtable_reference`, `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
63
|
+
# @!attribute [rw] firestore_reference
|
|
64
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::FirestoreReference]
|
|
65
|
+
# Reference to a Firestore database.
|
|
66
|
+
#
|
|
67
|
+
# Note: The following fields are mutually exclusive: `firestore_reference`, `bq`, `studio`, `looker`, `alloydb`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
58
68
|
class DatasourceReferences
|
|
59
69
|
include ::Google::Protobuf::MessageExts
|
|
60
70
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -68,10 +78,14 @@ module Google
|
|
|
68
78
|
# Optional. References to BigQuery tables.
|
|
69
79
|
# @!attribute [rw] property_graph_references
|
|
70
80
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryPropertyGraphReference>]
|
|
71
|
-
# Optional.
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
#
|
|
81
|
+
# Optional. References to BigQuery graphs.
|
|
82
|
+
#
|
|
83
|
+
# Note: "property graph" is the former name for BigQuery Graph. The field and
|
|
84
|
+
# message names retain the original term for backward compatibility; both
|
|
85
|
+
# refer to the same resource.
|
|
86
|
+
# @!attribute [rw] agent_context_reference
|
|
87
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
|
|
88
|
+
# Optional. Parameters for retrieving data from Agent Context.
|
|
75
89
|
class BigQueryTableReferences
|
|
76
90
|
include ::Google::Protobuf::MessageExts
|
|
77
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -193,6 +207,72 @@ module Google
|
|
|
193
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
194
208
|
end
|
|
195
209
|
|
|
210
|
+
# Message representing reference to a Bigtable instance and agent context.
|
|
211
|
+
# @!attribute [rw] database_reference
|
|
212
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigtableDatabaseReference]
|
|
213
|
+
# Required. Singular proto that supports specifying which database and tables
|
|
214
|
+
# to include.
|
|
215
|
+
# @!attribute [rw] agent_context_reference
|
|
216
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
|
|
217
|
+
# Optional. Parameters for retrieving data from Agent Context.
|
|
218
|
+
class BigtableReference
|
|
219
|
+
include ::Google::Protobuf::MessageExts
|
|
220
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Message representing reference to Bigtable database.
|
|
224
|
+
# @!attribute [rw] project_id
|
|
225
|
+
# @return [::String]
|
|
226
|
+
# Required. The project the instance belongs to.
|
|
227
|
+
# @!attribute [rw] instance_id
|
|
228
|
+
# @return [::String]
|
|
229
|
+
# Required. The instance id.
|
|
230
|
+
# @!attribute [rw] table_ids
|
|
231
|
+
# @return [::Array<::String>]
|
|
232
|
+
# Optional. The table ids. Denotes all tables if unset.
|
|
233
|
+
# @!attribute [rw] database_table_references
|
|
234
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::DatabaseTableReference>]
|
|
235
|
+
# Optional. References to tables within the database. Each reference
|
|
236
|
+
# specifies a table and can optionally include the table's schema to provide
|
|
237
|
+
# context for the query.
|
|
238
|
+
class BigtableDatabaseReference
|
|
239
|
+
include ::Google::Protobuf::MessageExts
|
|
240
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Message representing reference to a Firestore database and agent context.
|
|
244
|
+
# @!attribute [rw] database_reference
|
|
245
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::FirestoreDatabaseReference]
|
|
246
|
+
# Required. Singular proto that supports specifying which database and tables
|
|
247
|
+
# to include.
|
|
248
|
+
# @!attribute [rw] agent_context_reference
|
|
249
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
|
|
250
|
+
# Optional. Parameters for retrieving data from Agent Context.
|
|
251
|
+
class FirestoreReference
|
|
252
|
+
include ::Google::Protobuf::MessageExts
|
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Message representing a reference to a single Firestore database.
|
|
257
|
+
# @!attribute [rw] project_id
|
|
258
|
+
# @return [::String]
|
|
259
|
+
# Required. Project the firestore database belongs to.
|
|
260
|
+
# @!attribute [rw] database_id
|
|
261
|
+
# @return [::String]
|
|
262
|
+
# Required. The database id.
|
|
263
|
+
# @!attribute [rw] collection_ids
|
|
264
|
+
# @return [::Array<::String>]
|
|
265
|
+
# Optional. The collection ids. Denotes all collections if unset.
|
|
266
|
+
# @!attribute [rw] database_table_references
|
|
267
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::DatabaseTableReference>]
|
|
268
|
+
# Optional. References to collections within the database. Each reference
|
|
269
|
+
# specifies a collection and can optionally include the collection's schema
|
|
270
|
+
# to provide context for the query.
|
|
271
|
+
class FirestoreDatabaseReference
|
|
272
|
+
include ::Google::Protobuf::MessageExts
|
|
273
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
274
|
+
end
|
|
275
|
+
|
|
196
276
|
# Message representing reference to a Spanner database and agent context.
|
|
197
277
|
# Only supported for the `QueryData` method.
|
|
198
278
|
# @!attribute [rw] database_reference
|
|
@@ -394,37 +474,47 @@ module Google
|
|
|
394
474
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReference]
|
|
395
475
|
# A reference to a BigQuery table.
|
|
396
476
|
#
|
|
397
|
-
# Note: The following fields are mutually exclusive: `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
477
|
+
# Note: The following fields are mutually exclusive: `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
398
478
|
# @!attribute [rw] studio_datasource_id
|
|
399
479
|
# @return [::String]
|
|
400
480
|
# A reference to a Looker Studio datasource.
|
|
401
481
|
#
|
|
402
|
-
# Note: The following fields are mutually exclusive: `studio_datasource_id`, `bigquery_table_reference`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
482
|
+
# Note: The following fields are mutually exclusive: `studio_datasource_id`, `bigquery_table_reference`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
403
483
|
# @!attribute [rw] looker_explore_reference
|
|
404
484
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReference]
|
|
405
485
|
# A reference to a Looker explore.
|
|
406
486
|
#
|
|
407
|
-
# Note: The following fields are mutually exclusive: `looker_explore_reference`, `bigquery_table_reference`, `studio_datasource_id`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
487
|
+
# Note: The following fields are mutually exclusive: `looker_explore_reference`, `bigquery_table_reference`, `studio_datasource_id`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
408
488
|
# @!attribute [rw] alloy_db_reference
|
|
409
489
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AlloyDbReference]
|
|
410
490
|
# A reference to an AlloyDB database.
|
|
411
491
|
#
|
|
412
|
-
# Note: The following fields are mutually exclusive: `alloy_db_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `spanner_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
492
|
+
# Note: The following fields are mutually exclusive: `alloy_db_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
413
493
|
# @!attribute [rw] spanner_reference
|
|
414
494
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerReference]
|
|
415
495
|
# A reference to a Spanner database.
|
|
416
496
|
#
|
|
417
|
-
# Note: The following fields are mutually exclusive: `spanner_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
497
|
+
# Note: The following fields are mutually exclusive: `spanner_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
418
498
|
# @!attribute [rw] cloud_sql_reference
|
|
419
499
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlReference]
|
|
420
500
|
# A reference to a CloudSQL database.
|
|
421
501
|
#
|
|
422
|
-
# Note: The following fields are mutually exclusive: `cloud_sql_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
502
|
+
# Note: The following fields are mutually exclusive: `cloud_sql_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `bigtable_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
503
|
+
# @!attribute [rw] bigtable_reference
|
|
504
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigtableReference]
|
|
505
|
+
# A reference to a Bigtable instance.
|
|
506
|
+
#
|
|
507
|
+
# Note: The following fields are mutually exclusive: `bigtable_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigquery_property_graph_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
423
508
|
# @!attribute [rw] bigquery_property_graph_reference
|
|
424
509
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryPropertyGraphReference]
|
|
425
510
|
# A reference to a BigQuery property graph.
|
|
426
511
|
#
|
|
427
|
-
# Note: The following fields are mutually exclusive: `bigquery_property_graph_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
512
|
+
# Note: The following fields are mutually exclusive: `bigquery_property_graph_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `firestore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
513
|
+
# @!attribute [rw] firestore_reference
|
|
514
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::FirestoreReference]
|
|
515
|
+
# A reference to a Firestore database.
|
|
516
|
+
#
|
|
517
|
+
# Note: The following fields are mutually exclusive: `firestore_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`, `cloud_sql_reference`, `bigtable_reference`, `bigquery_property_graph_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
428
518
|
# @!attribute [rw] schema
|
|
429
519
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
|
|
430
520
|
# Optional. The schema of the datasource.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module GeminiDataAnalytics
|
|
23
|
+
module V1beta
|
|
24
|
+
# Overall token usage tracking for the response.
|
|
25
|
+
# @!attribute [rw] input_token_count
|
|
26
|
+
# @return [::Integer]
|
|
27
|
+
# The total number of input tokens used in this request.
|
|
28
|
+
# @!attribute [rw] output_token_count
|
|
29
|
+
# @return [::Integer]
|
|
30
|
+
# The total number of output tokens used in this request.
|
|
31
|
+
class TokenUsage
|
|
32
|
+
include ::Google::Protobuf::MessageExts
|
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -110,14 +110,15 @@ module Google
|
|
|
110
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
111
111
|
# @!attribute [rw] seconds
|
|
112
112
|
# @return [::Integer]
|
|
113
|
-
# Represents seconds of UTC time since Unix epoch
|
|
114
|
-
#
|
|
115
|
-
# 9999-12-31T23:59:59Z
|
|
113
|
+
# Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
114
|
+
# be between -315576000000 and 315576000000 inclusive (which corresponds to
|
|
115
|
+
# 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
116
116
|
# @!attribute [rw] nanos
|
|
117
117
|
# @return [::Integer]
|
|
118
|
-
# Non-negative fractions of a second at nanosecond resolution.
|
|
119
|
-
#
|
|
120
|
-
#
|
|
118
|
+
# Non-negative fractions of a second at nanosecond resolution. This field is
|
|
119
|
+
# the nanosecond portion of the duration, not an alternative to seconds.
|
|
120
|
+
# Negative second values with fractions must still have non-negative nanos
|
|
121
|
+
# values that count forward in time. Must be between 0 and 999,999,999
|
|
121
122
|
# inclusive.
|
|
122
123
|
class Timestamp
|
|
123
124
|
include ::Google::Protobuf::MessageExts
|