# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: twirp/code.justin.tv.sse.sandstorm/service.proto

require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "code.justin.tv.sse.sandstorm.CreateSecretReq" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :plaintext, :bytes, 4
  end
  add_message "code.justin.tv.sse.sandstorm.CreateSecretRes" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :updated_at, :int64, 4
  end
  add_message "code.justin.tv.sse.sandstorm.UpdateSecretReq" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :plaintext, :bytes, 4
  end
  add_message "code.justin.tv.sse.sandstorm.UpdateSecretRes" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :updated_at, :int64, 4
  end
  add_message "code.justin.tv.sse.sandstorm.DescribeSecretReq" do
    optional :name, :string, 1
  end
  add_message "code.justin.tv.sse.sandstorm.DescribeSecretRes" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :updated_at, :int64, 4
  end
  add_message "code.justin.tv.sse.sandstorm.GetDecryptedSecretReq" do
    optional :name, :string, 1
  end
  add_message "code.justin.tv.sse.sandstorm.GetDecryptedSecretRes" do
    optional :name, :string, 1
    optional :secret_class, :enum, 2, "code.justin.tv.sse.sandstorm.SecretClass"
    optional :do_not_broadcast, :enum, 3, "code.justin.tv.sse.sandstorm.BroadcastSetting"
    optional :updated_at, :int64, 4
    optional :plaintext, :bytes, 5
  end
  add_message "code.justin.tv.sse.sandstorm.SecretUpdateCondition" do
    optional :name, :string, 1
  end
  add_message "code.justin.tv.sse.sandstorm.WaitForSecretUpdatesReq" do
    repeated :conditions, :message, 1, "code.justin.tv.sse.sandstorm.SecretUpdateCondition"
    optional :timeout_s, :int32, 2
    optional :splay_s, :int32, 3
    optional :dwell_s, :int32, 4
  end
  add_message "code.justin.tv.sse.sandstorm.SecretUpdateEvent" do
    optional :name, :string, 1
    optional :updated_at, :int64, 4
  end
  add_message "code.justin.tv.sse.sandstorm.WaitForSecretUpdatesRes" do
    repeated :secret_updates, :message, 1, "code.justin.tv.sse.sandstorm.SecretUpdateEvent"
  end
  add_enum "code.justin.tv.sse.sandstorm.SecretClass" do
    value :SC_NOT_SET, 0
    value :PUBLIC, 1
    value :INTERNAL, 2
    value :RESTRICTED, 3
    value :CUSTOMER, 4
  end
  add_enum "code.justin.tv.sse.sandstorm.BroadcastSetting" do
    value :DNB_NOT_SET, 0
    value :BROADCAST, 1
    value :DO_NOT_BROADCAST, 2
  end
end

module Code
  module Justin
    module Tv
      module Sse
        module Sandstorm
          CreateSecretReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.CreateSecretReq").msgclass
          CreateSecretRes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.CreateSecretRes").msgclass
          UpdateSecretReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.UpdateSecretReq").msgclass
          UpdateSecretRes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.UpdateSecretRes").msgclass
          DescribeSecretReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.DescribeSecretReq").msgclass
          DescribeSecretRes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.DescribeSecretRes").msgclass
          GetDecryptedSecretReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.GetDecryptedSecretReq").msgclass
          GetDecryptedSecretRes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.GetDecryptedSecretRes").msgclass
          SecretUpdateCondition = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.SecretUpdateCondition").msgclass
          WaitForSecretUpdatesReq = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.WaitForSecretUpdatesReq").msgclass
          SecretUpdateEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.SecretUpdateEvent").msgclass
          WaitForSecretUpdatesRes = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.WaitForSecretUpdatesRes").msgclass
          SecretClass = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.SecretClass").enummodule
          BroadcastSetting = Google::Protobuf::DescriptorPool.generated_pool.lookup("code.justin.tv.sse.sandstorm.BroadcastSetting").enummodule
        end
      end
    end
  end
end
