Package codegen

Class MapperGrpc.MapperStub

  • Enclosing class:
    MapperGrpc

    public static final class MapperGrpc.MapperStub
    extends io.grpc.stub.AbstractAsyncStub<MapperGrpc.MapperStub>
    A stub to allow clients to do asynchronous rpc calls to service Mapper.
     Mapper provides methods for retrieving mappings that describe how to map names in some source "provider" (e.g. a
     Terraform provider, if we are converting from Terraform) to names in appropriate Pulumi packages. So when converting
     a Terraform program containing code like `resource "aws_s3_bucket" "b" {}`, for instance, we need to know (among
     other things) that the `aws_s3_bucket` Terraform resource type corresponds to the Pulumi type `aws:s3/bucket:Bucket`,
     and thus lives in the `aws` package. This is the kind of information that a Mapper provides.
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

        io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected MapperGrpc.MapperStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      void getMapping​(MapperOuterClass.GetMappingRequest request, io.grpc.stub.StreamObserver<MapperOuterClass.GetMappingResponse> responseObserver)
      `GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g.
      • Methods inherited from class io.grpc.stub.AbstractAsyncStub

        newStub, newStub
      • Methods inherited from class io.grpc.stub.AbstractStub

        getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMapping

        public void getMapping​(MapperOuterClass.GetMappingRequest request,
                               io.grpc.stub.StreamObserver<MapperOuterClass.GetMappingResponse> responseObserver)
         `GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g. the
         name of a Terraform provider if converting from Terraform). Callers may pass "hints" that describe a Pulumi
         package that is expected to provide the mapping and satisfy the request, which implementations may use to
         optimise their efforts to return the best possible mapping. If no matching mapping exists, implementations should
         return an empty byte array result.