export_config.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/annotations.proto";
  17. import "google/api/field_behavior.proto";
  18. import "google/api/resource.proto";
  19. import "google/protobuf/timestamp.proto";
  20. import "google/rpc/status.proto";
  21. option csharp_namespace = "Google.Cloud.Retail.V2Beta";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "ExportConfigProto";
  25. option java_package = "com.google.cloud.retail.v2beta";
  26. option objc_class_prefix = "RETAIL";
  27. option php_namespace = "Google\\Cloud\\Retail\\V2beta";
  28. option ruby_package = "Google::Cloud::Retail::V2beta";
  29. // Configuration of destination for Export related errors.
  30. message ExportErrorsConfig {
  31. // Required. Errors destination.
  32. oneof destination {
  33. // Google Cloud Storage path for import errors. This must be an empty,
  34. // existing Cloud Storage bucket. Export errors will be written to a file in
  35. // this bucket, one per line, as a JSON-encoded
  36. // `google.rpc.Status` message.
  37. string gcs_prefix = 1;
  38. }
  39. }
  40. // Metadata related to the progress of the Export operation. This will be
  41. // returned by the google.longrunning.Operation.metadata field.
  42. message ExportMetadata {
  43. // Operation create time.
  44. google.protobuf.Timestamp create_time = 1;
  45. // Operation last update time. If the operation is done, this is also the
  46. // finish time.
  47. google.protobuf.Timestamp update_time = 2;
  48. }
  49. // Response of the ExportProductsRequest. If the long running
  50. // operation is done, then this message is returned by the
  51. // google.longrunning.Operations.response field if the operation was successful.
  52. message ExportProductsResponse {
  53. // A sample of errors encountered while processing the request.
  54. repeated google.rpc.Status error_samples = 1;
  55. // Echoes the destination for the complete errors in the request if set.
  56. ExportErrorsConfig errors_config = 2;
  57. }
  58. // Response of the ExportUserEventsRequest. If the long running
  59. // operation was successful, then this message is returned by the
  60. // google.longrunning.Operations.response field if the operation was successful.
  61. message ExportUserEventsResponse {
  62. // A sample of errors encountered while processing the request.
  63. repeated google.rpc.Status error_samples = 1;
  64. // Echoes the destination for the complete errors if this field was set in
  65. // the request.
  66. ExportErrorsConfig errors_config = 2;
  67. }