# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/conformance/firestore/v1/tests.proto

require 'google/protobuf'

require 'google/firestore/v1/common_pb'
require 'google/firestore/v1/document_pb'
require 'google/firestore/v1/firestore_pb'
require 'google/firestore/v1/query_pb'
require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "google.cloud.conformance.firestore.v1.TestFile" do
    repeated :tests, :message, 1, "google.cloud.conformance.firestore.v1.Test"
  end
  add_message "google.cloud.conformance.firestore.v1.Test" do
    optional :description, :string, 1
    optional :comment, :string, 10
    oneof :test do
      optional :get, :message, 2, "google.cloud.conformance.firestore.v1.GetTest"
      optional :create, :message, 3, "google.cloud.conformance.firestore.v1.CreateTest"
      optional :set, :message, 4, "google.cloud.conformance.firestore.v1.SetTest"
      optional :update, :message, 5, "google.cloud.conformance.firestore.v1.UpdateTest"
      optional :update_paths, :message, 6, "google.cloud.conformance.firestore.v1.UpdatePathsTest"
      optional :delete, :message, 7, "google.cloud.conformance.firestore.v1.DeleteTest"
      optional :query, :message, 8, "google.cloud.conformance.firestore.v1.QueryTest"
      optional :listen, :message, 9, "google.cloud.conformance.firestore.v1.ListenTest"
    end
  end
  add_message "google.cloud.conformance.firestore.v1.GetTest" do
    optional :doc_ref_path, :string, 1
    optional :request, :message, 2, "google.firestore.v1.GetDocumentRequest"
  end
  add_message "google.cloud.conformance.firestore.v1.CreateTest" do
    optional :doc_ref_path, :string, 1
    optional :json_data, :string, 2
    optional :request, :message, 3, "google.firestore.v1.CommitRequest"
    optional :is_error, :bool, 4
  end
  add_message "google.cloud.conformance.firestore.v1.SetTest" do
    optional :doc_ref_path, :string, 1
    optional :option, :message, 2, "google.cloud.conformance.firestore.v1.SetOption"
    optional :json_data, :string, 3
    optional :request, :message, 4, "google.firestore.v1.CommitRequest"
    optional :is_error, :bool, 5
  end
  add_message "google.cloud.conformance.firestore.v1.UpdateTest" do
    optional :doc_ref_path, :string, 1
    optional :precondition, :message, 2, "google.firestore.v1.Precondition"
    optional :json_data, :string, 3
    optional :request, :message, 4, "google.firestore.v1.CommitRequest"
    optional :is_error, :bool, 5
  end
  add_message "google.cloud.conformance.firestore.v1.UpdatePathsTest" do
    optional :doc_ref_path, :string, 1
    optional :precondition, :message, 2, "google.firestore.v1.Precondition"
    repeated :field_paths, :message, 3, "google.cloud.conformance.firestore.v1.FieldPath"
    repeated :json_values, :string, 4
    optional :request, :message, 5, "google.firestore.v1.CommitRequest"
    optional :is_error, :bool, 6
  end
  add_message "google.cloud.conformance.firestore.v1.DeleteTest" do
    optional :doc_ref_path, :string, 1
    optional :precondition, :message, 2, "google.firestore.v1.Precondition"
    optional :request, :message, 3, "google.firestore.v1.CommitRequest"
    optional :is_error, :bool, 4
  end
  add_message "google.cloud.conformance.firestore.v1.SetOption" do
    optional :all, :bool, 1
    repeated :fields, :message, 2, "google.cloud.conformance.firestore.v1.FieldPath"
  end
  add_message "google.cloud.conformance.firestore.v1.QueryTest" do
    optional :coll_path, :string, 1
    repeated :clauses, :message, 2, "google.cloud.conformance.firestore.v1.Clause"
    optional :query, :message, 3, "google.firestore.v1.StructuredQuery"
    optional :is_error, :bool, 4
  end
  add_message "google.cloud.conformance.firestore.v1.Clause" do
    oneof :clause do
      optional :select, :message, 1, "google.cloud.conformance.firestore.v1.Select"
      optional :where, :message, 2, "google.cloud.conformance.firestore.v1.Where"
      optional :order_by, :message, 3, "google.cloud.conformance.firestore.v1.OrderBy"
      optional :offset, :int32, 4
      optional :limit, :int32, 5
      optional :start_at, :message, 6, "google.cloud.conformance.firestore.v1.Cursor"
      optional :start_after, :message, 7, "google.cloud.conformance.firestore.v1.Cursor"
      optional :end_at, :message, 8, "google.cloud.conformance.firestore.v1.Cursor"
      optional :end_before, :message, 9, "google.cloud.conformance.firestore.v1.Cursor"
    end
  end
  add_message "google.cloud.conformance.firestore.v1.Select" do
    repeated :fields, :message, 1, "google.cloud.conformance.firestore.v1.FieldPath"
  end
  add_message "google.cloud.conformance.firestore.v1.Where" do
    optional :path, :message, 1, "google.cloud.conformance.firestore.v1.FieldPath"
    optional :op, :string, 2
    optional :json_value, :string, 3
  end
  add_message "google.cloud.conformance.firestore.v1.OrderBy" do
    optional :path, :message, 1, "google.cloud.conformance.firestore.v1.FieldPath"
    optional :direction, :string, 2
  end
  add_message "google.cloud.conformance.firestore.v1.Cursor" do
    optional :doc_snapshot, :message, 1, "google.cloud.conformance.firestore.v1.DocSnapshot"
    repeated :json_values, :string, 2
  end
  add_message "google.cloud.conformance.firestore.v1.DocSnapshot" do
    optional :path, :string, 1
    optional :json_data, :string, 2
  end
  add_message "google.cloud.conformance.firestore.v1.FieldPath" do
    repeated :field, :string, 1
  end
  add_message "google.cloud.conformance.firestore.v1.ListenTest" do
    repeated :responses, :message, 1, "google.firestore.v1.ListenResponse"
    repeated :snapshots, :message, 2, "google.cloud.conformance.firestore.v1.Snapshot"
    optional :is_error, :bool, 3
  end
  add_message "google.cloud.conformance.firestore.v1.Snapshot" do
    repeated :docs, :message, 1, "google.firestore.v1.Document"
    repeated :changes, :message, 2, "google.cloud.conformance.firestore.v1.DocChange"
    optional :read_time, :message, 3, "google.protobuf.Timestamp"
  end
  add_message "google.cloud.conformance.firestore.v1.DocChange" do
    optional :kind, :enum, 1, "google.cloud.conformance.firestore.v1.DocChange.Kind"
    optional :doc, :message, 2, "google.firestore.v1.Document"
    optional :old_index, :int32, 3
    optional :new_index, :int32, 4
  end
  add_enum "google.cloud.conformance.firestore.v1.DocChange.Kind" do
    value :KIND_UNSPECIFIED, 0
    value :ADDED, 1
    value :REMOVED, 2
    value :MODIFIED, 3
  end
end

module Google
  module Cloud
    module Conformance
      module Firestore
        module V1
          TestFile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.TestFile").msgclass
          Test = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Test").msgclass
          GetTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.GetTest").msgclass
          CreateTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.CreateTest").msgclass
          SetTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.SetTest").msgclass
          UpdateTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.UpdateTest").msgclass
          UpdatePathsTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.UpdatePathsTest").msgclass
          DeleteTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.DeleteTest").msgclass
          SetOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.SetOption").msgclass
          QueryTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.QueryTest").msgclass
          Clause = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Clause").msgclass
          Select = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Select").msgclass
          Where = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Where").msgclass
          OrderBy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.OrderBy").msgclass
          Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Cursor").msgclass
          DocSnapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.DocSnapshot").msgclass
          FieldPath = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.FieldPath").msgclass
          ListenTest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.ListenTest").msgclass
          Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.Snapshot").msgclass
          DocChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.DocChange").msgclass
          DocChange::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.conformance.firestore.v1.DocChange.Kind").enummodule
        end
      end
    end
  end
end
