@@ -81,6 +81,118 @@ message ExportErrorsConfig {
8181 }
8282}
8383
84+ // Request message for ExportProducts method.
85+ message ExportProductsRequest {
86+ // Required. Resource name of a [Branch][google.cloud.retail.v2alpha.Branch],
87+ // and `default_branch` for branch_id component is supported. For example
88+ // `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
89+ string parent = 1 [
90+ (google.api.field_behavior ) = REQUIRED ,
91+ (google.api.resource_reference ) = { type : "retail.googleapis.com/Branch" }
92+ ];
93+
94+ // Required. The output location of the data.
95+ OutputConfig output_config = 2 [(google.api.field_behavior ) = REQUIRED ];
96+
97+ // A filtering expression to specify restrictions on returned events.
98+ // The expression is a sequence of terms. Each term applies a restriction to
99+ // the returned products. Use this expression to restrict results to a
100+ // specific time range, tag, or stock state or to filter products by product
101+ // type.
102+ // For example, `lastModifiedTime > "2012-04-23T18:25:43.511Z"
103+ // lastModifiedTime<"2012-04-23T18:25:43.511Z" productType=primary`
104+ //
105+ // We expect only four types of fields:
106+ //
107+ // * `lastModifiedTime`: This can be specified twice, once with a
108+ // less than operator and once with a greater than operator. The
109+ // `lastModifiedTime` restriction should result in one, contiguous,
110+ // valid, last-modified, time range.
111+ //
112+ // * `productType`: Supported values are `primary` and `variant`. The
113+ // Boolean operators `OR` and `NOT` are supported if the expression is
114+ // enclosed in parentheses and must be separated from the
115+ // `productType` values by a space.
116+ //
117+ // * `availability`: Supported values are `IN_STOCK`, `OUT_OF_STOCK`,
118+ // `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are
119+ // supported if the expression is enclosed in parentheses and must be
120+ // separated from the `availability` values by a space.
121+ //
122+ // * `Tag expressions`: Restricts output to products that match all of the
123+ // specified tags. Boolean operators `OR` and `NOT` are supported if the
124+ // expression is enclosed in parentheses and the operators are separated
125+ // from the tag values by a space. Also supported is '`-"tagA"`', which
126+ // is equivalent to '`NOT "tagA"`'. Tag values must be double-quoted,
127+ // UTF-8 encoded strings and have a size limit of 1,000 characters.
128+ //
129+ // Some examples of valid filters expressions:
130+ //
131+ // * Example 1: `lastModifiedTime > "2012-04-23T18:25:43.511Z"
132+ // lastModifiedTime < "2012-04-23T18:30:43.511Z"`
133+ // * Example 2: `lastModifiedTime > "2012-04-23T18:25:43.511Z"
134+ // productType = "variant"`
135+ // * Example 3: `tag=("Red" OR "Blue") tag="New-Arrival"
136+ // tag=(NOT "promotional")
137+ // productType = "primary" lastModifiedTime <
138+ // "2018-04-23T18:30:43.511Z"`
139+ // * Example 4: `lastModifiedTime > "2012-04-23T18:25:43.511Z"`
140+ // * Example 5: `availability = (IN_STOCK OR BACKORDER)`
141+ string filter = 3 ;
142+ }
143+
144+ // Request message for the `ExportUserEvents` method.
145+ message ExportUserEventsRequest {
146+ // Required. Resource name of a
147+ // [Catalog][google.cloud.retail.v2alpha.Catalog]. For example
148+ // `projects/1234/locations/global/catalogs/default_catalog`
149+ string parent = 1 [
150+ (google.api.field_behavior ) = REQUIRED ,
151+ (google.api.resource_reference ) = { type : "retail.googleapis.com/Catalog" }
152+ ];
153+
154+ // Required. The output location of the data.
155+ OutputConfig output_config = 2 [(google.api.field_behavior ) = REQUIRED ];
156+
157+ // A filtering expression to specify restrictions on returned events.
158+ // The expression is a sequence of terms. Each term applies a restriction to
159+ // the returned user events. Use this expression to restrict results to a
160+ // specific time range or to filter events by eventType.
161+ // For example, `eventTime > "2012-04-23T18:25:43.511Z"
162+ // eventsMissingCatalogItems eventTime<"2012-04-23T18:25:43.511Z"
163+ // eventType=search`
164+ //
165+ // We expect only three types of fields:
166+ //
167+ // * `eventTime`: This can be specified twice, once with a
168+ // less than operator and once with a greater than operator. The
169+ // `eventTime` restriction should result in one, contiguous, valid,
170+ // `eventTime` range.
171+ //
172+ // * `eventType`: Boolean operators `OR` and `NOT` are supported if the
173+ // expression is enclosed in parentheses and the operators are separated
174+ // from the tag values by a space.
175+ //
176+ // * `eventsMissingCatalogItems`: This restricts results
177+ // to events for which catalog items were not found in the catalog. The
178+ // default behavior is to return only those events for which catalog
179+ // items were found.
180+ //
181+ // Some examples of valid filters expressions:
182+ //
183+ // * Example 1: `eventTime > "2012-04-23T18:25:43.511Z"
184+ // eventTime < "2012-04-23T18:30:43.511Z"`
185+ // * Example 2: `eventTime > "2012-04-23T18:25:43.511Z"
186+ // eventType = detail-page-view`
187+ // * Example 3: `eventsMissingCatalogItems
188+ // eventType = (NOT search) eventTime <
189+ // "2018-04-23T18:30:43.511Z"`
190+ // * Example 4: `eventTime > "2012-04-23T18:25:43.511Z"`
191+ // * Example 5: `eventType = (detail-page-view OR search)`
192+ // * Example 6: `eventsMissingCatalogItems`
193+ string filter = 3 ;
194+ }
195+
84196// Request message for the `ExportAnalyticsMetrics` method.
85197message ExportAnalyticsMetricsRequest {
86198 // Required. Full resource name of the parent catalog.
0 commit comments