export_config.proto 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.retail.v2beta;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. import "google/rpc/status.proto";
  20. option csharp_namespace = "Google.Cloud.Retail.V2Beta";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "ExportConfigProto";
  24. option java_package = "com.google.cloud.retail.v2beta";
  25. option objc_class_prefix = "RETAIL";
  26. option php_namespace = "Google\\Cloud\\Retail\\V2beta";
  27. option ruby_package = "Google::Cloud::Retail::V2beta";
  28. // Configuration of destination for Export related errors.
  29. message ExportErrorsConfig {
  30. // Required. Errors destination.
  31. oneof destination {
  32. // Google Cloud Storage path for import errors. This must be an empty,
  33. // existing Cloud Storage bucket. Export errors will be written to a file in
  34. // this bucket, one per line, as a JSON-encoded
  35. // `google.rpc.Status` message.
  36. string gcs_prefix = 1;
  37. }
  38. }
  39. // Metadata related to the progress of the Export operation. This is
  40. // returned by the google.longrunning.Operation.metadata field.
  41. message ExportMetadata {
  42. // Operation create time.
  43. google.protobuf.Timestamp create_time = 1;
  44. // Operation last update time. If the operation is done, this is also the
  45. // finish time.
  46. google.protobuf.Timestamp update_time = 2;
  47. }
  48. // Response of the ExportProductsRequest. If the long running
  49. // operation is done, then this message is returned by the
  50. // google.longrunning.Operations.response field if the operation was successful.
  51. message ExportProductsResponse {
  52. // A sample of errors encountered while processing the request.
  53. repeated google.rpc.Status error_samples = 1;
  54. // This field is never set.
  55. ExportErrorsConfig errors_config = 2;
  56. // Output result indicating where the data were exported to.
  57. OutputResult output_result = 3;
  58. }
  59. // Response of the ExportUserEventsRequest. If the long running
  60. // operation was successful, then this message is returned by the
  61. // google.longrunning.Operations.response field if the operation was successful.
  62. message ExportUserEventsResponse {
  63. // A sample of errors encountered while processing the request.
  64. repeated google.rpc.Status error_samples = 1;
  65. // This field is never set.
  66. ExportErrorsConfig errors_config = 2;
  67. // Output result indicating where the data were exported to.
  68. OutputResult output_result = 3;
  69. }
  70. // Output result.
  71. message OutputResult {
  72. // Export result in BigQuery.
  73. repeated BigQueryOutputResult bigquery_result = 1;
  74. }
  75. // A BigQuery output result.
  76. message BigQueryOutputResult {
  77. // The ID of a BigQuery Dataset.
  78. string dataset_id = 1;
  79. // The ID of a BigQuery Table.
  80. string table_id = 2;
  81. }