Package com.google.cloud.pubsublite.v1.stub (1.9.3)

Classes

AdminServiceStub

Base stub class for the AdminService service API.

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

AdminServiceStubSettings

Settings class to configure an instance of AdminServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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
 AdminServiceStubSettings.Builder adminServiceSettingsBuilder =
     AdminServiceStubSettings.newBuilder();
 adminServiceSettingsBuilder
     .createTopicSettings()
     .setRetrySettings(
         adminServiceSettingsBuilder
             .createTopicSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AdminServiceStubSettings adminServiceSettings = adminServiceSettingsBuilder.build();
 

AdminServiceStubSettings.Builder

Builder for AdminServiceStubSettings.

CursorServiceStub

Base stub class for the CursorService service API.

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

CursorServiceStubSettings

Settings class to configure an instance of CursorServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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 commitCursor 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
 CursorServiceStubSettings.Builder cursorServiceSettingsBuilder =
     CursorServiceStubSettings.newBuilder();
 cursorServiceSettingsBuilder
     .commitCursorSettings()
     .setRetrySettings(
         cursorServiceSettingsBuilder
             .commitCursorSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 CursorServiceStubSettings cursorServiceSettings = cursorServiceSettingsBuilder.build();
 

CursorServiceStubSettings.Builder

Builder for CursorServiceStubSettings.

GrpcAdminServiceCallableFactory

gRPC callable factory implementation for the AdminService service API.

This class is for advanced usage.

GrpcAdminServiceStub

gRPC stub implementation for the AdminService service API.

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

GrpcCursorServiceCallableFactory

gRPC callable factory implementation for the CursorService service API.

This class is for advanced usage.

GrpcCursorServiceStub

gRPC stub implementation for the CursorService service API.

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

GrpcPartitionAssignmentServiceCallableFactory

gRPC callable factory implementation for the PartitionAssignmentService service API.

This class is for advanced usage.

GrpcPartitionAssignmentServiceStub

gRPC stub implementation for the PartitionAssignmentService service API.

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

GrpcPublisherServiceCallableFactory

gRPC callable factory implementation for the PublisherService service API.

This class is for advanced usage.

GrpcPublisherServiceStub

gRPC stub implementation for the PublisherService service API.

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

GrpcSubscriberServiceCallableFactory

gRPC callable factory implementation for the SubscriberService service API.

This class is for advanced usage.

GrpcSubscriberServiceStub

gRPC stub implementation for the SubscriberService service API.

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

GrpcTopicStatsServiceCallableFactory

gRPC callable factory implementation for the TopicStatsService service API.

This class is for advanced usage.

GrpcTopicStatsServiceStub

gRPC stub implementation for the TopicStatsService service API.

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

PartitionAssignmentServiceStub

Base stub class for the PartitionAssignmentService service API.

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

PartitionAssignmentServiceStubSettings

Settings class to configure an instance of PartitionAssignmentServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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 assignPartitions 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
 PartitionAssignmentServiceStubSettings.Builder partitionAssignmentServiceSettingsBuilder =
     PartitionAssignmentServiceStubSettings.newBuilder();
 partitionAssignmentServiceSettingsBuilder
     .assignPartitionsSettings()
     .setRetrySettings(
         partitionAssignmentServiceSettingsBuilder
             .assignPartitionsSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 PartitionAssignmentServiceStubSettings partitionAssignmentServiceSettings =
     partitionAssignmentServiceSettingsBuilder.build();
 

PartitionAssignmentServiceStubSettings.Builder

Builder for PartitionAssignmentServiceStubSettings.

PublisherServiceStub

Base stub class for the PublisherService service API.

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

PublisherServiceStubSettings

Settings class to configure an instance of PublisherServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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 publish 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
 PublisherServiceStubSettings.Builder publisherServiceSettingsBuilder =
     PublisherServiceStubSettings.newBuilder();
 publisherServiceSettingsBuilder
     .publishSettings()
     .setRetrySettings(
         publisherServiceSettingsBuilder
             .publishSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 PublisherServiceStubSettings publisherServiceSettings = publisherServiceSettingsBuilder.build();
 

PublisherServiceStubSettings.Builder

Builder for PublisherServiceStubSettings.

SubscriberServiceStub

Base stub class for the SubscriberService service API.

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

SubscriberServiceStubSettings

Settings class to configure an instance of SubscriberServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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 subscribe 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
 SubscriberServiceStubSettings.Builder subscriberServiceSettingsBuilder =
     SubscriberServiceStubSettings.newBuilder();
 subscriberServiceSettingsBuilder
     .subscribeSettings()
     .setRetrySettings(
         subscriberServiceSettingsBuilder
             .subscribeSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 SubscriberServiceStubSettings subscriberServiceSettings =
     subscriberServiceSettingsBuilder.build();
 

SubscriberServiceStubSettings.Builder

Builder for SubscriberServiceStubSettings.

TopicStatsServiceStub

Base stub class for the TopicStatsService service API.

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

TopicStatsServiceStubSettings

Settings class to configure an instance of TopicStatsServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (pubsublite.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 computeMessageStats 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
 TopicStatsServiceStubSettings.Builder topicStatsServiceSettingsBuilder =
     TopicStatsServiceStubSettings.newBuilder();
 topicStatsServiceSettingsBuilder
     .computeMessageStatsSettings()
     .setRetrySettings(
         topicStatsServiceSettingsBuilder
             .computeMessageStatsSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 TopicStatsServiceStubSettings topicStatsServiceSettings =
     topicStatsServiceSettingsBuilder.build();
 

TopicStatsServiceStubSettings.Builder

Builder for TopicStatsServiceStubSettings.