# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: cluster.proto require 'google/protobuf' descriptor_data = "\n\rcluster.proto\x12\x06gitaly\"\xa9\x01\n\x07\x43luster\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\x17\n\x0fnext_storage_id\x18\x02 \x01(\x04\x12/\n\x08storages\x18\x03 \x03(\x0b\x32\x1d.gitaly.Cluster.StoragesEntry\x1a@\n\rStoragesEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.gitaly.Storage:\x02\x38\x01\"p\n\x07Storage\x12\x12\n\nstorage_id\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12replication_factor\x18\x03 \x01(\x04\x12\x0f\n\x07node_id\x18\x04 \x01(\x04\x12\x16\n\x0ereplica_groups\x18\x05 \x03(\x04\"O\n\x0bLeaderState\x12\x10\n\x08group_id\x18\x01 \x01(\x04\x12\x11\n\tleader_id\x18\x02 \x01(\x04\x12\x0c\n\x04term\x18\x03 \x01(\x04\x12\r\n\x05valid\x18\x04 \x01(\x08\"-\n\x17\x42ootstrapClusterRequest\x12\x12\n\ncluster_id\x18\x01 \x01(\t\"<\n\x18\x42ootstrapClusterResponse\x12 \n\x07\x63luster\x18\x01 \x01(\x0b\x32\x0f.gitaly.Cluster\"\x13\n\x11GetClusterRequest\"6\n\x12GetClusterResponse\x12 \n\x07\x63luster\x18\x01 \x01(\x0b\x32\x0f.gitaly.Cluster\"[\n\x16RegisterStorageRequest\x12\x14\n\x0cstorage_name\x18\x01 \x01(\t\x12\x0f\n\x07node_id\x18\x02 \x01(\x04\x12\x1a\n\x12replication_factor\x18\x03 \x01(\x04\";\n\x17RegisterStorageResponse\x12 \n\x07storage\x18\x01 \x01(\x0b\x32\x0f.gitaly.Storage\"W\n\x14UpdateStorageRequest\x12\x12\n\nstorage_id\x18\x01 \x01(\x04\x12\x0f\n\x07node_id\x18\x02 \x01(\x04\x12\x1a\n\x12replication_factor\x18\x03 \x01(\x04\"9\n\x15UpdateStorageResponse\x12 \n\x07storage\x18\x01 \x01(\x0b\x32\x0f.gitaly.StorageB4Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError => e # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Gitaly Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Cluster").msgclass Storage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Storage").msgclass LeaderState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LeaderState").msgclass BootstrapClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BootstrapClusterRequest").msgclass BootstrapClusterResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BootstrapClusterResponse").msgclass GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetClusterRequest").msgclass GetClusterResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetClusterResponse").msgclass RegisterStorageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RegisterStorageRequest").msgclass RegisterStorageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RegisterStorageResponse").msgclass UpdateStorageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateStorageRequest").msgclass UpdateStorageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateStorageResponse").msgclass end