Class OrgPolicyStubSettings.Builder (2.37.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

createCustomConstraintSettings()

public UnaryCallSettings.Builder<CreateCustomConstraintRequest,CustomConstraint> createCustomConstraintSettings()

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

Returns
TypeDescription
Builder<CreateCustomConstraintRequest,CustomConstraint>

createPolicySettings()

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

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

Returns
TypeDescription
Builder<CreatePolicyRequest,Policy>

deleteCustomConstraintSettings()

public UnaryCallSettings.Builder<DeleteCustomConstraintRequest,Empty> deleteCustomConstraintSettings()

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

Returns
TypeDescription
Builder<DeleteCustomConstraintRequest,Empty>

deletePolicySettings()

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

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

Returns
TypeDescription
Builder<DeletePolicyRequest,Empty>

getCustomConstraintSettings()

public UnaryCallSettings.Builder<GetCustomConstraintRequest,CustomConstraint> getCustomConstraintSettings()

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

Returns
TypeDescription
Builder<GetCustomConstraintRequest,CustomConstraint>

getEffectivePolicySettings()

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

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

Returns
TypeDescription
Builder<GetEffectivePolicyRequest,Policy>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

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>

listCustomConstraintsSettings()

public PagedCallSettings.Builder<ListCustomConstraintsRequest,ListCustomConstraintsResponse,OrgPolicyClient.ListCustomConstraintsPagedResponse> listCustomConstraintsSettings()

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

Returns
TypeDescription
Builder<ListCustomConstraintsRequest,ListCustomConstraintsResponse,ListCustomConstraintsPagedResponse>

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<?,?>>

updateCustomConstraintSettings()

public UnaryCallSettings.Builder<UpdateCustomConstraintRequest,CustomConstraint> updateCustomConstraintSettings()

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

Returns
TypeDescription
Builder<UpdateCustomConstraintRequest,CustomConstraint>

updatePolicySettings()

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

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

Returns
TypeDescription
Builder<UpdatePolicyRequest,Policy>