Package xyz.block.ftl.language.v1
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.
-
-
Field Summary
Fields Modifier and Type Field Description public final Channelchannelpublic final CallOptionscallOptions
-
Method Summary
Modifier and Type Method Description PingResponseping(PingRequest request)Ping service for readiness.GetDependenciesResponsegetDependencies(GetDependenciesRequest request)Extract dependencies for a module FTL will ensure that these dependencies are built before requesting a build for this module.BuildResponsebuild(BuildRequest request)Build the module and receive the resultGenerateStubsResponsegenerateStubs(GenerateStubsRequest request)Generate stubs for a module. Stubs allow modules to import other module's exported interface. If a language does not need this step, then it is not required to do anything in this call. This call is not tied to the module that this plugin is responsible for. A plugin of each language will be chosen to generate stubs for each module.SyncStubReferencesResponsesyncStubReferences(SyncStubReferencesRequest request)SyncStubReferences is called when module stubs have been updated. This allows the plugin to update references to external modules, regardless of whether they are dependencies. For example, go plugin adds references to all modules into the go.work file so that tools can automatically import the modules when users start reference them. It is optional to do anything with this call.-
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
-
-
Method Detail
-
ping
PingResponse ping(PingRequest request)
Ping service for readiness.
-
getDependencies
GetDependenciesResponse getDependencies(GetDependenciesRequest request)
Extract dependencies for a module FTL will ensure that these dependencies are built before requesting a build for this module.
-
build
BuildResponse build(BuildRequest request)
Build the module and receive the result
-
generateStubs
GenerateStubsResponse generateStubs(GenerateStubsRequest request)
Generate stubs for a module. Stubs allow modules to import other module's exported interface. If a language does not need this step, then it is not required to do anything in this call. This call is not tied to the module that this plugin is responsible for. A plugin of each language will be chosen to generate stubs for each module.
-
syncStubReferences
SyncStubReferencesResponse syncStubReferences(SyncStubReferencesRequest request)
SyncStubReferences is called when module stubs have been updated. This allows the plugin to update references to external modules, regardless of whether they are dependencies. For example, go plugin adds references to all modules into the go.work file so that tools can automatically import the modules when users start reference them. It is optional to do anything with this call.
-
-
-
-