Class PublisherStubSettings.Builder

java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<PublisherStubSettings,PublisherStubSettings.Builder>
com.google.cloud.pubsub.v1.stub.PublisherStubSettings.Builder
Enclosing class:
PublisherStubSettings

public static class PublisherStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<PublisherStubSettings,PublisherStubSettings.Builder>
Builder for PublisherStubSettings.
  • Constructor Details

    • Builder

      protected Builder()
    • Builder

      protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
    • Builder

      protected Builder(PublisherStubSettings settings)
  • Method Details

    • applyToAllUnaryMethods

      public PublisherStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
      Applies the given settings updater function to all of the unary API methods in this service.

      Note: This method does not support applying settings to streaming methods.

    • unaryMethodSettingsBuilders

      public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
    • createTopicSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<Topic,Topic> createTopicSettings()
      Returns the builder for the settings used for calls to createTopic.
    • updateTopicSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateTopicRequest,Topic> updateTopicSettings()
      Returns the builder for the settings used for calls to updateTopic.
    • publishSettings

      public com.google.api.gax.rpc.BatchingCallSettings.Builder<PublishRequest,PublishResponse> publishSettings()
      Returns the builder for the settings used for calls to publish.
    • getTopicSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetTopicRequest,Topic> getTopicSettings()
      Returns the builder for the settings used for calls to getTopic.
    • listTopicsSettings

      public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTopicsRequest,ListTopicsResponse,TopicAdminClient.ListTopicsPagedResponse> listTopicsSettings()
      Returns the builder for the settings used for calls to listTopics.
    • listTopicSubscriptionsSettings

      public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse,TopicAdminClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings()
      Returns the builder for the settings used for calls to listTopicSubscriptions.
    • listTopicSnapshotsSettings

      public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTopicSnapshotsRequest,ListTopicSnapshotsResponse,TopicAdminClient.ListTopicSnapshotsPagedResponse> listTopicSnapshotsSettings()
      Returns the builder for the settings used for calls to listTopicSnapshots.
    • deleteTopicSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteTopicRequest,com.google.protobuf.Empty> deleteTopicSettings()
      Returns the builder for the settings used for calls to deleteTopic.
    • detachSubscriptionSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<DetachSubscriptionRequest,DetachSubscriptionResponse> detachSubscriptionSettings()
      Returns the builder for the settings used for calls to detachSubscription.
    • setIamPolicySettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
      Returns the builder for the settings used for calls to setIamPolicy.
    • getIamPolicySettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
      Returns the builder for the settings used for calls to getIamPolicy.
    • testIamPermissionsSettings

      public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
      Returns the builder for the settings used for calls to testIamPermissions.
    • getEndpoint

      public String getEndpoint()
      Returns the endpoint set by the user or the the service's default endpoint.
      Overrides:
      getEndpoint in class com.google.api.gax.rpc.StubSettings.Builder<PublisherStubSettings,PublisherStubSettings.Builder>
    • build

      public PublisherStubSettings build() throws IOException
      Specified by:
      build in class com.google.api.gax.rpc.StubSettings.Builder<PublisherStubSettings,PublisherStubSettings.Builder>
      Throws:
      IOException