Class SessionServiceSettings.Builder (3.64.0)

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

Builder for SessionServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SessionServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SessionServiceSettings settings)

protected Builder(SessionServiceSettings settings)
Parameter
Name Description
settings SessionServiceSettings

Builder(SessionServiceStubSettings.Builder stubSettings)

protected Builder(SessionServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SessionServiceStubSettings.Builder

Methods

appendEventSettings()

public UnaryCallSettings.Builder<AppendEventRequest,AppendEventResponse> appendEventSettings()

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

Returns
Type Description
Builder<AppendEventRequest,AppendEventResponse>

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

public SessionServiceSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
SessionServiceSettings.Builder

build()

public SessionServiceSettings build()
Returns
Type Description
SessionServiceSettings
Overrides
Exceptions
Type Description
IOException

createSessionOperationSettings()

public OperationCallSettings.Builder<CreateSessionRequest,Session,CreateSessionOperationMetadata> createSessionOperationSettings()

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

Returns
Type Description
Builder<CreateSessionRequest,Session,CreateSessionOperationMetadata>

createSessionSettings()

public UnaryCallSettings.Builder<CreateSessionRequest,Operation> createSessionSettings()

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

Returns
Type Description
Builder<CreateSessionRequest,Operation>

deleteSessionOperationSettings()

public OperationCallSettings.Builder<DeleteSessionRequest,Empty,DeleteOperationMetadata> deleteSessionOperationSettings()

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

Returns
Type Description
Builder<DeleteSessionRequest,Empty,DeleteOperationMetadata>

deleteSessionSettings()

public UnaryCallSettings.Builder<DeleteSessionRequest,Operation> deleteSessionSettings()

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

Returns
Type Description
Builder<DeleteSessionRequest,Operation>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyRequest,Policy> getIamPolicySettings()

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

Returns
Type Description
Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getSessionSettings()

public UnaryCallSettings.Builder<GetSessionRequest,Session> getSessionSettings()

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

Returns
Type Description
Builder<GetSessionRequest,Session>

getStubSettingsBuilder()

public SessionServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
SessionServiceStubSettings.Builder

listEventsSettings()

public PagedCallSettings.Builder<ListEventsRequest,ListEventsResponse,SessionServiceClient.ListEventsPagedResponse> listEventsSettings()

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

Returns
Type Description
Builder<ListEventsRequest,ListEventsResponse,ListEventsPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,SessionServiceClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listSessionsSettings()

public PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse,SessionServiceClient.ListSessionsPagedResponse> listSessionsSettings()

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

Returns
Type Description
Builder<ListSessionsRequest,ListSessionsResponse,ListSessionsPagedResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyRequest,Policy> setIamPolicySettings()

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

Returns
Type Description
Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

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

Returns
Type Description
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateSessionSettings()

public UnaryCallSettings.Builder<UpdateSessionRequest,Session> updateSessionSettings()

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

Returns
Type Description
Builder<UpdateSessionRequest,Session>