diff --git a/generation_config.yaml b/generation_config.yaml
index 34a66632ca01..0909dc1bc824 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
gapic_generator_version: 2.67.0
-googleapis_commitish: c83d354f79b02e3dc98f22248e22851fcf9b961d
-libraries_bom_version: 26.76.0
+googleapis_commitish: 8f70147e819ed25cc75c73c4037ce64f9cbb68db
+libraries_bom_version: 26.77.0
libraries:
- api_shortname: accessapproval
name_pretty: Access Approval
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 25fceb3bce8c..6260bb4d627c 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
AskContexts
Agentic Retrieval Ask API for RAG.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *askContexts(AskContextsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *askContexts(LocationName parent, RagQuery query) + *
askContexts(String parent, RagQuery query) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *askContextsCallable() + *
AsyncRetrieveContexts
Asynchronous API to retrieves relevant contexts for a query.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *asyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *asyncRetrieveContextsAsync(LocationName parent, RagQuery query) + *
asyncRetrieveContextsAsync(String parent, RagQuery query) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *asyncRetrieveContextsOperationCallable() + *
asyncRetrieveContextsCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(parent, query);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(LocationName parent, RagQuery query) {
+ AskContextsRequest request =
+ AskContextsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setQuery(query)
+ .build();
+ return askContexts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(parent, query);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(String parent, RagQuery query) {
+ AskContextsRequest request =
+ AskContextsRequest.newBuilder().setParent(parent).setQuery(query).build();
+ return askContexts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AskContextsRequest request =
+ * AskContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(AskContextsRequest request) {
+ return askContextsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AskContextsRequest request =
+ * AskContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * vertexRagServiceClient.askContextsCallable().futureCall(request);
+ * // Do something.
+ * AskContextsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(parent, query).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(LocationName parent, RagQuery query) {
+ AsyncRetrieveContextsRequest request =
+ AsyncRetrieveContextsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setQuery(query)
+ .build();
+ return asyncRetrieveContextsAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(parent, query).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(String parent, RagQuery query) {
+ AsyncRetrieveContextsRequest request =
+ AsyncRetrieveContextsRequest.newBuilder().setParent(parent).setQuery(query).build();
+ return asyncRetrieveContextsAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request) {
+ return asyncRetrieveContextsOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * OperationFuture
+ * future =
+ * vertexRagServiceClient.asyncRetrieveContextsOperationCallable().futureCall(request);
+ * // Do something.
+ * AsyncRetrieveContextsResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ AsyncRetrieveContextsRequest,
+ AsyncRetrieveContextsResponse,
+ AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsOperationCallable() {
+ return stub.asyncRetrieveContextsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * vertexRagServiceClient.asyncRetrieveContextsCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTo configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncRetrieveContexts: + * + *
{@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
+ * VertexRagServiceSettings.Builder vertexRagServiceSettingsBuilder =
+ * VertexRagServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * vertexRagServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@Generated("by gapic-generator-java")
public class VertexRagServiceSettings extends ClientSettingsTo configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncRetrieveContexts: + * + *
{@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
+ * VertexRagServiceStubSettings.Builder vertexRagServiceSettingsBuilder =
+ * VertexRagServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * vertexRagServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@Generated("by gapic-generator-java")
public class VertexRagServiceStubSettings extends StubSettingscreateMemoryAsync(CreateMemoryRequest request) *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *createMemoryAsync(ReasoningEngineName parent, Memory memory, String memoryId) + *
createMemoryAsync(String parent, Memory memory, String memoryId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
*createMemoryOperationCallable() @@ -388,6 +393,90 @@ public final OperationsClient getOperationsClient() { return operationsClient; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a Memory. + * + *
Sample code: + * + *
{@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 (MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.create()) {
+ * ReasoningEngineName parent =
+ * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
+ * Memory memory = Memory.newBuilder().build();
+ * String memoryId = "memoryId-637040132";
+ * Memory response = memoryBankServiceClient.createMemoryAsync(parent, memory, memoryId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the ReasoningEngine to create the Memory under.
+ * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+ * @param memory Required. The Memory to be created.
+ * @param memoryId Optional. The user defined ID to use for memory, which will become the final
+ * component of the memory resource name. If not provided, Vertex AI will generate a value for
+ * this ID.
+ * 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 Sample code:
+ *
+ * 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 createSessionAsync(ReasoningEngineName parent, Session session)
* createSessionAsync(String parent, Session session)
+ * createSessionAsync(ReasoningEngineName parent, Session session, String sessionId)
+ * createSessionAsync(String parent, Session session, String sessionId)
* Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. Sample code:
+ *
+ * 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 Sample code:
+ *
+ * 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{@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 (MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.create()) {
+ * String parent =
+ * ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString();
+ * Memory memory = Memory.newBuilder().build();
+ * String memoryId = "memoryId-637040132";
+ * Memory response = memoryBankServiceClient.createMemoryAsync(parent, memory, memoryId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the ReasoningEngine to create the Memory under.
+ * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
+ * @param memory Required. The Memory to be created.
+ * @param memoryId Optional. The user defined ID to use for memory, which will become the final
+ * component of the memory resource name. If not provided, Vertex AI will generate a value for
+ * this ID.
+ *
*
*
@@ -457,6 +459,90 @@ public final OperationFuture
{@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();
+ * }
+ * }
+ *
+ * @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.
+ * {@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();
+ * }
+ * }
+ *
+ * @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.
+ *
AskContexts
Agentic Retrieval Ask API for RAG.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *askContexts(AskContextsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *askContexts(LocationName parent, RagQuery query) + *
askContexts(String parent, RagQuery query) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *askContextsCallable() + *
AsyncRetrieveContexts
Asynchronous API to retrieves relevant contexts for a query.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *asyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *asyncRetrieveContextsAsync(LocationName parent, RagQuery query) + *
asyncRetrieveContextsAsync(String parent, RagQuery query) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *asyncRetrieveContextsOperationCallable() + *
asyncRetrieveContextsCallable() + *
ListLocations
Lists information about the supported locations for this service.
Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(parent, query);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(LocationName parent, RagQuery query) {
+ AskContextsRequest request =
+ AskContextsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setQuery(query)
+ .build();
+ return askContexts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(parent, query);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(String parent, RagQuery query) {
+ AskContextsRequest request =
+ AskContextsRequest.newBuilder().setParent(parent).setQuery(query).build();
+ return askContexts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AskContextsRequest request =
+ * AskContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * AskContextsResponse response = vertexRagServiceClient.askContexts(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AskContextsResponse askContexts(AskContextsRequest request) {
+ return askContextsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Agentic Retrieval Ask API for RAG.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AskContextsRequest request =
+ * AskContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * vertexRagServiceClient.askContextsCallable().futureCall(request);
+ * // Do something.
+ * AskContextsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(parent, query).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(LocationName parent, RagQuery query) {
+ AsyncRetrieveContextsRequest request =
+ AsyncRetrieveContextsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setQuery(query)
+ .build();
+ return asyncRetrieveContextsAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * RagQuery query = RagQuery.newBuilder().build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(parent, query).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to retrieve RagContexts.
+ * The users must have permission to make a call in the project. Format:
+ * `projects/{project}/locations/{location}`.
+ * @param query Required. Single RAG retrieve query.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(String parent, RagQuery query) {
+ AsyncRetrieveContextsRequest request =
+ AsyncRetrieveContextsRequest.newBuilder().setParent(parent).setQuery(query).build();
+ return asyncRetrieveContextsAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * AsyncRetrieveContextsResponse response =
+ * vertexRagServiceClient.asyncRetrieveContextsAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsAsync(AsyncRetrieveContextsRequest request) {
+ return asyncRetrieveContextsOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * OperationFuture
+ * future =
+ * vertexRagServiceClient.asyncRetrieveContextsOperationCallable().futureCall(request);
+ * // Do something.
+ * AsyncRetrieveContextsResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ AsyncRetrieveContextsRequest,
+ AsyncRetrieveContextsResponse,
+ AsyncRetrieveContextsOperationMetadata>
+ asyncRetrieveContextsOperationCallable() {
+ return stub.asyncRetrieveContextsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Asynchronous API to retrieves relevant contexts for a query.
+ *
+ * Sample code: + * + *
{@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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ * AsyncRetrieveContextsRequest request =
+ * AsyncRetrieveContextsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery(RagQuery.newBuilder().build())
+ * .addAllTools(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * vertexRagServiceClient.asyncRetrieveContextsCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableTo configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncRetrieveContexts: + * + *
{@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
+ * VertexRagServiceSettings.Builder vertexRagServiceSettingsBuilder =
+ * VertexRagServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * vertexRagServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@BetaApi
@Generated("by gapic-generator-java")
@@ -114,6 +142,27 @@ public UnaryCallSettingsTo configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncRetrieveContexts: + * + *
{@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
+ * VertexRagServiceStubSettings.Builder vertexRagServiceSettingsBuilder =
+ * VertexRagServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * vertexRagServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
*/
@BetaApi
@Generated("by gapic-generator-java")
@@ -127,6 +164,14 @@ public class VertexRagServiceStubSettings extends StubSettings+ * Agentic Retrieval Ask API for RAG. + *+ */ + default void askContexts( + com.google.cloud.aiplatform.v1.AskContextsRequest request, + io.grpc.stub.StreamObserver
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + default void asyncRetrieveContexts( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest request, + io.grpc.stub.StreamObserver
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public void askContexts( + com.google.cloud.aiplatform.v1.AskContextsRequest request, + io.grpc.stub.StreamObserver
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public void asyncRetrieveContexts( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest request, + io.grpc.stub.StreamObserver
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.cloud.aiplatform.v1.AskContextsResponse askContexts( + com.google.cloud.aiplatform.v1.AskContextsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAskContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.longrunning.Operation asyncRetrieveContexts( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncRetrieveContextsMethod(), getCallOptions(), request); + } } /** @@ -501,6 +686,32 @@ public com.google.cloud.aiplatform.v1.CorroborateContentResponse corroborateCont return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCorroborateContentMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.cloud.aiplatform.v1.AskContextsResponse askContexts( + com.google.cloud.aiplatform.v1.AskContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAskContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.longrunning.Operation asyncRetrieveContexts( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncRetrieveContextsMethod(), getCallOptions(), request); + } } /** @@ -566,11 +777,40 @@ protected VertexRagServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.AskContextsResponse> + askContexts(com.google.cloud.aiplatform.v1.AskContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAskContextsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Agentic Retrieval Ask API for RAG. + *+ */ + default void askContexts( + com.google.cloud.aiplatform.v1beta1.AskContextsRequest request, + io.grpc.stub.StreamObserver
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + default void asyncRetrieveContexts( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest request, + io.grpc.stub.StreamObserver
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public void askContexts( + com.google.cloud.aiplatform.v1beta1.AskContextsRequest request, + io.grpc.stub.StreamObserver
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public void asyncRetrieveContexts( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest request, + io.grpc.stub.StreamObserver
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.cloud.aiplatform.v1beta1.AskContextsResponse askContexts( + com.google.cloud.aiplatform.v1beta1.AskContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAskContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.longrunning.Operation asyncRetrieveContexts( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncRetrieveContextsMethod(), getCallOptions(), request); + } } /** @@ -502,6 +688,32 @@ public com.google.cloud.aiplatform.v1beta1.CorroborateContentResponse corroborat return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCorroborateContentMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.cloud.aiplatform.v1beta1.AskContextsResponse askContexts( + com.google.cloud.aiplatform.v1beta1.AskContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAskContextsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.longrunning.Operation asyncRetrieveContexts( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncRetrieveContextsMethod(), getCallOptions(), request); + } } /** @@ -567,11 +779,41 @@ protected VertexRagServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCorroborateContentMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Agentic Retrieval Ask API for RAG. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.AskContextsResponse> + askContexts(com.google.cloud.aiplatform.v1beta1.AskContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAskContextsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Asynchronous API to retrieves relevant contexts for a query. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Agentic Retrieval Ask API for RAG. + * Request message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AskContextsRequest} + */ +@com.google.protobuf.Generated +public final class AskContextsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AskContextsRequest) + AskContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AskContextsRequest"); + } + + // Use AskContextsRequest.newBuilder() to construct. + private AskContextsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AskContextsRequest() { + parent_ = ""; + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AskContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AskContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AskContextsRequest.class, + com.google.cloud.aiplatform.v1.AskContextsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1.RagQuery query_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagQuery getQuery() {
+ return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() {
+ return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_;
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(3, tools_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tools_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.AskContextsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.AskContextsRequest other =
+ (com.google.cloud.aiplatform.v1.AskContextsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
+ if (hasQuery()) {
+ if (!getQuery().equals(other.getQuery())) return false;
+ }
+ if (!getToolsList().equals(other.getToolsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.aiplatform.v1.AskContextsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Agentic Retrieval Ask API for RAG. + * Request message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AskContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.RagQuery query_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>
+ queryBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ public com.google.cloud.aiplatform.v1.RagQuery getQuery() {
+ if (queryBuilder_ == null) {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()
+ : query_;
+ } else {
+ return queryBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ query_ = value;
+ } else {
+ queryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeQuery(com.google.cloud.aiplatform.v1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && query_ != null
+ && query_ != com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()) {
+ getQueryBuilder().mergeFrom(value);
+ } else {
+ query_ = value;
+ }
+ } else {
+ queryBuilder_.mergeFrom(value);
+ }
+ if (query_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuery() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ query_ = null;
+ if (queryBuilder_ != null) {
+ queryBuilder_.dispose();
+ queryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.RagQuery.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetQueryFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>
+ internalGetQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>(
+ getQuery(), getParentForChildren(), isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
+ }
+
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getToolsCount() {
+ if (toolsBuilder_ == null) {
+ return tools_.size();
+ } else {
+ return toolsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool getTools(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.set(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(
+ int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(
+ int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllTools(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.Tool> values) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_);
+ onChanged();
+ } else {
+ toolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearTools() {
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ toolsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeTools(int index) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.remove(index);
+ onChanged();
+ } else {
+ toolsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder getToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ if (toolsBuilder_ != null) {
+ return toolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tools_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder() {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ boolean hasQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ com.google.cloud.aiplatform.v1.RagQuery getQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.Tool getTools(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getToolsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder> getToolsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AskContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AskContextsResponse.java
new file mode 100644
index 000000000000..70f5966fb1dd
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AskContextsResponse.java
@@ -0,0 +1,890 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AskContextsResponse} + */ +@com.google.protobuf.Generated +public final class AskContextsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AskContextsResponse) + AskContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AskContextsResponse"); + } + + // Use AskContextsResponse.newBuilder() to construct. + private AskContextsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AskContextsResponse() { + response_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AskContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AskContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AskContextsResponse.class, + com.google.cloud.aiplatform.v1.AskContextsResponse.Builder.class); + } + + private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object response_ = ""; + + /** + * + * + *
+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ @java.lang.Override
+ public java.lang.String getResponse() {
+ java.lang.Object ref = response_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ response_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResponseBytes() {
+ java.lang.Object ref = response_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ response_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTEXTS_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1.RagContexts contexts_;
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ @java.lang.Override
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagContexts getContexts() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(response_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, response_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getContexts());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(response_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, response_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContexts());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.AskContextsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.AskContextsResponse other =
+ (com.google.cloud.aiplatform.v1.AskContextsResponse) obj;
+
+ if (!getResponse().equals(other.getResponse())) return false;
+ if (hasContexts() != other.hasContexts()) return false;
+ if (hasContexts()) {
+ if (!getContexts().equals(other.getContexts())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getResponse().hashCode();
+ if (hasContexts()) {
+ hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
+ hash = (53 * hash) + getContexts().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.aiplatform.v1.AskContextsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AskContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ public java.lang.String getResponse() {
+ java.lang.Object ref = response_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ response_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ public com.google.protobuf.ByteString getResponseBytes() {
+ java.lang.Object ref = response_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ response_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @param value The response to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponse(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ response_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponse() {
+ response_ = getDefaultInstance().getResponse();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @param value The bytes for response to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ response_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.RagContexts contexts_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagContexts,
+ com.google.cloud.aiplatform.v1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder>
+ contextsBuilder_;
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ public com.google.cloud.aiplatform.v1.RagContexts getContexts() {
+ if (contextsBuilder_ == null) {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ } else {
+ return contextsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contexts_ = value;
+ } else {
+ contextsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts.Builder builderForValue) {
+ if (contextsBuilder_ == null) {
+ contexts_ = builderForValue.build();
+ } else {
+ contextsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public Builder mergeContexts(com.google.cloud.aiplatform.v1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && contexts_ != null
+ && contexts_ != com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()) {
+ getContextsBuilder().mergeFrom(value);
+ } else {
+ contexts_ = value;
+ }
+ } else {
+ contextsBuilder_.mergeFrom(value);
+ }
+ if (contexts_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public Builder clearContexts() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ contexts_ = null;
+ if (contextsBuilder_ != null) {
+ contextsBuilder_.dispose();
+ contextsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public com.google.cloud.aiplatform.v1.RagContexts.Builder getContextsBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetContextsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() {
+ if (contextsBuilder_ != null) {
+ return contextsBuilder_.getMessageOrBuilder();
+ } else {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagContexts,
+ com.google.cloud.aiplatform.v1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder>
+ internalGetContextsFieldBuilder() {
+ if (contextsBuilder_ == null) {
+ contextsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagContexts,
+ com.google.cloud.aiplatform.v1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder>(
+ getContexts(), getParentForChildren(), isClean());
+ contexts_ = null;
+ }
+ return contextsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AskContextsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AskContextsResponse)
+ private static final com.google.cloud.aiplatform.v1.AskContextsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AskContextsResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1.AskContextsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ java.lang.String getResponse();
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ com.google.protobuf.ByteString getResponseBytes();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ boolean hasContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ com.google.cloud.aiplatform.v1.RagContexts getContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 2;
+ */
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsOperationMetadata.java
new file mode 100644
index 000000000000..13f5465103ab
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsOperationMetadata.java
@@ -0,0 +1,720 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Metadata for AsyncRetrieveContextsOperation. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata) + AsyncRetrieveContextsOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsOperationMetadata"); + } + + // Use AsyncRetrieveContextsOperationMetadata.newBuilder() to construct. + private AsyncRetrieveContextsOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata.class, + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getGenericMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata other =
+ (com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata) obj;
+
+ if (hasGenericMetadata() != other.hasGenericMetadata()) return false;
+ if (hasGenericMetadata()) {
+ if (!getGenericMetadata().equals(other.getGenericMetadata())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasGenericMetadata()) {
+ hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getGenericMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for AsyncRetrieveContextsOperation. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() {
+ if (genericMetadataBuilder_ == null) {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ } else {
+ return genericMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ genericMetadata_ = value;
+ } else {
+ genericMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadata_ = builderForValue.build();
+ } else {
+ genericMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder mergeGenericMetadata(
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && genericMetadata_ != null
+ && genericMetadata_
+ != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) {
+ getGenericMetadataBuilder().mergeFrom(value);
+ } else {
+ genericMetadata_ = value;
+ }
+ } else {
+ genericMetadataBuilder_.mergeFrom(value);
+ }
+ if (genericMetadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder clearGenericMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ genericMetadata_ = null;
+ if (genericMetadataBuilder_ != null) {
+ genericMetadataBuilder_.dispose();
+ genericMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder
+ getGenericMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetGenericMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ if (genericMetadataBuilder_ != null) {
+ return genericMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>
+ internalGetGenericMetadataFieldBuilder() {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>(
+ getGenericMetadata(), getParentForChildren(), isClean());
+ genericMetadata_ = null;
+ }
+ return genericMetadataBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata)
+ private static final com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ boolean hasGenericMetadata();
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata();
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
+ */
+ com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsRequest.java
new file mode 100644
index 000000000000..a0cb7ff907e2
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsRequest.java
@@ -0,0 +1,1503 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Request message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest) + AsyncRetrieveContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsRequest"); + } + + // Use AsyncRetrieveContextsRequest.newBuilder() to construct. + private AsyncRetrieveContextsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsRequest() { + parent_ = ""; + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest.class, + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1.RagQuery query_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagQuery getQuery() {
+ return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() {
+ return query_ == null ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance() : query_;
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(3, tools_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tools_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest other =
+ (com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
+ if (hasQuery()) {
+ if (!getQuery().equals(other.getQuery())) return false;
+ }
+ if (!getToolsList().equals(other.getToolsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1.RagQuery query_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>
+ queryBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ public com.google.cloud.aiplatform.v1.RagQuery getQuery() {
+ if (queryBuilder_ == null) {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()
+ : query_;
+ } else {
+ return queryBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ query_ = value;
+ } else {
+ queryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1.RagQuery.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeQuery(com.google.cloud.aiplatform.v1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && query_ != null
+ && query_ != com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()) {
+ getQueryBuilder().mergeFrom(value);
+ } else {
+ query_ = value;
+ }
+ } else {
+ queryBuilder_.mergeFrom(value);
+ }
+ if (query_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuery() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ query_ = null;
+ if (queryBuilder_ != null) {
+ queryBuilder_.dispose();
+ queryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.RagQuery.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetQueryFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>
+ internalGetQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagQuery,
+ com.google.cloud.aiplatform.v1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder>(
+ getQuery(), getParentForChildren(), isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
+ }
+
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getToolsCount() {
+ if (toolsBuilder_ == null) {
+ return tools_.size();
+ } else {
+ return toolsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool getTools(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.set(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(
+ int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.aiplatform.v1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(
+ int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllTools(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.Tool> values) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_);
+ onChanged();
+ } else {
+ toolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearTools() {
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ toolsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeTools(int index) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.remove(index);
+ onChanged();
+ } else {
+ toolsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder getToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ if (toolsBuilder_ != null) {
+ return toolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tools_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder() {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ boolean hasQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ com.google.cloud.aiplatform.v1.RagQuery getQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1.RagQueryOrBuilder getQueryOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.Tool getTools(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getToolsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1.ToolOrBuilder> getToolsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsResponse.java
new file mode 100644
index 000000000000..a18f1885e620
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncRetrieveContextsResponse.java
@@ -0,0 +1,705 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse) + AsyncRetrieveContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsResponse"); + } + + // Use AsyncRetrieveContextsResponse.newBuilder() to construct. + private AsyncRetrieveContextsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse.class, + com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse.Builder.class); + } + + private int bitField0_; + public static final int CONTEXTS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.RagContexts contexts_; + + /** + * + * + *
+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ @java.lang.Override
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagContexts getContexts() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getContexts());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContexts());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse other =
+ (com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse) obj;
+
+ if (hasContexts() != other.hasContexts()) return false;
+ if (hasContexts()) {
+ if (!getContexts().equals(other.getContexts())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasContexts()) {
+ hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
+ hash = (53 * hash) + getContexts().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ public com.google.cloud.aiplatform.v1.RagContexts getContexts() {
+ if (contextsBuilder_ == null) {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ } else {
+ return contextsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contexts_ = value;
+ } else {
+ contextsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1.RagContexts.Builder builderForValue) {
+ if (contextsBuilder_ == null) {
+ contexts_ = builderForValue.build();
+ } else {
+ contextsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public Builder mergeContexts(com.google.cloud.aiplatform.v1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && contexts_ != null
+ && contexts_ != com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()) {
+ getContextsBuilder().mergeFrom(value);
+ } else {
+ contexts_ = value;
+ }
+ } else {
+ contextsBuilder_.mergeFrom(value);
+ }
+ if (contexts_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public Builder clearContexts() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ contexts_ = null;
+ if (contextsBuilder_ != null) {
+ contextsBuilder_.dispose();
+ contextsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public com.google.cloud.aiplatform.v1.RagContexts.Builder getContextsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetContextsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ public com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder() {
+ if (contextsBuilder_ != null) {
+ return contextsBuilder_.getMessageOrBuilder();
+ } else {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagContexts,
+ com.google.cloud.aiplatform.v1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder>
+ internalGetContextsFieldBuilder() {
+ if (contextsBuilder_ == null) {
+ contextsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.RagContexts,
+ com.google.cloud.aiplatform.v1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder>(
+ getContexts(), getParentForChildren(), isClean());
+ contexts_ = null;
+ }
+ return contextsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse)
+ private static final com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1.AsyncRetrieveContextsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ boolean hasContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ com.google.cloud.aiplatform.v1.RagContexts getContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1.RagContexts contexts = 1;
+ */
+ com.google.cloud.aiplatform.v1.RagContextsOrBuilder getContextsOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java
index 4c73302b10a9..cf4e2ee06f36 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Fact.java
@@ -363,7 +363,7 @@ public com.google.protobuf.ByteString getSummaryBytes() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return Whether the vectorDistance field is set.
*/
@java.lang.Override
@@ -382,7 +382,7 @@ public boolean hasVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return The vectorDistance.
*/
@java.lang.Override
@@ -1514,7 +1514,7 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return Whether the vectorDistance field is set.
*/
@java.lang.Override
@@ -1533,7 +1533,7 @@ public boolean hasVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return The vectorDistance.
*/
@java.lang.Override
@@ -1552,7 +1552,7 @@ public double getVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @param value The vectorDistance to set.
* @return This builder for chaining.
*/
@@ -1575,7 +1575,7 @@ public Builder setVectorDistance(double value) {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java
index bd99d6cfe87a..f8569caecffb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FactOrBuilder.java
@@ -192,7 +192,7 @@ public interface FactOrBuilder
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return Whether the vectorDistance field is set.
*/
@java.lang.Deprecated
@@ -208,7 +208,7 @@ public interface FactOrBuilder
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
+ * google/cloud/aiplatform/v1/vertex_rag_service.proto;l=313
* @return The vectorDistance.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java
index 1d910ccc81a7..05ecea93333e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrieveContextsRequest.java
@@ -178,7 +178,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Deprecated
@@ -198,7 +198,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return The vectorDistanceThreshold.
*/
@java.lang.Deprecated
@@ -1442,7 +1442,7 @@ public int getRagResourcesCount() {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Override
@@ -1465,7 +1465,7 @@ public boolean hasVectorDistanceThreshold() {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return The vectorDistanceThreshold.
*/
@java.lang.Override
@@ -2403,7 +2403,7 @@ public Builder removeRagResources(int index) {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Override
@@ -2426,7 +2426,7 @@ public boolean hasVectorDistanceThreshold() {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return The vectorDistanceThreshold.
*/
@java.lang.Override
@@ -2449,7 +2449,7 @@ public double getVectorDistanceThreshold() {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @param value The vectorDistanceThreshold to set.
* @return This builder for chaining.
*/
@@ -2476,7 +2476,7 @@ public Builder setVectorDistanceThreshold(double value) {
*
* @deprecated
* google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=118
+ * is deprecated. See google/cloud/aiplatform/v1/vertex_rag_service.proto;l=143
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java
index bf7a4531c32a..988c889834cd 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceProto.java
@@ -100,6 +100,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Claim_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Claim_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_AskContextsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_AskContextsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_AskContextsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_AskContextsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -114,23 +134,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "1\032\034google/api/annotations.proto\032\027google/"
+ "api/client.proto\032\037google/api/field_behav"
+ "ior.proto\032\031google/api/resource.proto\032(go"
- + "ogle/cloud/aiplatform/v1/content.proto\032%google/cloud/aiplatform/v1/tool.proto\0320g"
- + "oogle/cloud/aiplatform/v1/vertex_rag_data.proto\"{\n"
+ + "ogle/cloud/aiplatform/v1/content.proto\032*google/cloud/aiplatform/v1/operation.pro"
+ + "to\032%google/cloud/aiplatform/v1/tool.proto\0320google/cloud/aiplatform/v1/vertex_rag"
+ + "_data.proto\032#google/longrunning/operations.proto\"{\n"
+ "\010RagQuery\022\023\n"
+ "\004text\030\001 \001(\tB\003\340A\001H\000\022Q\n"
- + "\024rag_retrieval_config\030\006 \001(\0132..google."
- + "cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001B\007\n"
+ + "\024rag_retrieval_config\030\006 \001(\0132..google"
+ + ".cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001B\007\n"
+ "\005query\"\264\004\n"
+ "\027RetrieveContextsRequest\022^\n"
- + "\020vertex_rag_store\030\002 \001(\0132B.google.clou"
- + "d.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreH\000\0229\n"
+ + "\020vertex_rag_store\030\002 \001(\0132B.google.clo"
+ + "ud.aiplatform.v1.RetrieveContextsRequest.VertexRagStoreH\000\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\0228\n"
+ "\005query\030\003"
+ " \001(\0132$.google.cloud.aiplatform.v1.RagQueryB\003\340A\002\032\264\002\n"
+ "\016VertexRagStore\022j\n\r"
- + "rag_resources\030\003 \003(\0132N.google.cloud.aiplatfor"
- + "m.v1.RetrieveContextsRequest.VertexRagStore.RagResourceB\003\340A\001\022-\n"
+ + "rag_resources\030\003 \003(\0132N.google.cloud.aiplatfo"
+ + "rm.v1.RetrieveContextsRequest.VertexRagStore.RagResourceB\003\340A\001\022-\n"
+ "\031vector_distance_threshold\030\002"
+ " \001(\001B\005\030\001\340A\001H\000\210\001\001\032i\n"
+ "\013RagResource\022?\n\n"
@@ -152,14 +173,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\030RetrieveContextsResponse\0229\n"
+ "\010contexts\030\001 \001(\0132\'.google.cloud.aiplatform.v1.RagContexts\"\356\002\n"
+ "\024AugmentPromptRequest\022K\n"
- + "\020vertex_rag_store\030\004 \001(\0132*"
- + ".google.cloud.aiplatform.v1.VertexRagStoreB\003\340A\001H\000\0229\n"
+ + "\020vertex_rag_store\030\004 \001(\0132"
+ + "*.google.cloud.aiplatform.v1.VertexRagStoreB\003\340A\001H\000\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022:\n"
+ "\010contents\030\002"
+ " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001\022J\n"
- + "\005model\030\003 \001(\01326.google.cloud.a"
- + "iplatform.v1.AugmentPromptRequest.ModelB\003\340A\001\0327\n"
+ + "\005model\030\003 \001(\01326.google.cloud."
+ + "aiplatform.v1.AugmentPromptRequest.ModelB\003\340A\001\0327\n"
+ "\005Model\022\022\n"
+ "\005model\030\001 \001(\tB\003\340A\001\022\032\n\r"
+ "model_version\030\002 \001(\tB\003\340A\001B\r\n"
@@ -170,11 +191,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\031CorroborateContentRequest\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022>\n"
- + "\007content\030\002 \001(\013"
- + "2#.google.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n"
+ + "\007content\030\002 \001("
+ + "\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n"
+ "\005facts\030\003 \003(\0132 .google.cloud.aiplatform.v1.FactB\003\340A\001\022Y\n\n"
- + "parameters\030\004 \001("
- + "\0132@.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersB\003\340A\001\032-\n\n"
+ + "parameters\030\004 \001"
+ + "(\0132@.google.cloud.aiplatform.v1.CorroborateContentRequest.ParametersB\003\340A\001\032-\n\n"
+ "Parameters\022\037\n"
+ "\022citation_threshold\030\001 \001(\001B\003\340A\001B\n\n"
+ "\010_content\"\211\001\n"
@@ -205,27 +226,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005score\030\004 \001(\002H\002\210\001\001B\016\n"
+ "\014_start_indexB\014\n\n"
+ "_end_indexB\010\n"
- + "\006_score2\346\005\n"
+ + "\006_score\"\277\001\n"
+ + "\022AskContextsRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ + "!locations.googleapis.com/Location\0228\n"
+ + "\005query\030\002 \001(\0132$.google.cloud.aiplatform.v1.RagQueryB\003\340A\002\0224\n"
+ + "\005tools\030\003 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\"b\n"
+ + "\023AskContextsResponse\022\020\n"
+ + "\010response\030\001 \001(\t\0229\n"
+ + "\010contexts\030\002 \001(\0132\'.google.cloud.aiplatform.v1.RagContexts\"\311\001\n"
+ + "\034AsyncRetrieveContextsRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ + "!locations.googleapis.com/Location\0228\n"
+ + "\005query\030\002 \001(\0132$.google.cloud.aiplatform.v1.RagQueryB\003\340A\002\0224\n"
+ + "\005tools\030\003 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\"Z\n"
+ + "\035AsyncRetrieveContextsResponse\0229\n"
+ + "\010contexts\030\001 \001(\0132\'.google.cloud.aiplatform.v1.RagContexts\"x\n"
+ + "&AsyncRetrieveContextsOperationMetadata\022N\n"
+ + "\020generic_metadata\030\001 \001(\01324.goog"
+ + "le.cloud.aiplatform.v1.GenericOperationMetadata2\265\t\n"
+ "\020VertexRagService\022\315\001\n"
- + "\020RetrieveContexts\0223.google.cloud.aiplatfo"
- + "rm.v1.RetrieveContextsRequest\0324.google.cloud.aiplatform.v1.RetrieveContextsRespo"
- + "nse\"N\332A\014parent,query\202\323\344\223\0029\"4/v1/{parent="
- + "projects/*/locations/*}:retrieveContexts:\001*\022\322\001\n\r"
- + "AugmentPrompt\0220.google.cloud.aiplatform.v1.AugmentPromptRequest\0321.google"
- + ".cloud.aiplatform.v1.AugmentPromptRespon"
- + "se\"\\\332A\035parent,model,vertex_rag_store\202\323\344\223"
- + "\0026\"1/v1/{parent=projects/*/locations/*}:augmentPrompt:\001*\022\335\001\n"
- + "\022CorroborateContent\0225.google.cloud.aiplatform.v1.Corroborate"
- + "ContentRequest\0326.google.cloud.aiplatform"
- + ".v1.CorroborateContentResponse\"X\332A\024paren"
- + "t,content,facts\202\323\344\223\002;\"6/v1/{parent=proje"
- + "cts/*/locations/*}:corroborateContent:\001*"
- + "\032M\312A\031aiplatform.googleapis.com\322A.https:/"
- + "/www.googleapis.com/auth/cloud-platformB\323\001\n"
- + "\036com.google.cloud.aiplatform.v1B\025VertexRagServiceProtoP\001Z>cloud.google.com/go"
- + "/aiplatform/apiv1/aiplatformpb;aiplatfor"
- + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl"
- + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\020RetrieveContexts\0223.google.cloud.aiplatform.v1.R"
+ + "etrieveContextsRequest\0324.google.cloud.ai"
+ + "platform.v1.RetrieveContextsResponse\"N\332A"
+ + "\014parent,query\202\323\344\223\0029\"4/v1/{parent=projects/*/locations/*}:retrieveContexts:\001*\022\322\001\n"
+ + "\r"
+ + "AugmentPrompt\0220.google.cloud.aiplatform.v1.AugmentPromptRequest\0321.google.cloud."
+ + "aiplatform.v1.AugmentPromptResponse\"\\\332A\035"
+ + "parent,model,vertex_rag_store\202\323\344\223\0026\"1/v1"
+ + "/{parent=projects/*/locations/*}:augmentPrompt:\001*\022\335\001\n"
+ + "\022CorroborateContent\0225.google.cloud.aiplatform.v1.CorroborateContent"
+ + "Request\0326.google.cloud.aiplatform.v1.Cor"
+ + "roborateContentResponse\"X\332A\024parent,conte"
+ + "nt,facts\202\323\344\223\002;\"6/v1/{parent=projects/*/locations/*}:corroborateContent:\001*\022\271\001\n"
+ + "\013AskContexts\022..google.cloud.aiplatform.v1.A"
+ + "skContextsRequest\032/.google.cloud.aiplatf"
+ + "orm.v1.AskContextsResponse\"I\332A\014parent,qu"
+ + "ery\202\323\344\223\0024\"//v1/{parent=projects/*/locations/*}:askContexts:\001*\022\220\002\n"
+ + "\025AsyncRetrieveContexts\0228.google.cloud.aiplatform.v1.Asy"
+ + "ncRetrieveContextsRequest\032\035.google.longrunning.Operation\"\235\001\312AG\n"
+ + "\035AsyncRetrieveContextsResponse\022&AsyncRetrieveContextsOper"
+ + "ationMetadata\332A\014parent,query\202\323\344\223\002>\"9/v1/"
+ + "{parent=projects/*/locations/*}:asyncRet"
+ + "rieveContexts:\001*\032M\312A\031aiplatform.googleap"
+ + "is.com\322A.https://www.googleapis.com/auth/cloud-platformB\323\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\025VertexRagServiceProtoP\001Z>clo"
+ + "ud.google.com/go/aiplatform/apiv1/aiplat"
+ + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla"
+ + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035"
+ + "Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -236,8 +285,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(),
com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(),
com.google.cloud.aiplatform.v1.VertexRagDataProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
});
internal_static_google_cloud_aiplatform_v1_RagQuery_descriptor =
getDescriptor().getMessageType(0);
@@ -360,14 +411,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"StartIndex", "EndIndex", "FactIndexes", "Score",
});
+ internal_static_google_cloud_aiplatform_v1_AskContextsRequest_descriptor =
+ getDescriptor().getMessageType(10);
+ internal_static_google_cloud_aiplatform_v1_AskContextsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_AskContextsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Query", "Tools",
+ });
+ internal_static_google_cloud_aiplatform_v1_AskContextsResponse_descriptor =
+ getDescriptor().getMessageType(11);
+ internal_static_google_cloud_aiplatform_v1_AskContextsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_AskContextsResponse_descriptor,
+ new java.lang.String[] {
+ "Response", "Contexts",
+ });
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_descriptor =
+ getDescriptor().getMessageType(12);
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Query", "Tools",
+ });
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_descriptor =
+ getDescriptor().getMessageType(13);
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsResponse_descriptor,
+ new java.lang.String[] {
+ "Contexts",
+ });
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_descriptor =
+ getDescriptor().getMessageType(14);
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_AsyncRetrieveContextsOperationMetadata_descriptor,
+ new java.lang.String[] {
+ "GenericMetadata",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1.ContentProto.getDescriptor();
+ com.google.cloud.aiplatform.v1.OperationProto.getDescriptor();
com.google.cloud.aiplatform.v1.ToolProto.getDescriptor();
com.google.cloud.aiplatform.v1.VertexRagDataProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
@@ -376,6 +469,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ClientProto.methodSignature);
registry.add(com.google.api.ClientProto.oauthScopes);
registry.add(com.google.api.ResourceProto.resourceReference);
+ registry.add(com.google.longrunning.OperationsProto.operationInfo);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto
index d7c75c9d238d..57e6aabd1413 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,8 +21,10 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/aiplatform/v1/content.proto";
+import "google/cloud/aiplatform/v1/operation.proto";
import "google/cloud/aiplatform/v1/tool.proto";
import "google/cloud/aiplatform/v1/vertex_rag_data.proto";
+import "google/longrunning/operations.proto";
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
@@ -69,6 +71,29 @@ service VertexRagService {
};
option (google.api.method_signature) = "parent,content,facts";
}
+
+ // Agentic Retrieval Ask API for RAG.
+ rpc AskContexts(AskContextsRequest) returns (AskContextsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}:askContexts"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,query";
+ }
+
+ // Asynchronous API to retrieves relevant contexts for a query.
+ rpc AsyncRetrieveContexts(AsyncRetrieveContextsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}:asyncRetrieveContexts"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,query";
+ option (google.longrunning.operation_info) = {
+ response_type: "AsyncRetrieveContextsResponse"
+ metadata_type: "AsyncRetrieveContextsOperationMetadata"
+ };
+ }
}
// A query to retrieve relevant contexts.
@@ -316,3 +341,69 @@ message Claim {
// Confidence score of this corroboration.
optional float score = 4;
}
+
+// Agentic Retrieval Ask API for RAG.
+// Request message for
+// [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts].
+message AskContextsRequest {
+ // Required. The resource name of the Location from which to retrieve
+ // RagContexts. The users must have permission to make a call in the project.
+ // Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Single RAG retrieve query.
+ RagQuery query = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The tools to use for AskContexts.
+ repeated Tool tools = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [VertexRagService.AskContexts][google.cloud.aiplatform.v1.VertexRagService.AskContexts].
+message AskContextsResponse {
+ // The Retrieval Response.
+ string response = 1;
+
+ // The contexts of the query.
+ RagContexts contexts = 2;
+}
+
+// Request message for
+// [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts].
+message AsyncRetrieveContextsRequest {
+ // Required. The resource name of the Location from which to retrieve
+ // RagContexts. The users must have permission to make a call in the project.
+ // Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Single RAG retrieve query.
+ RagQuery query = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The tools to use for AskContexts.
+ repeated Tool tools = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts].
+message AsyncRetrieveContextsResponse {
+ // The contexts of the query.
+ RagContexts contexts = 1;
+}
+
+// Metadata for AsyncRetrieveContextsOperation.
+message AsyncRetrieveContextsOperationMetadata {
+ // The operation generic information.
+ GenericOperationMetadata generic_metadata = 1;
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsRequest.java
new file mode 100644
index 000000000000..7ec2dde91772
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsRequest.java
@@ -0,0 +1,1512 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Agentic Retrieval Ask API for RAG. + * Request message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AskContextsRequest} + */ +@com.google.protobuf.Generated +public final class AskContextsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AskContextsRequest) + AskContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AskContextsRequest"); + } + + // Use AskContextsRequest.newBuilder() to construct. + private AskContextsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AskContextsRequest() { + parent_ = ""; + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AskContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.AskContextsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1beta1.RagQuery query_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagQuery getQuery() {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder() {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(3, tools_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tools_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AskContextsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.AskContextsRequest other =
+ (com.google.cloud.aiplatform.v1beta1.AskContextsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
+ if (hasQuery()) {
+ if (!getQuery().equals(other.getQuery())) return false;
+ }
+ if (!getToolsList().equals(other.getToolsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.AskContextsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Agentic Retrieval Ask API for RAG. + * Request message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AskContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.RagQuery query_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>
+ queryBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQuery getQuery() {
+ if (queryBuilder_ == null) {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ } else {
+ return queryBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1beta1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ query_ = value;
+ } else {
+ queryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1beta1.RagQuery.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeQuery(com.google.cloud.aiplatform.v1beta1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && query_ != null
+ && query_ != com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()) {
+ getQueryBuilder().mergeFrom(value);
+ } else {
+ query_ = value;
+ }
+ } else {
+ queryBuilder_.mergeFrom(value);
+ }
+ if (query_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuery() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ query_ = null;
+ if (queryBuilder_ != null) {
+ queryBuilder_.dispose();
+ queryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQuery.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetQueryFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>
+ internalGetQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>(
+ getQuery(), getParentForChildren(), isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
+ }
+
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getToolsCount() {
+ if (toolsBuilder_ == null) {
+ return tools_.size();
+ } else {
+ return toolsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.set(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(
+ int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(
+ int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllTools(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.Tool> values) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_);
+ onChanged();
+ } else {
+ toolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearTools() {
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ toolsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeTools(int index) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.remove(index);
+ onChanged();
+ } else {
+ toolsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ if (toolsBuilder_ != null) {
+ return toolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tools_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder() {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ boolean hasQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ com.google.cloud.aiplatform.v1beta1.RagQuery getQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.Tool getTools(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getToolsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsResponse.java
new file mode 100644
index 000000000000..9bbd396e7a8b
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AskContextsResponse.java
@@ -0,0 +1,892 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AskContextsResponse} + */ +@com.google.protobuf.Generated +public final class AskContextsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AskContextsResponse) + AskContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AskContextsResponse"); + } + + // Use AskContextsResponse.newBuilder() to construct. + private AskContextsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AskContextsResponse() { + response_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AskContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.AskContextsResponse.Builder.class); + } + + private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object response_ = ""; + + /** + * + * + *
+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ @java.lang.Override
+ public java.lang.String getResponse() {
+ java.lang.Object ref = response_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ response_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResponseBytes() {
+ java.lang.Object ref = response_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ response_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTEXTS_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1beta1.RagContexts contexts_;
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ @java.lang.Override
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagContexts getContexts() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(response_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, response_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getContexts());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(response_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, response_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContexts());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AskContextsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.AskContextsResponse other =
+ (com.google.cloud.aiplatform.v1beta1.AskContextsResponse) obj;
+
+ if (!getResponse().equals(other.getResponse())) return false;
+ if (hasContexts() != other.hasContexts()) return false;
+ if (hasContexts()) {
+ if (!getContexts().equals(other.getContexts())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getResponse().hashCode();
+ if (hasContexts()) {
+ hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
+ hash = (53 * hash) + getContexts().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.AskContextsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AskContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ public java.lang.String getResponse() {
+ java.lang.Object ref = response_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ response_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ public com.google.protobuf.ByteString getResponseBytes() {
+ java.lang.Object ref = response_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ response_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @param value The response to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponse(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ response_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponse() {
+ response_ = getDefaultInstance().getResponse();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @param value The bytes for response to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ response_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.RagContexts contexts_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagContexts,
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder>
+ contextsBuilder_;
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContexts getContexts() {
+ if (contextsBuilder_ == null) {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ } else {
+ return contextsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1beta1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contexts_ = value;
+ } else {
+ contextsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public Builder setContexts(
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder builderForValue) {
+ if (contextsBuilder_ == null) {
+ contexts_ = builderForValue.build();
+ } else {
+ contextsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public Builder mergeContexts(com.google.cloud.aiplatform.v1beta1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && contexts_ != null
+ && contexts_ != com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()) {
+ getContextsBuilder().mergeFrom(value);
+ } else {
+ contexts_ = value;
+ }
+ } else {
+ contextsBuilder_.mergeFrom(value);
+ }
+ if (contexts_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public Builder clearContexts() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ contexts_ = null;
+ if (contextsBuilder_ != null) {
+ contextsBuilder_.dispose();
+ contextsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContexts.Builder getContextsBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetContextsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder() {
+ if (contextsBuilder_ != null) {
+ return contextsBuilder_.getMessageOrBuilder();
+ } else {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagContexts,
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder>
+ internalGetContextsFieldBuilder() {
+ if (contextsBuilder_ == null) {
+ contextsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagContexts,
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder>(
+ getContexts(), getParentForChildren(), isClean());
+ contexts_ = null;
+ }
+ return contextsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AskContextsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AskContextsResponse)
+ private static final com.google.cloud.aiplatform.v1beta1.AskContextsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AskContextsResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AskContextsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The response.
+ */
+ java.lang.String getResponse();
+
+ /**
+ *
+ *
+ * + * The Retrieval Response. + *+ * + *
string response = 1;
+ *
+ * @return The bytes for response.
+ */
+ com.google.protobuf.ByteString getResponseBytes();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return Whether the contexts field is set.
+ */
+ boolean hasContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ *
+ * @return The contexts.
+ */
+ com.google.cloud.aiplatform.v1beta1.RagContexts getContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 2;
+ */
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsOperationMetadata.java
new file mode 100644
index 000000000000..a85ca0276b72
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsOperationMetadata.java
@@ -0,0 +1,733 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Metadata for AsyncRetrieveContextsOperation. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata) + AsyncRetrieveContextsOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsOperationMetadata"); + } + + // Use AsyncRetrieveContextsOperationMetadata.newBuilder() to construct. + private AsyncRetrieveContextsOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getGenericMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata other =
+ (com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata) obj;
+
+ if (hasGenericMetadata() != other.hasGenericMetadata()) return false;
+ if (hasGenericMetadata()) {
+ if (!getGenericMetadata().equals(other.getGenericMetadata())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasGenericMetadata()) {
+ hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getGenericMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata for AsyncRetrieveContextsOperation. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ public boolean hasGenericMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() {
+ if (genericMetadataBuilder_ == null) {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ } else {
+ return genericMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ genericMetadata_ = value;
+ } else {
+ genericMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder setGenericMetadata(
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadata_ = builderForValue.build();
+ } else {
+ genericMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder mergeGenericMetadata(
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) {
+ if (genericMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && genericMetadata_ != null
+ && genericMetadata_
+ != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata
+ .getDefaultInstance()) {
+ getGenericMetadataBuilder().mergeFrom(value);
+ } else {
+ genericMetadata_ = value;
+ }
+ } else {
+ genericMetadataBuilder_.mergeFrom(value);
+ }
+ if (genericMetadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public Builder clearGenericMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ genericMetadata_ = null;
+ if (genericMetadataBuilder_ != null) {
+ genericMetadataBuilder_.dispose();
+ genericMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder
+ getGenericMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetGenericMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder() {
+ if (genericMetadataBuilder_ != null) {
+ return genericMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return genericMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance()
+ : genericMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>
+ internalGetGenericMetadataFieldBuilder() {
+ if (genericMetadataBuilder_ == null) {
+ genericMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata,
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>(
+ getGenericMetadata(), getParentForChildren(), isClean());
+ genericMetadata_ = null;
+ }
+ return genericMetadataBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata)
+ private static final com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return Whether the genericMetadata field is set.
+ */
+ boolean hasGenericMetadata();
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ *
+ * @return The genericMetadata.
+ */
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata();
+
+ /**
+ *
+ *
+ * + * The operation generic information. + *+ * + *
.google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1;
+ */
+ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder
+ getGenericMetadataOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsRequest.java
new file mode 100644
index 000000000000..f15039b5b052
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsRequest.java
@@ -0,0 +1,1517 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Request message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest) + AsyncRetrieveContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsRequest"); + } + + // Use AsyncRetrieveContextsRequest.newBuilder() to construct. + private AsyncRetrieveContextsRequest(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsRequest() { + parent_ = ""; + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 2;
+ private com.google.cloud.aiplatform.v1beta1.RagQuery query_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagQuery getQuery() {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder() {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+
+ public static final int TOOLS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ return tools_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getToolsCount() {
+ return tools_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) {
+ return tools_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) {
+ return tools_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ output.writeMessage(3, tools_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery());
+ }
+ for (int i = 0; i < tools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tools_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest other =
+ (com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
+ if (hasQuery()) {
+ if (!getQuery().equals(other.getQuery())) return false;
+ }
+ if (!getToolsList().equals(other.getToolsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (getToolsCount() > 0) {
+ hash = (37 * hash) + TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getToolsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Request message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.aiplatform.v1beta1.RagQuery query_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>
+ queryBuilder_;
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQuery getQuery() {
+ if (queryBuilder_ == null) {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ } else {
+ return queryBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1beta1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ query_ = value;
+ } else {
+ queryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuery(com.google.cloud.aiplatform.v1beta1.RagQuery.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder mergeQuery(com.google.cloud.aiplatform.v1beta1.RagQuery value) {
+ if (queryBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && query_ != null
+ && query_ != com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()) {
+ getQueryBuilder().mergeFrom(value);
+ } else {
+ query_ = value;
+ }
+ } else {
+ queryBuilder_.mergeFrom(value);
+ }
+ if (query_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuery() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ query_ = null;
+ if (queryBuilder_ != null) {
+ queryBuilder_.dispose();
+ queryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQuery.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetQueryFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagQuery.getDefaultInstance()
+ : query_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>
+ internalGetQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagQuery,
+ com.google.cloud.aiplatform.v1beta1.RagQuery.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder>(
+ getQuery(), getParentForChildren(), isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
+ }
+
+ private java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getToolsCount() {
+ if (toolsBuilder_ == null) {
+ return tools_.size();
+ } else {
+ return toolsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.set(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setTools(
+ int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) {
+ if (toolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToolsIsMutable();
+ tools_.add(index, value);
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addTools(
+ int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ toolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllTools(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.Tool> values) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_);
+ onChanged();
+ } else {
+ toolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearTools() {
+ if (toolsBuilder_ == null) {
+ tools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ toolsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeTools(int index) {
+ if (toolsBuilder_ == null) {
+ ensureToolsIsMutable();
+ tools_.remove(index);
+ onChanged();
+ } else {
+ toolsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) {
+ if (toolsBuilder_ == null) {
+ return tools_.get(index);
+ } else {
+ return toolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList() {
+ if (toolsBuilder_ != null) {
+ return toolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tools_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder() {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder(int index) {
+ return internalGetToolsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to retrieve
+ * RagContexts. The users must have permission to make a call in the project.
+ * Format:
+ * `projects/{project}/locations/{location}`.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return Whether the query field is set.
+ */
+ boolean hasQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The query.
+ */
+ com.google.cloud.aiplatform.v1beta1.RagQuery getQuery();
+
+ /**
+ *
+ *
+ * + * Required. Single RAG retrieve query. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.RagQueryOrBuilder getQueryOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.Tool getTools(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getToolsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>
+ getToolsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. The tools to use for AskContexts. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index);
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsResponse.java
new file mode 100644
index 000000000000..7362f049710e
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncRetrieveContextsResponse.java
@@ -0,0 +1,711 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse} + */ +@com.google.protobuf.Generated +public final class AsyncRetrieveContextsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse) + AsyncRetrieveContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncRetrieveContextsResponse"); + } + + // Use AsyncRetrieveContextsResponse.newBuilder() to construct. + private AsyncRetrieveContextsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AsyncRetrieveContextsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse.Builder.class); + } + + private int bitField0_; + public static final int CONTEXTS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.RagContexts contexts_; + + /** + * + * + *
+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ @java.lang.Override
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagContexts getContexts() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder() {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getContexts());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContexts());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse other =
+ (com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse) obj;
+
+ if (hasContexts() != other.hasContexts()) return false;
+ if (hasContexts()) {
+ if (!getContexts().equals(other.getContexts())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasContexts()) {
+ hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
+ hash = (53 * hash) + getContexts().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Response message for + * [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts]. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ public boolean hasContexts() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContexts getContexts() {
+ if (contextsBuilder_ == null) {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ } else {
+ return contextsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public Builder setContexts(com.google.cloud.aiplatform.v1beta1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contexts_ = value;
+ } else {
+ contextsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public Builder setContexts(
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder builderForValue) {
+ if (contextsBuilder_ == null) {
+ contexts_ = builderForValue.build();
+ } else {
+ contextsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public Builder mergeContexts(com.google.cloud.aiplatform.v1beta1.RagContexts value) {
+ if (contextsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && contexts_ != null
+ && contexts_ != com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()) {
+ getContextsBuilder().mergeFrom(value);
+ } else {
+ contexts_ = value;
+ }
+ } else {
+ contextsBuilder_.mergeFrom(value);
+ }
+ if (contexts_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public Builder clearContexts() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ contexts_ = null;
+ if (contextsBuilder_ != null) {
+ contextsBuilder_.dispose();
+ contextsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContexts.Builder getContextsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetContextsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ public com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder() {
+ if (contextsBuilder_ != null) {
+ return contextsBuilder_.getMessageOrBuilder();
+ } else {
+ return contexts_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RagContexts.getDefaultInstance()
+ : contexts_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagContexts,
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder>
+ internalGetContextsFieldBuilder() {
+ if (contextsBuilder_ == null) {
+ contextsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1beta1.RagContexts,
+ com.google.cloud.aiplatform.v1beta1.RagContexts.Builder,
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder>(
+ getContexts(), getParentForChildren(), isClean());
+ contexts_ = null;
+ }
+ return contextsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse)
+ private static final com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return Whether the contexts field is set.
+ */
+ boolean hasContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ *
+ * @return The contexts.
+ */
+ com.google.cloud.aiplatform.v1beta1.RagContexts getContexts();
+
+ /**
+ *
+ *
+ * + * The contexts of the query. + *+ * + *
.google.cloud.aiplatform.v1beta1.RagContexts contexts = 1;
+ */
+ com.google.cloud.aiplatform.v1beta1.RagContextsOrBuilder getContextsOrBuilder();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequest.java
index dde99523d191..bea54946d907 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequest.java
@@ -54,6 +54,7 @@ private CreateMemoryRequest(com.google.protobuf.GeneratedMessage.Builder> buil
private CreateMemoryRequest() {
parent_ = "";
+ memoryId_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -192,6 +193,71 @@ public com.google.cloud.aiplatform.v1beta1.MemoryOrBuilder getMemoryOrBuilder()
: memory_;
}
+ public static final int MEMORY_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object memoryId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The memoryId.
+ */
+ @java.lang.Override
+ public java.lang.String getMemoryId() {
+ java.lang.Object ref = memoryId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ memoryId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for memoryId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMemoryIdBytes() {
+ java.lang.Object ref = memoryId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ memoryId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -212,6 +278,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getMemory());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(memoryId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, memoryId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -227,6 +296,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMemory());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(memoryId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, memoryId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -248,6 +320,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasMemory()) {
if (!getMemory().equals(other.getMemory())) return false;
}
+ if (!getMemoryId().equals(other.getMemoryId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -265,6 +338,8 @@ public int hashCode() {
hash = (37 * hash) + MEMORY_FIELD_NUMBER;
hash = (53 * hash) + getMemory().hashCode();
}
+ hash = (37 * hash) + MEMORY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMemoryId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -422,6 +497,7 @@ public Builder clear() {
memoryBuilder_.dispose();
memoryBuilder_ = null;
}
+ memoryId_ = "";
return this;
}
@@ -466,6 +542,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateMemoryReque
result.memory_ = memoryBuilder_ == null ? memory_ : memoryBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.memoryId_ = memoryId_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -490,6 +569,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateMemoryRequest
if (other.hasMemory()) {
mergeMemory(other.getMemory());
}
+ if (!other.getMemoryId().isEmpty()) {
+ memoryId_ = other.memoryId_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -528,6 +612,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ memoryId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -890,6 +980,147 @@ public com.google.cloud.aiplatform.v1beta1.MemoryOrBuilder getMemoryOrBuilder()
return memoryBuilder_;
}
+ private java.lang.Object memoryId_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The memoryId.
+ */
+ public java.lang.String getMemoryId() {
+ java.lang.Object ref = memoryId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ memoryId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for memoryId.
+ */
+ public com.google.protobuf.ByteString getMemoryIdBytes() {
+ java.lang.Object ref = memoryId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ memoryId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The memoryId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMemoryId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ memoryId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMemoryId() {
+ memoryId_ = getDefaultInstance().getMemoryId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for memoryId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMemoryIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ memoryId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateMemoryRequest)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequestOrBuilder.java
index bb69927aa7c0..45c34a3e2c9b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMemoryRequestOrBuilder.java
@@ -102,4 +102,42 @@ public interface CreateMemoryRequestOrBuilder
*
*/
com.google.cloud.aiplatform.v1beta1.MemoryOrBuilder getMemoryOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The memoryId.
+ */
+ java.lang.String getMemoryId();
+
+ /**
+ *
+ *
+ * + * Optional. The user defined ID to use for memory, which will become the + * final component of the memory resource name. If not provided, Vertex AI + * will generate a value for this ID. + * + * 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. + *+ * + *
string memory_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for memoryId.
+ */
+ com.google.protobuf.ByteString getMemoryIdBytes();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequest.java
index a2493e8722bc..ea65c8b3c172 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequest.java
@@ -54,6 +54,7 @@ private CreateSessionRequest(com.google.protobuf.GeneratedMessage.Builder> bui
private CreateSessionRequest() {
parent_ = "";
+ sessionId_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -192,6 +193,71 @@ public com.google.cloud.aiplatform.v1beta1.SessionOrBuilder getSessionOrBuilder(
: session_;
}
+ public static final int SESSION_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sessionId.
+ */
+ @java.lang.Override
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for sessionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -212,6 +278,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getSession());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, sessionId_);
+ }
getUnknownFields().writeTo(output);
}
@@ -227,6 +296,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSession());
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sessionId_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -248,6 +320,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasSession()) {
if (!getSession().equals(other.getSession())) return false;
}
+ if (!getSessionId().equals(other.getSessionId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -265,6 +338,8 @@ public int hashCode() {
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
}
+ hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -422,6 +497,7 @@ public Builder clear() {
sessionBuilder_.dispose();
sessionBuilder_ = null;
}
+ sessionId_ = "";
return this;
}
@@ -466,6 +542,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateSessionRequ
result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.sessionId_ = sessionId_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -490,6 +569,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateSessionReques
if (other.hasSession()) {
mergeSession(other.getSession());
}
+ if (!other.getSessionId().isEmpty()) {
+ sessionId_ = other.sessionId_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -528,6 +612,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ sessionId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -890,6 +980,147 @@ public com.google.cloud.aiplatform.v1beta1.SessionOrBuilder getSessionOrBuilder(
return sessionBuilder_;
}
+ private java.lang.Object 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sessionId.
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for sessionId.
+ */
+ public com.google.protobuf.ByteString getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sessionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSessionId() {
+ sessionId_ = getDefaultInstance().getSessionId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sessionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateSessionRequest)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequestOrBuilder.java
index 177adb203f38..407823ac34c2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSessionRequestOrBuilder.java
@@ -102,4 +102,42 @@ public interface CreateSessionRequestOrBuilder
*
*/
com.google.cloud.aiplatform.v1beta1.SessionOrBuilder getSessionOrBuilder();
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sessionId.
+ */
+ java.lang.String getSessionId();
+
+ /**
+ *
+ *
+ * + * 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. + * + * 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. + *+ * + *
string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for sessionId.
+ */
+ com.google.protobuf.ByteString getSessionIdBytes();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Fact.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Fact.java
index 343923a2d705..ea53dfdfdad4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Fact.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Fact.java
@@ -363,7 +363,7 @@ public com.google.protobuf.ByteString getSummaryBytes() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return Whether the vectorDistance field is set.
*/
@java.lang.Override
@@ -382,7 +382,7 @@ public boolean hasVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return The vectorDistance.
*/
@java.lang.Override
@@ -1520,7 +1520,7 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return Whether the vectorDistance field is set.
*/
@java.lang.Override
@@ -1539,7 +1539,7 @@ public boolean hasVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return The vectorDistance.
*/
@java.lang.Override
@@ -1558,7 +1558,7 @@ public double getVectorDistance() {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @param value The vectorDistance to set.
* @return This builder for chaining.
*/
@@ -1581,7 +1581,7 @@ public Builder setVectorDistance(double value) {
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java
index bdcd63aa51a6..1f2787f0b1e7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FactOrBuilder.java
@@ -192,7 +192,7 @@ public interface FactOrBuilder
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return Whether the vectorDistance field is set.
*/
@java.lang.Deprecated
@@ -208,7 +208,7 @@ public interface FactOrBuilder
* optional double vector_distance = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.Fact.vector_distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=318
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=343
* @return The vectorDistance.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceProto.java
index 0ff3625a4c99..6dec965a615e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceProto.java
@@ -157,25 +157,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e.proto\032-google/cloud/aiplatform/v1beta1/content.proto\0321google/cloud/aiplatform/"
+ "v1beta1/memory_bank.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\032#goog"
+ "le/longrunning/operations.proto\032\033google/protobuf/empty.proto\032"
- + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\226\001\n"
+ + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\256\001\n"
+ "\023CreateMemoryRequest\022A\n"
+ "\006parent\030\001 \001(\tB1\340A\002\372A+\n"
+ ")aiplatform.googleapis.com/ReasoningEngine\022<\n"
+ "\006memory\030\002 \001(\0132\'.goo"
- + "gle.cloud.aiplatform.v1beta1.MemoryB\003\340A\002\"t\n"
+ + "gle.cloud.aiplatform.v1beta1.MemoryB\003\340A\002\022\026\n"
+ + "\tmemory_id\030\003 \001(\tB\003\340A\001\"t\n"
+ "\035CreateMemoryOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cloud.aipla"
- + "tform.v1beta1.GenericOperationMetadata\"J\n"
+ + "\020generic_metadata\030\001 "
+ + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"J\n"
+ "\020GetMemoryRequest\0226\n"
+ "\004name\030\001 \001(\tB(\340A\002\372A\"\n"
+ " aiplatform.googleapis.com/Memory\"\211\001\n"
+ "\023UpdateMemoryRequest\022<\n"
- + "\006memory\030\001 \001(\0132\'.goo"
- + "gle.cloud.aiplatform.v1beta1.MemoryB\003\340A\002\0224\n"
+ + "\006memory\030\001"
+ + " \001(\0132\'.google.cloud.aiplatform.v1beta1.MemoryB\003\340A\002\0224\n"
+ "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"t\n"
+ "\035UpdateMemoryOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.goog"
- + "le.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\236\001\n"
+ + "\020generic_metadata\030\001"
+ + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\236\001\n"
+ "\023ListMemoriesRequest\022A\n"
+ "\006parent\030\001 \001(\tB1\340A\002\372A+\n"
+ ")aiplatform.googleapis.com/ReasoningEngine\022\023\n"
@@ -189,20 +190,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB(\340A\002\372A\"\n"
+ " aiplatform.googleapis.com/Memory\"t\n"
+ "\035DeleteMemoryOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cloud.aipla"
- + "tform.v1beta1.GenericOperationMetadata\"\240\t\n"
+ + "\020generic_metadata\030\001 "
+ + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\240\t\n"
+ "\027GenerateMemoriesRequest\022m\n"
- + "\025vertex_session_source\030\002 \001(\0132L.google.cloud.aiplatf"
- + "orm.v1beta1.GenerateMemoriesRequest.VertexSessionSourceH\000\022o\n"
- + "\026direct_contents_source\030\003 \001(\0132M.google.cloud.aiplatform.v1be"
- + "ta1.GenerateMemoriesRequest.DirectContentsSourceH\000\022o\n"
- + "\026direct_memories_source\030\t \001(\0132M.google.cloud.aiplatform.v1beta1.Gen"
- + "erateMemoriesRequest.DirectMemoriesSourceH\000\022A\n"
+ + "\025vertex_session_source\030\002 \001(\0132L.google.cloud.aiplatform.v1beta1.Gene"
+ + "rateMemoriesRequest.VertexSessionSourceH\000\022o\n"
+ + "\026direct_contents_source\030\003 \001(\0132M.goog"
+ + "le.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSourceH\000\022o\n"
+ + "\026direct_memories_source\030\t \001(\0132M.google.clou"
+ + "d.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSourceH\000\022A\n"
+ "\006parent\030\001 \001(\tB1\340A\002\372A+\n"
+ ")aiplatform.googleapis.com/ReasoningEngine\022\"\n"
+ "\025disable_consolidation\030\004 \001(\010B\003\340A\001\022W\n"
- + "\005scope\030\010 \003("
- + "\0132C.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.ScopeEntryB\003\340A\001\032\271\001\n"
+ + "\005scope\030\010 \003(\0132C.google.cloud"
+ + ".aiplatform.v1beta1.GenerateMemoriesRequest.ScopeEntryB\003\340A\001\032\271\001\n"
+ "\023VertexSessionSource\022:\n"
+ "\007session\030\001 \001(\tB)\340A\002\372A#\n"
+ "!aiplatform.googleapis.com/Session\0223\n\n"
@@ -210,14 +211,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010end_time\030\003"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\032\311\001\n"
+ "\024DirectContentsSource\022h\n"
- + "\006events\030\001 \003(\0132S.google.cloud."
- + "aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource.EventB\003\340A\002\032G\n"
+ + "\006events\030\001 \003(\0132S.google.cloud.aiplatform.v1bet"
+ + "a1.GenerateMemoriesRequest.DirectContentsSource.EventB\003\340A\002\032G\n"
+ "\005Event\022>\n"
+ "\007content\030\001"
+ " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\032\263\001\n"
+ "\024DirectMemoriesSource\022x\n"
- + "\017direct_memories\030\001 \003(\0132Z.google.cloud.aiplatform.v1beta1.Generate"
- + "MemoriesRequest.DirectMemoriesSource.DirectMemoryB\003\340A\002\032!\n"
+ + "\017direct_memories\030\001 \003(\0132Z.google.cloud.aip"
+ + "latform.v1beta1.GenerateMemoriesRequest."
+ + "DirectMemoriesSource.DirectMemoryB\003\340A\002\032!\n"
+ "\014DirectMemory\022\021\n"
+ "\004fact\030\001 \001(\tB\003\340A\002\032,\n\n"
+ "ScopeEntry\022\013\n"
@@ -225,29 +227,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\010\n"
+ "\006source\"\371\002\n"
+ "\030GenerateMemoriesResponse\022e\n"
- + "\022generated_memories\030\001 \003(\0132I.google.cloud.aiplatform.v1beta1.Gen"
- + "erateMemoriesResponse.GeneratedMemory\032\365\001\n"
+ + "\022generated_memories\030\001 \003(\0132I.google.clou"
+ + "d.aiplatform.v1beta1.GenerateMemoriesResponse.GeneratedMemory\032\365\001\n"
+ "\017GeneratedMemory\0227\n"
+ "\006memory\030\001 \001(\0132\'.google.cloud.aiplatform.v1beta1.Memory\022`\n"
- + "\006action\030\002 \001(\0162P.google.cloud.aiplatform.v1b"
- + "eta1.GenerateMemoriesResponse.GeneratedMemory.Action\"G\n"
+ + "\006action\030\002 \001(\0162P.goo"
+ + "gle.cloud.aiplatform.v1beta1.GenerateMemoriesResponse.GeneratedMemory.Action\"G\n"
+ "\006Action\022\026\n"
+ "\022ACTION_UNSPECIFIED\020\000\022\013\n"
+ "\007CREATED\020\001\022\013\n"
+ "\007UPDATED\020\002\022\013\n"
+ "\007DELETED\020\003\"x\n"
+ "!GenerateMemoriesOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cl"
- + "oud.aiplatform.v1beta1.GenericOperationMetadata\"\362\004\n"
+ + "\020generic_metadata\030\001"
+ + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\362\004\n"
+ "\027RetrieveMemoriesRequest\022s\n"
- + "\030similarity_search_params\030\006 \001(\0132O.google.c"
- + "loud.aiplatform.v1beta1.RetrieveMemoriesRequest.SimilaritySearchParamsH\000\022q\n"
- + "\027simple_retrieval_params\030\007 \001(\0132N.google.cloud"
- + ".aiplatform.v1beta1.RetrieveMemoriesRequest.SimpleRetrievalParamsH\000\022A\n"
+ + "\030similarity_search_params\030\006 \001(\0132O.google.cloud.aiplatform."
+ + "v1beta1.RetrieveMemoriesRequest.SimilaritySearchParamsH\000\022q\n"
+ + "\027simple_retrieval_params\030\007 \001(\0132N.google.cloud.aiplatform.v1be"
+ + "ta1.RetrieveMemoriesRequest.SimpleRetrievalParamsH\000\022A\n"
+ "\006parent\030\001 \001(\tB1\340A\002\372A+\n"
+ ")aiplatform.googleapis.com/ReasoningEngine\022W\n"
- + "\005scope\030\010 \003(\0132C.google.c"
- + "loud.aiplatform.v1beta1.RetrieveMemoriesRequest.ScopeEntryB\003\340A\002\032G\n"
+ + "\005scope\030\010 \003(\0132C.google.cloud.aiplatform."
+ + "v1beta1.RetrieveMemoriesRequest.ScopeEntryB\003\340A\002\032G\n"
+ "\026SimilaritySearchParams\022\031\n"
+ "\014search_query\030\001 \001(\tB\003\340A\002\022\022\n"
+ "\005top_k\030\002 \001(\005B\003\340A\001\032H\n"
@@ -259,58 +261,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\022\n"
+ "\020retrieval_params\"\370\001\n"
+ "\030RetrieveMemoriesResponse\022e\n"
- + "\022retrieved_memories\030\001 \003(\0132I.google.cloud.aiplatform."
- + "v1beta1.RetrieveMemoriesResponse.RetrievedMemory\022\027\n"
+ + "\022retrieved_memories\030\001 \003(\0132I."
+ + "google.cloud.aiplatform.v1beta1.RetrieveMemoriesResponse.RetrievedMemory\022\027\n"
+ "\017next_page_token\030\002 \001(\t\032\\\n"
+ "\017RetrievedMemory\0227\n"
+ "\006memory\030\001 \001(\0132\'.google.cloud.aiplatform.v1beta1.Memory\022\020\n"
- + "\010distance\030\002 \001(\0012\341\020\n"
- + "\021MemoryBankService\022\236\002\n"
- + "\014CreateMemory\0224.google.cloud.aiplatform.v1beta1"
- + ".CreateMemoryRequest\032\035.google.longrunning.Operation\"\270\001\312A\'\n"
- + "\006Memory\022\035CreateMemoryO"
- + "perationMetadata\202\323\344\223\002\207\001\"D/v1beta1/{paren"
- + "t=projects/*/locations/*/reasoningEngines/*}/memories:\006memoryZ7\"-/v1beta1/{paren"
- + "t=reasoningEngines/*}/memories:\006memory\022\356\001\n"
- + "\tGetMemory\0221.google.cloud.aiplatform.v1beta1.GetMemoryRequest\032\'.google.cloud.a"
- + "iplatform.v1beta1.Memory\"\204\001\332A\004name\202\323\344\223\002w"
- + "\022D/v1beta1/{name=projects/*/locations/*/reasoningEngines/*/memories/*}Z/\022-/v1bet"
- + "a1/{name=reasoningEngines/*/memories/*}\022\301\002\n"
- + "\014UpdateMemory\0224.google.cloud.aiplatfo"
- + "rm.v1beta1.UpdateMemoryRequest\032\035.google.longrunning.Operation\"\333\001\312A\'\n"
- + "\006Memory\022\035UpdateMemoryOperationMetadata\332A\022memory,upda"
- + "te_mask\202\323\344\223\002\225\0012K/v1beta1/{memory.name=pr"
- + "ojects/*/locations/*/reasoningEngines/*/memories/*}:\006memoryZ>24/v1beta1/{memory."
- + "name=reasoningEngines/*/memories/*}:\006memory\022\204\002\n"
- + "\014ListMemories\0224.google.cloud.aiplatform.v1beta1.ListMemoriesRequest\0325.goo"
- + "gle.cloud.aiplatform.v1beta1.ListMemorie"
- + "sResponse\"\206\001\332A\006parent\202\323\344\223\002w\022D/v1beta1/{p"
- + "arent=projects/*/locations/*/reasoningEn"
- + "gines/*}/memoriesZ/\022-/v1beta1/{parent=reasoningEngines/*}/memories\022\243\002\n"
- + "\014DeleteMemory\0224.google.cloud.aiplatform.v1beta1.De"
- + "leteMemoryRequest\032\035.google.longrunning.Operation\"\275\001\312A6\n"
- + "\025google.protobuf.Empty\022\035D"
- + "eleteMemoryOperationMetadata\332A\004name\202\323\344\223\002"
- + "w*D/v1beta1/{name=projects/*/locations/*/reasoningEngines/*/memories/*}Z/*-/v1be"
- + "ta1/{name=reasoningEngines/*/memories/*}\022\315\002\n"
- + "\020GenerateMemories\0228.google.cloud.aip"
- + "latform.v1beta1.GenerateMemoriesRequest\032\035.google.longrunning.Operation\"\337\001\312A=\n"
- + "\030GenerateMemoriesResponse\022!GenerateMemories"
- + "OperationMetadata\332A\006parent\202\323\344\223\002\217\001\"M/v1be"
- + "ta1/{parent=projects/*/locations/*/reasoningEngines/*}/memories:generate:\001*Z;\"6/"
- + "v1beta1/{parent=reasoningEngines/*}/memories:generate:\001*\022\251\002\n"
- + "\020RetrieveMemories\0228.google.cloud.aiplatform.v1beta1.Retrieve"
- + "MemoriesRequest\0329.google.cloud.aiplatfor"
- + "m.v1beta1.RetrieveMemoriesResponse\"\237\001\332A\006"
- + "parent\202\323\344\223\002\217\001\"M/v1beta1/{parent=projects"
- + "/*/locations/*/reasoningEngines/*}/memories:retrieve:\001*Z;\"6/v1beta1/{parent=reas"
- + "oningEngines/*}/memories:retrieve:\001*\032M\312A"
- + "\031aiplatform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\355\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\026Mem"
- + "oryBankServiceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;ai"
- + "platformpb\252\002\037Google.Cloud.AIPlatform.V1B"
- + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002"
- + "\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\010distance\030\002 \001(\0012\373\020\n"
+ + "\021MemoryBankService\022\270\002\n"
+ + "\014CreateMemory\0224.google.cloud.aiplatform.v1beta1.CreateMemoryReq"
+ + "uest\032\035.google.longrunning.Operation\"\322\001\312A\'\n"
+ + "\006Memory\022\035CreateMemoryOperationMetadata"
+ + "\332A\027parent,memory,memory_id\202\323\344\223\002\207\001\"D/v1be"
+ + "ta1/{parent=projects/*/locations/*/reasoningEngines/*}/memories:\006memoryZ7\"-/v1be"
+ + "ta1/{parent=reasoningEngines/*}/memories:\006memory\022\356\001\n"
+ + "\tGetMemory\0221.google.cloud.aiplatform.v1beta1.GetMemoryRequest\032\'.goog"
+ + "le.cloud.aiplatform.v1beta1.Memory\"\204\001\332A\004"
+ + "name\202\323\344\223\002w\022D/v1beta1/{name=projects/*/lo"
+ + "cations/*/reasoningEngines/*/memories/*}"
+ + "Z/\022-/v1beta1/{name=reasoningEngines/*/memories/*}\022\301\002\n"
+ + "\014UpdateMemory\0224.google.clou"
+ + "d.aiplatform.v1beta1.UpdateMemoryRequest\032\035.google.longrunning.Operation\"\333\001\312A\'\n"
+ + "\006Memory\022\035UpdateMemoryOperationMetadata\332A\022m"
+ + "emory,update_mask\202\323\344\223\002\225\0012K/v1beta1/{memo"
+ + "ry.name=projects/*/locations/*/reasoningEngines/*/memories/*}:\006memoryZ>24/v1beta"
+ + "1/{memory.name=reasoningEngines/*/memories/*}:\006memory\022\204\002\n"
+ + "\014ListMemories\0224.google.cloud.aiplatform.v1beta1.ListMemoriesReq"
+ + "uest\0325.google.cloud.aiplatform.v1beta1.L"
+ + "istMemoriesResponse\"\206\001\332A\006parent\202\323\344\223\002w\022D/"
+ + "v1beta1/{parent=projects/*/locations/*/r"
+ + "easoningEngines/*}/memoriesZ/\022-/v1beta1/{parent=reasoningEngines/*}/memories\022\243\002\n"
+ + "\014DeleteMemory\0224.google.cloud.aiplatform."
+ + "v1beta1.DeleteMemoryRequest\032\035.google.longrunning.Operation\"\275\001\312A6\n"
+ + "\025google.protobuf.Empty\022\035DeleteMemoryOperationMetadata\332A"
+ + "\004name\202\323\344\223\002w*D/v1beta1/{name=projects/*/l"
+ + "ocations/*/reasoningEngines/*/memories/*"
+ + "}Z/*-/v1beta1/{name=reasoningEngines/*/memories/*}\022\315\002\n"
+ + "\020GenerateMemories\0228.google.cloud.aiplatform.v1beta1.GenerateMemori"
+ + "esRequest\032\035.google.longrunning.Operation\"\337\001\312A=\n"
+ + "\030GenerateMemoriesResponse\022!Genera"
+ + "teMemoriesOperationMetadata\332A\006parent\202\323\344\223"
+ + "\002\217\001\"M/v1beta1/{parent=projects/*/locatio"
+ + "ns/*/reasoningEngines/*}/memories:genera"
+ + "te:\001*Z;\"6/v1beta1/{parent=reasoningEngines/*}/memories:generate:\001*\022\251\002\n"
+ + "\020RetrieveMemories\0228.google.cloud.aiplatform.v1beta"
+ + "1.RetrieveMemoriesRequest\0329.google.cloud.aiplatform.v1beta1.RetrieveMemoriesResp"
+ + "onse\"\237\001\332A\006parent\202\323\344\223\002\217\001\"M/v1beta1/{paren"
+ + "t=projects/*/locations/*/reasoningEngines/*}/memories:retrieve:\001*Z;\"6/v1beta1/{p"
+ + "arent=reasoningEngines/*}/memories:retri"
+ + "eve:\001*\032M\312A\031aiplatform.googleapis.com\322A.h"
+ + "ttps://www.googleapis.com/auth/cloud-platformB\355\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\026MemoryBankServiceProtoP\001ZCcloud.g"
+ + "oogle.com/go/aiplatform/apiv1beta1/aipla"
+ + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl"
+ + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform"
+ + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -334,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_CreateMemoryRequest_descriptor,
new java.lang.String[] {
- "Parent", "Memory",
+ "Parent", "Memory", "MemoryId",
});
internal_static_google_cloud_aiplatform_v1beta1_CreateMemoryOperationMetadata_descriptor =
getDescriptor().getMessageType(1);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java
index f1ea3b8105f6..7a69a7730abf 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagContexts.java
@@ -168,7 +168,7 @@ public interface ContextOrBuilder
* double distance = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=182
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=207
* @return The distance.
*/
@java.lang.Deprecated
@@ -185,7 +185,7 @@ public interface ContextOrBuilder
* double sparse_distance = 4 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=186
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=211
* @return The sparseDistance.
*/
@java.lang.Deprecated
@@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getTextBytes() {
* double distance = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=182
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=207
* @return The distance.
*/
@java.lang.Override
@@ -521,7 +521,7 @@ public double getDistance() {
* double sparse_distance = 4 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=186
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=211
* @return The sparseDistance.
*/
@java.lang.Override
@@ -1474,7 +1474,7 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
* double distance = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=182
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=207
* @return The distance.
*/
@java.lang.Override
@@ -1494,7 +1494,7 @@ public double getDistance() {
* double distance = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=182
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=207
* @param value The distance to set.
* @return This builder for chaining.
*/
@@ -1518,7 +1518,7 @@ public Builder setDistance(double value) {
* double distance = 3 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.distance is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=182
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=207
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1542,7 +1542,7 @@ public Builder clearDistance() {
* double sparse_distance = 4 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=186
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=211
* @return The sparseDistance.
*/
@java.lang.Override
@@ -1562,7 +1562,7 @@ public double getSparseDistance() {
* double sparse_distance = 4 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=186
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=211
* @param value The sparseDistance to set.
* @return This builder for chaining.
*/
@@ -1586,7 +1586,7 @@ public Builder setSparseDistance(double value) {
* double sparse_distance = 4 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1beta1.RagContexts.Context.sparse_distance is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=186
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=211
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java
index 35a857984a81..b7e8710adaeb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQuery.java
@@ -784,7 +784,7 @@ public com.google.protobuf.ByteString getTextBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=92
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=117
* @return The similarityTopK.
*/
@java.lang.Override
@@ -808,7 +808,7 @@ public int getSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return Whether the ranking field is set.
*/
@java.lang.Override
@@ -829,7 +829,7 @@ public boolean hasRanking() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return The ranking.
*/
@java.lang.Override
@@ -1523,7 +1523,7 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=92
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=117
* @return The similarityTopK.
*/
@java.lang.Override
@@ -1544,7 +1544,7 @@ public int getSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=92
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=117
* @param value The similarityTopK to set.
* @return This builder for chaining.
*/
@@ -1569,7 +1569,7 @@ public Builder setSimilarityTopK(int value) {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=92
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=117
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -1599,7 +1599,7 @@ public Builder clearSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return Whether the ranking field is set.
*/
@java.lang.Deprecated
@@ -1619,7 +1619,7 @@ public boolean hasRanking() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return The ranking.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java
index 67203e923764..c685a7240e64 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagQueryOrBuilder.java
@@ -76,7 +76,7 @@ public interface RagQueryOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=92
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=117
* @return The similarityTopK.
*/
@java.lang.Deprecated
@@ -94,7 +94,7 @@ public interface RagQueryOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return Whether the ranking field is set.
*/
@java.lang.Deprecated
@@ -112,7 +112,7 @@ public interface RagQueryOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.RagQuery.ranking is deprecated. See
- * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=96
+ * google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=121
* @return The ranking.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java
index 8eb7d64ab9b8..da90c32575dd 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrieveContextsRequest.java
@@ -90,7 +90,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=128
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
* @return A list containing the ragCorpora.
*/
@java.lang.Deprecated
@@ -110,7 +110,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=128
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
* @return The count of ragCorpora.
*/
@java.lang.Deprecated
@@ -130,7 +130,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=128
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
* @param index The index of the element to return.
* @return The ragCorpora at the given index.
*/
@@ -151,7 +151,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is
- * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=128
+ * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
* @param index The index of the value to return.
* @return The bytes of the ragCorpora at the given index.
*/
@@ -260,7 +260,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=140
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Deprecated
@@ -280,7 +280,7 @@ public interface VertexRagStoreOrBuilder
*
* @deprecated
* google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold
- * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=140
+ * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
* @return The vectorDistanceThreshold.
*/
@java.lang.Deprecated
@@ -1429,7 +1429,7 @@ public com.google.protobuf.Parser+ * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the rawEvent field is set.
+ */
+ @java.lang.Override
+ public boolean hasRawEvent() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The rawEvent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getRawEvent() {
+ return rawEvent_ == null ? com.google.protobuf.Struct.getDefaultInstance() : rawEvent_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getRawEventOrBuilder() {
+ return rawEvent_ == null ? com.google.protobuf.Struct.getDefaultInstance() : rawEvent_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -614,6 +663,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(11, getEventMetadata());
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(12, getRawEvent());
+ }
getUnknownFields().writeTo(output);
}
@@ -650,6 +702,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEventMetadata());
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getRawEvent());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -687,6 +742,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasEventMetadata()) {
if (!getEventMetadata().equals(other.getEventMetadata())) return false;
}
+ if (hasRawEvent() != other.hasRawEvent()) return false;
+ if (hasRawEvent()) {
+ if (!getRawEvent().equals(other.getRawEvent())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -724,6 +783,10 @@ public int hashCode() {
hash = (37 * hash) + EVENT_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getEventMetadata().hashCode();
}
+ if (hasRawEvent()) {
+ hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER;
+ hash = (53 * hash) + getRawEvent().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -869,6 +932,7 @@ private void maybeForceBuilderInitialization() {
internalGetActionsFieldBuilder();
internalGetTimestampFieldBuilder();
internalGetEventMetadataFieldBuilder();
+ internalGetRawEventFieldBuilder();
}
}
@@ -901,6 +965,11 @@ public Builder clear() {
eventMetadataBuilder_.dispose();
eventMetadataBuilder_ = null;
}
+ rawEvent_ = null;
+ if (rawEventBuilder_ != null) {
+ rawEventBuilder_.dispose();
+ rawEventBuilder_ = null;
+ }
return this;
}
@@ -970,6 +1039,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SessionEvent resu
eventMetadataBuilder_ == null ? eventMetadata_ : eventMetadataBuilder_.build();
to_bitField0_ |= 0x00000008;
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.rawEvent_ = rawEventBuilder_ == null ? rawEvent_ : rawEventBuilder_.build();
+ to_bitField0_ |= 0x00000010;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1023,6 +1096,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SessionEvent other)
if (other.hasEventMetadata()) {
mergeEventMetadata(other.getEventMetadata());
}
+ if (other.hasRawEvent()) {
+ mergeRawEvent(other.getRawEvent());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1105,6 +1181,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 90
+ case 98:
+ {
+ input.readMessage(
+ internalGetRawEventFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2527,6 +2610,205 @@ public com.google.cloud.aiplatform.v1beta1.EventMetadataOrBuilder getEventMetada
return eventMetadataBuilder_;
}
+ private com.google.protobuf.Struct rawEvent_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ rawEventBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rawEvent field is set.
+ */
+ public boolean hasRawEvent() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rawEvent.
+ */
+ public com.google.protobuf.Struct getRawEvent() {
+ if (rawEventBuilder_ == null) {
+ return rawEvent_ == null ? com.google.protobuf.Struct.getDefaultInstance() : rawEvent_;
+ } else {
+ return rawEventBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRawEvent(com.google.protobuf.Struct value) {
+ if (rawEventBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rawEvent_ = value;
+ } else {
+ rawEventBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRawEvent(com.google.protobuf.Struct.Builder builderForValue) {
+ if (rawEventBuilder_ == null) {
+ rawEvent_ = builderForValue.build();
+ } else {
+ rawEventBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRawEvent(com.google.protobuf.Struct value) {
+ if (rawEventBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && rawEvent_ != null
+ && rawEvent_ != com.google.protobuf.Struct.getDefaultInstance()) {
+ getRawEventBuilder().mergeFrom(value);
+ } else {
+ rawEvent_ = value;
+ }
+ } else {
+ rawEventBuilder_.mergeFrom(value);
+ }
+ if (rawEvent_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRawEvent() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ rawEvent_ = null;
+ if (rawEventBuilder_ != null) {
+ rawEventBuilder_.dispose();
+ rawEventBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder getRawEventBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return internalGetRawEventFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.StructOrBuilder getRawEventOrBuilder() {
+ if (rawEventBuilder_ != null) {
+ return rawEventBuilder_.getMessageOrBuilder();
+ } else {
+ return rawEvent_ == null ? com.google.protobuf.Struct.getDefaultInstance() : rawEvent_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>
+ internalGetRawEventFieldBuilder() {
+ if (rawEventBuilder_ == null) {
+ rawEventBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Struct,
+ com.google.protobuf.Struct.Builder,
+ com.google.protobuf.StructOrBuilder>(
+ getRawEvent(), getParentForChildren(), isClean());
+ rawEvent_ = null;
+ }
+ return rawEventBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SessionEvent)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionEventOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionEventOrBuilder.java
index dee492457f57..3837172865bf 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionEventOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionEventOrBuilder.java
@@ -328,4 +328,41 @@ public interface SessionEventOrBuilder
*
*/
com.google.cloud.aiplatform.v1beta1.EventMetadataOrBuilder getEventMetadataOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the rawEvent field is set.
+ */
+ boolean hasRawEvent();
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The rawEvent.
+ */
+ com.google.protobuf.Struct getRawEvent();
+
+ /**
+ *
+ *
+ * + * Optional. Weakly typed raw event data in proto struct format. + *+ * + *
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ com.google.protobuf.StructOrBuilder getRawEventOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionProto.java
index fc5842b68fe8..4dd3e1a31c3d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionProto.java
@@ -104,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001:\232\001\352A\226\001\n"
+ "!aiplatform.googleapis.com/Session\022^projects/{project}/locations/{location}/reasoni"
+ "ngEngines/{reasoning_engine}/sessions/{session}*\010sessions2\007sessionB\014\n\n"
- + "expiration\"\310\004\n"
+ + "expiration\"\371\004\n"
+ "\014SessionEvent\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022\023\n"
+ "\006author\030\003 \001(\tB\003\340A\002\022>\n"
@@ -118,13 +118,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "error_message\030\n"
+ " \001(\tB\003\340A\001\022K\n"
+ "\016event_metadata\030\013 \001(\0132..google.clo"
- + "ud.aiplatform.v1beta1.EventMetadataB\003\340A\001:\270\001\352A\264\001\n"
- + "&aiplatform.googleapis.com/SessionEvent\022mprojects/{project}/locations/{l"
- + "ocation}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}*\r"
- + "sessionEvents2\014sessionEvent\"\300\003\n\r"
+ + "ud.aiplatform.v1beta1.EventMetadataB\003\340A\001\022/\n"
+ + "\traw_event\030\014"
+ + " \001(\0132\027.google.protobuf.StructB\003\340A\001:\270\001\352A\264\001\n"
+ + "&aiplatform.googleapis.com/SessionEvent\022mprojects/{project}/loc"
+ + "ations/{location}/reasoningEngines/{reas"
+ + "oning_engine}/sessions/{session}/events/{event}*\r"
+ + "sessionEvents2\014sessionEvent\"\300\003\n"
+ + "\r"
+ "EventMetadata\022S\n"
- + "\022grounding_metadata\030\001 \001(\01322.goog"
- + "le.cloud.aiplatform.v1beta1.GroundingMetadataB\003\340A\001\022\024\n"
+ + "\022grounding_metadata\030\001 \001"
+ + "(\01322.google.cloud.aiplatform.v1beta1.GroundingMetadataB\003\340A\001\022\024\n"
+ "\007partial\030\002 \001(\010B\003\340A\001\022\032\n\r"
+ "turn_complete\030\003 \001(\010B\003\340A\001\022\030\n"
+ "\013interrupted\030\004 \001(\010B\003\340A\001\022\"\n"
@@ -133,13 +137,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017custom_metadata\030\007 \001(\0132\027.google.protobuf.Struct\022P\n"
+ "\023input_transcription\030\n"
+ " \001(\0132..google.cloud.aiplatform.v1beta1.TranscriptionB\003\340A\001\022Q\n"
- + "\024output_transcription\030\013 \001(\0132..google.cloud"
- + ".aiplatform.v1beta1.TranscriptionB\003\340A\001\"\351\002\n"
+ + "\024output_transcription\030\013 \001(\0132..goo"
+ + "gle.cloud.aiplatform.v1beta1.TranscriptionB\003\340A\001\"\351\002\n"
+ "\014EventActions\022\037\n"
+ "\022skip_summarization\030\001 \001(\010B\003\340A\001\0221\n"
+ "\013state_delta\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022]\n"
- + "\016artifact_delta\030\003 "
- + "\003(\0132@.google.cloud.aiplatform.v1beta1.EventActions.ArtifactDeltaEntryB\003\340A\001\022\025\n"
+ + "\016artifact_delta\030\003 \003(\0132@.google.cloud.aiplatform.v"
+ + "1beta1.EventActions.ArtifactDeltaEntryB\003\340A\001\022\025\n"
+ "\010escalate\030\006 \001(\010B\003\340A\001\022<\n"
+ "\026requested_auth_configs\030\007"
+ " \001(\0132\027.google.protobuf.StructB\003\340A\001\022\033\n"
@@ -150,11 +154,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "Transcription\022\021\n"
+ "\004text\030\001 \001(\tB\003\340A\001\022\025\n"
+ "\010finished\030\002 \001(\010B\003\340A\001B\343\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014SessionProtoP\001ZCc"
- + "loud.google.com/go/aiplatform/apiv1beta1"
- + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou"
- + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl"
- + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\014SessionP"
+ + "rotoP\001ZCcloud.google.com/go/aiplatform/a"
+ + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go"
+ + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C"
+ + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -207,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ErrorCode",
"ErrorMessage",
"EventMetadata",
+ "RawEvent",
});
internal_static_google_cloud_aiplatform_v1beta1_EventMetadata_descriptor =
getDescriptor().getMessageType(2);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceProto.java
index b7a76af84341..b519ac189125 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceProto.java
@@ -101,15 +101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oto\032/google/cloud/aiplatform/v1beta1/operation.proto\032-google/cloud/aiplatform/v1"
+ "beta1/session.proto\032#google/longrunning/"
+ "operations.proto\032\033google/protobuf/empty.proto\032"
- + " google/protobuf/field_mask.proto\"\231\001\n"
+ + " google/protobuf/field_mask.proto\"\262\001\n"
+ "\024CreateSessionRequest\022A\n"
+ "\006parent\030\001 \001(\tB1\340A\002\372A+\n"
+ ")aiplatform.googleapis.com/ReasoningEngine\022>\n"
+ "\007session\030\002"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.SessionB\003\340A\002\"u\n"
+ + " \001(\0132(.google.cloud.aiplatform.v1beta1.SessionB\003\340A\002\022\027\n\n"
+ + "session_id\030\003 \001(\tB\003\340A\001\"u\n"
+ "\036CreateSessionOperationMetadata\022S\n"
- + "\020generic_metadata\030\001"
- + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"L\n"
+ + "\020generic_metadata\030\001 \001(\013"
+ + "29.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"L\n"
+ "\021GetSessionRequest\0227\n"
+ "\004name\030\001 \001(\tB)\340A\002\372A#\n"
+ "!aiplatform.googleapis.com/Session\"\265\001\n"
@@ -124,8 +125,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010sessions\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1.Session\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"\214\001\n"
+ "\024UpdateSessionRequest\022>\n"
- + "\007session\030\001"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.SessionB\003\340A\002\0224\n"
+ + "\007session\030\001 \001(\0132(.googl"
+ + "e.cloud.aiplatform.v1beta1.SessionB\003\340A\002\0224\n"
+ "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"O\n"
+ "\024DeleteSessionRequest\0227\n"
+ "\004name\030\001 \001(\tB)\340A\002\372A#\n"
@@ -138,62 +139,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006filter\030\004 \001(\tB\003\340A\001\022\025\n"
+ "\010order_by\030\005 \001(\tB\003\340A\001\"t\n"
+ "\022ListEventsResponse\022E\n"
- + "\016session_events\030\001"
- + " \003(\0132-.google.cloud.aiplatform.v1beta1.SessionEvent\022\027\n"
+ + "\016session_events\030\001 \003(\0132-.goo"
+ + "gle.cloud.aiplatform.v1beta1.SessionEvent\022\027\n"
+ "\017next_page_token\030\002 \001(\t\"\220\001\n"
+ "\022AppendEventRequest\0227\n"
+ "\004name\030\001 \001(\tB)\340A\002\372A#\n"
+ "!aiplatform.googleapis.com/Session\022A\n"
- + "\005event\030\002"
- + " \001(\0132-.google.cloud.aiplatform.v1beta1.SessionEventB\003\340A\002\"\025\n"
- + "\023AppendEventResponse2\243\020\n"
- + "\016SessionService\022\265\002\n\r"
- + "CreateSession\0225.google.cloud.aiplatform.v1bet"
- + "a1.CreateSessionRequest\032\035.google.longrunning.Operation\"\315\001\312A)\n"
- + "\007Session\022\036CreateSessionOperationMetadata\332A\016parent,session\202\323"
- + "\344\223\002\211\001\"D/v1beta1/{parent=projects/*/locat"
- + "ions/*/reasoningEngines/*}/sessions:\007ses"
- + "sionZ8\"-/v1beta1/{parent=reasoningEngines/*}/sessions:\007session\022\361\001\n\n"
- + "GetSession\0222.google.cloud.aiplatform.v1beta1.GetSessi"
- + "onRequest\032(.google.cloud.aiplatform.v1be"
- + "ta1.Session\"\204\001\332A\004name\202\323\344\223\002w\022D/v1beta1/{n"
- + "ame=projects/*/locations/*/reasoningEngi"
- + "nes/*/sessions/*}Z/\022-/v1beta1/{name=reasoningEngines/*/sessions/*}\022\204\002\n"
- + "\014ListSessions\0224.google.cloud.aiplatform.v1beta1.Li"
- + "stSessionsRequest\0325.google.cloud.aiplatf"
- + "orm.v1beta1.ListSessionsResponse\"\206\001\332A\006pa"
- + "rent\202\323\344\223\002w\022D/v1beta1/{parent=projects/*/"
- + "locations/*/reasoningEngines/*}/sessions"
- + "Z/\022-/v1beta1/{parent=reasoningEngines/*}/sessions\022\251\002\n\r"
- + "UpdateSession\0225.google.cloud.aiplatform.v1beta1.UpdateSessionReque"
- + "st\032(.google.cloud.aiplatform.v1beta1.Ses"
- + "sion\"\266\001\332A\023session,update_mask\202\323\344\223\002\231\0012L/v"
- + "1beta1/{session.name=projects/*/locations/*/reasoningEngines/*/sessions/*}:\007sess"
- + "ionZ@25/v1beta1/{session.name=reasoningEngines/*/sessions/*}:\007session\022\237\002\n\r"
- + "DeleteSession\0225.google.cloud.aiplatform.v1beta"
- + "1.DeleteSessionRequest\032\035.google.longrunning.Operation\"\267\001\312A0\n"
- + "\025google.protobuf.Emp"
- + "ty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002w"
- + "*D/v1beta1/{name=projects/*/locations/*/reasoningEngines/*/sessions/*}Z/*-/v1bet"
- + "a1/{name=reasoningEngines/*/sessions/*}\022\221\002\n\n"
- + "ListEvents\0222.google.cloud.aiplatform.v1beta1.ListEventsRequest\0323.google.clou"
- + "d.aiplatform.v1beta1.ListEventsResponse\""
- + "\231\001\332A\006parent\202\323\344\223\002\211\001\022M/v1beta1/{parent=pro"
- + "jects/*/locations/*/reasoningEngines/*/s"
- + "essions/*}/eventsZ8\0226/v1beta1/{parent=reasoningEngines/*/sessions/*}/events\022\254\002\n"
- + "\013AppendEvent\0223.google.cloud.aiplatform.v1"
- + "beta1.AppendEventRequest\0324.google.cloud."
- + "aiplatform.v1beta1.AppendEventResponse\"\261\001\332A\n"
- + "name,event\202\323\344\223\002\235\001\"P/v1beta1/{name=pr"
- + "ojects/*/locations/*/reasoningEngines/*/sessions/*}:appendEvent:\005eventZB\"9/v1bet"
- + "a1/{name=reasoningEngines/*/sessions/*}:"
- + "appendEvent:\005event\032M\312A\031aiplatform.google"
- + "apis.com\322A.https://www.googleapis.com/auth/cloud-platformB\352\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\023SessionServiceProtoP\001"
- + "ZCcloud.google.com/go/aiplatform/apiv1be"
- + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C"
- + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A"
- + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\005event\030\002 \001("
+ + "\0132-.google.cloud.aiplatform.v1beta1.SessionEventB\003\340A\002\"\025\n"
+ + "\023AppendEventResponse2\277\020\n"
+ + "\016SessionService\022\321\002\n\r"
+ + "CreateSession\0225.google.cloud.aiplatform.v1beta1.CreateSessio"
+ + "nRequest\032\035.google.longrunning.Operation\"\351\001\312A)\n"
+ + "\007Session\022\036CreateSessionOperationMe"
+ + "tadata\332A\016parent,session\332A\031parent,session"
+ + ",session_id\202\323\344\223\002\211\001\"D/v1beta1/{parent=pro"
+ + "jects/*/locations/*/reasoningEngines/*}/"
+ + "sessions:\007sessionZ8\"-/v1beta1/{parent=reasoningEngines/*}/sessions:\007session\022\361\001\n\n"
+ + "GetSession\0222.google.cloud.aiplatform.v1beta1.GetSessionRequest\032(.google.cloud.ai"
+ + "platform.v1beta1.Session\"\204\001\332A\004name\202\323\344\223\002w"
+ + "\022D/v1beta1/{name=projects/*/locations/*/reasoningEngines/*/sessions/*}Z/\022-/v1bet"
+ + "a1/{name=reasoningEngines/*/sessions/*}\022\204\002\n"
+ + "\014ListSessions\0224.google.cloud.aiplatform.v1beta1.ListSessionsRequest\0325.google."
+ + "cloud.aiplatform.v1beta1.ListSessionsRes"
+ + "ponse\"\206\001\332A\006parent\202\323\344\223\002w\022D/v1beta1/{paren"
+ + "t=projects/*/locations/*/reasoningEngine"
+ + "s/*}/sessionsZ/\022-/v1beta1/{parent=reasoningEngines/*}/sessions\022\251\002\n\r"
+ + "UpdateSession\0225.google.cloud.aiplatform.v1beta1.Updat"
+ + "eSessionRequest\032(.google.cloud.aiplatfor"
+ + "m.v1beta1.Session\"\266\001\332A\023session,update_ma"
+ + "sk\202\323\344\223\002\231\0012L/v1beta1/{session.name=projec"
+ + "ts/*/locations/*/reasoningEngines/*/sessions/*}:\007sessionZ@25/v1beta1/{session.na"
+ + "me=reasoningEngines/*/sessions/*}:\007session\022\237\002\n\r"
+ + "DeleteSession\0225.google.cloud.aipl"
+ + "atform.v1beta1.DeleteSessionRequest\032\035.google.longrunning.Operation\"\267\001\312A0\n"
+ + "\025google.protobuf.Empty\022\027DeleteOperationMetadata"
+ + "\332A\004name\202\323\344\223\002w*D/v1beta1/{name=projects/*"
+ + "/locations/*/reasoningEngines/*/sessions"
+ + "/*}Z/*-/v1beta1/{name=reasoningEngines/*/sessions/*}\022\221\002\n\n"
+ + "ListEvents\0222.google.cloud.aiplatform.v1beta1.ListEventsRequest\032"
+ + "3.google.cloud.aiplatform.v1beta1.ListEv"
+ + "entsResponse\"\231\001\332A\006parent\202\323\344\223\002\211\001\022M/v1beta"
+ + "1/{parent=projects/*/locations/*/reasoningEngines/*/sessions/*}/eventsZ8\0226/v1bet"
+ + "a1/{parent=reasoningEngines/*/sessions/*}/events\022\254\002\n"
+ + "\013AppendEvent\0223.google.cloud.aiplatform.v1beta1.AppendEventRequest\0324."
+ + "google.cloud.aiplatform.v1beta1.AppendEventResponse\"\261\001\332A\n"
+ + "name,event\202\323\344\223\002\235\001\"P/v1beta1/{name=projects/*/locations/*/reason"
+ + "ingEngines/*/sessions/*}:appendEvent:\005eventZB\"9/v1beta1/{name=reasoningEngines/*"
+ + "/sessions/*}:appendEvent:\005event\032M\312A\031aipl"
+ + "atform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\352\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\023SessionS"
+ + "erviceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatform"
+ + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G"
+ + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:"
+ + ":Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -215,7 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_CreateSessionRequest_descriptor,
new java.lang.String[] {
- "Parent", "Session",
+ "Parent", "Session", "SessionId",
});
internal_static_google_cloud_aiplatform_v1beta1_CreateSessionOperationMetadata_descriptor =
getDescriptor().getMessageType(1);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java
index 24eb19814971..2dd103d5a68e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceProto.java
@@ -104,6 +104,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_Claim_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_Claim_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -118,13 +138,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "orm.v1beta1\032\034google/api/annotations.prot"
+ "o\032\027google/api/client.proto\032\037google/api/f"
+ "ield_behavior.proto\032\031google/api/resource"
- + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032*google/cloud/aiplatform/v"
- + "1beta1/tool.proto\0325google/cloud/aiplatform/v1beta1/vertex_rag_data.proto\"\232\002\n"
+ + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032/google/cloud/aiplatform/v"
+ + "1beta1/operation.proto\032*google/cloud/aiplatform/v1beta1/tool.proto\0325google/cloud"
+ + "/aiplatform/v1beta1/vertex_rag_data.prot"
+ + "o\032#google/longrunning/operations.proto\"\232\002\n"
+ "\010RagQuery\022\023\n"
+ "\004text\030\001 \001(\tB\003\340A\001H\000\022\037\n"
+ "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001\022I\n"
- + "\007ranking\030\004 \001(\01321.g"
- + "oogle.cloud.aiplatform.v1beta1.RagQuery.RankingB\005\030\001\340A\001\022V\n"
+ + "\007ranking\030\004 \001"
+ + "(\01321.google.cloud.aiplatform.v1beta1.RagQuery.RankingB\005\030\001\340A\001\022V\n"
+ "\024rag_retrieval_config\030\006"
+ " \001(\01323.google.cloud.aiplatform.v1beta1.RagRetrievalConfigB\003\340A\001\032,\n"
+ "\007Ranking\022\027\n"
@@ -132,27 +154,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006_alphaB\007\n"
+ "\005query\"\337\004\n"
+ "\027RetrieveContextsRequest\022c\n"
- + "\020vertex_rag_store\030\002 \001(\0132G.google.cloud.aiplatform.v1"
- + "beta1.RetrieveContextsRequest.VertexRagStoreH\000\0229\n"
+ + "\020vertex_rag_store\030\002 \001(\0132G.google.cloud.aiplatf"
+ + "orm.v1beta1.RetrieveContextsRequest.VertexRagStoreH\000\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022=\n"
- + "\005query\030\003 \001(\013"
- + "2).google.cloud.aiplatform.v1beta1.RagQueryB\003\340A\002\032\325\002\n"
+ + "\005query\030\003"
+ + " \001(\0132).google.cloud.aiplatform.v1beta1.RagQueryB\003\340A\002\032\325\002\n"
+ "\016VertexRagStore\022\032\n"
+ "\013rag_corpora\030\001 \003(\tB\005\030\001\340A\001\022o\n\r"
- + "rag_resources\030\003 \003(\0132S.google.cloud.aiplatform.v1beta1.Retriev"
- + "eContextsRequest.VertexRagStore.RagResourceB\003\340A\001\022-\n"
+ + "rag_resources\030\003 \003(\0132S.google.cloud.aiplatform.v1beta1.R"
+ + "etrieveContextsRequest.VertexRagStore.RagResourceB\003\340A\001\022-\n"
+ "\031vector_distance_threshold\030\002"
+ " \001(\001B\005\030\001\340A\001H\000\210\001\001\032i\n"
+ "\013RagResource\022?\n\n"
+ "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n"
+ "#aiplatform.googleapis.com/RagCorpus\022\031\n"
+ "\014rag_file_ids\030\002 \003(\tB\003\340A\001B\034\n"
- + "\032_vector_distance_thresholdB\r\n"
+ + "\032_vector_distance_thresholdB\r"
+ + "\n"
+ "\013data_source\"\253\002\n"
+ "\013RagContexts\022F\n"
- + "\010contexts\030\001 \003("
- + "\01324.google.cloud.aiplatform.v1beta1.RagContexts.Context\032\323\001\n"
+ + "\010contexts\030\001"
+ + " \003(\01324.google.cloud.aiplatform.v1beta1.RagContexts.Context\032\323\001\n"
+ "\007Context\022\022\n\n"
+ "source_uri\030\001 \001(\t\022\033\n"
+ "\023source_display_name\030\005 \001(\t\022\014\n"
@@ -163,34 +186,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005chunk\030\007 \001(\0132).google.cloud.aiplatform.v1beta1.RagChunkB\010\n"
+ "\006_score\"Z\n"
+ "\030RetrieveContextsResponse\022>\n"
- + "\010contexts\030\001 \001(\0132,.go"
- + "ogle.cloud.aiplatform.v1beta1.RagContexts\"\375\002\n"
+ + "\010contexts\030\001 \001("
+ + "\0132,.google.cloud.aiplatform.v1beta1.RagContexts\"\375\002\n"
+ "\024AugmentPromptRequest\022P\n"
+ "\020vertex_rag_store\030\004"
+ " \001(\0132/.google.cloud.aiplatform.v1beta1.VertexRagStoreB\003\340A\001H\000\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022?\n"
- + "\010contents\030\002"
- + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\022O\n"
- + "\005model\030\003"
- + " \001(\0132;.google.cloud.aiplatform.v1beta1.AugmentPromptRequest.ModelB\003\340A\001\0327\n"
+ + "\010contents\030\002 \003(\0132(.google"
+ + ".cloud.aiplatform.v1beta1.ContentB\003\340A\001\022O\n"
+ + "\005model\030\003 \001(\0132;.google.cloud.aiplatform."
+ + "v1beta1.AugmentPromptRequest.ModelB\003\340A\001\0327\n"
+ "\005Model\022\022\n"
+ "\005model\030\001 \001(\tB\003\340A\001\022\032\n\r"
+ "model_version\030\002 \001(\tB\003\340A\001B\r\n"
+ "\013data_source\"\221\001\n"
+ "\025AugmentPromptResponse\022B\n"
- + "\020augmented_prompt\030\001 \003(\0132(."
- + "google.cloud.aiplatform.v1beta1.Content\0224\n"
+ + "\020augmented_prompt\030\001 "
+ + "\003(\0132(.google.cloud.aiplatform.v1beta1.Content\0224\n"
+ "\005facts\030\002 \003(\0132%.google.cloud.aiplatform.v1beta1.Fact\"\361\002\n"
+ "\031CorroborateContentRequest\0229\n"
+ "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ "!locations.googleapis.com/Location\022C\n"
- + "\007content\030\002 \001(\0132"
- + "(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n"
+ + "\007content\030\002"
+ + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n"
+ "\005facts\030\003"
+ " \003(\0132%.google.cloud.aiplatform.v1beta1.FactB\003\340A\001\022^\n\n"
- + "parameters\030\004 \001(\0132E.google.cloud.aiplatform.v1b"
- + "eta1.CorroborateContentRequest.ParametersB\003\340A\001\032-\n\n"
+ + "parameters\030\004 \001(\0132E.google.cloud.aiplatfo"
+ + "rm.v1beta1.CorroborateContentRequest.ParametersB\003\340A\001\032-\n\n"
+ "Parameters\022\037\n"
+ "\022citation_threshold\030\001 \001(\001B\003\340A\001B\n\n"
+ "\010_content\"\216\001\n"
@@ -221,28 +244,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005score\030\004 \001(\002H\002\210\001\001B\016\n"
+ "\014_start_indexB\014\n\n"
+ "_end_indexB\010\n"
- + "\006_score2\223\006\n"
+ + "\006_score\"\311\001\n"
+ + "\022AskContextsRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ + "!locations.googleapis.com/Location\022=\n"
+ + "\005query\030\002"
+ + " \001(\0132).google.cloud.aiplatform.v1beta1.RagQueryB\003\340A\002\0229\n"
+ + "\005tools\030\003 \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\"g\n"
+ + "\023AskContextsResponse\022\020\n"
+ + "\010response\030\001 \001(\t\022>\n"
+ + "\010contexts\030\002"
+ + " \001(\0132,.google.cloud.aiplatform.v1beta1.RagContexts\"\323\001\n"
+ + "\034AsyncRetrieveContextsRequest\0229\n"
+ + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
+ + "!locations.googleapis.com/Location\022=\n"
+ + "\005query\030\002"
+ + " \001(\0132).google.cloud.aiplatform.v1beta1.RagQueryB\003\340A\002\0229\n"
+ + "\005tools\030\003 \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\"_\n"
+ + "\035AsyncRetrieveContextsResponse\022>\n"
+ + "\010contexts\030\001 \001(\0132,.google.cloud.aiplatform.v1beta1.RagContexts\"}\n"
+ + "&AsyncRetrieveContextsOperationMetadata\022S\n"
+ + "\020generic_metadata\030\001"
+ + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\373\t\n"
+ "\020VertexRagService\022\334\001\n"
- + "\020RetrieveContexts\0228.google.cloud.aiplatform.v1beta1.Retri"
- + "eveContextsRequest\0329.google.cloud.aiplat"
- + "form.v1beta1.RetrieveContextsResponse\"S\332"
- + "A\014parent,query\202\323\344\223\002>\"9/v1beta1/{parent=p"
- + "rojects/*/locations/*}:retrieveContexts:\001*\022\341\001\n\r"
- + "AugmentPrompt\0225.google.cloud.aiplatform.v1beta1.AugmentPromptRequest\0326.go"
- + "ogle.cloud.aiplatform.v1beta1.AugmentPro"
- + "mptResponse\"a\332A\035parent,model,vertex_rag_"
- + "store\202\323\344\223\002;\"6/v1beta1/{parent=projects/*/locations/*}:augmentPrompt:\001*\022\354\001\n"
- + "\022CorroborateContent\022:.google.cloud.aiplatform."
- + "v1beta1.CorroborateContentRequest\032;.google.cloud.aiplatform.v1beta1.CorroborateC"
- + "ontentResponse\"]\332A\024parent,content,facts\202"
- + "\323\344\223\002@\";/v1beta1/{parent=projects/*/locat"
- + "ions/*}:corroborateContent:\001*\032M\312A\031aiplat"
- + "form.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\354\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\025VertexRagS"
- + "erviceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatform"
- + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G"
- + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:"
- + ":Cloud::AIPlatform::V1beta1b\006proto3"
+ + "\020RetrieveContexts\0228.google.cloud.aiplatform.v1beta1.RetrieveCont"
+ + "extsRequest\0329.google.cloud.aiplatform.v1"
+ + "beta1.RetrieveContextsResponse\"S\332A\014paren"
+ + "t,query\202\323\344\223\002>\"9/v1beta1/{parent=projects/*/locations/*}:retrieveContexts:\001*\022\341\001\n\r"
+ + "AugmentPrompt\0225.google.cloud.aiplatform.v1beta1.AugmentPromptRequest\0326.google.cl"
+ + "oud.aiplatform.v1beta1.AugmentPromptResp"
+ + "onse\"a\332A\035parent,model,vertex_rag_store\202\323"
+ + "\344\223\002;\"6/v1beta1/{parent=projects/*/locations/*}:augmentPrompt:\001*\022\354\001\n"
+ + "\022CorroborateContent\022:.google.cloud.aiplatform.v1beta1"
+ + ".CorroborateContentRequest\032;.google.cloud.aiplatform.v1beta1.CorroborateContentR"
+ + "esponse\"]\332A\024parent,content,facts\202\323\344\223\002@\";"
+ + "/v1beta1/{parent=projects/*/locations/*}:corroborateContent:\001*\022\310\001\n"
+ + "\013AskContexts\0223.google.cloud.aiplatform.v1beta1.AskCont"
+ + "extsRequest\0324.google.cloud.aiplatform.v1"
+ + "beta1.AskContextsResponse\"N\332A\014parent,que"
+ + "ry\202\323\344\223\0029\"4/v1beta1/{parent=projects/*/locations/*}:askContexts:\001*\022\232\002\n"
+ + "\025AsyncRetrieveContexts\022=.google.cloud.aiplatform.v1"
+ + "beta1.AsyncRetrieveContextsRequest\032\035.google.longrunning.Operation\"\242\001\312AG\n"
+ + "\035AsyncRetrieveContextsResponse\022&AsyncRetrieveCon"
+ + "textsOperationMetadata\332A\014parent,query\202\323\344"
+ + "\223\002C\">/v1beta1/{parent=projects/*/locatio"
+ + "ns/*}:asyncRetrieveContexts:\001*\032M\312A\031aipla"
+ + "tform.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\354\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\025VertexRag"
+ + "ServiceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatfor"
+ + "mpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037"
+ + "Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google"
+ + "::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -253,8 +305,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.VertexRagDataProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
});
internal_static_google_cloud_aiplatform_v1beta1_RagQuery_descriptor =
getDescriptor().getMessageType(0);
@@ -394,14 +448,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"StartIndex", "EndIndex", "FactIndexes", "Score",
});
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_descriptor =
+ getDescriptor().getMessageType(10);
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Query", "Tools",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_descriptor =
+ getDescriptor().getMessageType(11);
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_AskContextsResponse_descriptor,
+ new java.lang.String[] {
+ "Response", "Contexts",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_descriptor =
+ getDescriptor().getMessageType(12);
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Query", "Tools",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_descriptor =
+ getDescriptor().getMessageType(13);
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsResponse_descriptor,
+ new java.lang.String[] {
+ "Contexts",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_descriptor =
+ getDescriptor().getMessageType(14);
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_AsyncRetrieveContextsOperationMetadata_descriptor,
+ new java.lang.String[] {
+ "GenericMetadata",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor();
+ com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.VertexRagDataProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
@@ -410,6 +506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ClientProto.methodSignature);
registry.add(com.google.api.ClientProto.oauthScopes);
registry.add(com.google.api.ResourceProto.resourceReference);
+ registry.add(com.google.longrunning.OperationsProto.operationInfo);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/memory_bank_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/memory_bank_service.proto
index b70d5ce9962c..ff4d2b62a3cd 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/memory_bank_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/memory_bank_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -52,6 +52,7 @@ service MemoryBankService {
body: "memory"
}
};
+ option (google.api.method_signature) = "parent,memory,memory_id";
option (google.longrunning.operation_info) = {
response_type: "Memory"
metadata_type: "CreateMemoryOperationMetadata"
@@ -160,6 +161,15 @@ message CreateMemoryRequest {
// Required. The Memory to be created.
Memory memory = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The user defined ID to use for memory, which will become the
+ // final component of the memory resource name. If not provided, Vertex AI
+ // will generate a value for this ID.
+ //
+ // 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.
+ string memory_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Details of
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto
index f973d5a54335..0924d7a45ff3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session.proto
@@ -131,6 +131,10 @@ message SessionEvent {
// Optional. Metadata relating to this event.
EventMetadata event_metadata = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Weakly typed raw event data in proto struct format.
+ google.protobuf.Struct raw_event = 12
+ [(google.api.field_behavior) = OPTIONAL];
}
// Metadata relating to a LLM response event.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto
index 2f9384ec37ec..0b9a3cb79be4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/session_service.proto
@@ -52,6 +52,7 @@ service SessionService {
}
};
option (google.api.method_signature) = "parent,session";
+ option (google.api.method_signature) = "parent,session,session_id";
option (google.longrunning.operation_info) = {
response_type: "Session"
metadata_type: "CreateSessionOperationMetadata"
@@ -152,6 +153,15 @@ message CreateSessionRequest {
// Required. The session to create.
Session session = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // 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.
+ //
+ // 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.
+ string session_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Metadata associated with the
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
index 7644f557e986..b82fad0ce27e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_service.proto
@@ -21,8 +21,10 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/aiplatform/v1beta1/content.proto";
+import "google/cloud/aiplatform/v1beta1/operation.proto";
import "google/cloud/aiplatform/v1beta1/tool.proto";
import "google/cloud/aiplatform/v1beta1/vertex_rag_data.proto";
+import "google/longrunning/operations.proto";
option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb";
@@ -69,6 +71,29 @@ service VertexRagService {
};
option (google.api.method_signature) = "parent,content,facts";
}
+
+ // Agentic Retrieval Ask API for RAG.
+ rpc AskContexts(AskContextsRequest) returns (AskContextsResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}:askContexts"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,query";
+ }
+
+ // Asynchronous API to retrieves relevant contexts for a query.
+ rpc AsyncRetrieveContexts(AsyncRetrieveContextsRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}:asyncRetrieveContexts"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent,query";
+ option (google.longrunning.operation_info) = {
+ response_type: "AsyncRetrieveContextsResponse"
+ metadata_type: "AsyncRetrieveContextsOperationMetadata"
+ };
+ }
}
// A query to retrieve relevant contexts.
@@ -346,3 +371,69 @@ message Claim {
// Confidence score of this corroboration.
optional float score = 4;
}
+
+// Agentic Retrieval Ask API for RAG.
+// Request message for
+// [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts].
+message AskContextsRequest {
+ // Required. The resource name of the Location from which to retrieve
+ // RagContexts. The users must have permission to make a call in the project.
+ // Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Single RAG retrieve query.
+ RagQuery query = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The tools to use for AskContexts.
+ repeated Tool tools = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [VertexRagService.AskContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts].
+message AskContextsResponse {
+ // The Retrieval Response.
+ string response = 1;
+
+ // The contexts of the query.
+ RagContexts contexts = 2;
+}
+
+// Request message for
+// [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts].
+message AsyncRetrieveContextsRequest {
+ // Required. The resource name of the Location from which to retrieve
+ // RagContexts. The users must have permission to make a call in the project.
+ // Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Single RAG retrieve query.
+ RagQuery query = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The tools to use for AskContexts.
+ repeated Tool tools = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts].
+message AsyncRetrieveContextsResponse {
+ // The contexts of the query.
+ RagContexts contexts = 1;
+}
+
+// Metadata for AsyncRetrieveContextsOperation.
+message AsyncRetrieveContextsOperationMetadata {
+ // The operation generic information.
+ GenericOperationMetadata generic_metadata = 1;
+}
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/asyncretrievecontexts/SyncAsyncRetrieveContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/asyncretrievecontexts/SyncAsyncRetrieveContexts.java
new file mode 100644
index 000000000000..2e404399b51e
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/vertexragservicestubsettings/asyncretrievecontexts/SyncAsyncRetrieveContexts.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1.stub.samples;
+
+// [START aiplatform_v1_generated_VertexRagServiceStubSettings_AsyncRetrieveContexts_sync]
+import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm;
+import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.retrying.TimedRetryAlgorithm;
+import com.google.cloud.aiplatform.v1.stub.VertexRagServiceStubSettings;
+import java.time.Duration;
+
+public class SyncAsyncRetrieveContexts {
+
+ public static void main(String[] args) throws Exception {
+ syncAsyncRetrieveContexts();
+ }
+
+ public static void syncAsyncRetrieveContexts() throws Exception {
+ // 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
+ VertexRagServiceStubSettings.Builder vertexRagServiceSettingsBuilder =
+ VertexRagServiceStubSettings.newBuilder();
+ TimedRetryAlgorithm timedRetryAlgorithm =
+ OperationalTimedPollAlgorithm.create(
+ RetrySettings.newBuilder()
+ .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ .setRetryDelayMultiplier(1.5)
+ .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ .setTotalTimeoutDuration(Duration.ofHours(24))
+ .build());
+ vertexRagServiceSettingsBuilder
+ .createClusterOperationSettings()
+ .setPollingAlgorithm(timedRetryAlgorithm)
+ .build();
+ }
+}
+// [END aiplatform_v1_generated_VertexRagServiceStubSettings_AsyncRetrieveContexts_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/askcontexts/AsyncAskContexts.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/askcontexts/AsyncAskContexts.java
new file mode 100644
index 000000000000..abd1a9c2859d
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/vertexragservice/askcontexts/AsyncAskContexts.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1.samples;
+
+// [START aiplatform_v1_generated_VertexRagService_AskContexts_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.aiplatform.v1.AskContextsRequest;
+import com.google.cloud.aiplatform.v1.AskContextsResponse;
+import com.google.cloud.aiplatform.v1.LocationName;
+import com.google.cloud.aiplatform.v1.RagQuery;
+import com.google.cloud.aiplatform.v1.Tool;
+import com.google.cloud.aiplatform.v1.VertexRagServiceClient;
+import java.util.ArrayList;
+
+public class AsyncAskContexts {
+
+ public static void main(String[] args) throws Exception {
+ asyncAskContexts();
+ }
+
+ public static void asyncAskContexts() throws Exception {
+ // 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 (VertexRagServiceClient vertexRagServiceClient = VertexRagServiceClient.create()) {
+ AskContextsRequest request =
+ AskContextsRequest.newBuilder()
+ .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ .setQuery(RagQuery.newBuilder().build())
+ .addAllTools(new ArrayList