Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gapic_generator_version: 2.67.0
googleapis_commitish: 8f70147e819ed25cc75c73c4037ce64f9cbb68db
googleapis_commitish: 19890a07f37ea7c8666e11847f3b6456e5ef772d
libraries_bom_version: 26.77.0
libraries:
- api_shortname: accessapproval
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
* <ul>
* <li><p> createSessionAsync(ReasoningEngineName parent, Session session)
* <li><p> createSessionAsync(String parent, Session session)
* <li><p> createSessionAsync(ReasoningEngineName parent, Session session, String sessionId)
* <li><p> createSessionAsync(String parent, Session session, String sessionId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
Expand Down Expand Up @@ -455,6 +457,90 @@ public final OperationFuture<Session, CreateSessionOperationMetadata> createSess
return createSessionAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new [Session][google.cloud.aiplatform.v1.Session].
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
* ReasoningEngineName parent =
* ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
* Session session = Session.newBuilder().build();
* String sessionId = "sessionId607796817";
* Session response = sessionServiceClient.createSessionAsync(parent, session, sessionId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the location to create the session in. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
* @param session Required. The session to create.
* @param sessionId Optional. The user defined ID to use for session, which will become the final
* component of the session resource name. If not provided, Vertex AI will generate a value
* for this ID.
* <p>This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first
* character must be a letter, and the last character must be a letter or number.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Session, CreateSessionOperationMetadata> createSessionAsync(
ReasoningEngineName parent, Session session, String sessionId) {
CreateSessionRequest request =
CreateSessionRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setSession(session)
.setSessionId(sessionId)
.build();
return createSessionAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new [Session][google.cloud.aiplatform.v1.Session].
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
* String parent =
* ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString();
* Session session = Session.newBuilder().build();
* String sessionId = "sessionId607796817";
* Session response = sessionServiceClient.createSessionAsync(parent, session, sessionId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the location to create the session in. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
* @param session Required. The session to create.
* @param sessionId Optional. The user defined ID to use for session, which will become the final
* component of the session resource name. If not provided, Vertex AI will generate a value
* for this ID.
* <p>This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first
* character must be a letter, and the last character must be a letter or number.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Session, CreateSessionOperationMetadata> createSessionAsync(
String parent, Session session, String sessionId) {
CreateSessionRequest request =
CreateSessionRequest.newBuilder()
.setParent(parent)
.setSession(session)
.setSessionId(sessionId)
.build();
return createSessionAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new [Session][google.cloud.aiplatform.v1.Session].
Expand All @@ -474,6 +560,7 @@ public final OperationFuture<Session, CreateSessionOperationMetadata> createSess
* ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
* .toString())
* .setSession(Session.newBuilder().build())
* .setSessionId("sessionId607796817")
* .build();
* Session response = sessionServiceClient.createSessionAsync(request).get();
* }
Expand Down Expand Up @@ -506,6 +593,7 @@ public final OperationFuture<Session, CreateSessionOperationMetadata> createSess
* ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
* .toString())
* .setSession(Session.newBuilder().build())
* .setSessionId("sessionId607796817")
* .build();
* OperationFuture<Session, CreateSessionOperationMetadata> future =
* sessionServiceClient.createSessionOperationCallable().futureCall(request);
Expand Down Expand Up @@ -538,6 +626,7 @@ public final OperationFuture<Session, CreateSessionOperationMetadata> createSess
* ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
* .toString())
* .setSession(Session.newBuilder().build())
* .setSessionId("sessionId607796817")
* .build();
* ApiFuture<Operation> future =
* sessionServiceClient.createSessionCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@
"methods": ["appendEvent", "appendEvent", "appendEvent", "appendEventCallable"]
},
"CreateSession": {
"methods": ["createSessionAsync", "createSessionAsync", "createSessionAsync", "createSessionOperationCallable", "createSessionCallable"]
"methods": ["createSessionAsync", "createSessionAsync", "createSessionAsync", "createSessionAsync", "createSessionAsync", "createSessionOperationCallable", "createSessionCallable"]
},
"DeleteSession": {
"methods": ["deleteSessionAsync", "deleteSessionAsync", "deleteSessionAsync", "deleteSessionOperationCallable", "deleteSessionCallable"]
Expand Down
Loading
Loading