Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SessionService::Rest::ServiceStub.
REST service stub for the SessionService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SessionService::Rest::ServiceStub (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [2.3.1](/ruby/docs/reference/google-cloud-discovery_engine-v1/2.3.1/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [2.2.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/2.2.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [2.1.1](/ruby/docs/reference/google-cloud-discovery_engine-v1/2.1.1/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [2.0.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/2.0.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.5.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.4.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.4.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.3.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.2.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.2.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.1.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [1.0.2](/ruby/docs/reference/google-cloud-discovery_engine-v1/1.0.2/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.9.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.9.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.8.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.8.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.7.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.7.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.6.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.6.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.5.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.4.2](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.4.2/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.3.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.2.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.2.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub)\n- [0.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1/0.1.0/Google-Cloud-DiscoveryEngine-V1-SessionService-Rest-ServiceStub) \nReference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SessionService::Rest::ServiceStub.\n\nREST service stub for the SessionService service.\nService stub contains baseline method implementations\nincluding transcoding, making the REST call, and deserialing the response. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### #create_session\n\n def create_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DiscoveryEngine::V1::Session\n\nBaseline implementation for the create_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DiscoveryEngine::V1::CreateSessionRequest](./Google-Cloud-DiscoveryEngine-V1-CreateSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #delete_session\n\n def delete_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Protobuf::Empty\n\nBaseline implementation for the delete_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DiscoveryEngine::V1::DeleteSessionRequest](./Google-Cloud-DiscoveryEngine-V1-DeleteSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Protobuf::Empty](./Google-Protobuf-Empty))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Protobuf::Empty](./Google-Protobuf-Empty)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #endpoint\n\n def endpoint() -\u003e String\n\nThe effective endpoint \n**Returns**\n\n- (String)\n\n### #get_session\n\n def get_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DiscoveryEngine::V1::Session\n\nBaseline implementation for the get_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DiscoveryEngine::V1::GetSessionRequest](./Google-Cloud-DiscoveryEngine-V1-GetSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #list_sessions\n\n def list_sessions(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DiscoveryEngine::V1::ListSessionsResponse\n\nBaseline implementation for the list_sessions REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DiscoveryEngine::V1::ListSessionsRequest](./Google-Cloud-DiscoveryEngine-V1-ListSessionsRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DiscoveryEngine::V1::ListSessionsResponse](./Google-Cloud-DiscoveryEngine-V1-ListSessionsResponse))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DiscoveryEngine::V1::ListSessionsResponse](./Google-Cloud-DiscoveryEngine-V1-ListSessionsResponse)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)\n\n### #logger\n\n def logger(stub: false) -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)\n\n### #update_session\n\n def update_session(request_pb, options = nil) { |result, operation| ... } -\u003e ::Google::Cloud::DiscoveryEngine::V1::Session\n\nBaseline implementation for the update_session REST call \n**Parameters**\n\n- **request_pb** ([::Google::Cloud::DiscoveryEngine::V1::UpdateSessionRequest](./Google-Cloud-DiscoveryEngine-V1-UpdateSessionRequest)) --- A request object representing the call parameters. Required.\n- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::DiscoveryEngine::V1::Session](./Google-Cloud-DiscoveryEngine-V1-Session)) --- A result object deserialized from the server's reply \n**Raises**\n\n- (::ArgumentError)"]]