"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""
import builtins
import cosmos.upgrade.v1beta1.upgrade_pb2
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...

# QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
# method.
class QueryCurrentPlanRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    def __init__(self,
        ) -> None: ...
global___QueryCurrentPlanRequest = QueryCurrentPlanRequest

# QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
# method.
class QueryCurrentPlanResponse(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    PLAN_FIELD_NUMBER: builtins.int
    # plan is the current upgrade plan.
    @property
    def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ...
    def __init__(self,
        *,
        plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ...,
        ) -> None: ...
    def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> None: ...
global___QueryCurrentPlanResponse = QueryCurrentPlanResponse

# QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
# method.
class QueryAppliedPlanRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    NAME_FIELD_NUMBER: builtins.int
    # name is the name of the applied plan to query for.
    name: typing.Text = ...
    def __init__(self,
        *,
        name : typing.Text = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ...
global___QueryAppliedPlanRequest = QueryAppliedPlanRequest

# QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
# method.
class QueryAppliedPlanResponse(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    HEIGHT_FIELD_NUMBER: builtins.int
    # height is the block height at which the plan was applied.
    height: builtins.int = ...
    def __init__(self,
        *,
        height : builtins.int = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ...
global___QueryAppliedPlanResponse = QueryAppliedPlanResponse

# QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
# RPC method.
class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    LAST_HEIGHT_FIELD_NUMBER: builtins.int
    # last height of the current chain must be sent in request
    # as this is the height under which next consensus state is stored
    last_height: builtins.int = ...
    def __init__(self,
        *,
        last_height : builtins.int = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"last_height",b"last_height"]) -> None: ...
global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest

# QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
# RPC method.
class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int
    upgraded_consensus_state: builtins.bytes = ...
    def __init__(self,
        *,
        upgraded_consensus_state : builtins.bytes = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ...
global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse

# QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
# RPC method.
class QueryModuleVersionsRequest(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    MODULE_NAME_FIELD_NUMBER: builtins.int
    # module_name is a field to query a specific module
    # consensus version from state. Leaving this empty will
    # fetch the full list of module versions from state
    module_name: typing.Text = ...
    def __init__(self,
        *,
        module_name : typing.Text = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"module_name",b"module_name"]) -> None: ...
global___QueryModuleVersionsRequest = QueryModuleVersionsRequest

# QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
# RPC method.
class QueryModuleVersionsResponse(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
    MODULE_VERSIONS_FIELD_NUMBER: builtins.int
    # module_versions is a list of module names with their consensus versions.
    @property
    def module_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]: ...
    def __init__(self,
        *,
        module_versions : typing.Optional[typing.Iterable[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]] = ...,
        ) -> None: ...
    def ClearField(self, field_name: typing_extensions.Literal[u"module_versions",b"module_versions"]) -> None: ...
global___QueryModuleVersionsResponse = QueryModuleVersionsResponse
