# Generated by the protocol buffer compiler. DO NOT EDIT! # source: service_config.proto require 'google/protobuf/duration_pb' require 'google/protobuf/wrappers_pb' require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("service_config.proto", :syntax => :proto3) do add_message "gitaly.ServiceConfig" do repeated :load_balancing_config, :message, 1, "gitaly.LoadBalancingConfig" repeated :method_config, :message, 2, "gitaly.MethodConfig" end add_message "gitaly.LoadBalancingConfig" do oneof :policy do optional :pick_first, :message, 1, "gitaly.PickFirstConfig", json_name: "pick_first" optional :round_robin, :message, 2, "gitaly.RoundRobinConfig", json_name: "round_robin" end end add_message "gitaly.PickFirstConfig" do end add_message "gitaly.RoundRobinConfig" do end add_message "gitaly.MethodConfig" do repeated :name, :message, 1, "gitaly.MethodConfig.Name" optional :wait_for_ready, :message, 2, "google.protobuf.BoolValue" optional :timeout, :message, 3, "google.protobuf.Duration" optional :max_request_message_bytes, :message, 4, "google.protobuf.UInt32Value" optional :max_response_message_bytes, :message, 5, "google.protobuf.UInt32Value" optional :retry_policy, :message, 6, "gitaly.MethodConfig.RetryPolicy" end add_message "gitaly.MethodConfig.Name" do optional :service, :string, 1 optional :method, :string, 2 end add_message "gitaly.MethodConfig.RetryPolicy" do optional :max_attempts, :uint32, 1 optional :initial_backoff, :message, 2, "google.protobuf.Duration" optional :max_backoff, :message, 3, "google.protobuf.Duration" optional :backoff_multiplier, :float, 4 repeated :retryable_status_codes, :string, 5 end end end module Gitaly ServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServiceConfig").msgclass LoadBalancingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LoadBalancingConfig").msgclass PickFirstConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PickFirstConfig").msgclass RoundRobinConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RoundRobinConfig").msgclass MethodConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig").msgclass MethodConfig::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.Name").msgclass MethodConfig::RetryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MethodConfig.RetryPolicy").msgclass end