Class OrgPolicySettings.Builder (2.7.0)

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

Builder for OrgPolicySettings.

Inheritance

java.lang.Object > ClientSettings.Builder > OrgPolicySettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(OrgPolicySettings settings)

protected Builder(OrgPolicySettings settings)
Parameter
NameDescription
settingsOrgPolicySettings

Builder(OrgPolicyStubSettings.Builder stubSettings)

protected Builder(OrgPolicyStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsOrgPolicyStubSettings.Builder

Methods

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

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

build()

public OrgPolicySettings build()
Returns
TypeDescription
OrgPolicySettings
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>

getStubSettingsBuilder()

public OrgPolicyStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
OrgPolicyStubSettings.Builder

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>

updatePolicySettings()

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

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

Returns
TypeDescription
Builder<UpdatePolicyRequest,Policy>