google-shopping-merchant-issue_resolution-v1beta 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,57 @@
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/merchant/issue_resolution/v1beta/version"
24
+
25
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/credentials"
26
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/paths"
27
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/client"
28
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module IssueResolution
34
+ module V1beta
35
+ ##
36
+ # Service to manage aggregate product statuses.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service"
41
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatusesService::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest"
46
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatusesService::Rest::Client.new
47
+ #
48
+ module AggregateProductStatusesService
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ helper_path = ::File.join __dir__, "aggregate_product_statuses_service", "helpers.rb"
57
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/helpers" if ::File.file? helper_path
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest"
19
20
  require "google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service/rest"
20
21
  require "google/shopping/merchant/issue_resolution/v1beta/version"
21
22
 
@@ -29,7 +30,7 @@ module Google
29
30
  # @example
30
31
  #
31
32
  # require "google/shopping/merchant/issue_resolution/v1beta/rest"
32
- # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::IssueResolutionService::Rest::Client.new
33
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatusesService::Rest::Client.new
33
34
  #
34
35
  module V1beta
35
36
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Merchant
23
23
  module IssueResolution
24
24
  module V1beta
25
- VERSION = "0.1.0"
25
+ VERSION = "0.2.0"
26
26
  end
27
27
  end
28
28
  end
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service"
19
20
  require "google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service"
20
21
  require "google/shopping/merchant/issue_resolution/v1beta/version"
21
22
 
@@ -29,12 +30,12 @@ module Google
29
30
  # @example Load this package, including all its services, and instantiate a gRPC client
30
31
  #
31
32
  # require "google/shopping/merchant/issue_resolution/v1beta"
32
- # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::IssueResolutionService::Client.new
33
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatusesService::Client.new
33
34
  #
34
35
  # @example Load this package, including all its services, and instantiate a REST client
35
36
  #
36
37
  # require "google/shopping/merchant/issue_resolution/v1beta"
37
- # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::IssueResolutionService::Rest::Client.new
38
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatusesService::Rest::Client.new
38
39
  #
39
40
  module V1beta
40
41
  end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/shopping/type/types_pb'
12
+
13
+
14
+ descriptor_data = "\nNgoogle/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses.proto\x12/google.shopping.merchant.issueresolution.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/shopping/type/types.proto\"\xb6\x01\n#ListAggregateProductStatusesRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31merchantapi.googleapis.com/AggregateProductStatus\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\"\xac\x01\n$ListAggregateProductStatusesResponse\x12k\n\x1a\x61ggregate_product_statuses\x18\x01 \x03(\x0b\x32G.google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa4\t\n\x16\x41ggregateProductStatus\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12V\n\x11reporting_context\x18\x03 \x01(\x0e\x32;.google.shopping.type.ReportingContext.ReportingContextEnum\x12\x0f\n\x07\x63ountry\x18\x04 \x01(\t\x12\\\n\x05stats\x18\x05 \x01(\x0b\x32M.google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.Stats\x12q\n\x11item_level_issues\x18\x06 \x03(\x0b\x32V.google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue\x1ag\n\x05Stats\x12\x14\n\x0c\x61\x63tive_count\x18\x01 \x01(\x03\x12\x15\n\rpending_count\x18\x02 \x01(\x03\x12\x19\n\x11\x64isapproved_count\x18\x03 \x01(\x03\x12\x16\n\x0e\x65xpiring_count\x18\x04 \x01(\x03\x1a\x9f\x04\n\x0eItemLevelIssue\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12q\n\x08severity\x18\x02 \x01(\x0e\x32_.google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue.Severity\x12u\n\nresolution\x18\x03 \x01(\x0e\x32\x61.google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue.Resolution\x12\x11\n\tattribute\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x07 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x08 \x01(\t\x12\x15\n\rproduct_count\x18\t \x01(\x03\"T\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_IMPACTED\x10\x01\x12\x0b\n\x07\x44\x45MOTED\x10\x02\x12\x0f\n\x0b\x44ISAPPROVED\x10\x03\"U\n\nResolution\x12\x1a\n\x16RESOLUTION_UNSPECIFIED\x10\x00\x12\x13\n\x0fMERCHANT_ACTION\x10\x01\x12\x16\n\x12PENDING_PROCESSING\x10\x02:\xb1\x01\xea\x41\xad\x01\n1merchantapi.googleapis.com/AggregateProductStatus\x12\x46\x61\x63\x63ounts/{account}/aggregateProductStatuses/{aggregate_product_status}*\x18\x61ggregateProductStatuses2\x16\x61ggregateProductStatus2\x8f\x03\n\x1f\x41ggregateProductStatusesService\x12\xa2\x02\n\x1cListAggregateProductStatuses\x12T.google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesRequest\x1aU.google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/issueresolution/v1beta/{parent=accounts/*}/aggregateProductStatuses\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xd5\x02\n3com.google.shopping.merchant.issueresolution.v1betaB\x1d\x41ggregateProductStatusesProtoP\x01Zccloud.google.com/go/shopping/merchant/issueresolution/apiv1beta/issueresolutionpb;issueresolutionpb\xaa\x02/Google.Shopping.Merchant.IssueResolution.V1Beta\xca\x02/Google\\Shopping\\Merchant\\IssueResolution\\V1beta\xea\x02\x33Google::Shopping::Merchant::IssueResolution::V1betab\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
+ end
35
+ end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
38
+ end
39
+
40
+ module Google
41
+ module Shopping
42
+ module Merchant
43
+ module IssueResolution
44
+ module V1beta
45
+ ListAggregateProductStatusesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesRequest").msgclass
46
+ ListAggregateProductStatusesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesResponse").msgclass
47
+ AggregateProductStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus").msgclass
48
+ AggregateProductStatus::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.Stats").msgclass
49
+ AggregateProductStatus::ItemLevelIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue").msgclass
50
+ AggregateProductStatus::ItemLevelIssue::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue.Severity").enummodule
51
+ AggregateProductStatus::ItemLevelIssue::Resolution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.issueresolution.v1beta.AggregateProductStatus.ItemLevelIssue.Resolution").enummodule
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses.proto for package 'Google.Shopping.Merchant.IssueResolution.V1beta'
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/merchant/issueresolution/v1beta/aggregateproductstatuses_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module IssueResolution
26
+ module V1beta
27
+ module AggregateProductStatusesService
28
+ # Service to manage aggregate product statuses.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.shopping.merchant.issueresolution.v1beta.AggregateProductStatusesService'
36
+
37
+ # Lists the `AggregateProductStatuses` resources for your merchant account.
38
+ # The response might contain fewer items than specified by `pageSize`.
39
+ # If `pageToken` was returned in previous request, it can be used to obtain
40
+ # additional results.
41
+ rpc :ListAggregateProductStatuses, ::Google::Shopping::Merchant::IssueResolution::V1beta::ListAggregateProductStatusesRequest, ::Google::Shopping::Merchant::IssueResolution::V1beta::ListAggregateProductStatusesResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,173 @@
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 Merchant
23
+ module IssueResolution
24
+ module V1beta
25
+ # Request message for the `ListAggregateProductStatuses` method.
26
+ # @!attribute [rw] parent
27
+ # @return [::String]
28
+ # Required. The account to list aggregate product statuses for.
29
+ # Format: `accounts/{account}`
30
+ # @!attribute [rw] page_size
31
+ # @return [::Integer]
32
+ # Optional. The maximum number of aggregate product statuses to return. The
33
+ # service may return fewer than this value. If unspecified, at most 25
34
+ # aggregate product statuses are returned. The maximum value is 250; values
35
+ # above 250 are coerced to 250.
36
+ # @!attribute [rw] page_token
37
+ # @return [::String]
38
+ # Optional. A page token, received from a previous
39
+ # `ListAggregateProductStatuses` call. Provide this to retrieve the
40
+ # subsequent page.
41
+ #
42
+ # When paginating, all other parameters provided to
43
+ # `ListAggregateProductStatuses` must match the call that provided the page
44
+ # token.
45
+ # @!attribute [rw] filter
46
+ # @return [::String]
47
+ # Optional. A filter expression that filters the aggregate product statuses.
48
+ # Filtering is only supported by the `reporting_context` and `country` field.
49
+ # For example: `reporting_context = "SHOPPING_ADS" AND country = "US"`.
50
+ class ListAggregateProductStatusesRequest
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+
55
+ # Response message for the `ListAggregateProductStatuses` method.
56
+ # @!attribute [rw] aggregate_product_statuses
57
+ # @return [::Array<::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatus>]
58
+ # The `AggregateProductStatuses` resources for the given account.
59
+ # @!attribute [rw] next_page_token
60
+ # @return [::String]
61
+ # A token, which can be sent as `pageToken` to retrieve the next page.
62
+ # If this field is omitted, there are no subsequent pages.
63
+ class ListAggregateProductStatusesResponse
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # Aggregate product statuses for a given reporting context and country.
69
+ # @!attribute [rw] name
70
+ # @return [::String]
71
+ # Identifier. The name of the `AggregateProductStatuses` resource.
72
+ # Format:
73
+ # `accounts/{account}/aggregateProductStatuses/{aggregateProductStatuses}`
74
+ # @!attribute [rw] reporting_context
75
+ # @return [::Google::Shopping::Type::ReportingContext::ReportingContextEnum]
76
+ # The reporting context of the aggregate product statuses.
77
+ # @!attribute [rw] country
78
+ # @return [::String]
79
+ # The country of the aggregate product statuses. Represented as a
80
+ # [CLDR territory
81
+ # code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
82
+ # @!attribute [rw] stats
83
+ # @return [::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatus::Stats]
84
+ # Products statistics for the given reporting context and country.
85
+ # @!attribute [rw] item_level_issues
86
+ # @return [::Array<::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatus::ItemLevelIssue>]
87
+ # The product issues that affect the given reporting context and country.
88
+ class AggregateProductStatus
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+
92
+ # Products statistics.
93
+ # @!attribute [rw] active_count
94
+ # @return [::Integer]
95
+ # The number of products that are active.
96
+ # @!attribute [rw] pending_count
97
+ # @return [::Integer]
98
+ # The number of products that are pending.
99
+ # @!attribute [rw] disapproved_count
100
+ # @return [::Integer]
101
+ # The number of products that are disapproved.
102
+ # @!attribute [rw] expiring_count
103
+ # @return [::Integer]
104
+ # The number of products that are expiring.
105
+ class Stats
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # The ItemLevelIssue of the product status.
111
+ # @!attribute [rw] code
112
+ # @return [::String]
113
+ # The error code of the issue.
114
+ # @!attribute [rw] severity
115
+ # @return [::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatus::ItemLevelIssue::Severity]
116
+ # How this issue affects serving of the offer.
117
+ # @!attribute [rw] resolution
118
+ # @return [::Google::Shopping::Merchant::IssueResolution::V1beta::AggregateProductStatus::ItemLevelIssue::Resolution]
119
+ # Whether the issue can be resolved by the merchant.
120
+ # @!attribute [rw] attribute
121
+ # @return [::String]
122
+ # The attribute's name, if the issue is caused by a single attribute.
123
+ # @!attribute [rw] description
124
+ # @return [::String]
125
+ # A short issue description in English.
126
+ # @!attribute [rw] detail
127
+ # @return [::String]
128
+ # A detailed issue description in English.
129
+ # @!attribute [rw] documentation_uri
130
+ # @return [::String]
131
+ # The URL of a web page to help with resolving this issue.
132
+ # @!attribute [rw] product_count
133
+ # @return [::Integer]
134
+ # The number of products affected by this issue.
135
+ class ItemLevelIssue
136
+ include ::Google::Protobuf::MessageExts
137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
138
+
139
+ # How the issue affects the serving of the product.
140
+ module Severity
141
+ # Not specified.
142
+ SEVERITY_UNSPECIFIED = 0
143
+
144
+ # This issue represents a warning and does not have a direct affect
145
+ # on the product.
146
+ NOT_IMPACTED = 1
147
+
148
+ # The product is demoted and most likely have limited performance
149
+ # in search results
150
+ DEMOTED = 2
151
+
152
+ # Issue disapproves the product.
153
+ DISAPPROVED = 3
154
+ end
155
+
156
+ # How the issue can be resolved.
157
+ module Resolution
158
+ # Not specified.
159
+ RESOLUTION_UNSPECIFIED = 0
160
+
161
+ # The issue can be resolved by the merchant.
162
+ MERCHANT_ACTION = 1
163
+
164
+ # The issue will be resolved auomatically.
165
+ PENDING_PROCESSING = 2
166
+ end
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,210 @@
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 Type
23
+ # The weight represented as the value in string and the unit.
24
+ # @!attribute [rw] amount_micros
25
+ # @return [::Integer]
26
+ # Required. The weight represented as a number in micros (1 million micros is
27
+ # an equivalent to one's currency standard unit, for example, 1 kg = 1000000
28
+ # micros).
29
+ # This field can also be set as infinity by setting to -1.
30
+ # This field only support -1 and positive value.
31
+ # @!attribute [rw] unit
32
+ # @return [::Google::Shopping::Type::Weight::WeightUnit]
33
+ # Required. The weight unit.
34
+ # Acceptable values are: kg and lb
35
+ class Weight
36
+ include ::Google::Protobuf::MessageExts
37
+ extend ::Google::Protobuf::MessageExts::ClassMethods
38
+
39
+ # The weight unit.
40
+ module WeightUnit
41
+ # unit unspecified
42
+ WEIGHT_UNIT_UNSPECIFIED = 0
43
+
44
+ # lb unit.
45
+ POUND = 1
46
+
47
+ # kg unit.
48
+ KILOGRAM = 2
49
+ end
50
+ end
51
+
52
+ # The price represented as a number and currency.
53
+ # @!attribute [rw] amount_micros
54
+ # @return [::Integer]
55
+ # The price represented as a number in micros (1 million micros is an
56
+ # equivalent to one's currency standard unit, for example, 1 USD = 1000000
57
+ # micros).
58
+ # @!attribute [rw] currency_code
59
+ # @return [::String]
60
+ # The currency of the price using three-letter acronyms according to [ISO
61
+ # 4217](http://en.wikipedia.org/wiki/ISO_4217).
62
+ class Price
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # A message that represents custom attributes. Exactly one of `value` or
68
+ # `group_values` must not be empty.
69
+ # @!attribute [rw] name
70
+ # @return [::String]
71
+ # The name of the attribute.
72
+ # @!attribute [rw] value
73
+ # @return [::String]
74
+ # The value of the attribute. If `value` is not empty, `group_values` must be
75
+ # empty.
76
+ # @!attribute [rw] group_values
77
+ # @return [::Array<::Google::Shopping::Type::CustomAttribute>]
78
+ # Subattributes within this attribute group. If
79
+ # `group_values` is not empty, `value` must be empty.
80
+ class CustomAttribute
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # Destinations available for a product.
86
+ #
87
+ # Destinations are used in Merchant Center to allow you to control where the
88
+ # products from your data feed should be displayed.
89
+ class Destination
90
+ include ::Google::Protobuf::MessageExts
91
+ extend ::Google::Protobuf::MessageExts::ClassMethods
92
+
93
+ # Destination values.
94
+ module DestinationEnum
95
+ # Not specified.
96
+ DESTINATION_ENUM_UNSPECIFIED = 0
97
+
98
+ # [Shopping ads](https://support.google.com/google-ads/answer/2454022).
99
+ SHOPPING_ADS = 1
100
+
101
+ # [Display ads](https://support.google.com/merchants/answer/6069387).
102
+ DISPLAY_ADS = 2
103
+
104
+ # [Local inventory
105
+ # ads](https://support.google.com/merchants/answer/3057972).
106
+ LOCAL_INVENTORY_ADS = 3
107
+
108
+ # [Free listings](https://support.google.com/merchants/answer/9199328).
109
+ FREE_LISTINGS = 4
110
+
111
+ # [Free local product
112
+ # listings](https://support.google.com/merchants/answer/9825611).
113
+ FREE_LOCAL_LISTINGS = 5
114
+
115
+ # [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
116
+ YOUTUBE_SHOPPING = 6
117
+ end
118
+ end
119
+
120
+ # Reporting contexts that your account and product issues apply to.
121
+ #
122
+ # Reporting contexts are groups of surfaces and formats for product results on
123
+ # Google. They can represent the entire destination (for example, [Shopping
124
+ # ads](https://support.google.com/merchants/answer/6149970)) or a subset of
125
+ # formats within a destination (for example, [Demand Gen
126
+ # ads](https://support.google.com/merchants/answer/13389785)).
127
+ class ReportingContext
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+
131
+ # Reporting context values.
132
+ module ReportingContextEnum
133
+ # Not specified.
134
+ REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0
135
+
136
+ # [Shopping ads](https://support.google.com/merchants/answer/6149970).
137
+ SHOPPING_ADS = 1
138
+
139
+ # Deprecated: Use `DEMAND_GEN_ADS` instead.
140
+ # [Discovery and Demand Gen
141
+ # ads](https://support.google.com/merchants/answer/13389785).
142
+ DISCOVERY_ADS = 2
143
+
144
+ # [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
145
+ DEMAND_GEN_ADS = 13
146
+
147
+ # [Demand Gen ads on Discover
148
+ # surface](https://support.google.com/merchants/answer/13389785).
149
+ DEMAND_GEN_ADS_DISCOVER_SURFACE = 14
150
+
151
+ # [Video ads](https://support.google.com/google-ads/answer/6340491).
152
+ VIDEO_ADS = 3
153
+
154
+ # [Display ads](https://support.google.com/merchants/answer/6069387).
155
+ DISPLAY_ADS = 4
156
+
157
+ # [Local inventory
158
+ # ads](https://support.google.com/merchants/answer/3271956).
159
+ LOCAL_INVENTORY_ADS = 5
160
+
161
+ # [Vehicle inventory
162
+ # ads](https://support.google.com/merchants/answer/11544533).
163
+ VEHICLE_INVENTORY_ADS = 6
164
+
165
+ # [Free product
166
+ # listings](https://support.google.com/merchants/answer/9199328).
167
+ FREE_LISTINGS = 7
168
+
169
+ # [Free local product
170
+ # listings](https://support.google.com/merchants/answer/9825611).
171
+ FREE_LOCAL_LISTINGS = 8
172
+
173
+ # [Free local vehicle
174
+ # listings](https://support.google.com/merchants/answer/11544533).
175
+ FREE_LOCAL_VEHICLE_LISTINGS = 9
176
+
177
+ # [YouTube
178
+ # Shopping](https://support.google.com/merchants/answer/13478370).
179
+ YOUTUBE_SHOPPING = 10
180
+
181
+ # [Cloud retail](https://cloud.google.com/solutions/retail).
182
+ CLOUD_RETAIL = 11
183
+
184
+ # [Local cloud retail](https://cloud.google.com/solutions/retail).
185
+ LOCAL_CLOUD_RETAIL = 12
186
+ end
187
+ end
188
+
189
+ # [Channel](https://support.google.com/merchants/answer/7361332) of a product.
190
+ #
191
+ # Channel is used to distinguish between online and local products.
192
+ class Channel
193
+ include ::Google::Protobuf::MessageExts
194
+ extend ::Google::Protobuf::MessageExts::ClassMethods
195
+
196
+ # Channel values.
197
+ module ChannelEnum
198
+ # Not specified.
199
+ CHANNEL_ENUM_UNSPECIFIED = 0
200
+
201
+ # Online product.
202
+ ONLINE = 1
203
+
204
+ # Local product.
205
+ LOCAL = 2
206
+ end
207
+ end
208
+ end
209
+ end
210
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-issue_resolution-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: google-shopping-type
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
40
54
  description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
41
55
  you to programmatically manage your accounts. Conversions Sub-API: Enables you to
42
56
  programmatically manage your conversion sources for a merchant account. Datasources
@@ -64,6 +78,13 @@ files:
64
78
  - README.md
65
79
  - lib/google-shopping-merchant-issue_resolution-v1beta.rb
66
80
  - lib/google/shopping/merchant/issue_resolution/v1beta.rb
81
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service.rb
82
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/client.rb
83
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/credentials.rb
84
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/paths.rb
85
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest.rb
86
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest/client.rb
87
+ - lib/google/shopping/merchant/issue_resolution/v1beta/aggregate_product_statuses_service/rest/service_stub.rb
67
88
  - lib/google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service.rb
68
89
  - lib/google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service/client.rb
69
90
  - lib/google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service/credentials.rb
@@ -73,6 +94,8 @@ files:
73
94
  - lib/google/shopping/merchant/issue_resolution/v1beta/issue_resolution_service/rest/service_stub.rb
74
95
  - lib/google/shopping/merchant/issue_resolution/v1beta/rest.rb
75
96
  - lib/google/shopping/merchant/issue_resolution/v1beta/version.rb
97
+ - lib/google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses_pb.rb
98
+ - lib/google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses_services_pb.rb
76
99
  - lib/google/shopping/merchant/issueresolution/v1beta/issueresolution_pb.rb
77
100
  - lib/google/shopping/merchant/issueresolution/v1beta/issueresolution_services_pb.rb
78
101
  - proto_docs/README.md
@@ -81,7 +104,9 @@ files:
81
104
  - proto_docs/google/api/launch_stage.rb
82
105
  - proto_docs/google/api/resource.rb
83
106
  - proto_docs/google/protobuf/duration.rb
107
+ - proto_docs/google/shopping/merchant/issueresolution/v1beta/aggregateproductstatuses.rb
84
108
  - proto_docs/google/shopping/merchant/issueresolution/v1beta/issueresolution.rb
109
+ - proto_docs/google/shopping/type/types.rb
85
110
  homepage: https://github.com/googleapis/google-cloud-ruby
86
111
  licenses:
87
112
  - Apache-2.0