# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/maps/fleetengine/delivery/v1/tasks.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/maps/fleetengine/delivery/v1/common_pb'
require 'google/maps/fleetengine/delivery/v1/delivery_vehicles_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n/google/maps/fleetengine/delivery/v1/tasks.proto\x12\x1cmaps.fleetengine.delivery.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/maps/fleetengine/delivery/v1/common.proto\x1a;google/maps/fleetengine/delivery/v1/delivery_vehicles.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\x0c\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12=\n\x04type\x18\x02 \x01(\x0e\x32\'.maps.fleetengine.delivery.v1.Task.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.maps.fleetengine.delivery.v1.Task.StateB\x03\xe0\x41\x02\x12\x44\n\x0ctask_outcome\x18\t \x01(\x0e\x32..maps.fleetengine.delivery.v1.Task.TaskOutcome\x12\x35\n\x11task_outcome_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12I\n\x15task_outcome_location\x18\x0b \x01(\x0b\x32*.maps.fleetengine.delivery.v1.LocationInfo\x12\x62\n\x1ctask_outcome_location_source\x18\x0c \x01(\x0e\x32<.maps.fleetengine.delivery.v1.Task.TaskOutcomeLocationSource\x12\x18\n\x0btracking_id\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12 \n\x13\x64\x65livery_vehicle_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12I\n\x10planned_location\x18\x06 \x01(\x0b\x32*.maps.fleetengine.delivery.v1.LocationInfoB\x03\xe0\x41\x05\x12\x38\n\rtask_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x06\xe0\x41\x02\xe0\x41\x05\x12\x44\n\x12target_time_window\x18\x0e \x01(\x0b\x32(.maps.fleetengine.delivery.v1.TimeWindow\x12X\n\x14journey_sharing_info\x18\x08 \x01(\x0b\x32\x35.maps.fleetengine.delivery.v1.Task.JourneySharingInfoB\x03\xe0\x41\x03\x12W\n\x19task_tracking_view_config\x18\r \x01(\x0b\x32\x34.maps.fleetengine.delivery.v1.TaskTrackingViewConfig\x12?\n\nattributes\x18\x0f \x03(\x0b\x32+.maps.fleetengine.delivery.v1.TaskAttribute\x1a\xe4\x01\n\x12JourneySharingInfo\x12_\n\"remaining_vehicle_journey_segments\x18\x01 \x03(\x0b\x32\x33.maps.fleetengine.delivery.v1.VehicleJourneySegment\x12L\n\rlast_location\x18\x02 \x01(\x0b\x32\x35.maps.fleetengine.delivery.v1.DeliveryVehicleLocation\x12\x1f\n\x17last_location_snappable\x18\x03 \x01(\x08\"[\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06PICKUP\x10\x01\x12\x0c\n\x08\x44\x45LIVERY\x10\x02\x12\x12\n\x0eSCHEDULED_STOP\x10\x03\x12\x0f\n\x0bUNAVAILABLE\x10\x04\"4\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x08\n\x04OPEN\x10\x01\x12\n\n\x06\x43LOSED\x10\x02\"F\n\x0bTaskOutcome\x12\x1c\n\x18TASK_OUTCOME_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"r\n\x19TaskOutcomeLocationSource\x12,\n(TASK_OUTCOME_LOCATION_SOURCE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PROVIDER\x10\x02\x12\x19\n\x15LAST_VEHICLE_LOCATION\x10\x03:G\xea\x41\x44\n\x1f\x66leetengine.googleapis.com/Task\x12!providers/{provider}/tasks/{task}\"\xcb\x07\n\x16TaskTrackingViewConfig\x12o\n route_polyline_points_visibility\x18\x01 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x12p\n!estimated_arrival_time_visibility\x18\x02 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x12x\n)estimated_task_completion_time_visibility\x18\x03 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x12t\n%remaining_driving_distance_visibility\x18\x04 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x12n\n\x1fremaining_stop_count_visibility\x18\x05 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x12j\n\x1bvehicle_location_visibility\x18\x06 \x01(\x0b\x32\x45.maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption\x1a\x81\x02\n\x10VisibilityOption\x12(\n\x1eremaining_stop_count_threshold\x18\x01 \x01(\x05H\x00\x12T\n/duration_until_estimated_arrival_time_threshold\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x35\n+remaining_driving_distance_meters_threshold\x18\x03 \x01(\x05H\x00\x12\x10\n\x06\x61lways\x18\x04 \x01(\x08H\x00\x12\x0f\n\x05never\x18\x05 \x01(\x08H\x00\x42\x13\n\x11visibility_optionB\xfa\x01\n\'com.google.maps.fleetengine.delivery.v1B\x05TasksP\x01ZIcloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb\xa2\x02\x04\x43\x46\x45\x44\xaa\x02#Google.Maps.FleetEngine.Delivery.V1\xca\x02#Google\\Maps\\FleetEngine\\Delivery\\V1\xea\x02\'Google::Maps::FleetEngine::Delivery::V1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["maps.fleetengine.delivery.v1.LocationInfo", "google/maps/fleetengine/delivery/v1/delivery_vehicles.proto"],
    ["google.protobuf.Duration", "google/protobuf/duration.proto"],
    ["maps.fleetengine.delivery.v1.TimeWindow", "google/maps/fleetengine/delivery/v1/common.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Maps
    module FleetEngine
      module Delivery
        module V1
          Task = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task").msgclass
          Task::JourneySharingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task.JourneySharingInfo").msgclass
          Task::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task.Type").enummodule
          Task::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task.State").enummodule
          Task::TaskOutcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task.TaskOutcome").enummodule
          Task::TaskOutcomeLocationSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.Task.TaskOutcomeLocationSource").enummodule
          TaskTrackingViewConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.TaskTrackingViewConfig").msgclass
          TaskTrackingViewConfig::VisibilityOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("maps.fleetengine.delivery.v1.TaskTrackingViewConfig.VisibilityOption").msgclass
        end
      end
    end
  end
end
