Package com.salesforce.eventbus.protobuf
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
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.static final class
A stub to allow clients to do synchronous rpc calls to service PubSub.static final class
A stub to allow clients to do ListenableFuture-style rpc calls to service PubSub.static class
Base class for the server implementation of the service PubSub.static final class
A stub to allow clients to do asynchronous rpc calls to service PubSub. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinition
bindService
(PubSubGrpc.AsyncService service) static io.grpc.MethodDescriptor<SchemaRequest,
SchemaInfo> static io.grpc.MethodDescriptor<TopicRequest,
TopicInfo> static io.grpc.MethodDescriptor<PublishRequest,
PublishResponse> static io.grpc.MethodDescriptor<PublishRequest,
PublishResponse> static io.grpc.ServiceDescriptor
static io.grpc.MethodDescriptor<FetchRequest,
FetchResponse> newBlockingStub
(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicestatic PubSubGrpc.PubSubFutureStub
newFutureStub
(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicestatic PubSubGrpc.PubSubStub
newStub
(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getSubscribeMethod
-
getGetSchemaMethod
-
getGetTopicMethod
-
getPublishMethod
-
getPublishStreamMethod
-
newStub
Creates a new async stub that supports all call types for the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
-
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-