Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions google-cloud-vision_ai-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb",
"lib/google/cloud/vision_ai/v1/app_platform/rest/operations.rb",
"lib/google/cloud/vision_ai/v1/app_platform/rest/service_stub.rb",
"lib/google/cloud/vision_ai/v1/bindings_override.rb",
"lib/google/cloud/vision_ai/v1/health_check_service.rb",
"lib/google/cloud/vision_ai/v1/health_check_service/client.rb",
"lib/google/cloud/vision_ai/v1/health_check_service/credentials.rb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/app_platform/credentials"
require "google/cloud/vision_ai/v1/app_platform/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @app_platform_stub.endpoint
config.universe_domain = @app_platform_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @app_platform_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -2902,6 +2903,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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!

require "gapic/rest"

module Google
module Cloud
module VisionAI
##
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
#
# require "google/cloud/vision_ai/v1/rest"
# client = ::Google::Cloud::VisionAI::V1::LiveVideoAnalytics::Rest::Client.new
#
module V1
##
# @private
# Initialize the mixin bindings configuration
#
def self.configure
@configure ||= begin
namespace = ["Google", "Cloud", "VisionAI"]
parent_config = while namespace.any?
parent_name = namespace.join "::"
parent_const = const_get parent_name
break parent_const.configure if parent_const.respond_to? :configure
namespace.pop
end

default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{name}",
matches: [
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
],
body: nil
)
]
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [

Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
uri_method: :get,
uri_template: "/v1/{name}/locations",
matches: [
["name", %r{^projects/[^/]+/?$}, false]
],
body: nil
)
]
default_config
end
yield @configure if block_given?
@configure
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/health_check_service/credentials"
require "google/cloud/vision_ai/v1/health_check_service/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @health_check_service_stub.endpoint
config.universe_domain = @health_check_service_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @health_check_service_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -394,6 +395,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/live_video_analytics/credentials"
require "google/cloud/vision_ai/v1/live_video_analytics/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @live_video_analytics_stub.endpoint
config.universe_domain = @live_video_analytics_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @live_video_analytics_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -2072,6 +2073,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
require "google/cloud/vision_ai/v1/streams_service/rest"
require "google/cloud/vision_ai/v1/warehouse/rest"
require "google/cloud/vision_ai/v1/health_check_service/rest"
require "google/cloud/vision_ai/v1/bindings_override"
require "google/cloud/vision_ai/v1/version"

module Google
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/streaming_service/credentials"
require "google/cloud/vision_ai/v1/streaming_service/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @streaming_service_stub.endpoint
config.universe_domain = @streaming_service_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @streaming_service_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -565,6 +566,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/streams_service/credentials"
require "google/cloud/vision_ai/v1/streams_service/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @streams_service_stub.endpoint
config.universe_domain = @streams_service_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @streams_service_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -2557,6 +2558,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Client
API_VERSION = ""

# @private
DEFAULT_ENDPOINT_TEMPLATE = "visionai.$UNIVERSE_DOMAIN$"
DEFAULT_ENDPOINT_TEMPLATE = "warehouse-visionai.$UNIVERSE_DOMAIN$"

include Paths

Expand Down Expand Up @@ -4820,7 +4820,7 @@ def search_assets request, options = nil
# If negative, INVALID_ARGUMENT error will be returned.
# If unspecified or 0, API will pick a default size, which is 10.
# If the requested page size is larger than the maximum size, API will pick
# the maximum size, which is 100.
# the maximum size, which is 200.
# @param page_token [::String]
# The continuation token to fetch the next page. If empty, it means it is
# fetching the first page.
Expand Down Expand Up @@ -6460,7 +6460,7 @@ class Configuration

# @private
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
DEFAULT_ENDPOINT = "visionai.googleapis.com"
DEFAULT_ENDPOINT = "warehouse-visionai.googleapis.com"

config_attr :endpoint, nil, ::String, nil
config_attr :credentials, nil do |value|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Operations
API_VERSION = ""

# @private
DEFAULT_ENDPOINT_TEMPLATE = "visionai.$UNIVERSE_DOMAIN$"
DEFAULT_ENDPOINT_TEMPLATE = "warehouse-visionai.$UNIVERSE_DOMAIN$"

# @private
attr_reader :operations_stub
Expand Down Expand Up @@ -725,7 +725,7 @@ class Configuration

# @private
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
DEFAULT_ENDPOINT = "visionai.googleapis.com"
DEFAULT_ENDPOINT = "warehouse-visionai.googleapis.com"

config_attr :endpoint, nil, ::String, nil
config_attr :credentials, nil do |value|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require "gapic/config/method"

require "google/cloud/vision_ai/v1/version"
require "google/cloud/vision_ai/v1/bindings_override"

require "google/cloud/vision_ai/v1/warehouse/credentials"
require "google/cloud/vision_ai/v1/warehouse/paths"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Client
API_VERSION = ""

# @private
DEFAULT_ENDPOINT_TEMPLATE = "visionai.$UNIVERSE_DOMAIN$"
DEFAULT_ENDPOINT_TEMPLATE = "warehouse-visionai.$UNIVERSE_DOMAIN$"

include Paths

Expand Down Expand Up @@ -203,6 +203,7 @@ def initialize
config.quota_project = @quota_project_id
config.endpoint = @warehouse_stub.endpoint
config.universe_domain = @warehouse_stub.universe_domain
config.bindings_override = @config.bindings_override
config.logger = @warehouse_stub.logger if config.respond_to? :logger=
end

Expand Down Expand Up @@ -4405,7 +4406,7 @@ def search_assets request, options = nil
# If negative, INVALID_ARGUMENT error will be returned.
# If unspecified or 0, API will pick a default size, which is 10.
# If the requested page size is larger than the maximum size, API will pick
# the maximum size, which is 100.
# the maximum size, which is 200.
# @param page_token [::String]
# The continuation token to fetch the next page. If empty, it means it is
# fetching the first page.
Expand Down Expand Up @@ -5907,7 +5908,7 @@ class Configuration

# @private
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
DEFAULT_ENDPOINT = "visionai.googleapis.com"
DEFAULT_ENDPOINT = "warehouse-visionai.googleapis.com"

config_attr :endpoint, nil, ::String, nil
config_attr :credentials, nil do |value|
Expand All @@ -5922,6 +5923,13 @@ class Configuration
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
config_attr :quota_project, nil, ::String, nil
config_attr :universe_domain, nil, ::String, nil

# @private
# Overrides for http bindings for the RPCs of this service
# are only used when this service is used as mixin, and only
# by the host service.
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
config_attr :bindings_override, {}, ::Hash, nil
config_attr :logger, :default, ::Logger, nil, :default

# @private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Operations
API_VERSION = ""

# @private
DEFAULT_ENDPOINT_TEMPLATE = "visionai.$UNIVERSE_DOMAIN$"
DEFAULT_ENDPOINT_TEMPLATE = "warehouse-visionai.$UNIVERSE_DOMAIN$"

# @private
attr_reader :operations_stub
Expand Down Expand Up @@ -563,7 +563,7 @@ class Configuration

# @private
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
DEFAULT_ENDPOINT = "visionai.googleapis.com"
DEFAULT_ENDPOINT = "warehouse-visionai.googleapis.com"

config_attr :endpoint, nil, ::String, nil
config_attr :credentials, nil do |value|
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2723,7 +2723,7 @@ class SearchAssetsRequest
# If negative, INVALID_ARGUMENT error will be returned.
# If unspecified or 0, API will pick a default size, which is 10.
# If the requested page size is larger than the maximum size, API will pick
# the maximum size, which is 100.
# the maximum size, which is 200.
# @!attribute [rw] page_token
# @return [::String]
# The continuation token to fetch the next page. If empty, it means it is
Expand Down Expand Up @@ -2839,8 +2839,8 @@ class AnnotationMatchingResult
# image query).
# By default this represents cosine similarity between the query and the
# retrieved media content. The value is in the range of [-1, 1].
# Note that search ranking is not only decided by this relevance score,
# but also other factors such as the match of annotations.
# Note that search ranking is not only decided by this relevance score, but
# also other factors such as the match of annotations.
# @!attribute [rw] requested_annotations
# @return [::Array<::Google::Cloud::VisionAI::V1::Annotation>]
# Search result annotations specified by result_annotation_keys in search
Expand Down
Loading