# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/datastore/admin/v1/index.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/datastore/admin/v1/index.proto", :syntax => :proto3) do
    add_message "google.datastore.admin.v1.Index" do
      optional :project_id, :string, 1
      optional :index_id, :string, 3
      optional :kind, :string, 4
      optional :ancestor, :enum, 5, "google.datastore.admin.v1.Index.AncestorMode"
      repeated :properties, :message, 6, "google.datastore.admin.v1.Index.IndexedProperty"
      optional :state, :enum, 7, "google.datastore.admin.v1.Index.State"
    end
    add_message "google.datastore.admin.v1.Index.IndexedProperty" do
      optional :name, :string, 1
      optional :direction, :enum, 2, "google.datastore.admin.v1.Index.Direction"
    end
    add_enum "google.datastore.admin.v1.Index.AncestorMode" do
      value :ANCESTOR_MODE_UNSPECIFIED, 0
      value :NONE, 1
      value :ALL_ANCESTORS, 2
    end
    add_enum "google.datastore.admin.v1.Index.Direction" do
      value :DIRECTION_UNSPECIFIED, 0
      value :ASCENDING, 1
      value :DESCENDING, 2
    end
    add_enum "google.datastore.admin.v1.Index.State" do
      value :STATE_UNSPECIFIED, 0
      value :CREATING, 1
      value :READY, 2
      value :DELETING, 3
      value :ERROR, 4
    end
  end
end

module Google
  module Cloud
    module Datastore
      module Admin
        module V1
          Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.Index").msgclass
          Index::IndexedProperty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.Index.IndexedProperty").msgclass
          Index::AncestorMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.Index.AncestorMode").enummodule
          Index::Direction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.Index.Direction").enummodule
          Index::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.Index.State").enummodule
        end
      end
    end
  end
end