google-shopping-merchant-order_tracking-v1beta 0.a → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/client.rb +467 -0
  6. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/paths.rb +49 -0
  8. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest/client.rb +434 -0
  9. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest/service_stub.rb +145 -0
  10. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest.rb +54 -0
  11. data/lib/google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service.rb +57 -0
  12. data/lib/google/shopping/merchant/order_tracking/v1beta/rest.rb +39 -0
  13. data/lib/google/shopping/merchant/order_tracking/v1beta/version.rb +7 -2
  14. data/lib/google/shopping/merchant/order_tracking/v1beta.rb +47 -0
  15. data/lib/google/shopping/merchant/ordertracking/v1beta/order_tracking_signals_pb.rb +58 -0
  16. data/lib/google/shopping/merchant/ordertracking/v1beta/order_tracking_signals_services_pb.rb +47 -0
  17. data/lib/google-shopping-merchant-order_tracking-v1beta.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/client.rb +473 -0
  20. data/proto_docs/google/api/field_behavior.rb +85 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/api/resource.rb +227 -0
  23. data/proto_docs/google/protobuf/duration.rb +98 -0
  24. data/proto_docs/google/shopping/merchant/ordertracking/v1beta/order_tracking_signals.rb +211 -0
  25. data/proto_docs/google/shopping/type/types.rb +210 -0
  26. data/proto_docs/google/type/datetime.rb +103 -0
  27. metadata +92 -10
@@ -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/order_tracking/v1beta/version"
24
+
25
+ require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/credentials"
26
+ require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/paths"
27
+ require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/client"
28
+ require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module OrderTracking
34
+ module V1beta
35
+ ##
36
+ # Service to serve order tracking signals public API.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service"
41
+ # client = ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignalsService::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest"
46
+ # client = ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignalsService::Rest::Client.new
47
+ #
48
+ module OrderTrackingSignalsService
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ helper_path = ::File.join __dir__, "order_tracking_signals_service", "helpers.rb"
57
+ require "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,39 @@
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 "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service/rest"
20
+ require "google/shopping/merchant/order_tracking/v1beta/version"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module OrderTracking
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/shopping/merchant/order_tracking/v1beta/rest"
32
+ # client = ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignalsService::Rest::Client.new
33
+ #
34
+ module V1beta
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2025 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,12 +14,15 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Shopping
17
22
  module Merchant
18
23
  module OrderTracking
19
24
  module V1beta
20
- VERSION = "0.a"
25
+ VERSION = "0.1.0"
21
26
  end
22
27
  end
23
28
  end
@@ -0,0 +1,47 @@
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 "google/shopping/merchant/order_tracking/v1beta/order_tracking_signals_service"
20
+ require "google/shopping/merchant/order_tracking/v1beta/version"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module OrderTracking
26
+ ##
27
+ # API client module.
28
+ #
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
+ #
31
+ # require "google/shopping/merchant/order_tracking/v1beta"
32
+ # client = ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignalsService::Client.new
33
+ #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/shopping/merchant/order_tracking/v1beta"
37
+ # client = ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignalsService::Rest::Client.new
38
+ #
39
+ module V1beta
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
47
+ require "google/shopping/merchant/order_tracking/v1beta/_helpers" if ::File.file? helper_path
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/ordertracking/v1beta/order_tracking_signals.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
+ require 'google/type/datetime_pb'
13
+
14
+
15
+ descriptor_data = "\nJgoogle/shopping/merchant/ordertracking/v1beta/order_tracking_signals.proto\x12-google.shopping.merchant.ordertracking.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\x1a\x1agoogle/type/datetime.proto\"\xed\x01\n CreateOrderTrackingSignalRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12%\n\x18order_tracking_signal_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x66\n\x15order_tracking_signal\x18\x03 \x01(\x0b\x32\x42.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignalB\x03\xe0\x41\x02\"\xe3\x0c\n\x13OrderTrackingSignal\x12%\n\x18order_tracking_signal_id\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12\x18\n\x0bmerchant_id\x18\x0c \x01(\x03\x42\x03\xe0\x41\x01\x12\x36\n\x12order_created_time\x18\x01 \x01(\x0b\x32\x15.google.type.DateTimeB\x03\xe0\x41\x02\x12\x15\n\x08order_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12k\n\rshipping_info\x18\x03 \x03(\x0b\x32O.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfoB\x03\xe0\x41\x02\x12k\n\nline_items\x18\x04 \x03(\x0b\x32R.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetailsB\x03\xe0\x41\x02\x12\x83\x01\n\x1ashipment_line_item_mapping\x18\x05 \x03(\x0b\x32Z.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMappingB\x03\xe0\x41\x01\x12\x44\n\x15\x63ustomer_shipping_fee\x18\x06 \x01(\x0b\x32\x1b.google.shopping.type.PriceB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12!\n\x14\x64\x65livery_postal_code\x18\t \x01(\tB\x03\xe0\x41\x01\x12!\n\x14\x64\x65livery_region_code\x18\n \x01(\tB\x03\xe0\x41\x01\x1a\xf4\x04\n\x0cShippingInfo\x12\x18\n\x0bshipment_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0btracking_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x63\x61rrier\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63\x61rrier_service\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x0cshipped_time\x18\x05 \x01(\x0b\x32\x15.google.type.DateTimeB\x03\xe0\x41\x01\x12\x42\n\x1e\x65\x61rliest_delivery_promise_time\x18\x06 \x01(\x0b\x32\x15.google.type.DateTimeB\x03\xe0\x41\x01\x12@\n\x1clatest_delivery_promise_time\x18\x07 \x01(\x0b\x32\x15.google.type.DateTimeB\x03\xe0\x41\x01\x12\x38\n\x14\x61\x63tual_delivery_time\x18\x08 \x01(\x0b\x32\x15.google.type.DateTimeB\x03\xe0\x41\x01\x12{\n\x0fshipping_status\x18\t \x01(\x0e\x32].google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingStateB\x03\xe0\x41\x02\x12\x1f\n\x12origin_postal_code\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12origin_region_code\x18\x0b \x01(\tB\x03\xe0\x41\x02\"K\n\rShippingState\x12\x1e\n\x1aSHIPPING_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SHIPPED\x10\x01\x12\r\n\tDELIVERED\x10\x02\x1a\xd7\x01\n\x0fLineItemDetails\x12\x19\n\x0cline_item_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nproduct_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04gtin\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03mpn\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\rproduct_title\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x17\n\x05\x62rand\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x15\n\x08quantity\x18\x07 \x01(\x03\x42\x03\xe0\x41\x02\x42\x10\n\x0e_product_titleB\x08\n\x06_brand\x1a\x65\n\x17ShipmentLineItemMapping\x12\x18\n\x0bshipment_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cline_item_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08quantity\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\x42\x18\n\x16_customer_shipping_fee2\x9a\x03\n\x1bOrderTrackingSignalsService\x12\xb1\x02\n\x19\x43reateOrderTrackingSignal\x12O.google.shopping.merchant.ordertracking.v1beta.CreateOrderTrackingSignalRequest\x1a\x42.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal\"\x7f\xda\x41\x1fparent,order_tracking_signal_id\x82\xd3\xe4\x93\x02W\">/ordertracking/v1beta/{parent=accounts/*}/ordertrackingsignals:\x15order_tracking_signal\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xfe\x02\n1com.google.shopping.merchant.ordertracking.v1betaB\x19OrderTrackingSignalsProtoP\x01Z]cloud.google.com/go/shopping/merchant/ordertracking/apiv1beta/ordertrackingpb;ordertrackingpb\xaa\x02-Google.Shopping.Merchant.OrderTracking.V1Beta\xca\x02-Google\\Shopping\\Merchant\\OrderTracking\\V1beta\xea\x02\x31Google::Shopping::Merchant::OrderTracking::V1beta\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.type.DateTime", "google/type/datetime.proto"],
31
+ ["google.shopping.type.Price", "google/shopping/type/types.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
+ end
38
+ end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
41
+ end
42
+
43
+ module Google
44
+ module Shopping
45
+ module Merchant
46
+ module OrderTracking
47
+ module V1beta
48
+ CreateOrderTrackingSignalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.CreateOrderTrackingSignalRequest").msgclass
49
+ OrderTrackingSignal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal").msgclass
50
+ OrderTrackingSignal::ShippingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo").msgclass
51
+ OrderTrackingSignal::ShippingInfo::ShippingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingState").enummodule
52
+ OrderTrackingSignal::LineItemDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails").msgclass
53
+ OrderTrackingSignal::ShipmentLineItemMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping").msgclass
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,47 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/merchant/ordertracking/v1beta/order_tracking_signals.proto for package 'Google.Shopping.Merchant.OrderTracking.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/ordertracking/v1beta/order_tracking_signals_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module OrderTracking
26
+ module V1beta
27
+ module OrderTrackingSignalsService
28
+ # Service to serve order tracking signals public API.
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.ordertracking.v1beta.OrderTrackingSignalsService'
36
+
37
+ # Creates new order tracking signal.
38
+ rpc :CreateOrderTrackingSignal, ::Google::Shopping::Merchant::OrderTracking::V1beta::CreateOrderTrackingSignalRequest, ::Google::Shopping::Merchant::OrderTracking::V1beta::OrderTrackingSignal
39
+ end
40
+
41
+ Stub = Service.rpc_stub_class
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/shopping/merchant/order_tracking/v1beta"
@@ -0,0 +1,4 @@
1
+ # Merchant V1BETA Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.