@@ -30,6 +30,45 @@ option objc_class_prefix = "RETAIL";
3030option php_namespace = "Google\\Cloud\\Retail\\V2alpha" ;
3131option ruby_package = "Google::Cloud::Retail::V2alpha" ;
3232
33+ // The output configuration setting.
34+ message OutputConfig {
35+ // The Google Cloud Storage output destination configuration.
36+ message GcsDestination {
37+ // Required. The output uri prefix for saving output data to json files.
38+ // Some mapping examples are as follows:
39+ // output_uri_prefix sample output(assuming the object is foo.json)
40+ // ======================== =============================================
41+ // gs://bucket/ gs://bucket/foo.json
42+ // gs://bucket/folder/ gs://bucket/folder/foo.json
43+ // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
44+ string output_uri_prefix = 1 [(google.api.field_behavior ) = REQUIRED ];
45+ }
46+
47+ // The BigQuery output destination configuration.
48+ message BigQueryDestination {
49+ // Required. The ID of a BigQuery Dataset.
50+ string dataset_id = 1 [(google.api.field_behavior ) = REQUIRED ];
51+
52+ // Required. The prefix of exported BigQuery tables.
53+ string table_id_prefix = 2 [(google.api.field_behavior ) = REQUIRED ];
54+
55+ // Required. Describes the table type. The following values are supported:
56+ //
57+ // * `table`: A BigQuery native table.
58+ // * `view`: A virtual table defined by a SQL query.
59+ string table_type = 3 [(google.api.field_behavior ) = REQUIRED ];
60+ }
61+
62+ // The configuration of destination for holding output data.
63+ oneof destination {
64+ // The Google Cloud Storage location where the output is to be written to.
65+ GcsDestination gcs_destination = 1 ;
66+
67+ // The BigQuery location where the output is to be written to.
68+ BigQueryDestination bigquery_destination = 2 ;
69+ }
70+ }
71+
3372// Configuration of destination for Export related errors.
3473message ExportErrorsConfig {
3574 // Required. Errors destination.
@@ -42,6 +81,35 @@ message ExportErrorsConfig {
4281 }
4382}
4483
84+ // Request message for the `ExportAnalyticsMetrics` method.
85+ message ExportAnalyticsMetricsRequest {
86+ // Required. Full resource name of the parent catalog.
87+ // Expected format: `projects/*/locations/*/catalogs/*`
88+ string catalog = 1 [(google.api.field_behavior ) = REQUIRED ];
89+
90+ // Required. The output location of the data.
91+ OutputConfig output_config = 2 [(google.api.field_behavior ) = REQUIRED ];
92+
93+ // A filtering expression to specify restrictions on returned metrics.
94+ // The expression is a sequence of terms. Each term applies a restriction to
95+ // the returned metrics. Use this expression to restrict results to a
96+ // specific time range.
97+ //
98+ // Currently we expect only one types of fields:
99+ //
100+ // * `timestamp`: This can be specified twice, once with a
101+ // less than operator and once with a greater than operator. The
102+ // `timestamp` restriction should result in one, contiguous, valid,
103+ // `timestamp` range.
104+ //
105+ // Some examples of valid filters expressions:
106+ //
107+ // * Example 1: `timestamp > "2012-04-23T18:25:43.511Z"
108+ // timestamp < "2012-04-23T18:30:43.511Z"`
109+ // * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
110+ string filter = 3 ;
111+ }
112+
45113// Metadata related to the progress of the Export operation. This is
46114// returned by the google.longrunning.Operation.metadata field.
47115message ExportMetadata {
@@ -81,6 +149,20 @@ message ExportUserEventsResponse {
81149 OutputResult output_result = 3 ;
82150}
83151
152+ // Response of the ExportAnalyticsMetricsRequest. If the long running
153+ // operation was successful, then this message is returned by the
154+ // google.longrunning.Operations.response field if the operation was successful.
155+ message ExportAnalyticsMetricsResponse {
156+ // A sample of errors encountered while processing the request.
157+ repeated google.rpc.Status error_samples = 1 ;
158+
159+ // This field is never set.
160+ ExportErrorsConfig errors_config = 2 ;
161+
162+ // Output result indicating where the data were exported to.
163+ OutputResult output_result = 3 ;
164+ }
165+
84166// Output result that stores the information about where the exported data is
85167// stored.
86168message OutputResult {
0 commit comments