diff --git a/google-cloud-gemini_data_analytics-v1beta/.owlbot-manifest.json b/google-cloud-gemini_data_analytics-v1beta/.owlbot-manifest.json index d828de7b3890..5bec5c2d635f 100644 --- a/google-cloud-gemini_data_analytics-v1beta/.owlbot-manifest.json +++ b/google-cloud-gemini_data_analytics-v1beta/.owlbot-manifest.json @@ -75,13 +75,16 @@ "proto_docs/google/type/expr.rb", "snippets/Gemfile", "snippets/data_agent_service/create_data_agent.rb", + "snippets/data_agent_service/create_data_agent_sync.rb", "snippets/data_agent_service/delete_data_agent.rb", + "snippets/data_agent_service/delete_data_agent_sync.rb", "snippets/data_agent_service/get_data_agent.rb", "snippets/data_agent_service/get_iam_policy.rb", "snippets/data_agent_service/list_accessible_data_agents.rb", "snippets/data_agent_service/list_data_agents.rb", "snippets/data_agent_service/set_iam_policy.rb", "snippets/data_agent_service/update_data_agent.rb", + "snippets/data_agent_service/update_data_agent_sync.rb", "snippets/data_chat_service/chat.rb", "snippets/data_chat_service/create_conversation.rb", "snippets/data_chat_service/delete_conversation.rb", diff --git a/google-cloud-gemini_data_analytics-v1beta/gapic_metadata.json b/google-cloud-gemini_data_analytics-v1beta/gapic_metadata.json index 34d045e95665..601a0d40d024 100644 --- a/google-cloud-gemini_data_analytics-v1beta/gapic_metadata.json +++ b/google-cloud-gemini_data_analytics-v1beta/gapic_metadata.json @@ -30,16 +30,31 @@ "create_data_agent" ] }, + "CreateDataAgentSync": { + "methods": [ + "create_data_agent_sync" + ] + }, "UpdateDataAgent": { "methods": [ "update_data_agent" ] }, + "UpdateDataAgentSync": { + "methods": [ + "update_data_agent_sync" + ] + }, "DeleteDataAgent": { "methods": [ "delete_data_agent" ] }, + "DeleteDataAgentSync": { + "methods": [ + "delete_data_agent_sync" + ] + }, "GetIamPolicy": { "methods": [ "get_iam_policy" diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb index 1960ffdb8f05..7351330c7b9c 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb @@ -638,6 +638,111 @@ def create_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Creates a new DataAgent in a given project and location synchronously. + # + # @overload create_data_agent_sync(request, options = nil) + # Pass arguments to `create_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_data_agent_sync(parent: nil, data_agent_id: nil, data_agent: nil, request_id: nil) + # Pass arguments to `create_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Value for parent. + # @param data_agent_id [::String] + # 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. + # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new + # + # # Call the create_data_agent_sync method. + # result = client.create_data_agent_sync request + # + # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + # p result + # + def create_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_data_agent_sync.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.call_rpc :create_data_agent_sync, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Updates the parameters of a single DataAgent. # @@ -754,6 +859,113 @@ def update_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates the parameters of a single DataAgent synchronously. + # + # @overload update_data_agent_sync(request, options = nil) + # Pass arguments to `update_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_data_agent_sync(update_mask: nil, data_agent: nil, request_id: nil) + # Pass arguments to `update_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash] + # Required. The resource being updated. + # @param request_id [::String] + # 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new + # + # # Call the update_data_agent_sync method. + # result = client.update_data_agent_sync request + # + # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + # p result + # + def update_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.data_agent&.name + header_params["data_agent.name"] = request.data_agent.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_data_agent_sync.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.call_rpc :update_data_agent_sync, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Deletes a single DataAgent. # @@ -862,6 +1074,105 @@ def delete_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Deletes a single DataAgent synchronously. + # + # @overload delete_data_agent_sync(request, options = nil) + # Pass arguments to `delete_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_data_agent_sync(name: nil, request_id: nil) + # Pass arguments to `delete_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource. + # @param request_id [::String] + # 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new + # + # # Call the delete_data_agent_sync method. + # result = client.delete_data_agent_sync request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_data_agent_sync.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.call_rpc :delete_data_agent_sync, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Gets the IAM policy for DataAgent # @@ -1252,16 +1563,31 @@ class Rpcs # attr_reader :create_data_agent ## + # RPC-specific configuration for `create_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :create_data_agent_sync + ## # RPC-specific configuration for `update_data_agent` # @return [::Gapic::Config::Method] # attr_reader :update_data_agent ## + # RPC-specific configuration for `update_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_agent_sync + ## # RPC-specific configuration for `delete_data_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_data_agent ## + # RPC-specific configuration for `delete_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_data_agent_sync + ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # @@ -1282,10 +1608,16 @@ def initialize parent_rpcs = nil @get_data_agent = ::Gapic::Config::Method.new get_data_agent_config create_data_agent_config = parent_rpcs.create_data_agent if parent_rpcs.respond_to? :create_data_agent @create_data_agent = ::Gapic::Config::Method.new create_data_agent_config + create_data_agent_sync_config = parent_rpcs.create_data_agent_sync if parent_rpcs.respond_to? :create_data_agent_sync + @create_data_agent_sync = ::Gapic::Config::Method.new create_data_agent_sync_config update_data_agent_config = parent_rpcs.update_data_agent if parent_rpcs.respond_to? :update_data_agent @update_data_agent = ::Gapic::Config::Method.new update_data_agent_config + update_data_agent_sync_config = parent_rpcs.update_data_agent_sync if parent_rpcs.respond_to? :update_data_agent_sync + @update_data_agent_sync = ::Gapic::Config::Method.new update_data_agent_sync_config delete_data_agent_config = parent_rpcs.delete_data_agent if parent_rpcs.respond_to? :delete_data_agent @delete_data_agent = ::Gapic::Config::Method.new delete_data_agent_config + delete_data_agent_sync_config = parent_rpcs.delete_data_agent_sync if parent_rpcs.respond_to? :delete_data_agent_sync + @delete_data_agent_sync = ::Gapic::Config::Method.new delete_data_agent_sync_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb index d7bef73846e7..96076321c7df 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb @@ -604,6 +604,104 @@ def create_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Creates a new DataAgent in a given project and location synchronously. + # + # @overload create_data_agent_sync(request, options = nil) + # Pass arguments to `create_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_data_agent_sync(parent: nil, data_agent_id: nil, data_agent: nil, request_id: nil) + # Pass arguments to `create_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Value for parent. + # @param data_agent_id [::String] + # 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. + # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new + # + # # Call the create_data_agent_sync method. + # result = client.create_data_agent_sync request + # + # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + # p result + # + def create_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_data_agent_sync.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.create_data_agent_sync request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Updates the parameters of a single DataAgent. # @@ -713,6 +811,106 @@ def update_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates the parameters of a single DataAgent synchronously. + # + # @overload update_data_agent_sync(request, options = nil) + # Pass arguments to `update_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_data_agent_sync(update_mask: nil, data_agent: nil, request_id: nil) + # Pass arguments to `update_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param data_agent [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent, ::Hash] + # Required. The resource being updated. + # @param request_id [::String] + # 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new + # + # # Call the update_data_agent_sync method. + # result = client.update_data_agent_sync request + # + # # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + # p result + # + def update_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_data_agent_sync.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.update_data_agent_sync request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Deletes a single DataAgent. # @@ -814,6 +1012,98 @@ def delete_data_agent request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Deletes a single DataAgent synchronously. + # + # @overload delete_data_agent_sync(request, options = nil) + # Pass arguments to `delete_data_agent_sync` via a request object, either of type + # {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_data_agent_sync(name: nil, request_id: nil) + # Pass arguments to `delete_data_agent_sync` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource. + # @param request_id [::String] + # 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/gemini_data_analytics/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new + # + # # Call the delete_data_agent_sync method. + # result = client.delete_data_agent_sync request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_data_agent_sync request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_data_agent_sync.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_data_agent_sync.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_data_agent_sync.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @data_agent_service_stub.delete_data_agent_sync request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Gets the IAM policy for DataAgent # @@ -1160,16 +1450,31 @@ class Rpcs # attr_reader :create_data_agent ## + # RPC-specific configuration for `create_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :create_data_agent_sync + ## # RPC-specific configuration for `update_data_agent` # @return [::Gapic::Config::Method] # attr_reader :update_data_agent ## + # RPC-specific configuration for `update_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_agent_sync + ## # RPC-specific configuration for `delete_data_agent` # @return [::Gapic::Config::Method] # attr_reader :delete_data_agent ## + # RPC-specific configuration for `delete_data_agent_sync` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_data_agent_sync + ## # RPC-specific configuration for `get_iam_policy` # @return [::Gapic::Config::Method] # @@ -1190,10 +1495,16 @@ def initialize parent_rpcs = nil @get_data_agent = ::Gapic::Config::Method.new get_data_agent_config create_data_agent_config = parent_rpcs.create_data_agent if parent_rpcs.respond_to? :create_data_agent @create_data_agent = ::Gapic::Config::Method.new create_data_agent_config + create_data_agent_sync_config = parent_rpcs.create_data_agent_sync if parent_rpcs.respond_to? :create_data_agent_sync + @create_data_agent_sync = ::Gapic::Config::Method.new create_data_agent_sync_config update_data_agent_config = parent_rpcs.update_data_agent if parent_rpcs.respond_to? :update_data_agent @update_data_agent = ::Gapic::Config::Method.new update_data_agent_config + update_data_agent_sync_config = parent_rpcs.update_data_agent_sync if parent_rpcs.respond_to? :update_data_agent_sync + @update_data_agent_sync = ::Gapic::Config::Method.new update_data_agent_sync_config delete_data_agent_config = parent_rpcs.delete_data_agent if parent_rpcs.respond_to? :delete_data_agent @delete_data_agent = ::Gapic::Config::Method.new delete_data_agent_config + delete_data_agent_sync_config = parent_rpcs.delete_data_agent_sync if parent_rpcs.respond_to? :delete_data_agent_sync + @delete_data_agent_sync = ::Gapic::Config::Method.new delete_data_agent_sync_config get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb index 0afe6184b86d..4d91fef8a028 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb @@ -233,6 +233,46 @@ def create_data_agent request_pb, options = nil end end + ## + # Baseline implementation for the create_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # A result object deserialized from the server's reply + def create_data_agent_sync request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_data_agent_sync_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_data_agent_sync", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # Baseline implementation for the update_data_agent REST call # @@ -273,6 +313,46 @@ def update_data_agent request_pb, options = nil end end + ## + # Baseline implementation for the update_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent] + # A result object deserialized from the server's reply + def update_data_agent_sync request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_data_agent_sync_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_data_agent_sync", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # Baseline implementation for the delete_data_agent REST call # @@ -313,6 +393,46 @@ def delete_data_agent request_pb, options = nil end end + ## + # Baseline implementation for the delete_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_data_agent_sync request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_agent_sync_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_data_agent_sync", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # Baseline implementation for the get_iam_policy REST call # @@ -478,6 +598,28 @@ def self.transcode_create_data_agent_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the create_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_data_agent_sync_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta/{parent}/dataAgents:createSync", + body: "data_agent", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # @@ -500,6 +642,28 @@ def self.transcode_update_data_agent_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the update_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_data_agent_sync_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta/{data_agent.name}:updateSync", + body: "data_agent", + matches: [ + ["data_agent.name", %r{^projects/[^/]+/locations/[^/]+/dataAgents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # @@ -521,6 +685,27 @@ def self.transcode_delete_data_agent_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the delete_data_agent_sync REST call + # + # @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_data_agent_sync_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta/{name}:deleteSync", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/dataAgents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb index 88f9f3ebc778..07f3032f172d 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb @@ -9,7 +9,7 @@ require 'google/protobuf/wrappers_pb' -descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xf9\x07\n\x07\x43ontext\x12\x1f\n\x12system_instruction\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x15\x64\x61tasource_references\x18\x07 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\x12R\n\x07options\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xe0\x41\x01\x12S\n\x0f\x65xample_queries\x18\x05 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\x12R\n\x0eglossary_terms\x18\x08 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xe0\x41\x01\x12\x66\n\x14schema_relationships\x18\t \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xe0\x41\x01\x1a\x84\x04\n\x12SchemaRelationship\x12j\n\x11left_schema_paths\x18\x01 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\n\x12right_schema_paths\x18\x02 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\n\x07sources\x18\x03 \x03(\x0e\x32J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\n\x10\x63onfidence_score\x18\x04 \x01(\x02\x1a/\n\x0bSchemaPaths\x12\x11\n\ttable_fqn\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\"m\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42IGQUERY_JOB_HISTORY\x10\x01\x12\x11\n\rLLM_SUGGESTED\x10\x02\x12\x1e\n\x1a\x42IGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\n\x0c\x45xampleQuery\x12\x18\n\tsql_query\x18\x65 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x19natural_language_question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x07\n\x05query\"X\n\x0cGlossaryTerm\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06labels\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x86\x02\n\x13\x43onversationOptions\x12I\n\x05\x63hart\x18\x01 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xe0\x41\x01\x12O\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xe0\x41\x01\x12S\n\ndatasource\x18\x03 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xe0\x41\x01\"Y\n\x11\x44\x61tasourceOptions\x12\x44\n\x1a\x62ig_query_max_billed_bytes\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\"\xd6\x02\n\x0c\x43hartOptions\x12V\n\x05image\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xe0\x41\x01\x1a\xed\x01\n\x0cImageOptions\x12^\n\x08no_image\x18\x01 \x01(\x0b\x32J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\n\x03svg\x18\x02 \x01(\x0b\x32M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1a\t\n\x07NoImage\x1a\x0c\n\nSvgOptionsB\x06\n\x04kind\"\x87\x01\n\x0f\x41nalysisOptions\x12T\n\x06python\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xe0\x41\x01\x1a\x1e\n\x06Python\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x9d\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0c\x43ontextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" +descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd9\x08\n\x07\x43ontext\x12\x1f\n\x12system_instruction\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x15\x64\x61tasource_references\x18\x07 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\x12R\n\x07options\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xe0\x41\x01\x12S\n\x0f\x65xample_queries\x18\x05 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\x12^\n\x15looker_golden_queries\x18\x0b \x03(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.LookerGoldenQueryB\x03\xe0\x41\x01\x12R\n\x0eglossary_terms\x18\x08 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xe0\x41\x01\x12\x66\n\x14schema_relationships\x18\t \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xe0\x41\x01\x1a\x84\x04\n\x12SchemaRelationship\x12j\n\x11left_schema_paths\x18\x01 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\n\x12right_schema_paths\x18\x02 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\n\x07sources\x18\x03 \x03(\x0e\x32J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\n\x10\x63onfidence_score\x18\x04 \x01(\x02\x1a/\n\x0bSchemaPaths\x12\x11\n\ttable_fqn\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\"m\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42IGQUERY_JOB_HISTORY\x10\x01\x12\x11\n\rLLM_SUGGESTED\x10\x02\x12\x1e\n\x1a\x42IGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\n\x0c\x45xampleQuery\x12\x18\n\tsql_query\x18\x65 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x19natural_language_question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x07\n\x05query\"\x8d\x01\n\x11LookerGoldenQuery\x12\'\n\x1anatural_language_questions\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12O\n\x0clooker_query\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xe0\x41\x01\"\x88\x02\n\x0bLookerQuery\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x07\x66ilters\x18\x04 \x03(\x0b\x32;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xe0\x41\x01\x12\x12\n\x05sorts\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\x05limit\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x30\n\x06\x46ilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06_limit\"X\n\x0cGlossaryTerm\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06labels\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x86\x02\n\x13\x43onversationOptions\x12I\n\x05\x63hart\x18\x01 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xe0\x41\x01\x12O\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xe0\x41\x01\x12S\n\ndatasource\x18\x03 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xe0\x41\x01\"Y\n\x11\x44\x61tasourceOptions\x12\x44\n\x1a\x62ig_query_max_billed_bytes\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\"\xd6\x02\n\x0c\x43hartOptions\x12V\n\x05image\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xe0\x41\x01\x1a\xed\x01\n\x0cImageOptions\x12^\n\x08no_image\x18\x01 \x01(\x0b\x32J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\n\x03svg\x18\x02 \x01(\x0b\x32M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1a\t\n\x07NoImage\x1a\x0c\n\nSvgOptionsB\x06\n\x04kind\"\x87\x01\n\x0f\x41nalysisOptions\x12T\n\x06python\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xe0\x41\x01\x1a\x1e\n\x06Python\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x9d\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0c\x43ontextProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -46,6 +46,9 @@ module V1beta Context::SchemaRelationship::SchemaPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths").msgclass Context::SchemaRelationship::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source").enummodule ExampleQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ExampleQuery").msgclass + LookerGoldenQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerGoldenQuery").msgclass + LookerQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery").msgclass + LookerQuery::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter").msgclass GlossaryTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.GlossaryTerm").msgclass ConversationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ConversationOptions").msgclass DatasourceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DatasourceOptions").msgclass diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb index 23b106eb2d31..15a9a1ea7122 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb @@ -18,7 +18,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n@google/cloud/geminidataanalytics/v1beta/data_agent_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/data_agent.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x01\n\x15ListDataAgentsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\x94\x01\n\x16ListDataAgentsResponse\x12G\n\x0b\x64\x61ta_agents\x18\x01 \x03(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xb7\x03\n\x1fListAccessibleDataAgentsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12s\n\x0e\x63reator_filter\x18\x07 \x01(\x0e\x32V.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilterB\x03\xe0\x41\x01\"a\n\rCreatorFilter\x12\x1e\n\x1a\x43REATOR_FILTER_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0c\x43REATOR_ONLY\x10\x02\x12\x14\n\x10NOT_CREATOR_ONLY\x10\x03\"\x9e\x01\n ListAccessibleDataAgentsResponse\x12G\n\x0b\x64\x61ta_agents\x18\x01 \x03(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"Y\n\x13GetDataAgentRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\"\xe8\x01\n\x16\x43reateDataAgentRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x1a\n\rdata_agent_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\ndata_agent\x18\x03 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xbc\x01\n\x16UpdateDataAgentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\ndata_agent\x18\x02 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"}\n\x16\x44\x65leteDataAgentRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xc3\x0e\n\x10\x44\x61taAgentService\x12\xd6\x01\n\x0eListDataAgents\x12>.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest\x1a?.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{parent=projects/*/locations/*}/dataAgents\x12\x83\x02\n\x18ListAccessibleDataAgents\x12H.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest\x1aI.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\x12\xc3\x01\n\x0cGetDataAgent\x12<.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest\x1a\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xfd\x01\n\x0f\x43reateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1e\n\tDataAgent\x12\x11OperationMetadata\xda\x41\x1fparent,data_agent,data_agent_id\x82\xd3\xe4\x93\x02@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\ndata_agent\x12\xff\x01\n\x0fUpdateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x1e\n\tDataAgent\x12\x11OperationMetadata\xda\x41\x16\x64\x61ta_agent,update_mask\x82\xd3\xe4\x93\x02K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\ndata_agent\x12\xe1\x01\n\x0f\x44\x65leteDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xa4\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Y\xda\x41\x08resource\x82\xd3\xe4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy:\x01*\x12\xa4\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Y\xda\x41\x08resource\x82\xd3\xe4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy:\x01*\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa6\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x15\x44\x61taAgentServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" +descriptor_data = "\n@google/cloud/geminidataanalytics/v1beta/data_agent_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/data_agent.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x01\n\x15ListDataAgentsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\x94\x01\n\x16ListDataAgentsResponse\x12G\n\x0b\x64\x61ta_agents\x18\x01 \x03(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"\xb7\x03\n\x1fListAccessibleDataAgentsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12s\n\x0e\x63reator_filter\x18\x07 \x01(\x0e\x32V.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilterB\x03\xe0\x41\x01\"a\n\rCreatorFilter\x12\x1e\n\x1a\x43REATOR_FILTER_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0c\x43REATOR_ONLY\x10\x02\x12\x14\n\x10NOT_CREATOR_ONLY\x10\x03\"\x9e\x01\n ListAccessibleDataAgentsResponse\x12G\n\x0b\x64\x61ta_agents\x18\x01 \x03(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"Y\n\x13GetDataAgentRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\"\xe8\x01\n\x16\x43reateDataAgentRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,geminidataanalytics.googleapis.com/DataAgent\x12\x1a\n\rdata_agent_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\ndata_agent\x18\x03 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xbc\x01\n\x16UpdateDataAgentRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12K\n\ndata_agent\x18\x02 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataAgentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"}\n\x16\x44\x65leteDataAgentRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\x88\x14\n\x10\x44\x61taAgentService\x12\xd6\x01\n\x0eListDataAgents\x12>.google.cloud.geminidataanalytics.v1beta.ListDataAgentsRequest\x1a?.google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{parent=projects/*/locations/*}/dataAgents\x12\x83\x02\n\x18ListAccessibleDataAgents\x12H.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest\x1aI.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{parent=projects/*/locations/*}/dataAgents:listAccessible\x12\xc3\x01\n\x0cGetDataAgent\x12<.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest\x1a\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xfd\x01\n\x0f\x43reateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1e\n\tDataAgent\x12\x11OperationMetadata\xda\x41\x1fparent,data_agent,data_agent_id\x82\xd3\xe4\x93\x02@\"2/v1beta/{parent=projects/*/locations/*}/dataAgents:\ndata_agent\x12\xff\x01\n\x13\x43reateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.CreateDataAgentRequest\x1a\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\"s\xda\x41\x1fparent,data_agent,data_agent_id\x82\xd3\xe4\x93\x02K\"=/v1beta/{parent=projects/*/locations/*}/dataAgents:createSync:\ndata_agent\x12\xff\x01\n\x0fUpdateDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x1e\n\tDataAgent\x12\x11OperationMetadata\xda\x41\x16\x64\x61ta_agent,update_mask\x82\xd3\xe4\x93\x02K2=/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:\ndata_agent\x12\x81\x02\n\x13UpdateDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.UpdateDataAgentRequest\x1a\x32.google.cloud.geminidataanalytics.v1beta.DataAgent\"u\xda\x41\x16\x64\x61ta_agent,update_mask\x82\xd3\xe4\x93\x02V2H/v1beta/{data_agent.name=projects/*/locations/*/dataAgents/*}:updateSync:\ndata_agent\x12\xe1\x01\n\x0f\x44\x65leteDataAgent\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1beta/{name=projects/*/locations/*/dataAgents/*}\x12\xbc\x01\n\x13\x44\x65leteDataAgentSync\x12?.google.cloud.geminidataanalytics.v1beta.DeleteDataAgentRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1beta/{name=projects/*/locations/*/dataAgents/*}:deleteSync\x12\xa4\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Y\xda\x41\x08resource\x82\xd3\xe4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:getIamPolicy:\x01*\x12\xa4\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Y\xda\x41\x08resource\x82\xd3\xe4\x93\x02H\"C/v1beta/{resource=projects/*/locations/*/dataAgents/*}:setIamPolicy:\x01*\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa6\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x15\x44\x61taAgentServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb index 25d720ede640..07c0f53d9a0e 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb @@ -42,10 +42,16 @@ class Service rpc :GetDataAgent, ::Google::Cloud::GeminiDataAnalytics::V1beta::GetDataAgentRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent # Creates a new DataAgent in a given project and location. rpc :CreateDataAgent, ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Google::Longrunning::Operation + # Creates a new DataAgent in a given project and location synchronously. + rpc :CreateDataAgentSync, ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent # Updates the parameters of a single DataAgent. rpc :UpdateDataAgent, ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Google::Longrunning::Operation + # Updates the parameters of a single DataAgent synchronously. + rpc :UpdateDataAgentSync, ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent # Deletes a single DataAgent. rpc :DeleteDataAgent, ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Google::Longrunning::Operation + # Deletes a single DataAgent synchronously. + rpc :DeleteDataAgentSync, ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, ::Google::Protobuf::Empty # Gets the IAM policy for DataAgent rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy # Sets the IAM policy for a DataAgent. diff --git a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb index bfd13ab586b2..52eacbac70aa 100644 --- a/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +++ b/google-cloud-gemini_data_analytics-v1beta/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb @@ -17,7 +17,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/geminidataanalytics/v1beta/context.proto\x1a:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x02\n\x10QueryDataRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06prompt\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12O\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xe0\x41\x02\x12[\n\x12generation_options\x18\x04 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xe0\x41\x01\"\xb8\x01\n\x11GenerationOptions\x12\"\n\x15generate_query_result\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12-\n generate_natural_language_answer\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14generate_explanation\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12-\n generate_disambiguation_question\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"u\n\x10QueryDataContext\x12\x61\n\x15\x64\x61tasource_references\x18\x01 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\"\xde\x01\n\x11QueryDataResponse\x12\x17\n\x0fgenerated_query\x18\x01 \x01(\t\x12\x1a\n\x12intent_explanation\x18\x02 \x01(\t\x12R\n\x0cquery_result\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1f\n\x17natural_language_answer\x18\x04 \x01(\t\x12\x1f\n\x17\x64isambiguation_question\x18\x05 \x03(\t\"\xa4\x03\n\x13\x45xecutedQueryResult\x12T\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\n\x04rows\x18\x02 \x03(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\n\x0ftotal_row_count\x18\x03 \x01(\x03\x12\x16\n\x0epartial_result\x18\x04 \x01(\x08\x12\x1d\n\x15query_execution_error\x18\x05 \x01(\t\x1a$\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x1a\x16\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\t\x1aY\n\x03Row\x12R\n\x06values\x18\x01 \x03(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xa4\x01\n\x13ListMessagesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListMessagesResponse\x12I\n\x08messages\x18\x01 \x03(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n\x0eStorageMessage\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x41\n\x07message\x18\x02 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.Message\"\xd4\x04\n\x0b\x43hatRequest\x12O\n\x0einline_context\x18\x65 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x01H\x00\x12\x65\n\x16\x63onversation_reference\x18g \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xe0\x41\x01H\x00\x12\\\n\x12\x64\x61ta_agent_context\x18h \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x01H\x00\x12u\n\x1f\x63lient_managed_resource_context\x18i \x01(\x0b\x32\x45.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xe0\x41\x01H\x00\x12\x46\n\x07project\x18\x01 \x01(\tB5\x18\x01\xe0\x41\x01\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xe0\x41\x02\x42\x12\n\x10\x63ontext_provider\"\xe3\x02\n\x10\x44\x61taAgentContext\x12H\n\ndata_agent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xe0\x41\x01\x12\x66\n\x0f\x63ontext_version\x18\x03 \x01(\x0e\x32H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xe0\x41\x01\"M\n\x0e\x43ontextVersion\x12\x1f\n\x1b\x43ONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0b\n\x07STAGING\x10\x01\x12\r\n\tPUBLISHED\x10\x02\"\xc2\x01\n\x15\x43onversationReference\x12M\n\x0c\x63onversation\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12Z\n\x12\x64\x61ta_agent_context\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x02\"\xa2\x01\n\x1c\x43lientManagedResourceContext\x12M\n\x0einline_context\x18\x01 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x61gent_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xfe\x01\n\x07Message\x12L\n\x0cuser_message\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\n\x0esystem_message\x18\x03 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x12\x32\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nmessage_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x06\n\x04kind\"%\n\x0bUserMessage\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\x06\n\x04kind\"\xc8\x04\n\rSystemMessage\x12\x44\n\x04text\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\n\x06schema\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12\x44\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\n\x08\x61nalysis\x18\x04 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12\x46\n\x05\x63hart\x18\x05 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12\x46\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\n\x0f\x65xample_queries\x18\r \x01(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xe0\x41\x01H\x00\x12\x15\n\x08group_id\x18\x0c \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04kindB\x0b\n\t_group_id\"\xce\x01\n\x0bTextMessage\x12\x12\n\x05parts\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12U\n\ttext_type\x18\x02 \x01(\x0e\x32=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xe0\x41\x01\"T\n\x08TextType\x12\x19\n\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46INAL_RESPONSE\x10\x01\x12\x0b\n\x07THOUGHT\x10\x02\x12\x0c\n\x08PROGRESS\x10\x03\"\xa7\x01\n\rSchemaMessage\x12\x45\n\x05query\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00\x42\x06\n\x04kind\"$\n\x0bSchemaQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\"]\n\x0cSchemaResult\x12M\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\"\xe5\x02\n\x0b\x44\x61taMessage\x12\x43\n\x05query\x18\x01 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\n\rgenerated_sql\x18\x02 \x01(\tH\x00\x12\x45\n\x06result\x18\x03 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\n\x16generated_looker_query\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\n\rbig_query_job\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x42\x06\n\x04kind\"\x88\x02\n\x0bLookerQuery\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x07\x66ilters\x18\x04 \x03(\x0b\x32;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xe0\x41\x01\x12\x12\n\x05sorts\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\x05limit\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x30\n\x06\x46ilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06_limit\"\xdf\x01\n\tDataQuery\x12K\n\x06looker\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xe0\x41\x01H\x00\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12M\n\x0b\x64\x61tasources\x18\x02 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\x91\x01\n\nDataResult\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x05 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x12*\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\xf9\x01\n\x0b\x42igQueryJob\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x11\x64\x65stination_table\x18\x03 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x07 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\xb4\x01\n\x0f\x41nalysisMessage\x12G\n\x05query\x18\x01 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\n\x0eprogress_event\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00\x42\x06\n\x04kind\"F\n\rAnalysisQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x64\x61ta_result_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xaa\x02\n\rAnalysisEvent\x12\x1b\n\x11planner_reasoning\x18\x02 \x01(\tH\x00\x12\x1b\n\x11\x63oder_instruction\x18\x03 \x01(\tH\x00\x12\x0e\n\x04\x63ode\x18\x04 \x01(\tH\x00\x12\x1a\n\x10\x65xecution_output\x18\x05 \x01(\tH\x00\x12\x19\n\x0f\x65xecution_error\x18\x06 \x01(\tH\x00\x12 \n\x16result_vega_chart_json\x18\x07 \x01(\tH\x00\x12!\n\x17result_natural_language\x18\x08 \x01(\tH\x00\x12\x19\n\x0fresult_csv_data\x18\t \x01(\tH\x00\x12\x1f\n\x15result_reference_data\x18\n \x01(\tH\x00\x12\x0f\n\x05\x65rror\x18\x0b \x01(\tH\x00\x42\x06\n\x04kind\"\xa4\x01\n\x0c\x43hartMessage\x12\x44\n\x05query\x18\x01 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00\x42\x06\n\x04kind\"F\n\nChartQuery\x12\x19\n\x0cinstructions\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x61ta_result_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x0b\x43hartResult\x12\x31\n\x0bvega_config\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x41\n\x05image\x18\x03 \x01(\x0b\x32-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xe0\x41\x01\"!\n\x0c\x45rrorMessage\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\"e\n\x0e\x45xampleQueries\x12S\n\x0f\x65xample_queries\x18\x01 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x32\xae\x0c\n\x0f\x44\x61taChatService\x12\xa9\x01\n\x04\x43hat\x12\x34.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1a\x30.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xd3\xe4\x93\x02\x31\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\n\x12\x43reateConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xda\x41#parent,conversation,conversation_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xb6\x01\n\x12\x44\x65leteConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xcf\x01\n\x0fGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xe2\x01\n\x11ListConversations\x12\x41.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1a\x42.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*}/conversations\x12\xde\x01\n\x0cListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1a=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xc0\x01\n\tQueryData\x12\x39.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1a:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x14\x44\x61taChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" +descriptor_data = "\n?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/geminidataanalytics/v1beta/context.proto\x1a:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x02\n\x10QueryDataRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06prompt\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12O\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.QueryDataContextB\x03\xe0\x41\x02\x12[\n\x12generation_options\x18\x04 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.GenerationOptionsB\x03\xe0\x41\x01\"\xb8\x01\n\x11GenerationOptions\x12\"\n\x15generate_query_result\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12-\n generate_natural_language_answer\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14generate_explanation\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12-\n generate_disambiguation_question\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"u\n\x10QueryDataContext\x12\x61\n\x15\x64\x61tasource_references\x18\x01 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\"\xde\x01\n\x11QueryDataResponse\x12\x17\n\x0fgenerated_query\x18\x01 \x01(\t\x12\x1a\n\x12intent_explanation\x18\x02 \x01(\t\x12R\n\x0cquery_result\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult\x12\x1f\n\x17natural_language_answer\x18\x04 \x01(\t\x12\x1f\n\x17\x64isambiguation_question\x18\x05 \x03(\t\"\xa4\x03\n\x13\x45xecutedQueryResult\x12T\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\x12N\n\x04rows\x18\x02 \x03(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\x12\x17\n\x0ftotal_row_count\x18\x03 \x01(\x03\x12\x16\n\x0epartial_result\x18\x04 \x01(\x08\x12\x1d\n\x15query_execution_error\x18\x05 \x01(\t\x1a$\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x1a\x16\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\t\x1aY\n\x03Row\x12R\n\x06values\x18\x01 \x03(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\xa4\x01\n\x13ListMessagesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListMessagesResponse\x12I\n\x08messages\x18\x01 \x03(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n\x0eStorageMessage\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x41\n\x07message\x18\x02 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.Message\"\xd4\x04\n\x0b\x43hatRequest\x12O\n\x0einline_context\x18\x65 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x01H\x00\x12\x65\n\x16\x63onversation_reference\x18g \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xe0\x41\x01H\x00\x12\\\n\x12\x64\x61ta_agent_context\x18h \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x01H\x00\x12u\n\x1f\x63lient_managed_resource_context\x18i \x01(\x0b\x32\x45.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xe0\x41\x01H\x00\x12\x46\n\x07project\x18\x01 \x01(\tB5\x18\x01\xe0\x41\x01\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xe0\x41\x02\x42\x12\n\x10\x63ontext_provider\"\xe3\x02\n\x10\x44\x61taAgentContext\x12H\n\ndata_agent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xe0\x41\x01\x12\x66\n\x0f\x63ontext_version\x18\x03 \x01(\x0e\x32H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xe0\x41\x01\"M\n\x0e\x43ontextVersion\x12\x1f\n\x1b\x43ONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0b\n\x07STAGING\x10\x01\x12\r\n\tPUBLISHED\x10\x02\"\xc2\x01\n\x15\x43onversationReference\x12M\n\x0c\x63onversation\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12Z\n\x12\x64\x61ta_agent_context\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x02\"\xa2\x01\n\x1c\x43lientManagedResourceContext\x12M\n\x0einline_context\x18\x01 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x61gent_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xfe\x01\n\x07Message\x12L\n\x0cuser_message\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\n\x0esystem_message\x18\x03 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x12\x32\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nmessage_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x06\n\x04kind\"%\n\x0bUserMessage\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\x06\n\x04kind\"\xc8\x04\n\rSystemMessage\x12\x44\n\x04text\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\n\x06schema\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12\x44\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\n\x08\x61nalysis\x18\x04 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12\x46\n\x05\x63hart\x18\x05 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12\x46\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\n\x0f\x65xample_queries\x18\r \x01(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xe0\x41\x01H\x00\x12\x15\n\x08group_id\x18\x0c \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04kindB\x0b\n\t_group_id\"\xce\x01\n\x0bTextMessage\x12\x12\n\x05parts\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12U\n\ttext_type\x18\x02 \x01(\x0e\x32=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xe0\x41\x01\"T\n\x08TextType\x12\x19\n\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46INAL_RESPONSE\x10\x01\x12\x0b\n\x07THOUGHT\x10\x02\x12\x0c\n\x08PROGRESS\x10\x03\"\xa7\x01\n\rSchemaMessage\x12\x45\n\x05query\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00\x42\x06\n\x04kind\"$\n\x0bSchemaQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\"]\n\x0cSchemaResult\x12M\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\"\xe5\x02\n\x0b\x44\x61taMessage\x12\x43\n\x05query\x18\x01 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\n\rgenerated_sql\x18\x02 \x01(\tH\x00\x12\x45\n\x06result\x18\x03 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\n\x16generated_looker_query\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\n\rbig_query_job\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x42\x06\n\x04kind\"\xdf\x01\n\tDataQuery\x12K\n\x06looker\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xe0\x41\x01H\x00\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12M\n\x0b\x64\x61tasources\x18\x02 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\x91\x01\n\nDataResult\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x05 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x12*\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\xf9\x01\n\x0b\x42igQueryJob\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x11\x64\x65stination_table\x18\x03 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x07 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\xb4\x01\n\x0f\x41nalysisMessage\x12G\n\x05query\x18\x01 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\n\x0eprogress_event\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00\x42\x06\n\x04kind\"F\n\rAnalysisQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x64\x61ta_result_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xaa\x02\n\rAnalysisEvent\x12\x1b\n\x11planner_reasoning\x18\x02 \x01(\tH\x00\x12\x1b\n\x11\x63oder_instruction\x18\x03 \x01(\tH\x00\x12\x0e\n\x04\x63ode\x18\x04 \x01(\tH\x00\x12\x1a\n\x10\x65xecution_output\x18\x05 \x01(\tH\x00\x12\x19\n\x0f\x65xecution_error\x18\x06 \x01(\tH\x00\x12 \n\x16result_vega_chart_json\x18\x07 \x01(\tH\x00\x12!\n\x17result_natural_language\x18\x08 \x01(\tH\x00\x12\x19\n\x0fresult_csv_data\x18\t \x01(\tH\x00\x12\x1f\n\x15result_reference_data\x18\n \x01(\tH\x00\x12\x0f\n\x05\x65rror\x18\x0b \x01(\tH\x00\x42\x06\n\x04kind\"\xa4\x01\n\x0c\x43hartMessage\x12\x44\n\x05query\x18\x01 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00\x42\x06\n\x04kind\"F\n\nChartQuery\x12\x19\n\x0cinstructions\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x61ta_result_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x0b\x43hartResult\x12\x31\n\x0bvega_config\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x41\n\x05image\x18\x03 \x01(\x0b\x32-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xe0\x41\x01\"!\n\x0c\x45rrorMessage\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\"e\n\x0e\x45xampleQueries\x12S\n\x0f\x65xample_queries\x18\x01 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x32\xae\x0c\n\x0f\x44\x61taChatService\x12\xa9\x01\n\x04\x43hat\x12\x34.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1a\x30.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xd3\xe4\x93\x02\x31\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\n\x12\x43reateConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xda\x41#parent,conversation,conversation_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xb6\x01\n\x12\x44\x65leteConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xcf\x01\n\x0fGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xe2\x01\n\x11ListConversations\x12\x41.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1a\x42.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*}/conversations\x12\xde\x01\n\x0cListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1a=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x12\xc0\x01\n\tQueryData\x12\x39.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\x1a:.google.cloud.geminidataanalytics.v1beta.QueryDataResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1beta/{parent=projects/*/locations/*}:queryData:\x01*\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x14\x44\x61taChatServiceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -77,8 +77,6 @@ module V1beta SchemaQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SchemaQuery").msgclass SchemaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SchemaResult").msgclass DataMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DataMessage").msgclass - LookerQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery").msgclass - LookerQuery::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter").msgclass DataQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DataQuery").msgclass DataResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DataResult").msgclass BigQueryJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.BigQueryJob").msgclass diff --git a/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb b/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb index 7cc459de2b2c..d2999b2a3911 100644 --- a/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +++ b/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb @@ -41,6 +41,11 @@ module V1beta # 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. + # @!attribute [rw] looker_golden_queries + # @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerGoldenQuery>] + # Optional. A list of golden queries, providing examples of relevant and + # commonly used Looker queries and their corresponding natural language + # queries optionally present. # @!attribute [rw] glossary_terms # @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::GlossaryTerm>] # Optional. Term definitions (currently, only user authored) @@ -126,6 +131,58 @@ class ExampleQuery extend ::Google::Protobuf::MessageExts::ClassMethods end + # A golden query for Looker, including natural language questions and a + # corresponding Looker Query. Analogous to ExampleQuery. + # @!attribute [rw] natural_language_questions + # @return [::Array<::String>] + # Optional. Natural language questions that a user might ask. + # For example: "How many orders were placed last month?" + # @!attribute [rw] looker_query + # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery] + # Optional. The Looker Query corresponding to the natural language questions. + class LookerGoldenQuery + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Looker Query Object + # [Looker API + # documentation](https://cloud.google.com/looker/docs/reference/looker-api/latest/methods/Query/run_inline_query). + # @!attribute [rw] model + # @return [::String] + # Required. The LookML model used to generate the query. + # @!attribute [rw] explore + # @return [::String] + # Required. The LookML explore used to generate the query. + # @!attribute [rw] fields + # @return [::Array<::String>] + # Optional. The fields to retrieve from the explore. + # @!attribute [rw] filters + # @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery::Filter>] + # Optional. The filters to apply to the explore. + # @!attribute [rw] sorts + # @return [::Array<::String>] + # Optional. The sorts to apply to the explore. + # @!attribute [rw] limit + # @return [::String] + # Optional. Limit in the query. + class LookerQuery + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A Looker query filter. + # @!attribute [rw] field + # @return [::String] + # Required. The field to filter on. + # @!attribute [rw] value + # @return [::String] + # Required. The value for the field to filter on. + class Filter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + # Definition of a term within a specific domain. # @!attribute [rw] display_name # @return [::String] diff --git a/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb b/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb index be28ed29551a..175e661f19e1 100644 --- a/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +++ b/google-cloud-gemini_data_analytics-v1beta/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb @@ -506,44 +506,6 @@ class DataMessage extend ::Google::Protobuf::MessageExts::ClassMethods end - # A query for retrieving data from a Looker Explore. See - # [Run Inline - # Query](https://cloud.google.com/looker/docs/reference/looker-api/latest/methods/Query/run_inline_query). - # @!attribute [rw] model - # @return [::String] - # Required. The LookML model used to generate the query. - # @!attribute [rw] explore - # @return [::String] - # Required. The LookML Explore used to generate the query. - # @!attribute [rw] fields - # @return [::Array<::String>] - # Optional. The fields to retrieve from the Explore. - # @!attribute [rw] filters - # @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery::Filter>] - # Optional. The filters to apply to the Explore. - # @!attribute [rw] sorts - # @return [::Array<::String>] - # Optional. The sorts to apply to the Explore. - # @!attribute [rw] limit - # @return [::String] - # Optional. Limit in the query. - class LookerQuery - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A Looker query filter. - # @!attribute [rw] field - # @return [::String] - # Required. The field to filter on. - # @!attribute [rw] value - # @return [::String] - # Required. The value f field to filter on. - class Filter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - # A query for retrieving data. # @!attribute [rw] looker # @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery] diff --git a/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/create_data_agent_sync.rb b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/create_data_agent_sync.rb new file mode 100644 index 000000000000..c6980ae35ecd --- /dev/null +++ b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/create_data_agent_sync.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] +require "google/cloud/gemini_data_analytics/v1beta" + +## +# Snippet for the create_data_agent_sync call in the DataAgentService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#create_data_agent_sync. +# +def create_data_agent_sync + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new + + # Call the create_data_agent_sync method. + result = client.create_data_agent_sync request + + # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + p result +end +# [END geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync] diff --git a/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/delete_data_agent_sync.rb b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/delete_data_agent_sync.rb new file mode 100644 index 000000000000..74128682dd2c --- /dev/null +++ b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/delete_data_agent_sync.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] +require "google/cloud/gemini_data_analytics/v1beta" + +## +# Snippet for the delete_data_agent_sync call in the DataAgentService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#delete_data_agent_sync. +# +def delete_data_agent_sync + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new + + # Call the delete_data_agent_sync method. + result = client.delete_data_agent_sync request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync] diff --git a/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/update_data_agent_sync.rb b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/update_data_agent_sync.rb new file mode 100644 index 000000000000..7786a52bd39f --- /dev/null +++ b/google-cloud-gemini_data_analytics-v1beta/snippets/data_agent_service/update_data_agent_sync.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] +require "google/cloud/gemini_data_analytics/v1beta" + +## +# Snippet for the update_data_agent_sync call in the DataAgentService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#update_data_agent_sync. +# +def update_data_agent_sync + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new + + # Call the update_data_agent_sync method. + result = client.update_data_agent_sync request + + # The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent. + p result +end +# [END geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync] diff --git a/google-cloud-gemini_data_analytics-v1beta/snippets/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json b/google-cloud-gemini_data_analytics-v1beta/snippets/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json index 399cc0ed789d..48f252de5851 100644 --- a/google-cloud-gemini_data_analytics-v1beta/snippets/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json +++ b/google-cloud-gemini_data_analytics-v1beta/snippets/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json @@ -171,6 +171,46 @@ } ] }, + { + "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_sync", + "title": "Snippet for the create_data_agent_sync call in the DataAgentService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#create_data_agent_sync.", + "file": "data_agent_service/create_data_agent_sync.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_data_agent_sync", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#create_data_agent_sync", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent", + "client": { + "short_name": "DataAgentService::Client", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client" + }, + "method": { + "short_name": "CreateDataAgentSync", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService.CreateDataAgentSync", + "service": { + "short_name": "DataAgentService", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_sync", "title": "Snippet for the update_data_agent call in the DataAgentService service", @@ -211,6 +251,46 @@ } ] }, + { + "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_sync", + "title": "Snippet for the update_data_agent_sync call in the DataAgentService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#update_data_agent_sync.", + "file": "data_agent_service/update_data_agent_sync.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_data_agent_sync", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#update_data_agent_sync", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent", + "client": { + "short_name": "DataAgentService::Client", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client" + }, + "method": { + "short_name": "UpdateDataAgentSync", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService.UpdateDataAgentSync", + "service": { + "short_name": "DataAgentService", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_sync", "title": "Snippet for the delete_data_agent call in the DataAgentService service", @@ -251,6 +331,46 @@ } ] }, + { + "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_sync", + "title": "Snippet for the delete_data_agent_sync call in the DataAgentService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#delete_data_agent_sync.", + "file": "data_agent_service/delete_data_agent_sync.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_data_agent_sync", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client#delete_data_agent_sync", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "DataAgentService::Client", + "full_name": "::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client" + }, + "method": { + "short_name": "DeleteDataAgentSync", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService.DeleteDataAgentSync", + "service": { + "short_name": "DataAgentService", + "full_name": "google.cloud.geminidataanalytics.v1beta.DataAgentService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_sync", "title": "Snippet for the get_iam_policy call in the DataAgentService service", diff --git a/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_rest_test.rb b/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_rest_test.rb index cec5c192d53b..719e73a7cb9b 100644 --- a/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_rest_test.rb +++ b/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_rest_test.rb @@ -308,6 +308,63 @@ def test_create_data_agent end end + def test_create_data_agent_sync + # Create test objects. + client_result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + data_agent_id = "hello world" + data_agent = {} + request_id = "hello world" + + create_data_agent_sync_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::ServiceStub.stub :transcode_create_data_agent_sync_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_data_agent_sync({ parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_data_agent_sync parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new(parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_data_agent_sync({ parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new(parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_data_agent_sync_client_stub.call_count + end + end + end + def test_update_data_agent # Create test objects. client_result = ::Google::Longrunning::Operation.new @@ -364,6 +421,62 @@ def test_update_data_agent end end + def test_update_data_agent_sync + # Create test objects. + client_result = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + data_agent = {} + request_id = "hello world" + + update_data_agent_sync_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::ServiceStub.stub :transcode_update_data_agent_sync_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_data_agent_sync({ update_mask: update_mask, data_agent: data_agent, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_data_agent_sync update_mask: update_mask, data_agent: data_agent, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new(update_mask: update_mask, data_agent: data_agent, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_data_agent_sync({ update_mask: update_mask, data_agent: data_agent, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new(update_mask: update_mask, data_agent: data_agent, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_data_agent_sync_client_stub.call_count + end + end + end + def test_delete_data_agent # Create test objects. client_result = ::Google::Longrunning::Operation.new @@ -419,6 +532,61 @@ def test_delete_data_agent end end + def test_delete_data_agent_sync + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_data_agent_sync_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::ServiceStub.stub :transcode_delete_data_agent_sync_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_data_agent_sync({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_data_agent_sync name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_data_agent_sync({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_data_agent_sync_client_stub.call_count + end + end + end + def test_get_iam_policy # Create test objects. client_result = ::Google::Iam::V1::Policy.new diff --git a/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_test.rb b/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_test.rb index 372c63984b2a..e35691930afa 100644 --- a/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_test.rb +++ b/google-cloud-gemini_data_analytics-v1beta/test/google/cloud/gemini_data_analytics/v1beta/data_agent_service_test.rb @@ -338,6 +338,70 @@ def test_create_data_agent end end + def test_create_data_agent_sync + # Create GRPC objects. + grpc_response = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + data_agent_id = "hello world" + data_agent = {} + request_id = "hello world" + + create_data_agent_sync_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_data_agent_sync, name + assert_kind_of ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["data_agent_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent), request["data_agent"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_data_agent_sync({ parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_data_agent_sync parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new(parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_data_agent_sync({ parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::CreateDataAgentRequest.new(parent: parent, data_agent_id: data_agent_id, data_agent: data_agent, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_data_agent_sync_client_stub.call_rpc_count + end + end + def test_update_data_agent # Create GRPC objects. grpc_response = ::Google::Longrunning::Operation.new @@ -405,6 +469,68 @@ def test_update_data_agent end end + def test_update_data_agent_sync + # Create GRPC objects. + grpc_response = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + data_agent = {} + request_id = "hello world" + + update_data_agent_sync_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_data_agent_sync, name + assert_kind_of ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent), request["data_agent"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_data_agent_sync({ update_mask: update_mask, data_agent: data_agent, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_data_agent_sync update_mask: update_mask, data_agent: data_agent, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new(update_mask: update_mask, data_agent: data_agent, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_data_agent_sync({ update_mask: update_mask, data_agent: data_agent, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::UpdateDataAgentRequest.new(update_mask: update_mask, data_agent: data_agent, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_data_agent_sync_client_stub.call_rpc_count + end + end + def test_delete_data_agent # Create GRPC objects. grpc_response = ::Google::Longrunning::Operation.new @@ -470,6 +596,66 @@ def test_delete_data_agent end end + def test_delete_data_agent_sync + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_data_agent_sync_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_data_agent_sync, name + assert_kind_of ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_data_agent_sync_client_stub do + # Create client + client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_data_agent_sync({ name: name, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_data_agent_sync name: name, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_data_agent_sync ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new(name: name, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_data_agent_sync({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_data_agent_sync(::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteDataAgentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_data_agent_sync_client_stub.call_rpc_count + end + end + def test_get_iam_policy # Create GRPC objects. grpc_response = ::Google::Iam::V1::Policy.new