Skip to content

Commit 9405824

Browse files
feat: Add custom session id field to create session v1 (#32806)
* feat: Add custom session id field to create session v1 feat: Add raw_event field to event proto v1 PiperOrigin-RevId: 880968942 Source-Link: googleapis/googleapis@39d9d44 Source-Link: googleapis/googleapis-gen@f5a7f05 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWFpX3BsYXRmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJmNWE3ZjA1N2Y2MWFlZGQyNWU5Y2FiNjJhODE2ZDdlZDdjMTI2NzA0In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2c77d02 commit 9405824

File tree

8 files changed

+45
-14
lines changed

8 files changed

+45
-14
lines changed

google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/session_service/client.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def logger
242242
# @param options [::Gapic::CallOptions, ::Hash]
243243
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
244244
#
245-
# @overload create_session(parent: nil, session: nil)
245+
# @overload create_session(parent: nil, session: nil, session_id: nil)
246246
# Pass arguments to `create_session` via keyword arguments. Note that at
247247
# least one keyword argument is required. To specify no parameters, or to keep all
248248
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -253,6 +253,14 @@ def logger
253253
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
254254
# @param session [::Google::Cloud::AIPlatform::V1::Session, ::Hash]
255255
# Required. The session to create.
256+
# @param session_id [::String]
257+
# Optional. The user defined ID to use for session, which will become the
258+
# final component of the session resource name. If not provided, Vertex AI
259+
# will generate a value for this ID.
260+
#
261+
# This value may be up to 63 characters, and valid characters are
262+
# `[a-z0-9-]`. The first character must be a letter, and the last character
263+
# must be a letter or number.
256264
#
257265
# @yield [response, operation] Access the result along with the RPC operation
258266
# @yieldparam response [::Gapic::Operation]

google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/session_service/rest/client.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def logger
237237
# @param options [::Gapic::CallOptions, ::Hash]
238238
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
239239
#
240-
# @overload create_session(parent: nil, session: nil)
240+
# @overload create_session(parent: nil, session: nil, session_id: nil)
241241
# Pass arguments to `create_session` via keyword arguments. Note that at
242242
# least one keyword argument is required. To specify no parameters, or to keep all
243243
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -248,6 +248,14 @@ def logger
248248
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
249249
# @param session [::Google::Cloud::AIPlatform::V1::Session, ::Hash]
250250
# Required. The session to create.
251+
# @param session_id [::String]
252+
# Optional. The user defined ID to use for session, which will become the
253+
# final component of the session resource name. If not provided, Vertex AI
254+
# will generate a value for this ID.
255+
#
256+
# This value may be up to 63 characters, and valid characters are
257+
# `[a-z0-9-]`. The first character must be a letter, and the last character
258+
# must be a letter or number.
251259
# @yield [result, operation] Access the result along with the TransportOperation object
252260
# @yieldparam result [::Gapic::Operation]
253261
# @yieldparam operation [::Gapic::Rest::TransportOperation]

google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/session_pb.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)