Class LanguageServiceGrpc.LanguageServiceBlockingStub

  • All Implemented Interfaces:

    
    public final class LanguageServiceGrpc.LanguageServiceBlockingStub
    extends AbstractBlockingStub<S>
                        

    A stub to allow clients to do synchronous rpc calls to service LanguageService.

    LanguageService allows a plugin to add support for a programming language.
    
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final Channel channel
      public final CallOptions callOptions
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      PingResponse ping(PingRequest request)
      Ping service for readiness.
      
      GetCreateModuleFlagsResponse getCreateModuleFlags(GetCreateModuleFlagsRequest request)
      Get language specific flags that can be used to create a new module.
      
      CreateModuleResponse createModule(CreateModuleRequest request)
      Generates files for a new module with the requested name
      
      ModuleConfigDefaultsResponse moduleConfigDefaults(ModuleConfigDefaultsRequest request)
      Provide default values for ModuleConfig for values that are not configured in the ftl.toml file.
      
      DependenciesResponse getDependencies(DependenciesRequest request)
      Extract dependencies for a module
      FTL will ensure that these dependencies are built before requesting a build for this module.
      
      Iterator<BuildEvent> build(BuildRequest request)
      Build the module and stream back build events.
      A BuildSuccess or BuildFailure event must be streamed back with the request's context id to indicate the
      end of the build.
      The request can include the option to "rebuild_automatically". In this case the plugin should watch for
      file changes and automatically rebuild as needed as long as this build request is alive. Each automactic
      rebuild must include the latest build context id provided by the request or subsequent BuildContextUpdated
      calls.
      
      BuildContextUpdatedResponse buildContextUpdated(BuildContextUpdatedRequest request)
      While a Build call with "rebuild_automatically" set is active, BuildContextUpdated is called whenever the
      build context is updated.
      Each time this call is made, the Build call must send back a corresponding BuildSuccess or BuildFailure
      event with the updated build context id with "is_automatic_rebuild" as false.
      
      • Methods inherited from class io.grpc.stub.AbstractStub

        getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
      • Methods inherited from class io.grpc.stub.AbstractBlockingStub

        newStub
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait