Class PubSubGrpc

java.lang.Object
com.salesforce.eventbus.protobuf.PubSubGrpc

@Generated(value="by gRPC proto compiler (version 1.57.1)", comments="Source: pubsub_api.proto") public final class PubSubGrpc extends Object
 The Pub/Sub API provides a single interface for publishing and subscribing to platform events, including real-time
 event monitoring events, and change data capture events. The Pub/Sub API is a gRPC API that is based on HTTP/2.
 A session token is needed to authenticate. Any of the Salesforce supported
 OAuth flows can be used to obtain a session token:
 https://help.salesforce.com/articleView?id=sf.remoteaccess_oauth_flows.htm&type=5
 For each RPC, a client needs to pass authentication information
 as metadata headers (https://www.grpc.io/docs/guides/concepts/#metadata) with their method call.
 For Salesforce session token authentication, use:
   accesstoken : access token
   instanceurl : Salesforce instance URL
   tenantid : tenant/org id of the client
 StatusException is thrown in case of response failure for any request.
 
  • Field Details

  • Method Details

    • getSubscribeMethod

      public static io.grpc.MethodDescriptor<FetchRequest,FetchResponse> getSubscribeMethod()
    • getGetSchemaMethod

      public static io.grpc.MethodDescriptor<SchemaRequest,SchemaInfo> getGetSchemaMethod()
    • getGetTopicMethod

      public static io.grpc.MethodDescriptor<TopicRequest,TopicInfo> getGetTopicMethod()
    • getPublishMethod

      public static io.grpc.MethodDescriptor<PublishRequest,PublishResponse> getPublishMethod()
    • getPublishStreamMethod

      public static io.grpc.MethodDescriptor<PublishRequest,PublishResponse> getPublishStreamMethod()
    • newStub

      public static PubSubGrpc.PubSubStub newStub(io.grpc.Channel channel)
      Creates a new async stub that supports all call types for the service
    • newBlockingStub

      public static PubSubGrpc.PubSubBlockingStub newBlockingStub(io.grpc.Channel channel)
      Creates a new blocking-style stub that supports unary and streaming output calls on the service
    • newFutureStub

      public static PubSubGrpc.PubSubFutureStub newFutureStub(io.grpc.Channel channel)
      Creates a new ListenableFuture-style stub that supports unary calls on the service
    • bindService

      public static final io.grpc.ServerServiceDefinition bindService(PubSubGrpc.AsyncService service)
    • getServiceDescriptor

      public static io.grpc.ServiceDescriptor getServiceDescriptor()