original_docstring: r"""Return a callable for the cancel training pipeline method over gRPC.
  
          Cancels a TrainingPipeline. Starts asynchronous cancellation on
          the TrainingPipeline. The server makes a best effort to cancel
          the pipeline, but success is not guaranteed. Clients can use
          ``PipelineService.GetTrainingPipeline``
          or other methods to check whether the cancellation succeeded or
          whether the pipeline completed despite cancellation. On
          successful cancellation, the TrainingPipeline is not deleted;
          instead it becomes a pipeline with a
          ``TrainingPipeline.error``
          value with a ``google.rpc.Status.code`` of
          1, corresponding to ``Code.CANCELLED``, and
          ``TrainingPipeline.state``
          is set to ``CANCELLED``.
  
          Returns:
              Callable[[~.CancelTrainingPipelineRequest],
                      ~.Empty]:
                  A function that, when called, will call the underlying RPC
                  on the server.
          
docstring: r"""Return a callable for the cancel training pipeline method over gRPC.
docstring_tokens: r " " " Return a callable for the cancel training pipeline method over gRPC .
code: def cancel_training_pipeline(
          self,
      ) -> Callable[[pipeline_service.CancelTrainingPipelineRequest], empty.Empty]:
          r"""Return a callable for the cancel training pipeline method over gRPC.
  
          Cancels a TrainingPipeline. Starts asynchronous cancellation on
          the TrainingPipeline. The server makes a best effort to cancel
          the pipeline, but success is not guaranteed. Clients can use
          ``PipelineService.GetTrainingPipeline``
          or other methods to check whether the cancellation succeeded or
          whether the pipeline completed despite cancellation. On
          successful cancellation, the TrainingPipeline is not deleted;
          instead it becomes a pipeline with a
          ``TrainingPipeline.error``
          value with a ``google.rpc.Status.code`` of
          1, corresponding to ``Code.CANCELLED``, and
          ``TrainingPipeline.state``
          is set to ``CANCELLED``.
  
          Returns:
              Callable[[~.CancelTrainingPipelineRequest],
                      ~.Empty]:
                  A function that, when called, will call the underlying RPC
                  on the server.
          """
          # Generate a "stub function" on-the-fly which will actually make
          # the request.
          # gRPC handles serialization and deserialization, so we just need
          # to pass in the functions for each.
          if "cancel_training_pipeline" not in self._stubs:
              self._stubs["cancel_training_pipeline"] = self.grpc_channel.unary_unary(
                  "/google.cloud.aiplatform.v1beta1.PipelineService/CancelTrainingPipeline",
                  request_serializer=pipeline_service.CancelTrainingPipelineRequest.serialize,
                  response_deserializer=empty.Empty.FromString,
              )
          return self._stubs["cancel_training_pipeline"]
code_tokens: def cancel_training_pipeline ( self , ) -> Callable [ [ pipeline_service . CancelTrainingPipelineRequest ] , empty . Empty ] : if "cancel_training_pipeline" not in self . _stubs : self . _stubs [ "cancel_training_pipeline" ] = self . grpc_channel . unary_unary ( "/google.cloud.aiplatform.v1beta1.PipelineService/CancelTrainingPipeline" , request_serializer = pipeline_service . CancelTrainingPipelineRequest . serialize , response_deserializer = empty . Empty . FromString , ) return self . _stubs [ "cancel_training_pipeline" ]
short_docstring: r"""Return a callable for the cancel training pipeline method over gRPC.
short_docstring_tokens: r " " " Return a callable for the cancel training pipeline method over gRPC .
comment: r"""Return a callable for the cancel training pipeline method over gRPC.
  
          Cancels a TrainingPipeline. Starts asynchronous cancellation on
          the TrainingPipeline. The server makes a best effort to cancel
          the pipeline, but success is not guaranteed. Clients can use
          ``PipelineService.GetTrainingPipeline``
          or other methods to check whether the cancellation succeeded or
          whether the pipeline completed despite cancellation. On
          successful cancellation, the TrainingPipeline is not deleted;
          instead it becomes a pipeline with a
          ``TrainingPipeline.error``
          value with a ``google.rpc.Status.code`` of
          1, corresponding to ``Code.CANCELLED``, and
          ``TrainingPipeline.state``
          is set to ``CANCELLED``.
  
          Returns:
              Callable[[~.CancelTrainingPipelineRequest],
                      ~.Empty]:
                  A function that, when called, will call the underlying RPC
                  on the server.
          """$SEP$# Generate a "stub function" on-the-fly which will actually make$SEP$# the request.$SEP$# gRPC handles serialization and deserialization, so we just need$SEP$# to pass in the functions for each.