google-shopping-css-v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/shopping/css/v1/version"
24
+
25
+ require "google/shopping/css/v1/quota_service/credentials"
26
+ require "google/shopping/css/v1/quota_service/paths"
27
+ require "google/shopping/css/v1/quota_service/client"
28
+ require "google/shopping/css/v1/quota_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Css
33
+ module V1
34
+ ##
35
+ # Service to get method call quota information per CSS API method.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/shopping/css/v1/quota_service"
40
+ # client = ::Google::Shopping::Css::V1::QuotaService::Client.new
41
+ #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/shopping/css/v1/quota_service/rest"
45
+ # client = ::Google::Shopping::Css::V1::QuotaService::Rest::Client.new
46
+ #
47
+ module QuotaService
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "quota_service", "helpers.rb"
55
+ require "google/shopping/css/v1/quota_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/css/v1/quota.proto for package 'Google.Shopping.Css.V1'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/shopping/css/v1/quota_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Css
25
+ module V1
26
+ module QuotaService
27
+ # Service to get method call quota information per CSS API method.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.shopping.css.v1.QuotaService'
35
+
36
+ # Lists the daily call quota and usage per group for your CSS Center account.
37
+ rpc :ListQuotaGroups, ::Google::Shopping::Css::V1::ListQuotaGroupsRequest, ::Google::Shopping::Css::V1::ListQuotaGroupsResponse
38
+ end
39
+
40
+ Stub = Service.rpc_stub_class
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -20,6 +20,7 @@ require "google/shopping/css/v1/accounts_service/rest"
20
20
  require "google/shopping/css/v1/account_labels_service/rest"
21
21
  require "google/shopping/css/v1/css_product_inputs_service/rest"
22
22
  require "google/shopping/css/v1/css_products_service/rest"
23
+ require "google/shopping/css/v1/quota_service/rest"
23
24
  require "google/shopping/css/v1/version"
24
25
 
25
26
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Shopping
22
22
  module Css
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -20,6 +20,7 @@ require "google/shopping/css/v1/accounts_service"
20
20
  require "google/shopping/css/v1/account_labels_service"
21
21
  require "google/shopping/css/v1/css_product_inputs_service"
22
22
  require "google/shopping/css/v1/css_products_service"
23
+ require "google/shopping/css/v1/quota_service"
23
24
  require "google/shopping/css/v1/version"
24
25
 
25
26
  module Google
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -117,6 +117,9 @@ module Google
117
117
  # The CSS/MC account's parent resource. CSS group for CSS domains; CSS
118
118
  # domain for MC accounts. Returned only if the user has access to the
119
119
  # parent account.
120
+ # Note: For MC sub-accounts, this is also the CSS domain that is the parent
121
+ # resource of the MCA account, since we are effectively flattening the
122
+ # hierarchy."
120
123
  # @!attribute [rw] label_ids
121
124
  # @return [::Array<::Integer>]
122
125
  # Manually created label IDs assigned to the CSS/MC account by a CSS parent
@@ -28,7 +28,10 @@ module Google
28
28
  # @return [::String]
29
29
  # The name of the CSS Product input.
30
30
  # Format:
31
- # `accounts/{account}/cssProductInputs/{css_product_input}`
31
+ # `accounts/{account}/cssProductInputs/{css_product_input}`, where the
32
+ # last section `css_product_input` consists of 3 parts:
33
+ # contentLanguage~feedLabel~offerId. Example:
34
+ # accounts/123/cssProductInputs/de~DE~rawProvidedId123
32
35
  # @!attribute [r] final_name
33
36
  # @return [::String]
34
37
  # Output only. The name of the processed CSS Product.
@@ -146,7 +149,10 @@ module Google
146
149
  # @!attribute [rw] name
147
150
  # @return [::String]
148
151
  # Required. The name of the CSS product input resource to delete.
149
- # Format: accounts/\\{account}/cssProductInputs/\\{css_product_input}
152
+ # Format: accounts/\\{account}/cssProductInputs/\\{css_product_input}, where the
153
+ # last section `css_product_input` consists of 3 parts:
154
+ # contentLanguage~feedLabel~offerId. Example:
155
+ # accounts/123/cssProductInputs/de~DE~rawProvidedId123
150
156
  # @!attribute [rw] supplemental_feed_id
151
157
  # @return [::Integer]
152
158
  # The Content API Supplemental Feed ID.
@@ -0,0 +1,110 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Css
23
+ module V1
24
+ # The group information for methods in the CSS API. The quota is shared
25
+ # between all methods in the group. Even if none of the methods within the
26
+ # group have usage the information for the group is returned.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Identifier. The resource name of the quota group.
30
+ # Format: accounts/\\{account}/quotas/\\{group}
31
+ # Example: `accounts/12345678/quotas/css-products-insert`
32
+ # Note: The \\{group} part is not guaranteed to follow a specific pattern.
33
+ # @!attribute [r] quota_usage
34
+ # @return [::Integer]
35
+ # Output only. The current quota usage, meaning the number of calls already
36
+ # made on a given day to the methods in the group. The daily quota limits
37
+ # reset at at 12:00 PM midday UTC.
38
+ # @!attribute [r] quota_limit
39
+ # @return [::Integer]
40
+ # Output only. The maximum number of calls allowed per day for the group.
41
+ # @!attribute [r] quota_minute_limit
42
+ # @return [::Integer]
43
+ # Output only. The maximum number of calls allowed per minute for the group.
44
+ # @!attribute [r] method_details
45
+ # @return [::Array<::Google::Shopping::Css::V1::MethodDetails>]
46
+ # Output only. List of all methods group quota applies to.
47
+ class QuotaGroup
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # The method details per method in the CSS API.
53
+ # @!attribute [r] method
54
+ # @return [::String]
55
+ # Output only. The name of the method for example
56
+ # `cssproductsservice.listcssproducts`.
57
+ # @!attribute [r] version
58
+ # @return [::String]
59
+ # Output only. The API version that the method belongs to.
60
+ # @!attribute [r] subapi
61
+ # @return [::String]
62
+ # Output only. The sub-API that the method belongs to. In the CSS API, this
63
+ # is always `css`.
64
+ # @!attribute [r] path
65
+ # @return [::String]
66
+ # Output only. The path for the method such as
67
+ # `v1/cssproductsservice.listcssproducts`.
68
+ class MethodDetails
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+
73
+ # Request message for the ListQuotaGroups method.
74
+ # @!attribute [rw] parent
75
+ # @return [::String]
76
+ # Required. The CSS account that owns the collection of method quotas and
77
+ # resources. In most cases, this is the CSS domain. Format:
78
+ # accounts/\\{account}
79
+ # @!attribute [rw] page_size
80
+ # @return [::Integer]
81
+ # Optional. The maximum number of quotas to return in the response, used
82
+ # for paging. Defaults to 500; values above 1000 will be coerced to 1000.
83
+ # @!attribute [rw] page_token
84
+ # @return [::String]
85
+ # Optional. Token (if provided) to retrieve the subsequent page. All other
86
+ # parameters must match the original call that provided the page token.
87
+ class ListQuotaGroupsRequest
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+ end
91
+
92
+ # Response message for the ListMethodGroups method.
93
+ # @!attribute [rw] quota_groups
94
+ # @return [::Array<::Google::Shopping::Css::V1::QuotaGroup>]
95
+ # The methods, current quota usage and limits per each group. The quota is
96
+ # shared between all methods in the group. The groups are sorted in
97
+ # descending order based on
98
+ # {::Google::Shopping::Css::V1::QuotaGroup#quota_usage quota_usage}.
99
+ # @!attribute [rw] next_page_token
100
+ # @return [::String]
101
+ # A token, which can be sent as `page_token` to retrieve the next page.
102
+ # If this field is omitted, there are no subsequent pages.
103
+ class ListQuotaGroupsResponse
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-css-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 2025-04-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -115,6 +115,15 @@ files:
115
115
  - lib/google/shopping/css/v1/css_products_service/rest/client.rb
116
116
  - lib/google/shopping/css/v1/css_products_service/rest/service_stub.rb
117
117
  - lib/google/shopping/css/v1/css_products_services_pb.rb
118
+ - lib/google/shopping/css/v1/quota_pb.rb
119
+ - lib/google/shopping/css/v1/quota_service.rb
120
+ - lib/google/shopping/css/v1/quota_service/client.rb
121
+ - lib/google/shopping/css/v1/quota_service/credentials.rb
122
+ - lib/google/shopping/css/v1/quota_service/paths.rb
123
+ - lib/google/shopping/css/v1/quota_service/rest.rb
124
+ - lib/google/shopping/css/v1/quota_service/rest/client.rb
125
+ - lib/google/shopping/css/v1/quota_service/rest/service_stub.rb
126
+ - lib/google/shopping/css/v1/quota_services_pb.rb
118
127
  - lib/google/shopping/css/v1/rest.rb
119
128
  - lib/google/shopping/css/v1/version.rb
120
129
  - proto_docs/README.md
@@ -131,6 +140,7 @@ files:
131
140
  - proto_docs/google/shopping/css/v1/css_product_common.rb
132
141
  - proto_docs/google/shopping/css/v1/css_product_inputs.rb
133
142
  - proto_docs/google/shopping/css/v1/css_products.rb
143
+ - proto_docs/google/shopping/css/v1/quota.rb
134
144
  - proto_docs/google/shopping/type/types.rb
135
145
  homepage: https://github.com/googleapis/google-cloud-ruby
136
146
  licenses:
@@ -150,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
160
  - !ruby/object:Gem::Version
151
161
  version: '0'
152
162
  requirements: []
153
- rubygems_version: 3.6.2
163
+ rubygems_version: 3.6.5
154
164
  specification_version: 4
155
165
  summary: Programmatically manage your Comparison Shopping Service (CSS) account data
156
166
  at scale.