google-shopping-merchant-data_sources-v1beta 0.1.2 → 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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/client.rb +435 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/paths.rb +54 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest/client.rb +402 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest/service_stub.rb +130 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service.rb +57 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/rest.rb +1 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/version.rb +1 -1
- data/lib/google/shopping/merchant/data_sources/v1beta.rb +1 -0
- data/lib/google/shopping/merchant/datasources/v1beta/datasourcetypes_pb.rb +3 -1
- data/lib/google/shopping/merchant/datasources/v1beta/fileuploads_pb.rb +55 -0
- data/lib/google/shopping/merchant/datasources/v1beta/fileuploads_services_pb.rb +48 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/shopping/merchant/datasources/v1beta/datasourcetypes.rb +59 -0
- data/proto_docs/google/shopping/merchant/datasources/v1beta/fileuploads.rb +131 -0
- metadata +28 -5
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\nAgoogle/shopping/merchant/datasources/v1beta/datasourcetypes.proto\x12+google.shopping.merchant.datasources.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\
|
10
|
+
descriptor_data = "\nAgoogle/shopping/merchant/datasources/v1beta/datasourcetypes.proto\x12+google.shopping.merchant.datasources.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xc5\x04\n\x18PrimaryProductDataSource\x12\x66\n\x07\x63hannel\x18\x03 \x01(\x0e\x32M.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.ChannelB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12\x16\n\tcountries\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12l\n\x0c\x64\x65\x66\x61ult_rule\x18\x07 \x01(\x0b\x32Q.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRuleB\x03\xe0\x41\x01\x1at\n\x0b\x44\x65\x66\x61ultRule\x12\x65\n\x16take_from_data_sources\x18\x01 \x03(\x0b\x32@.google.shopping.merchant.datasources.v1beta.DataSourceReferenceB\x03\xe0\x41\x02\"Y\n\x07\x43hannel\x12\x17\n\x13\x43HANNEL_UNSPECIFIED\x10\x00\x12\x13\n\x0fONLINE_PRODUCTS\x10\x01\x12\x12\n\x0eLOCAL_PRODUCTS\x10\x02\x12\x0c\n\x08PRODUCTS\x10\x03\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"\xfc\x01\n\x1dSupplementalProductDataSource\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12o\n referencing_primary_data_sources\x18\x07 \x03(\x0b\x32@.google.shopping.merchant.datasources.v1beta.DataSourceReferenceB\x03\xe0\x41\x03\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"X\n\x18LocalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"[\n\x1bRegionalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"W\n\x13PromotionDataSource\x12\x1e\n\x0etarget_country\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"\x8e\x01\n\x13\x44\x61taSourceReference\x12\x0e\n\x04self\x18\x01 \x01(\x08H\x00\x12\'\n\x18primary_data_source_name\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12,\n\x1dsupplemental_data_source_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x42\x10\n\x0e\x64\x61ta_source_idB\xb0\x02\n/com.google.shopping.merchant.datasources.v1betaB\x14\x44\x61tasourcetypesProtoP\x01ZWcloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb\xaa\x02+Google.Shopping.Merchant.DataSources.V1Beta\xca\x02+Google\\Shopping\\Merchant\\DataSources\\V1beta\xea\x02/Google::Shopping::Merchant::DataSources::V1betab\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -39,11 +39,13 @@ module Google
|
|
39
39
|
module DataSources
|
40
40
|
module V1beta
|
41
41
|
PrimaryProductDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource").msgclass
|
42
|
+
PrimaryProductDataSource::DefaultRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule").msgclass
|
42
43
|
PrimaryProductDataSource::Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Channel").enummodule
|
43
44
|
SupplementalProductDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource").msgclass
|
44
45
|
LocalInventoryDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource").msgclass
|
45
46
|
RegionalInventoryDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.RegionalInventoryDataSource").msgclass
|
46
47
|
PromotionDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.PromotionDataSource").msgclass
|
48
|
+
DataSourceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.DataSourceReference").msgclass
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/shopping/merchant/datasources/v1beta/fileuploads.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/protobuf/timestamp_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n=google/shopping/merchant/datasources/v1beta/fileuploads.proto\x12+google.shopping.merchant.datasources.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8a\x07\n\nFileUpload\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1b\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x66\n\x10processing_state\x18\x03 \x01(\x0e\x32G.google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingStateB\x03\xe0\x41\x03\x12R\n\x06issues\x18\x04 \x03(\x0b\x32=.google.shopping.merchant.datasources.v1beta.FileUpload.IssueB\x03\xe0\x41\x03\x12\x18\n\x0bitems_total\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\ritems_created\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\ritems_updated\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupload_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x99\x02\n\x05Issue\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x63ode\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x63ount\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12]\n\x08severity\x18\x05 \x01(\x0e\x32\x46.google.shopping.merchant.datasources.v1beta.FileUpload.Issue.SeverityB\x03\xe0\x41\x03\x12\x1e\n\x11\x64ocumentation_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\"<\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"_\n\x0fProcessingState\x12 \n\x1cPROCESSING_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03:\x8a\x01\xea\x41\x86\x01\n%merchantapi.googleapis.com/FileUpload\x12\x44\x61\x63\x63ounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}*\x0b\x66ileUploads2\nfileUpload\"S\n\x14GetFileUploadRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%merchantapi.googleapis.com/FileUpload2\xbd\x02\n\x12\x46ileUploadsService\x12\xdd\x01\n\rGetFileUpload\x12\x41.google.shopping.merchant.datasources.v1beta.GetFileUploadRequest\x1a\x37.google.shopping.merchant.datasources.v1beta.FileUpload\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/datasources/v1beta/{name=accounts/*/dataSources/*/fileUploads/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xac\x02\n/com.google.shopping.merchant.datasources.v1betaB\x10\x46ileUploadsProtoP\x01ZWcloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb\xaa\x02+Google.Shopping.Merchant.DataSources.V1Beta\xca\x02+Google\\Shopping\\Merchant\\DataSources\\V1beta\xea\x02/Google::Shopping::Merchant::DataSources::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
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Shopping
|
43
|
+
module Merchant
|
44
|
+
module DataSources
|
45
|
+
module V1beta
|
46
|
+
FileUpload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.FileUpload").msgclass
|
47
|
+
FileUpload::Issue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.FileUpload.Issue").msgclass
|
48
|
+
FileUpload::Issue::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.FileUpload.Issue.Severity").enummodule
|
49
|
+
FileUpload::ProcessingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.FileUpload.ProcessingState").enummodule
|
50
|
+
GetFileUploadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.datasources.v1beta.GetFileUploadRequest").msgclass
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/shopping/merchant/datasources/v1beta/fileuploads.proto for package 'Google.Shopping.Merchant.DataSources.V1beta'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/datasources/v1beta/fileuploads_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Merchant
|
25
|
+
module DataSources
|
26
|
+
module V1beta
|
27
|
+
module FileUploadsService
|
28
|
+
# Service to manage data source file uploads.
|
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.datasources.v1beta.FileUploadsService'
|
36
|
+
|
37
|
+
# Gets the latest data source file upload. Only the `latest` alias is
|
38
|
+
# accepted for a file upload.
|
39
|
+
rpc :GetFileUpload, ::Google::Shopping::Merchant::DataSources::V1beta::GetFileUploadRequest, ::Google::Shopping::Merchant::DataSources::V1beta::FileUpload
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Protobuf
|
22
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
23
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
24
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
25
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
26
|
+
# Gregorian calendar backwards to year one.
|
27
|
+
#
|
28
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
29
|
+
# second table is needed for interpretation, using a [24-hour linear
|
30
|
+
# smear](https://developers.google.com/time/smear).
|
31
|
+
#
|
32
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
33
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
34
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
35
|
+
#
|
36
|
+
# # Examples
|
37
|
+
#
|
38
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
39
|
+
#
|
40
|
+
# Timestamp timestamp;
|
41
|
+
# timestamp.set_seconds(time(NULL));
|
42
|
+
# timestamp.set_nanos(0);
|
43
|
+
#
|
44
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
45
|
+
#
|
46
|
+
# struct timeval tv;
|
47
|
+
# gettimeofday(&tv, NULL);
|
48
|
+
#
|
49
|
+
# Timestamp timestamp;
|
50
|
+
# timestamp.set_seconds(tv.tv_sec);
|
51
|
+
# timestamp.set_nanos(tv.tv_usec * 1000);
|
52
|
+
#
|
53
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
54
|
+
#
|
55
|
+
# FILETIME ft;
|
56
|
+
# GetSystemTimeAsFileTime(&ft);
|
57
|
+
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
58
|
+
#
|
59
|
+
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
60
|
+
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
61
|
+
# Timestamp timestamp;
|
62
|
+
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
63
|
+
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
64
|
+
#
|
65
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
66
|
+
#
|
67
|
+
# long millis = System.currentTimeMillis();
|
68
|
+
#
|
69
|
+
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
|
+
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
|
+
#
|
72
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
73
|
+
#
|
74
|
+
# Instant now = Instant.now();
|
75
|
+
#
|
76
|
+
# Timestamp timestamp =
|
77
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
78
|
+
# .setNanos(now.getNano()).build();
|
79
|
+
#
|
80
|
+
# Example 6: Compute Timestamp from current time in Python.
|
81
|
+
#
|
82
|
+
# timestamp = Timestamp()
|
83
|
+
# timestamp.GetCurrentTime()
|
84
|
+
#
|
85
|
+
# # JSON Mapping
|
86
|
+
#
|
87
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
88
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
89
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
90
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
91
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
92
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
93
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
94
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
95
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
96
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
97
|
+
#
|
98
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
99
|
+
# 01:30 UTC on January 15, 2017.
|
100
|
+
#
|
101
|
+
# In JavaScript, one can convert a Date object to this format using the
|
102
|
+
# standard
|
103
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
104
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
105
|
+
# to this format using
|
106
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
107
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
108
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
110
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
111
|
+
# @!attribute [rw] seconds
|
112
|
+
# @return [::Integer]
|
113
|
+
# Represents seconds of UTC time since Unix epoch
|
114
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
115
|
+
# 9999-12-31T23:59:59Z inclusive.
|
116
|
+
# @!attribute [rw] nanos
|
117
|
+
# @return [::Integer]
|
118
|
+
# Non-negative fractions of a second at nanosecond resolution. Negative
|
119
|
+
# second values with fractions must still have non-negative nanos values
|
120
|
+
# that count forward in time. Must be from 0 to 999,999,999
|
121
|
+
# inclusive.
|
122
|
+
class Timestamp
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -60,10 +60,42 @@ module Google
|
|
60
60
|
# Optional. The countries where the items may be displayed. Represented as a
|
61
61
|
# [CLDR territory
|
62
62
|
# code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
|
63
|
+
# @!attribute [rw] default_rule
|
64
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::PrimaryProductDataSource::DefaultRule]
|
65
|
+
# Optional. Default rule management of the data source. If set, the linked
|
66
|
+
# data sources will be replaced.
|
63
67
|
class PrimaryProductDataSource
|
64
68
|
include ::Google::Protobuf::MessageExts
|
65
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
70
|
|
71
|
+
# Default rule management of the data source.
|
72
|
+
# @!attribute [rw] take_from_data_sources
|
73
|
+
# @return [::Array<::Google::Shopping::Merchant::DataSources::V1beta::DataSourceReference>]
|
74
|
+
# Required. The list of data sources linked in the [default
|
75
|
+
# rule](https://support.google.com/merchants/answer/7450276).
|
76
|
+
# This list is ordered by the default rule priority of joining the data.
|
77
|
+
# It might include none or multiple references to `self` and supplemental
|
78
|
+
# data sources.
|
79
|
+
#
|
80
|
+
# The list must not be empty.
|
81
|
+
#
|
82
|
+
# To link the data source to the default rule, you need to add a
|
83
|
+
# new reference to this list (in sequential order).
|
84
|
+
#
|
85
|
+
# To unlink the data source from the default rule, you need to
|
86
|
+
# remove the given reference from this list.
|
87
|
+
#
|
88
|
+
# Changing the order of this list will result in changing the priority of
|
89
|
+
# data sources in the default rule.
|
90
|
+
#
|
91
|
+
# For example, providing the following list: [`1001`, `self`] will
|
92
|
+
# take attribute values from supplemental data source `1001`, and fallback
|
93
|
+
# to `self` if the attribute is not set in `1001`.
|
94
|
+
class DefaultRule
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
67
99
|
# Data Source Channel.
|
68
100
|
#
|
69
101
|
# Channel is used to distinguish between data sources for different product
|
@@ -79,6 +111,8 @@ module Google
|
|
79
111
|
LOCAL_PRODUCTS = 2
|
80
112
|
|
81
113
|
# Unified data source for both local and online products.
|
114
|
+
# Note: Products management through the API is not possible for this
|
115
|
+
# channel.
|
82
116
|
PRODUCTS = 3
|
83
117
|
end
|
84
118
|
end
|
@@ -113,6 +147,11 @@ module Google
|
|
113
147
|
# If set, the data source will only accept products matching this
|
114
148
|
# combination. If unset, the data source will accept produts without that
|
115
149
|
# restriction.
|
150
|
+
# @!attribute [r] referencing_primary_data_sources
|
151
|
+
# @return [::Array<::Google::Shopping::Merchant::DataSources::V1beta::DataSourceReference>]
|
152
|
+
# Output only. The (unordered and deduplicated) list of all primary data
|
153
|
+
# sources linked to this data source in either default or custom rules.
|
154
|
+
# Supplemental data source cannot be deleted before all links are removed.
|
116
155
|
class SupplementalProductDataSource
|
117
156
|
include ::Google::Protobuf::MessageExts
|
118
157
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -175,6 +214,26 @@ module Google
|
|
175
214
|
include ::Google::Protobuf::MessageExts
|
176
215
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
177
216
|
end
|
217
|
+
|
218
|
+
# Data source reference can be used to manage related data sources within the
|
219
|
+
# data source service.
|
220
|
+
# @!attribute [rw] self
|
221
|
+
# @return [::Boolean]
|
222
|
+
# Self should be used to reference the primary data source itself.
|
223
|
+
# @!attribute [rw] primary_data_source_name
|
224
|
+
# @return [::String]
|
225
|
+
# Optional. The name of the primary data source.
|
226
|
+
# Format:
|
227
|
+
# `accounts/{account}/dataSources/{datasource}`
|
228
|
+
# @!attribute [rw] supplemental_data_source_name
|
229
|
+
# @return [::String]
|
230
|
+
# Optional. The name of the supplemental data source.
|
231
|
+
# Format:
|
232
|
+
# `accounts/{account}/dataSources/{datasource}`
|
233
|
+
class DataSourceReference
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
178
237
|
end
|
179
238
|
end
|
180
239
|
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 DataSources
|
24
|
+
module V1beta
|
25
|
+
# The file upload of a specific data source, that is, the result of the
|
26
|
+
# retrieval of the data source at a certain timestamp computed asynchronously
|
27
|
+
# when the data source processing is finished. Only applicable to file data
|
28
|
+
# sources.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Identifier. The name of the data source file upload.
|
32
|
+
# Format:
|
33
|
+
# `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}`
|
34
|
+
# @!attribute [r] data_source_id
|
35
|
+
# @return [::Integer]
|
36
|
+
# Output only. The data source id.
|
37
|
+
# @!attribute [r] processing_state
|
38
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::FileUpload::ProcessingState]
|
39
|
+
# Output only. The processing state of the data source.
|
40
|
+
# @!attribute [r] issues
|
41
|
+
# @return [::Array<::Google::Shopping::Merchant::DataSources::V1beta::FileUpload::Issue>]
|
42
|
+
# Output only. The list of issues occurring in the data source.
|
43
|
+
# @!attribute [r] items_total
|
44
|
+
# @return [::Integer]
|
45
|
+
# Output only. The number of items in the data source that were processed.
|
46
|
+
# @!attribute [r] items_created
|
47
|
+
# @return [::Integer]
|
48
|
+
# Output only. The number of items in the data source that were created.
|
49
|
+
# @!attribute [r] items_updated
|
50
|
+
# @return [::Integer]
|
51
|
+
# Output only. The number of items in the data source that were updated.
|
52
|
+
# @!attribute [r] upload_time
|
53
|
+
# @return [::Google::Protobuf::Timestamp]
|
54
|
+
# Output only. The date at which the file of the data source was uploaded.
|
55
|
+
class FileUpload
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
|
59
|
+
# An error occurring in the data source, like "invalid price".
|
60
|
+
# @!attribute [r] title
|
61
|
+
# @return [::String]
|
62
|
+
# Output only. The title of the issue, for example, "Item too big".
|
63
|
+
# @!attribute [r] description
|
64
|
+
# @return [::String]
|
65
|
+
# Output only. The error description, for example, "Your data source
|
66
|
+
# contains items which have too many attributes, or are too big. These
|
67
|
+
# items will be dropped".
|
68
|
+
# @!attribute [r] code
|
69
|
+
# @return [::String]
|
70
|
+
# Output only. The code of the error, for example,
|
71
|
+
# "validation/invalid_value". Returns
|
72
|
+
# "?" if the code is unknown.
|
73
|
+
# @!attribute [r] count
|
74
|
+
# @return [::Integer]
|
75
|
+
# Output only. The number of occurrences of the error in the file upload.
|
76
|
+
# @!attribute [r] severity
|
77
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::FileUpload::Issue::Severity]
|
78
|
+
# Output only. The severity of the issue.
|
79
|
+
# @!attribute [r] documentation_uri
|
80
|
+
# @return [::String]
|
81
|
+
# Output only. Link to the documentation explaining the issue in more
|
82
|
+
# details, if available.
|
83
|
+
class Issue
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
|
87
|
+
# The severity of the issue.
|
88
|
+
module Severity
|
89
|
+
# Severity unspecified.
|
90
|
+
SEVERITY_UNSPECIFIED = 0
|
91
|
+
|
92
|
+
# The issue is the warning.
|
93
|
+
WARNING = 1
|
94
|
+
|
95
|
+
# The issue is an error.
|
96
|
+
ERROR = 2
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# The processing state of the data source.
|
101
|
+
module ProcessingState
|
102
|
+
# Processing state unspecified.
|
103
|
+
PROCESSING_STATE_UNSPECIFIED = 0
|
104
|
+
|
105
|
+
# The data source could not be processed or all the items had errors.
|
106
|
+
FAILED = 1
|
107
|
+
|
108
|
+
# The data source is being processed.
|
109
|
+
IN_PROGRESS = 2
|
110
|
+
|
111
|
+
# The data source was processed successfully, though some items might have
|
112
|
+
# had errors.
|
113
|
+
SUCCEEDED = 3
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# Request message for the GetFileUploadRequest method.
|
118
|
+
# @!attribute [rw] name
|
119
|
+
# @return [::String]
|
120
|
+
# Required. The name of the data source file upload to retrieve.
|
121
|
+
# Format:
|
122
|
+
# `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
|
123
|
+
class GetFileUploadRequest
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-data_sources-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,10 +44,22 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
-
description:
|
47
|
+
description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
|
48
|
+
you to programmatically manage your accounts. Conversions Sub-API: Enables you to
|
49
|
+
programmatically manage your conversion sources for a merchant account. Datasources
|
50
|
+
Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
|
51
|
+
This bundle enables you to programmatically manage your local and regional inventories.
|
52
|
+
Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
|
53
|
+
inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
|
54
|
+
manage your notification subscriptions. Products Sub-API: This bundle enables you
|
55
|
+
to programmatically manage your products. Promotions Sub-API: This bundle enables
|
56
|
+
you to programmatically manage your promotions for products. Quota Sub-API: This
|
57
|
+
bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
|
58
|
+
This bundle enables you to programmatically retrieve reports and insights about
|
59
|
+
products, their performance and their competitive environment. Note that google-shopping-merchant-data_sources-v1beta
|
48
60
|
is a version-specific client library. For most uses, we recommend installing the
|
49
61
|
main client library google-shopping-merchant-data_sources instead. See the readme
|
50
|
-
for more details.
|
62
|
+
for more details.'
|
51
63
|
email: googleapis-packages@google.com
|
52
64
|
executables: []
|
53
65
|
extensions: []
|
@@ -66,12 +78,21 @@ files:
|
|
66
78
|
- lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest.rb
|
67
79
|
- lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/client.rb
|
68
80
|
- lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/service_stub.rb
|
81
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service.rb
|
82
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/client.rb
|
83
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/credentials.rb
|
84
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/paths.rb
|
85
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest.rb
|
86
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest/client.rb
|
87
|
+
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/rest/service_stub.rb
|
69
88
|
- lib/google/shopping/merchant/data_sources/v1beta/rest.rb
|
70
89
|
- lib/google/shopping/merchant/data_sources/v1beta/version.rb
|
71
90
|
- lib/google/shopping/merchant/datasources/v1beta/datasources_pb.rb
|
72
91
|
- lib/google/shopping/merchant/datasources/v1beta/datasources_services_pb.rb
|
73
92
|
- lib/google/shopping/merchant/datasources/v1beta/datasourcetypes_pb.rb
|
74
93
|
- lib/google/shopping/merchant/datasources/v1beta/fileinputs_pb.rb
|
94
|
+
- lib/google/shopping/merchant/datasources/v1beta/fileuploads_pb.rb
|
95
|
+
- lib/google/shopping/merchant/datasources/v1beta/fileuploads_services_pb.rb
|
75
96
|
- proto_docs/README.md
|
76
97
|
- proto_docs/google/api/client.rb
|
77
98
|
- proto_docs/google/api/field_behavior.rb
|
@@ -80,9 +101,11 @@ files:
|
|
80
101
|
- proto_docs/google/protobuf/duration.rb
|
81
102
|
- proto_docs/google/protobuf/empty.rb
|
82
103
|
- proto_docs/google/protobuf/field_mask.rb
|
104
|
+
- proto_docs/google/protobuf/timestamp.rb
|
83
105
|
- proto_docs/google/shopping/merchant/datasources/v1beta/datasources.rb
|
84
106
|
- proto_docs/google/shopping/merchant/datasources/v1beta/datasourcetypes.rb
|
85
107
|
- proto_docs/google/shopping/merchant/datasources/v1beta/fileinputs.rb
|
108
|
+
- proto_docs/google/shopping/merchant/datasources/v1beta/fileuploads.rb
|
86
109
|
- proto_docs/google/type/dayofweek.rb
|
87
110
|
- proto_docs/google/type/timeofday.rb
|
88
111
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
@@ -107,5 +130,5 @@ requirements: []
|
|
107
130
|
rubygems_version: 3.5.6
|
108
131
|
signing_key:
|
109
132
|
specification_version: 4
|
110
|
-
summary: Programmatically manage your Merchant Center
|
133
|
+
summary: Programmatically manage your Merchant Center Accounts.
|
111
134
|
test_files: []
|