Class ManagedKafkaSettings.Builder (0.3.0)

public static class ManagedKafkaSettings.Builder extends ClientSettings.Builder<ManagedKafkaSettings,ManagedKafkaSettings.Builder>

Builder for ManagedKafkaSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ManagedKafkaSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ManagedKafkaSettings settings)

protected Builder(ManagedKafkaSettings settings)
Parameter
Name Description
settings ManagedKafkaSettings

Builder(ManagedKafkaStubSettings.Builder stubSettings)

protected Builder(ManagedKafkaStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ManagedKafkaStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public ManagedKafkaSettings.Builder applyToAllUnaryMethods(ApiFunction<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.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
ManagedKafkaSettings.Builder

build()

public ManagedKafkaSettings build()
Returns
Type Description
ManagedKafkaSettings
Overrides
Exceptions
Type Description
IOException

createClusterOperationSettings()

public OperationCallSettings.Builder<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationSettings()

Returns the builder for the settings used for calls to createCluster.

Returns
Type Description
Builder<CreateClusterRequest,Cluster,OperationMetadata>

createClusterSettings()

public UnaryCallSettings.Builder<CreateClusterRequest,Operation> createClusterSettings()

Returns the builder for the settings used for calls to createCluster.

Returns
Type Description
Builder<CreateClusterRequest,Operation>

createTopicSettings()

public UnaryCallSettings.Builder<CreateTopicRequest,Topic> createTopicSettings()

Returns the builder for the settings used for calls to createTopic.

Returns
Type Description
Builder<CreateTopicRequest,Topic>

deleteClusterOperationSettings()

public OperationCallSettings.Builder<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationSettings()

Returns the builder for the settings used for calls to deleteCluster.

Returns
Type Description
Builder<DeleteClusterRequest,Empty,OperationMetadata>

deleteClusterSettings()

public UnaryCallSettings.Builder<DeleteClusterRequest,Operation> deleteClusterSettings()

Returns the builder for the settings used for calls to deleteCluster.

Returns
Type Description
Builder<DeleteClusterRequest,Operation>

deleteConsumerGroupSettings()

public UnaryCallSettings.Builder<DeleteConsumerGroupRequest,Empty> deleteConsumerGroupSettings()

Returns the builder for the settings used for calls to deleteConsumerGroup.

Returns
Type Description
Builder<DeleteConsumerGroupRequest,Empty>

deleteTopicSettings()

public UnaryCallSettings.Builder<DeleteTopicRequest,Empty> deleteTopicSettings()

Returns the builder for the settings used for calls to deleteTopic.

Returns
Type Description
Builder<DeleteTopicRequest,Empty>

getClusterSettings()

public UnaryCallSettings.Builder<GetClusterRequest,Cluster> getClusterSettings()

Returns the builder for the settings used for calls to getCluster.

Returns
Type Description
Builder<GetClusterRequest,Cluster>

getConsumerGroupSettings()

public UnaryCallSettings.Builder<GetConsumerGroupRequest,ConsumerGroup> getConsumerGroupSettings()

Returns the builder for the settings used for calls to getConsumerGroup.

Returns
Type Description
Builder<GetConsumerGroupRequest,ConsumerGroup>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

Returns the builder for the settings used for calls to getLocation.

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getStubSettingsBuilder()

public ManagedKafkaStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ManagedKafkaStubSettings.Builder

getTopicSettings()

public UnaryCallSettings.Builder<GetTopicRequest,Topic> getTopicSettings()

Returns the builder for the settings used for calls to getTopic.

Returns
Type Description
Builder<GetTopicRequest,Topic>

listClustersSettings()

public PagedCallSettings.Builder<ListClustersRequest,ListClustersResponse,ManagedKafkaClient.ListClustersPagedResponse> listClustersSettings()

Returns the builder for the settings used for calls to listClusters.

Returns
Type Description
Builder<ListClustersRequest,ListClustersResponse,ListClustersPagedResponse>

listConsumerGroupsSettings()

public PagedCallSettings.Builder<ListConsumerGroupsRequest,ListConsumerGroupsResponse,ManagedKafkaClient.ListConsumerGroupsPagedResponse> listConsumerGroupsSettings()

Returns the builder for the settings used for calls to listConsumerGroups.

Returns
Type Description
Builder<ListConsumerGroupsRequest,ListConsumerGroupsResponse,ListConsumerGroupsPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,ManagedKafkaClient.ListLocationsPagedResponse> listLocationsSettings()

Returns the builder for the settings used for calls to listLocations.

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listTopicsSettings()

public PagedCallSettings.Builder<ListTopicsRequest,ListTopicsResponse,ManagedKafkaClient.ListTopicsPagedResponse> listTopicsSettings()

Returns the builder for the settings used for calls to listTopics.

Returns
Type Description
Builder<ListTopicsRequest,ListTopicsResponse,ListTopicsPagedResponse>

updateClusterOperationSettings()

public OperationCallSettings.Builder<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationSettings()

Returns the builder for the settings used for calls to updateCluster.

Returns
Type Description
Builder<UpdateClusterRequest,Cluster,OperationMetadata>

updateClusterSettings()

public UnaryCallSettings.Builder<UpdateClusterRequest,Operation> updateClusterSettings()

Returns the builder for the settings used for calls to updateCluster.

Returns
Type Description
Builder<UpdateClusterRequest,Operation>

updateConsumerGroupSettings()

public UnaryCallSettings.Builder<UpdateConsumerGroupRequest,ConsumerGroup> updateConsumerGroupSettings()

Returns the builder for the settings used for calls to updateConsumerGroup.

Returns
Type Description
Builder<UpdateConsumerGroupRequest,ConsumerGroup>

updateTopicSettings()

public UnaryCallSettings.Builder<UpdateTopicRequest,Topic> updateTopicSettings()

Returns the builder for the settings used for calls to updateTopic.

Returns
Type Description
Builder<UpdateTopicRequest,Topic>