# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/remoteworkers/v1test2/bots.proto

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/devtools/remoteworkers/v1test2/worker_pb'
require 'google/protobuf/any_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'
require 'google/rpc/status_pb'
require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/devtools/remoteworkers/v1test2/bots.proto", :syntax => :proto3) do
    add_message "google.devtools.remoteworkers.v1test2.BotSession" do
      optional :name, :string, 1
      optional :bot_id, :string, 2
      optional :status, :enum, 3, "google.devtools.remoteworkers.v1test2.BotStatus"
      optional :worker, :message, 4, "google.devtools.remoteworkers.v1test2.Worker"
      repeated :leases, :message, 5, "google.devtools.remoteworkers.v1test2.Lease"
      optional :expire_time, :message, 6, "google.protobuf.Timestamp"
      optional :version, :string, 7
    end
    add_message "google.devtools.remoteworkers.v1test2.Lease" do
      optional :id, :string, 7
      optional :payload, :message, 8, "google.protobuf.Any"
      optional :result, :message, 9, "google.protobuf.Any"
      optional :state, :enum, 2, "google.devtools.remoteworkers.v1test2.LeaseState"
      optional :status, :message, 3, "google.rpc.Status"
      optional :requirements, :message, 4, "google.devtools.remoteworkers.v1test2.Worker"
      optional :expire_time, :message, 5, "google.protobuf.Timestamp"
      optional :assignment, :string, 1
      optional :inline_assignment, :message, 6, "google.protobuf.Any"
    end
    add_message "google.devtools.remoteworkers.v1test2.AdminTemp" do
      optional :command, :enum, 1, "google.devtools.remoteworkers.v1test2.AdminTemp.Command"
      optional :arg, :string, 2
    end
    add_enum "google.devtools.remoteworkers.v1test2.AdminTemp.Command" do
      value :UNSPECIFIED, 0
      value :BOT_UPDATE, 1
      value :BOT_RESTART, 2
      value :BOT_TERMINATE, 3
      value :HOST_RESTART, 4
    end
    add_message "google.devtools.remoteworkers.v1test2.CreateBotSessionRequest" do
      optional :parent, :string, 1
      optional :bot_session, :message, 2, "google.devtools.remoteworkers.v1test2.BotSession"
    end
    add_message "google.devtools.remoteworkers.v1test2.UpdateBotSessionRequest" do
      optional :name, :string, 1
      optional :bot_session, :message, 2, "google.devtools.remoteworkers.v1test2.BotSession"
      optional :update_mask, :message, 3, "google.protobuf.FieldMask"
    end
    add_enum "google.devtools.remoteworkers.v1test2.BotStatus" do
      value :BOT_STATUS_UNSPECIFIED, 0
      value :OK, 1
      value :UNHEALTHY, 2
      value :HOST_REBOOTING, 3
      value :BOT_TERMINATING, 4
      value :INITIALIZING, 5
    end
    add_enum "google.devtools.remoteworkers.v1test2.LeaseState" do
      value :LEASE_STATE_UNSPECIFIED, 0
      value :PENDING, 1
      value :ACTIVE, 2
      value :COMPLETED, 4
      value :CANCELLED, 5
    end
  end
end

module Google
  module Devtools
    module Remoteworkers
      module V1test2
        BotSession = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.BotSession").msgclass
        Lease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.Lease").msgclass
        AdminTemp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.AdminTemp").msgclass
        AdminTemp::Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.AdminTemp.Command").enummodule
        CreateBotSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.CreateBotSessionRequest").msgclass
        UpdateBotSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.UpdateBotSessionRequest").msgclass
        BotStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.BotStatus").enummodule
        LeaseState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.remoteworkers.v1test2.LeaseState").enummodule
      end
    end
  end
end
