Package com.google.cloud.orgpolicy.v2
Class OrgPolicySettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<OrgPolicySettings,OrgPolicySettings.Builder>
-
- com.google.cloud.orgpolicy.v2.OrgPolicySettings.Builder
-
- Enclosing class:
- OrgPolicySettings
public static class OrgPolicySettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<OrgPolicySettings,OrgPolicySettings.Builder>
Builder for OrgPolicySettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(OrgPolicySettings settings)
protected
Builder(OrgPolicyStubSettings.Builder stubSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicySettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.OrgPolicySettings
build()
com.google.api.gax.rpc.UnaryCallSettings.Builder<CreatePolicyRequest,Policy>
createPolicySettings()
Returns the builder for the settings used for calls to createPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeletePolicyRequest,com.google.protobuf.Empty>
deletePolicySettings()
Returns the builder for the settings used for calls to deletePolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetEffectivePolicyRequest,Policy>
getEffectivePolicySettings()
Returns the builder for the settings used for calls to getEffectivePolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetPolicyRequest,Policy>
getPolicySettings()
Returns the builder for the settings used for calls to getPolicy.OrgPolicyStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.PagedCallSettings.Builder<ListConstraintsRequest,ListConstraintsResponse,OrgPolicyClient.ListConstraintsPagedResponse>
listConstraintsSettings()
Returns the builder for the settings used for calls to listConstraints.com.google.api.gax.rpc.PagedCallSettings.Builder<ListPoliciesRequest,ListPoliciesResponse,OrgPolicyClient.ListPoliciesPagedResponse>
listPoliciesSettings()
Returns the builder for the settings used for calls to listPolicies.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdatePolicyRequest,Policy>
updatePolicySettings()
Returns the builder for the settings used for calls to updatePolicy.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(OrgPolicySettings settings)
-
Builder
protected Builder(OrgPolicyStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public OrgPolicyStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public OrgPolicySettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
listConstraintsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListConstraintsRequest,ListConstraintsResponse,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsSettings()
Returns the builder for the settings used for calls to listConstraints.
-
listPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListPoliciesRequest,ListPoliciesResponse,OrgPolicyClient.ListPoliciesPagedResponse> listPoliciesSettings()
Returns the builder for the settings used for calls to listPolicies.
-
getPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetPolicyRequest,Policy> getPolicySettings()
Returns the builder for the settings used for calls to getPolicy.
-
getEffectivePolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetEffectivePolicyRequest,Policy> getEffectivePolicySettings()
Returns the builder for the settings used for calls to getEffectivePolicy.
-
createPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreatePolicyRequest,Policy> createPolicySettings()
Returns the builder for the settings used for calls to createPolicy.
-
updatePolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdatePolicyRequest,Policy> updatePolicySettings()
Returns the builder for the settings used for calls to updatePolicy.
-
deletePolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeletePolicyRequest,com.google.protobuf.Empty> deletePolicySettings()
Returns the builder for the settings used for calls to deletePolicy.
-
build
public OrgPolicySettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<OrgPolicySettings,OrgPolicySettings.Builder>
- Throws:
IOException
-
-