Uses of Class
com.google.cloud.pubsub.v1.Publisher.Builder
Packages that use Publisher.Builder
-
Uses of Publisher.Builder in com.google.cloud.pubsub.v1
Methods in com.google.cloud.pubsub.v1 that return Publisher.BuilderModifier and TypeMethodDescriptionstatic Publisher.BuilderPublisher.newBuilder(TopicName topicName) Constructs a newPublisher.Builderusing the given topic.static Publisher.BuilderPublisher.newBuilder(String topicName) Constructs a newPublisher.Builderusing the given topic.Publisher.Builder.setBatchingSettings(com.google.api.gax.batching.BatchingSettings batchingSettings) Publisher.Builder.setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider) ChannelProviderto use to create Channels, which must point at Cloud Pub/Sub endpoint.Publisher.Builder.setCompressionBytesThreshold(long compressionBytesThreshold) Sets the threshold (in bytes) above which messages are compressed for transport.Publisher.Builder.setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider) CredentialsProviderto use to create Credentials to authenticate calls.Publisher.Builder.setEnableCompression(boolean enableCompression) Gives the ability to enable transport compression.Publisher.Builder.setEnableMessageOrdering(boolean enableMessageOrdering) Sets the message ordering option.Publisher.Builder.setEndpoint(String endpoint) Gives the ability to override the gRPC endpoint.Publisher.Builder.setExecutorProvider(com.google.api.gax.core.ExecutorProvider executorProvider) Gives the ability to set a custom executor to be used by the library.Publisher.Builder.setHeaderProvider(com.google.api.gax.rpc.HeaderProvider headerProvider) Sets the static header provider.Publisher.Builder.setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings) Configures the Publisher's retry parameters.Publisher.Builder.setTransform(com.google.api.core.ApiFunction<PubsubMessage, PubsubMessage> messageTransform) Gives the ability to set anApiFunctionthat will transform thePubsubMessagebefore it is sent