Package com.google.cloud.pubsub.v1.stub (1.117.0)

Classes

GrpcPublisherCallableFactory

gRPC callable factory implementation for the Publisher service API.

This class is for advanced usage.

GrpcPublisherStub

gRPC stub implementation for the Publisher service API.

This class is for advanced usage and reflects the underlying API directly.

GrpcSchemaServiceCallableFactory

gRPC callable factory implementation for the SchemaService service API.

This class is for advanced usage.

GrpcSchemaServiceStub

gRPC stub implementation for the SchemaService service API.

This class is for advanced usage and reflects the underlying API directly.

GrpcSubscriberCallableFactory

gRPC callable factory implementation for the Subscriber service API.

This class is for advanced usage.

GrpcSubscriberStub

gRPC stub implementation for the Subscriber service API.

This class is for advanced usage and reflects the underlying API directly.

PublisherStub

Base stub class for the Publisher service API.

This class is for advanced usage and reflects the underlying API directly.

PublisherStubSettings

Settings class to configure an instance of PublisherStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsub.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of createTopic to 30 seconds:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
 topicAdminSettingsBuilder
     .createTopicSettings()
     .setRetrySettings(
         topicAdminSettingsBuilder
             .createTopicSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
 

PublisherStubSettings.Builder

Builder for PublisherStubSettings.

SchemaServiceStub

Base stub class for the SchemaService service API.

This class is for advanced usage and reflects the underlying API directly.

SchemaServiceStubSettings

Settings class to configure an instance of SchemaServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsub.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of createSchema to 30 seconds:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
     SchemaServiceStubSettings.newBuilder();
 schemaServiceSettingsBuilder
     .createSchemaSettings()
     .setRetrySettings(
         schemaServiceSettingsBuilder
             .createSchemaSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
 

SchemaServiceStubSettings.Builder

Builder for SchemaServiceStubSettings.

SubscriberStub

Base stub class for the Subscriber service API.

This class is for advanced usage and reflects the underlying API directly.

SubscriberStubSettings

Settings class to configure an instance of SubscriberStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsub.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of createSubscription to 30 seconds:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
     SubscriberStubSettings.newBuilder();
 subscriptionAdminSettingsBuilder
     .createSubscriptionSettings()
     .setRetrySettings(
         subscriptionAdminSettingsBuilder
             .createSubscriptionSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
 

SubscriberStubSettings.Builder

Builder for SubscriberStubSettings.