Skip to content

Commit 27a72a6

Browse files
feat: [shopping] add Weight to common types for Shopping APIs to be used for accounts bundle (#5291)
* feat: add `Weight` to common types for Shopping APIs to be used for accounts bundle docs: A comment for field `amount_micros` in message `.google.shopping.type.Price` is changed PiperOrigin-RevId: 629159171 Source-Link: googleapis/googleapis@a3a2dc6 Source-Link: googleapis/googleapis-gen@7a59876 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLWNzcy8uT3dsQm90LnlhbWwiLCJoIjoiN2E1OTg3NjFmOTAyMTMyOGJjMmRlYTQ2ZWMwYzA4NTJhZGMyNmQ4MyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWludmVudG9yaWVzLy5Pd2xCb3QueWFtbCIsImgiOiI3YTU5ODc2MWY5MDIxMzI4YmMyZGVhNDZlYzBjMDg1MmFkYzI2ZDgzIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWxmcC8uT3dsQm90LnlhbWwiLCJoIjoiN2E1OTg3NjFmOTAyMTMyOGJjMmRlYTQ2ZWMwYzA4NTJhZGMyNmQ4MyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjdhNTk4NzYxZjkwMjEzMjhiYzJkZWE0NmVjMGMwODUyYWRjMjZkODMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJlcG9ydHMvLk93bEJvdC55YW1sIiwiaCI6IjdhNTk4NzYxZjkwMjEzMjhiYzJkZWE0NmVjMGMwODUyYWRjMjZkODMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update publishing name --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Sofia Leon <sofialeon@google.com>
1 parent fe2a4e3 commit 27a72a6

26 files changed

Lines changed: 2346 additions & 16 deletions

File tree

packages/google-cloud-secretmanager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@
6464
"node": ">=14.0.0"
6565
},
6666
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-secretmanager"
67-
}
67+
}

packages/google-shopping-css/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"release_level": "preview",
88
"language": "nodejs",
99
"repo": "googleapis/google-cloud-node",
10-
"distribution_name": "@google-cloud/css",
10+
"distribution_name": "@google-shopping/css",
1111
"api_id": "css.googleapis.com",
1212
"default_version": "v1",
1313
"requires_billing": true,

packages/google-shopping-css/protos/google/shopping/type/types.proto

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,37 @@ option java_multiple_files = true;
2222
option java_outer_classname = "TypesProto";
2323
option java_package = "com.google.shopping.type";
2424

25+
// The weight represented as the value in string and the unit.
26+
message Weight {
27+
// The weight unit.
28+
enum WeightUnit {
29+
// unit unspecified
30+
WEIGHT_UNIT_UNSPECIFIED = 0;
31+
32+
// lb unit.
33+
POUND = 1;
34+
35+
// kg unit.
36+
KILOGRAM = 2;
37+
}
38+
39+
// Required. The weight represented as a number in micros (1 million micros is
40+
// an equivalent to one's currency standard unit, for example, 1 kg = 1000000
41+
// micros).
42+
// This field can also be set as infinity by setting to -1.
43+
// This field only support -1 and positive value.
44+
optional int64 amount_micros = 1;
45+
46+
// Required. The weight unit.
47+
// Acceptable values are: kg and lb
48+
WeightUnit unit = 2;
49+
}
50+
2551
// The price represented as a number and currency.
2652
message Price {
2753
// The price represented as a number in micros (1 million micros is an
2854
// equivalent to one's currency standard unit, for example, 1 USD = 1000000
2955
// micros).
30-
// This field can also be set as infinity by setting to -1.
31-
// This field only support -1 and positive value.
3256
optional int64 amount_micros = 1;
3357

3458
// The currency of the price using three-letter acronyms according to [ISO

packages/google-shopping-css/protos/protos.d.ts

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)