Class OrgPolicyStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<OrgPolicyStubSettings,OrgPolicyStubSettings.Builder>
-
- com.google.cloud.orgpolicy.v2.stub.OrgPolicyStubSettings.Builder
-
- Enclosing class:
- OrgPolicyStubSettings
public static class OrgPolicyStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<OrgPolicyStubSettings,OrgPolicyStubSettings.Builder>
Builder for OrgPolicyStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(OrgPolicyStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrgPolicyStubSettings.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.OrgPolicyStubSettings
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.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.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
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.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(OrgPolicyStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public OrgPolicyStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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 OrgPolicyStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<OrgPolicyStubSettings,OrgPolicyStubSettings.Builder>
- Throws:
IOException
-
-