Skip to content

Commit 3a90bf9

Browse files
Google APIscopybara-github
authored andcommitted
feat: Channel enum is added
PiperOrigin-RevId: 572916805
1 parent 28d3bc7 commit 3a90bf9

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

google/shopping/type/types.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ message Price {
2727
// The price represented as a number in micros (1 million micros is an
2828
// equivalent to one's currency standard unit, for example, 1 USD = 1000000
2929
// micros).
30+
// This field can also be set as infinity by setting to -1.
31+
// This field only support -1 and positive value.
3032
optional int64 amount_micros = 1;
3133

3234
// The currency of the price using three-letter acronyms according to [ISO
@@ -140,3 +142,20 @@ message ReportingContext {
140142
LOCAL_CLOUD_RETAIL = 12;
141143
}
142144
}
145+
146+
// [Channel](https://support.google.com/merchants/answer/7361332) of a product.
147+
//
148+
// Channel is used to distinguish between online and local products.
149+
message Channel {
150+
// Channel values.
151+
enum ChannelEnum {
152+
// Not specified.
153+
CHANNEL_ENUM_UNSPECIFIED = 0;
154+
155+
// Online product.
156+
ONLINE = 1;
157+
158+
// Local product.
159+
LOCAL = 2;
160+
}
161+
}

0 commit comments

Comments
 (0)