# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: endpoint.proto
# plugin: python-betterproto
# This file has been @generated

from dataclasses import dataclass
from typing import (
    TYPE_CHECKING,
    Dict,
    Optional,
)

import betterproto
import grpc
from betterproto.grpcstub.grpcio_client import SyncServiceStub
from betterproto.grpcstub.grpclib_server import ServiceBase


if TYPE_CHECKING:
    import grpclib.server
    from betterproto.grpcstub.grpclib_client import MetadataLike
    from grpclib.metadata import Deadline


@dataclass(eq=False, repr=False)
class StartEndpointServeRequest(betterproto.Message):
    stub_id: str = betterproto.string_field(1)
    timeout: int = betterproto.int32_field(2)


@dataclass(eq=False, repr=False)
class StartEndpointServeResponse(betterproto.Message):
    ok: bool = betterproto.bool_field(1)
    container_id: str = betterproto.string_field(2)
    error_msg: str = betterproto.string_field(3)


class EndpointServiceStub(SyncServiceStub):
    def start_endpoint_serve(
        self, start_endpoint_serve_request: "StartEndpointServeRequest"
    ) -> "StartEndpointServeResponse":
        return self._unary_unary(
            "/endpoint.EndpointService/StartEndpointServe",
            StartEndpointServeRequest,
            StartEndpointServeResponse,
        )(start_endpoint_serve_request)
