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

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.

HttpJsonPublisherCallableFactory

REST callable factory implementation for the Publisher service API.

This class is for advanced usage.

HttpJsonPublisherStub

REST stub implementation for the Publisher service API.

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

HttpJsonSchemaServiceCallableFactory

REST callable factory implementation for the SchemaService service API.

This class is for advanced usage.

HttpJsonSchemaServiceStub

REST stub implementation for the SchemaService service API.

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

HttpJsonSubscriberCallableFactory

REST callable factory implementation for the Subscriber service API.

This class is for advanced usage.

HttpJsonSubscriberStub

REST 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 and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 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 and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 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 and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 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.