Class VpnGatewaysStubSettings.Builder (1.46.0)

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

Builder for VpnGatewaysStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > VpnGatewaysStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(VpnGatewaysStubSettings settings)

protected Builder(VpnGatewaysStubSettings settings)
Parameter
NameDescription
settingsVpnGatewaysStubSettings

Methods

aggregatedListSettings()

public PagedCallSettings.Builder<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList,VpnGatewaysClient.AggregatedListPagedResponse> aggregatedListSettings()

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

Returns
TypeDescription
Builder<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList,AggregatedListPagedResponse>

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

public VpnGatewaysStubSettings.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
VpnGatewaysStubSettings.Builder

build()

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

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteVpnGatewayRequest,Operation,Operation> deleteOperationSettings()

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

Returns
TypeDescription
Builder<DeleteVpnGatewayRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteVpnGatewayRequest,Operation> deleteSettings()

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

Returns
TypeDescription
Builder<DeleteVpnGatewayRequest,Operation>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getSettings()

public UnaryCallSettings.Builder<GetVpnGatewayRequest,VpnGateway> getSettings()

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

Returns
TypeDescription
Builder<GetVpnGatewayRequest,VpnGateway>

getStatusSettings()

public UnaryCallSettings.Builder<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse> getStatusSettings()

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

Returns
TypeDescription
Builder<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse>

insertOperationSettings()

public OperationCallSettings.Builder<InsertVpnGatewayRequest,Operation,Operation> insertOperationSettings()

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

Returns
TypeDescription
Builder<InsertVpnGatewayRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertVpnGatewayRequest,Operation> insertSettings()

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

Returns
TypeDescription
Builder<InsertVpnGatewayRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListVpnGatewaysRequest,VpnGatewayList,VpnGatewaysClient.ListPagedResponse> listSettings()

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

Returns
TypeDescription
Builder<ListVpnGatewaysRequest,VpnGatewayList,ListPagedResponse>

setLabelsOperationSettings()

public OperationCallSettings.Builder<SetLabelsVpnGatewayRequest,Operation,Operation> setLabelsOperationSettings()

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

Returns
TypeDescription
Builder<SetLabelsVpnGatewayRequest,Operation,Operation>

setLabelsSettings()

public UnaryCallSettings.Builder<SetLabelsVpnGatewayRequest,Operation> setLabelsSettings()

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

Returns
TypeDescription
Builder<SetLabelsVpnGatewayRequest,Operation>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsVpnGatewayRequest,TestPermissionsResponse> testIamPermissionsSettings()

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

Returns
TypeDescription
Builder<TestIamPermissionsVpnGatewayRequest,TestPermissionsResponse>

unaryMethodSettingsBuilders()

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