Class OrgPolicyStubSettings.Builder (2.6.0)

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

Builder for OrgPolicyStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > OrgPolicyStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(OrgPolicyStubSettings settings)

protected Builder(OrgPolicyStubSettings settings)
Parameter
NameDescription
settingsOrgPolicyStubSettings

Methods

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

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

build()

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

createPolicySettings()

public UnaryCallSettings.Builder<CreatePolicyRequest,Policy> createPolicySettings()

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

Returns
TypeDescription
Builder<CreatePolicyRequest,Policy>

deletePolicySettings()

public UnaryCallSettings.Builder<DeletePolicyRequest,Empty> deletePolicySettings()

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

Returns
TypeDescription
Builder<DeletePolicyRequest,Empty>

getEffectivePolicySettings()

public UnaryCallSettings.Builder<GetEffectivePolicyRequest,Policy> getEffectivePolicySettings()

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

Returns
TypeDescription
Builder<GetEffectivePolicyRequest,Policy>

getPolicySettings()

public UnaryCallSettings.Builder<GetPolicyRequest,Policy> getPolicySettings()

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

Returns
TypeDescription
Builder<GetPolicyRequest,Policy>

listConstraintsSettings()

public PagedCallSettings.Builder<ListConstraintsRequest,ListConstraintsResponse,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsSettings()

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

Returns
TypeDescription
Builder<ListConstraintsRequest,ListConstraintsResponse,ListConstraintsPagedResponse>

listPoliciesSettings()

public PagedCallSettings.Builder<ListPoliciesRequest,ListPoliciesResponse,OrgPolicyClient.ListPoliciesPagedResponse> listPoliciesSettings()

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

Returns
TypeDescription
Builder<ListPoliciesRequest,ListPoliciesResponse,ListPoliciesPagedResponse>

unaryMethodSettingsBuilders()

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

updatePolicySettings()

public UnaryCallSettings.Builder<UpdatePolicyRequest,Policy> updatePolicySettings()

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

Returns
TypeDescription
Builder<UpdatePolicyRequest,Policy>