text: # -*- coding: utf-8 -*-
  # Copyright 2020 Google LLC
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  #
  import proto  # type: ignore
  
  from google.protobuf import timestamp_pb2  # type: ignore
  from google.rpc import status_pb2  # type: ignore
  
  
  __protobuf__ = proto.module(
      package='google.cloud.retail.v2alpha',
      manifest={
          'ExportErrorsConfig',
          'ExportMetadata',
          'ExportProductsResponse',
          'ExportUserEventsResponse',
      },
  )
  
  
  class ExportErrorsConfig(proto.Message):
      r"""Configuration of destination for Export related errors.
  
      Attributes:
          gcs_prefix (str):
              Google Cloud Storage path for import errors. This must be an
              empty, existing Cloud Storage bucket. Export errors will be
              written to a file in this bucket, one per line, as a
              JSON-encoded ``google.rpc.Status`` message.
      """
  
      gcs_prefix = proto.Field(
          proto.STRING,
          number=1,
          oneof='destination',
      )
  
  
  class ExportMetadata(proto.Message):
      r"""Metadata related to the progress of the Export operation.
      This will be returned by the
      google.longrunning.Operation.metadata field.
  
      Attributes:
          create_time (google.protobuf.timestamp_pb2.Timestamp):
              Operation create time.
          update_time (google.protobuf.timestamp_pb2.Timestamp):
              Operation last update time. If the operation
              is done, this is also the finish time.
      """
  
      create_time = proto.Field(
          proto.MESSAGE,
          number=1,
          message=timestamp_pb2.Timestamp,
      )
      update_time = proto.Field(
          proto.MESSAGE,
          number=2,
          message=timestamp_pb2.Timestamp,
      )
  
  
  class ExportProductsResponse(proto.Message):
      r"""Response of the ExportProductsRequest. If the long running
      operation is done, then this message is returned by the
      google.longrunning.Operations.response field if the operation
      was successful.
  
      Attributes:
          error_samples (Sequence[google.rpc.status_pb2.Status]):
              A sample of errors encountered while
              processing the request.
          errors_config (google.cloud.retail_v2alpha.types.ExportErrorsConfig):
              Echoes the destination for the complete
              errors in the request if set.
      """
  
      error_samples = proto.RepeatedField(
          proto.MESSAGE,
          number=1,
          message=status_pb2.Status,
      )
      errors_config = proto.Field(
          proto.MESSAGE,
          number=2,
          message='ExportErrorsConfig',
      )
  
  
  class ExportUserEventsResponse(proto.Message):
      r"""Response of the ExportUserEventsRequest. If the long running
      operation was successful, then this message is returned by the
      google.longrunning.Operations.response field if the operation
      was successful.
  
      Attributes:
          error_samples (Sequence[google.rpc.status_pb2.Status]):
              A sample of errors encountered while
              processing the request.
          errors_config (google.cloud.retail_v2alpha.types.ExportErrorsConfig):
              Echoes the destination for the complete
              errors if this field was set in the request.
      """
  
      error_samples = proto.RepeatedField(
          proto.MESSAGE,
          number=1,
          message=status_pb2.Status,
      )
      errors_config = proto.Field(
          proto.MESSAGE,
          number=2,
          message='ExportErrorsConfig',
      )
  
  
  __all__ = tuple(sorted(__protobuf__.manifest))
  