Class DocumentLinkServiceStubSettings.Builder (0.32.0)

public static class DocumentLinkServiceStubSettings.Builder extends StubSettings.Builder<DocumentLinkServiceStubSettings,DocumentLinkServiceStubSettings.Builder>

Builder for DocumentLinkServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > DocumentLinkServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DocumentLinkServiceStubSettings settings)

protected Builder(DocumentLinkServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentLinkServiceStubSettings

Methods

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

public DocumentLinkServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
DocumentLinkServiceStubSettings.Builder

build()

public DocumentLinkServiceStubSettings build()
Returns
TypeDescription
DocumentLinkServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

createDocumentLinkSettings()

public UnaryCallSettings.Builder<CreateDocumentLinkRequest,DocumentLink> createDocumentLinkSettings()

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

Returns
TypeDescription
Builder<CreateDocumentLinkRequest,DocumentLink>

deleteDocumentLinkSettings()

public UnaryCallSettings.Builder<DeleteDocumentLinkRequest,Empty> deleteDocumentLinkSettings()

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

Returns
TypeDescription
Builder<DeleteDocumentLinkRequest,Empty>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

listLinkedSourcesSettings()

public PagedCallSettings.Builder<ListLinkedSourcesRequest,ListLinkedSourcesResponse,DocumentLinkServiceClient.ListLinkedSourcesPagedResponse> listLinkedSourcesSettings()

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

Returns
TypeDescription
Builder<ListLinkedSourcesRequest,ListLinkedSourcesResponse,ListLinkedSourcesPagedResponse>

listLinkedTargetsSettings()

public UnaryCallSettings.Builder<ListLinkedTargetsRequest,ListLinkedTargetsResponse> listLinkedTargetsSettings()

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

Returns
TypeDescription
Builder<ListLinkedTargetsRequest,ListLinkedTargetsResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>