# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

import tabletmanagerdata_pb2 as tabletmanagerdata__pb2


class TabletManagerStub(object):
  """TabletManager is a service definition for tabletmanagerdata.TabletManager.

  Various read-only methods

  """

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.Ping = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/Ping',
        request_serializer=tabletmanagerdata__pb2.PingRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.PingResponse.FromString,
        )
    self.Sleep = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/Sleep',
        request_serializer=tabletmanagerdata__pb2.SleepRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.SleepResponse.FromString,
        )
    self.ExecuteHook = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ExecuteHook',
        request_serializer=tabletmanagerdata__pb2.ExecuteHookRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ExecuteHookResponse.FromString,
        )
    self.GetSchema = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/GetSchema',
        request_serializer=tabletmanagerdata__pb2.GetSchemaRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.GetSchemaResponse.FromString,
        )
    self.GetPermissions = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/GetPermissions',
        request_serializer=tabletmanagerdata__pb2.GetPermissionsRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.GetPermissionsResponse.FromString,
        )
    self.SetReadOnly = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/SetReadOnly',
        request_serializer=tabletmanagerdata__pb2.SetReadOnlyRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.SetReadOnlyResponse.FromString,
        )
    self.SetReadWrite = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/SetReadWrite',
        request_serializer=tabletmanagerdata__pb2.SetReadWriteRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.SetReadWriteResponse.FromString,
        )
    self.ChangeType = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ChangeType',
        request_serializer=tabletmanagerdata__pb2.ChangeTypeRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ChangeTypeResponse.FromString,
        )
    self.RefreshState = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/RefreshState',
        request_serializer=tabletmanagerdata__pb2.RefreshStateRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.RefreshStateResponse.FromString,
        )
    self.RunHealthCheck = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/RunHealthCheck',
        request_serializer=tabletmanagerdata__pb2.RunHealthCheckRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.RunHealthCheckResponse.FromString,
        )
    self.IgnoreHealthError = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/IgnoreHealthError',
        request_serializer=tabletmanagerdata__pb2.IgnoreHealthErrorRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.IgnoreHealthErrorResponse.FromString,
        )
    self.ReloadSchema = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ReloadSchema',
        request_serializer=tabletmanagerdata__pb2.ReloadSchemaRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ReloadSchemaResponse.FromString,
        )
    self.PreflightSchema = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/PreflightSchema',
        request_serializer=tabletmanagerdata__pb2.PreflightSchemaRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.PreflightSchemaResponse.FromString,
        )
    self.ApplySchema = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ApplySchema',
        request_serializer=tabletmanagerdata__pb2.ApplySchemaRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ApplySchemaResponse.FromString,
        )
    self.ExecuteFetchAsDba = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ExecuteFetchAsDba',
        request_serializer=tabletmanagerdata__pb2.ExecuteFetchAsDbaRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ExecuteFetchAsDbaResponse.FromString,
        )
    self.ExecuteFetchAsAllPrivs = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ExecuteFetchAsAllPrivs',
        request_serializer=tabletmanagerdata__pb2.ExecuteFetchAsAllPrivsRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ExecuteFetchAsAllPrivsResponse.FromString,
        )
    self.ExecuteFetchAsApp = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/ExecuteFetchAsApp',
        request_serializer=tabletmanagerdata__pb2.ExecuteFetchAsAppRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.ExecuteFetchAsAppResponse.FromString,
        )
    self.SlaveStatus = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/SlaveStatus',
        request_serializer=tabletmanagerdata__pb2.SlaveStatusRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.SlaveStatusResponse.FromString,
        )
    self.MasterPosition = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/MasterPosition',
        request_serializer=tabletmanagerdata__pb2.MasterPositionRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.MasterPositionResponse.FromString,
        )
    self.StopSlave = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/StopSlave',
        request_serializer=tabletmanagerdata__pb2.StopSlaveRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.StopSlaveResponse.FromString,
        )
    self.StopSlaveMinimum = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/StopSlaveMinimum',
        request_serializer=tabletmanagerdata__pb2.StopSlaveMinimumRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.StopSlaveMinimumResponse.FromString,
        )
    self.StartSlave = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/StartSlave',
        request_serializer=tabletmanagerdata__pb2.StartSlaveRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.StartSlaveResponse.FromString,
        )
    self.TabletExternallyReparented = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/TabletExternallyReparented',
        request_serializer=tabletmanagerdata__pb2.TabletExternallyReparentedRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.TabletExternallyReparentedResponse.FromString,
        )
    self.TabletExternallyElected = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/TabletExternallyElected',
        request_serializer=tabletmanagerdata__pb2.TabletExternallyElectedRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.TabletExternallyElectedResponse.FromString,
        )
    self.GetSlaves = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/GetSlaves',
        request_serializer=tabletmanagerdata__pb2.GetSlavesRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.GetSlavesResponse.FromString,
        )
    self.WaitBlpPosition = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/WaitBlpPosition',
        request_serializer=tabletmanagerdata__pb2.WaitBlpPositionRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.WaitBlpPositionResponse.FromString,
        )
    self.StopBlp = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/StopBlp',
        request_serializer=tabletmanagerdata__pb2.StopBlpRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.StopBlpResponse.FromString,
        )
    self.StartBlp = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/StartBlp',
        request_serializer=tabletmanagerdata__pb2.StartBlpRequest.SerializeToString,
        response_deserializer=tabletmanagerdata__pb2.StartBlpResponse.FromString,
        )
    self.RunBlpUntil = channel.unary_unary(
        '/tabletmanagerservice.TabletManager/RunBlpUntil',