google-cloud-gemini_data_analytics-v1beta 0.3.1 → 0.5.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.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +1 -1
  3. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +1 -1
  4. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +208 -6
  5. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +194 -6
  6. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +123 -0
  7. data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
  8. data/lib/google/cloud/geminidataanalytics/v1beta/agent_context_pb.rb +44 -0
  9. data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +8 -1
  10. data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +2 -1
  11. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +14 -2
  12. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +4 -0
  13. data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +13 -1
  14. data/proto_docs/google/cloud/geminidataanalytics/v1beta/agent_context.rb +35 -0
  15. data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +100 -2
  16. data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +13 -2
  17. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +1 -1
  18. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +236 -10
  19. data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +188 -11
  20. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  21. metadata +4 -1
@@ -26,17 +26,32 @@ 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`. 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`. 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`. 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`. 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`. 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`. If a field in that set is populated, all other fields in the set will automatically be cleared.
40
+ # @!attribute [rw] alloydb
41
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AlloyDbReference]
42
+ # Reference to an AlloyDB database.
43
+ #
44
+ # 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
+ # @!attribute [rw] spanner_reference
46
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerReference]
47
+ # Reference to a Spanner database.
48
+ #
49
+ # 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.
50
+ # @!attribute [rw] cloud_sql_reference
51
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlReference]
52
+ # Reference to a CloudSql database.
53
+ #
54
+ # 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.
40
55
  class DatasourceReferences
41
56
  include ::Google::Protobuf::MessageExts
42
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -87,6 +102,141 @@ module Google
87
102
  extend ::Google::Protobuf::MessageExts::ClassMethods
88
103
  end
89
104
 
105
+ # Message representing reference to an AlloyDB database and agent context.
106
+ # @!attribute [rw] database_reference
107
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AlloyDbDatabaseReference]
108
+ # Required. Singular proto that supports specifying which database and tables
109
+ # to include.
110
+ # @!attribute [rw] agent_context_reference
111
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
112
+ # Optional. Parameters for retrieving data from Agent Context.
113
+ class AlloyDbReference
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # Message representing a reference to a single AlloyDB database.
119
+ # @!attribute [rw] project_id
120
+ # @return [::String]
121
+ # Required. The project the instance belongs to.
122
+ # @!attribute [rw] region
123
+ # @return [::String]
124
+ # Required. The region of the instance.
125
+ # @!attribute [rw] cluster_id
126
+ # @return [::String]
127
+ # Required. The cluster id.
128
+ # @!attribute [rw] instance_id
129
+ # @return [::String]
130
+ # Required. The instance id.
131
+ # @!attribute [rw] database_id
132
+ # @return [::String]
133
+ # Required. The database id.
134
+ # @!attribute [rw] table_ids
135
+ # @return [::Array<::String>]
136
+ # Optional. The table ids. Denotes all tables if unset.
137
+ class AlloyDbDatabaseReference
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
141
+
142
+ # Message representing reference to a Spanner database and agent context.
143
+ # @!attribute [rw] database_reference
144
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference]
145
+ # Required. Singular proto that supports specifying which database and tables
146
+ # to include.
147
+ # @!attribute [rw] agent_context_reference
148
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
149
+ # Optional. Parameters for retrieving data from Agent Context.
150
+ class SpannerReference
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # Message representing a reference to a single Spanner database.
156
+ # @!attribute [rw] engine
157
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference::Engine]
158
+ # Required. The engine of the Spanner instance.
159
+ # @!attribute [rw] project_id
160
+ # @return [::String]
161
+ # Required. The project the instance belongs to.
162
+ # @!attribute [rw] region
163
+ # @return [::String]
164
+ # Required. The region of the instance.
165
+ # @!attribute [rw] instance_id
166
+ # @return [::String]
167
+ # Required. The instance id.
168
+ # @!attribute [rw] database_id
169
+ # @return [::String]
170
+ # Required. The database id.
171
+ # @!attribute [rw] table_ids
172
+ # @return [::Array<::String>]
173
+ # Optional. The table ids. Denotes all tables if unset.
174
+ class SpannerDatabaseReference
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+
178
+ # The database engine.
179
+ module Engine
180
+ # Engine is not specified.
181
+ ENGINE_UNSPECIFIED = 0
182
+
183
+ # Google SQL
184
+ GOOGLE_SQL = 1
185
+
186
+ # PostgreSQL
187
+ POSTGRESQL = 2
188
+ end
189
+ end
190
+
191
+ # Message representing reference to a CloudSQL database and agent context.
192
+ # @!attribute [rw] database_reference
193
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlDatabaseReference]
194
+ # Required. Singular proto that supports specifying which database and tables
195
+ # to include.
196
+ # @!attribute [rw] agent_context_reference
197
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference]
198
+ # Optional. Parameters for retrieving data from Agent Context.
199
+ class CloudSqlReference
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+ end
203
+
204
+ # Message representing a reference to a single CloudSQL database.
205
+ # @!attribute [rw] engine
206
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlDatabaseReference::Engine]
207
+ # Required. The engine of the Cloud SQL instance.
208
+ # @!attribute [rw] project_id
209
+ # @return [::String]
210
+ # Required. The project the instance belongs to.
211
+ # @!attribute [rw] region
212
+ # @return [::String]
213
+ # Required. The region of the instance.
214
+ # @!attribute [rw] instance_id
215
+ # @return [::String]
216
+ # Required. The instance id.
217
+ # @!attribute [rw] database_id
218
+ # @return [::String]
219
+ # Required. The database id.
220
+ # @!attribute [rw] table_ids
221
+ # @return [::Array<::String>]
222
+ # Optional. The table ids. Denotes all tables if unset.
223
+ class CloudSqlDatabaseReference
224
+ include ::Google::Protobuf::MessageExts
225
+ extend ::Google::Protobuf::MessageExts::ClassMethods
226
+
227
+ # The database engine.
228
+ module Engine
229
+ # Engine is not specified.
230
+ ENGINE_UNSPECIFIED = 0
231
+
232
+ # PostgreSQL
233
+ POSTGRESQL = 1
234
+
235
+ # MySQL
236
+ MYSQL = 2
237
+ end
238
+ end
239
+
90
240
  # Message representing references to Looker explores.
91
241
  # @!attribute [rw] explore_references
92
242
  # @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReference>]
@@ -153,20 +303,43 @@ module Google
153
303
  # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReference]
154
304
  # A reference to a BigQuery table.
155
305
  #
156
- # Note: The following fields are mutually exclusive: `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
306
+ # Note: The following fields are mutually exclusive: `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.
157
307
  # @!attribute [rw] studio_datasource_id
158
308
  # @return [::String]
159
309
  # A reference to a Looker Studio datasource.
160
310
  #
161
- # Note: The following fields are mutually exclusive: `studio_datasource_id`, `bigquery_table_reference`, `looker_explore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
311
+ # Note: The following fields are mutually exclusive: `studio_datasource_id`, `bigquery_table_reference`, `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.
162
312
  # @!attribute [rw] looker_explore_reference
163
313
  # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReference]
164
314
  # A reference to a Looker explore.
165
315
  #
166
- # Note: The following fields are mutually exclusive: `looker_explore_reference`, `bigquery_table_reference`, `studio_datasource_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
316
+ # Note: The following fields are mutually exclusive: `looker_explore_reference`, `bigquery_table_reference`, `studio_datasource_id`, `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.
317
+ # @!attribute [rw] alloy_db_reference
318
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AlloyDbReference]
319
+ # A reference to an AlloyDB database.
320
+ #
321
+ # Note: The following fields are mutually exclusive: `alloy_db_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `spanner_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
322
+ # @!attribute [rw] spanner_reference
323
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerReference]
324
+ # A reference to a Spanner database.
325
+ #
326
+ # Note: The following fields are mutually exclusive: `spanner_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `cloud_sql_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
327
+ # @!attribute [rw] cloud_sql_reference
328
+ # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CloudSqlReference]
329
+ # A reference to a CloudSQL database.
330
+ #
331
+ # Note: The following fields are mutually exclusive: `cloud_sql_reference`, `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`, `alloy_db_reference`, `spanner_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
167
332
  # @!attribute [rw] schema
168
333
  # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
169
334
  # Optional. The schema of the datasource.
335
+ # @!attribute [rw] struct_schema
336
+ # @return [::Google::Protobuf::Struct]
337
+ # Optional. A struct representation of the schema.
338
+ # This is populated for datasources with schemas that cannot be
339
+ # fully represented by the strongly-typed `schema` field.
340
+ #
341
+ # For Looker datasources, this maps to the LookmlModelExplore type:
342
+ # https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
170
343
  class Datasource
171
344
  include ::Google::Protobuf::MessageExts
172
345
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,15 +353,17 @@ module Google
180
353
  # @return [::String]
181
354
  # Optional. A textual description of the table's content and purpose.
182
355
  # For example: "Contains information about customer orders in our e-commerce
183
- # store."
356
+ # store." Currently only used for BigQuery data sources.
184
357
  # @!attribute [rw] synonyms
185
358
  # @return [::Array<::String>]
186
359
  # Optional. A list of alternative names or synonyms that can be used to refer
187
- # to the table. For example: ["sales", "orders", "purchases"]
360
+ # to the table. For example: ["sales", "orders", "purchases"]. Currently only
361
+ # used for BigQuery data sources.
188
362
  # @!attribute [rw] tags
189
363
  # @return [::Array<::String>]
190
364
  # Optional. A list of tags or keywords associated with the table, used for
191
- # categorization. For example: ["transaction", "revenue", "customer_data"]
365
+ # categorization. For example: ["transaction", "revenue", "customer_data"].
366
+ # Currently only used for BigQuery data sources.
192
367
  # @!attribute [rw] display_name
193
368
  # @return [::String]
194
369
  # Optional. Table display_name (same as label in
@@ -219,11 +394,13 @@ module Google
219
394
  # @!attribute [rw] synonyms
220
395
  # @return [::Array<::String>]
221
396
  # Optional. A list of alternative names or synonyms that can be used to refer
222
- # to this field. For example: ["id", "customerid", "cust_id"]
397
+ # to this field. For example: ["id", "customerid", "cust_id"]. Currently only
398
+ # used for BigQuery data sources.
223
399
  # @!attribute [rw] tags
224
400
  # @return [::Array<::String>]
225
401
  # Optional. A list of tags or keywords associated with the field, used for
226
- # categorization. For example: ["identifier", "customer", "pii"]
402
+ # categorization. For example: ["identifier", "customer", "pii"]. Currently
403
+ # only used for BigQuery data sources.
227
404
  # @!attribute [rw] display_name
228
405
  # @return [::String]
229
406
  # Optional. Field display_name (same as label in
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 Protobuf
22
+ # Wrapper message for `double`.
23
+ #
24
+ # The JSON representation for `DoubleValue` is JSON number.
25
+ # @!attribute [rw] value
26
+ # @return [::Float]
27
+ # The double value.
28
+ class DoubleValue
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Wrapper message for `float`.
34
+ #
35
+ # The JSON representation for `FloatValue` is JSON number.
36
+ # @!attribute [rw] value
37
+ # @return [::Float]
38
+ # The float value.
39
+ class FloatValue
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+ end
43
+
44
+ # Wrapper message for `int64`.
45
+ #
46
+ # The JSON representation for `Int64Value` is JSON string.
47
+ # @!attribute [rw] value
48
+ # @return [::Integer]
49
+ # The int64 value.
50
+ class Int64Value
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+
55
+ # Wrapper message for `uint64`.
56
+ #
57
+ # The JSON representation for `UInt64Value` is JSON string.
58
+ # @!attribute [rw] value
59
+ # @return [::Integer]
60
+ # The uint64 value.
61
+ class UInt64Value
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # Wrapper message for `int32`.
67
+ #
68
+ # The JSON representation for `Int32Value` is JSON number.
69
+ # @!attribute [rw] value
70
+ # @return [::Integer]
71
+ # The int32 value.
72
+ class Int32Value
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+ end
76
+
77
+ # Wrapper message for `uint32`.
78
+ #
79
+ # The JSON representation for `UInt32Value` is JSON number.
80
+ # @!attribute [rw] value
81
+ # @return [::Integer]
82
+ # The uint32 value.
83
+ class UInt32Value
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # Wrapper message for `bool`.
89
+ #
90
+ # The JSON representation for `BoolValue` is JSON `true` and `false`.
91
+ # @!attribute [rw] value
92
+ # @return [::Boolean]
93
+ # The bool value.
94
+ class BoolValue
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Wrapper message for `string`.
100
+ #
101
+ # The JSON representation for `StringValue` is JSON string.
102
+ # @!attribute [rw] value
103
+ # @return [::String]
104
+ # The string value.
105
+ class StringValue
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # Wrapper message for `bytes`.
111
+ #
112
+ # The JSON representation for `BytesValue` is JSON string.
113
+ # @!attribute [rw] value
114
+ # @return [::String]
115
+ # The bytes value.
116
+ class BytesValue
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+ end
121
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gemini_data_analytics-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -100,6 +100,7 @@ files:
100
100
  - lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb
101
101
  - lib/google/cloud/gemini_data_analytics/v1beta/rest.rb
102
102
  - lib/google/cloud/gemini_data_analytics/v1beta/version.rb
103
+ - lib/google/cloud/geminidataanalytics/v1beta/agent_context_pb.rb
103
104
  - lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb
104
105
  - lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb
105
106
  - lib/google/cloud/geminidataanalytics/v1beta/credentials_pb.rb
@@ -116,6 +117,7 @@ files:
116
117
  - proto_docs/google/api/field_info.rb
117
118
  - proto_docs/google/api/launch_stage.rb
118
119
  - proto_docs/google/api/resource.rb
120
+ - proto_docs/google/cloud/geminidataanalytics/v1beta/agent_context.rb
119
121
  - proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb
120
122
  - proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb
121
123
  - proto_docs/google/cloud/geminidataanalytics/v1beta/credentials.rb
@@ -134,6 +136,7 @@ files:
134
136
  - proto_docs/google/protobuf/field_mask.rb
135
137
  - proto_docs/google/protobuf/struct.rb
136
138
  - proto_docs/google/protobuf/timestamp.rb
139
+ - proto_docs/google/protobuf/wrappers.rb
137
140
  - proto_docs/google/rpc/status.rb
138
141
  - proto_docs/google/type/expr.rb
139
142
  homepage: https://github.com/googleapis/google-cloud-ruby