class_docstr: Missing associated documentation comment in .proto file.
class_docstr_tok: ["Missing","associated","documentation","comment","in",".proto","file","."]
docstr: Constructor.
  
  Args:
      channel: A grpc.Channel.
docstr_tok: ["Constructor",".","Args",":","channel",":","A","grpc.Channel","."]
code: def __init__(self, channel):
      """Constructor.
  
      Args:
          channel: A grpc.Channel.
      """
      self.Terminate = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/Terminate",
          request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      )
      self.CreateSession = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/CreateSession",
          request_serializer=legacymodelresponse__pb2.SessionID.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      )
      self.DestroySession = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/DestroySession",
          request_serializer=legacymodelresponse__pb2.SessionID.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      )
      self.GeneratorReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/GeneratorReply",
          request_serializer=legacymodelresponse__pb2.MultiStringRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.MultiStringReply.FromString,
      )
      self.ClassificationReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/ClassificationReply",
          request_serializer=legacymodelresponse__pb2.SingleStringRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.SingleStringReply.FromString,
      )
      self.QuestionAndAnswerReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/QuestionAndAnswerReply",
          request_serializer=legacymodelresponse__pb2.QARequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.SingleStringReply.FromString,
      )
      self.FillMaskReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/FillMaskReply",
          request_serializer=legacymodelresponse__pb2.SingleStringRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.SingleStringReply.FromString,
      )
      self.TokenClassificationReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/TokenClassificationReply",
          request_serializer=legacymodelresponse__pb2.SingleStringRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.SingleStringReply.FromString,
      )
      self.ConversationalReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/ConversationalReply",
          request_serializer=legacymodelresponse__pb2.ConversationRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.ConversationReply.FromString,
      )
      self.Txt2ImgReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/Txt2ImgReply",
          request_serializer=legacymodelresponse__pb2.MultiStringRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.ImageReply.FromString,
      )
      self.ZeroShotImgClassificationReply = channel.unary_unary(
          "/legacymodelresponse.ModelResponse/ZeroShotImgClassificationReply",
          request_serializer=legacymodelresponse__pb2.ZeroShotImgClassificationRequest.SerializeToString,
          response_deserializer=legacymodelresponse__pb2.SingleStringReply.FromString,
      )
  
imports: import grpc
  from google.protobuf import empty_pb2
  import mii.legacy.grpc_related.proto.legacymodelresponse_pb2
label_desc: Use image node_id 1 to create a new ModelResponseStub object from inherited base classes: object with example: obj = ModelResponseStub(channel)