diff --git a/generation_config.yaml b/generation_config.yaml index f790a33d2426..38de3f231823 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 4679f0c8e33ba14d27612bd607649e1f867a881c +googleapis_commitish: f0b38ca5ff9cd99335328aae512d7cc583b57745 libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java new file mode 100644 index 000000000000..61ea5327678e --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java @@ -0,0 +1,59 @@ +/* + * 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.area120.tables.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTablesService implements MockGrpcService { + private final MockTablesServiceImpl serviceImpl; + + public MockTablesService() { + serviceImpl = new MockTablesServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java new file mode 100644 index 000000000000..8bb1b9060085 --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java @@ -0,0 +1,327 @@ +/* + * 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.area120.tables.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.DeleteRowRequest; +import com.google.area120.tables.v1alpha1.GetRowRequest; +import com.google.area120.tables.v1alpha1.GetTableRequest; +import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; +import com.google.area120.tables.v1alpha1.ListRowsRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TablesServiceGrpc.TablesServiceImplBase; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTablesServiceImpl extends TablesServiceImplBase { + private List requests; + private Queue responses; + + public MockTablesServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getTable(GetTableRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Table) { + requests.add(request); + responseObserver.onNext(((Table) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Table.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTables( + ListTablesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTablesResponse) { + requests.add(request); + responseObserver.onNext(((ListTablesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTables, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTablesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getWorkspace( + GetWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Workspace) { + requests.add(request); + responseObserver.onNext(((Workspace) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Workspace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listWorkspaces( + ListWorkspacesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkspacesResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkspacesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkspaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkspacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRow(GetRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRows(ListRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRowsResponse) { + requests.add(request); + responseObserver.onNext(((ListRowsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRow(CreateRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchCreateRows( + BatchCreateRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateRowsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateRowsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchCreateRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRow(UpdateRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchUpdateRows( + BatchUpdateRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchUpdateRowsResponse) { + requests.add(request); + responseObserver.onNext(((BatchUpdateRowsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchUpdateRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchUpdateRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRow(DeleteRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchDeleteRows( + BatchDeleteRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchDeleteRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..cc5db353ccaa --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java @@ -0,0 +1,873 @@ +/* + * 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.area120.tables.v1alpha; + +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.area120.tables.v1alpha.stub.HttpJsonTablesServiceStub; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.ColumnDescription; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.RowName; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TableName; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.area120.tables.v1alpha1.WorkspaceName; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TablesServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TablesServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTablesServiceStub.getMethodDescriptors(), + TablesServiceSettings.getDefaultEndpoint()); + TablesServiceSettings settings = + TablesServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TablesServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TablesServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTableTest() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TableName name = TableName.of("[TABLE]"); + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TableName name = TableName.of("[TABLE]"); + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableTest2() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-2379"; + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTableExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-2379"; + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTablesTest() throws Exception { + Table responsesElement = Table.newBuilder().build(); + ListTablesResponse expectedResponse = + ListTablesResponse.newBuilder() + .setNextPageToken("") + .addAllTables(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListTablesPagedResponse pagedListResponse = client.listTables(request); + + List
resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTablesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTablesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listTables(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
()) + .build(); + mockService.addResponse(expectedResponse); + + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkspaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "workspaces/workspace-1084"; + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkspaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "workspaces/workspace-1084"; + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkspacesTest() throws Exception { + Workspace responsesElement = Workspace.newBuilder().build(); + ListWorkspacesResponse expectedResponse = + ListWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkspacesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listWorkspaces(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest2() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-4056/rows/row-4056"; + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-4056/rows/row-4056"; + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRowsTest() throws Exception { + Row responsesElement = Row.newBuilder().build(); + ListRowsResponse expectedResponse = + ListRowsResponse.newBuilder() + .setNextPageToken("") + .addAllRows(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "tables/table-3978"; + + ListRowsPagedResponse pagedListResponse = client.listRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRowsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "tables/table-3978"; + client.listRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "tables/table-3978"; + Row row = Row.newBuilder().build(); + + Row actualResponse = client.createRow(parent, row); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "tables/table-3978"; + Row row = Row.newBuilder().build(); + client.createRow(parent, row); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateRowsTest() throws Exception { + BatchCreateRowsResponse expectedResponse = + BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRowsResponse actualResponse = client.batchCreateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Row row = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Row actualResponse = client.updateRow(row, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Row row = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRow(row, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateRowsTest() throws Exception { + BatchUpdateRowsResponse expectedResponse = + BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + client.deleteRow(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-4056/rows/row-4056"; + + client.deleteRow(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-4056/rows/row-4056"; + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteRowsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + + client.batchDeleteRows(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchDeleteRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java new file mode 100644 index 000000000000..ef189c621231 --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java @@ -0,0 +1,784 @@ +/* + * 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.area120.tables.v1alpha; + +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.ColumnDescription; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.DeleteRowRequest; +import com.google.area120.tables.v1alpha1.GetRowRequest; +import com.google.area120.tables.v1alpha1.GetTableRequest; +import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; +import com.google.area120.tables.v1alpha1.ListRowsRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.RowName; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TableName; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.area120.tables.v1alpha1.WorkspaceName; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Value; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TablesServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTablesService mockTablesService; + private LocalChannelProvider channelProvider; + private TablesServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTablesService = new MockTablesService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTablesService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TablesServiceSettings settings = + TablesServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TablesServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getTableTest() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockTablesService.addResponse(expectedResponse); + + TableName name = TableName.of("[TABLE]"); + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + TableName name = TableName.of("[TABLE]"); + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableTest2() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTablesTest() throws Exception { + Table responsesElement = Table.newBuilder().build(); + ListTablesResponse expectedResponse = + ListTablesResponse.newBuilder() + .setNextPageToken("") + .addAllTables(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListTablesPagedResponse pagedListResponse = client.listTables(request); + + List
resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTablesList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTablesRequest actualRequest = ((ListTablesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTablesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listTables(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
()) + .build(); + mockTablesService.addResponse(expectedResponse); + + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkspaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkspacesTest() throws Exception { + Workspace responsesElement = Workspace.newBuilder().build(); + ListWorkspacesResponse expectedResponse = + ListWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkspacesRequest actualRequest = ((ListWorkspacesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkspacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listWorkspaces(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest2() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRowsTest() throws Exception { + Row responsesElement = Row.newBuilder().build(); + ListRowsResponse expectedResponse = + ListRowsResponse.newBuilder() + .setNextPageToken("") + .addAllRows(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRowsPagedResponse pagedListResponse = client.listRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRowsList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRowsRequest actualRequest = ((ListRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Row row = Row.newBuilder().build(); + + Row actualResponse = client.createRow(parent, row); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRowRequest actualRequest = ((CreateRowRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(row, actualRequest.getRow()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String parent = "parent-995424086"; + Row row = Row.newBuilder().build(); + client.createRow(parent, row); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateRowsTest() throws Exception { + BatchCreateRowsResponse expectedResponse = + BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockTablesService.addResponse(expectedResponse); + + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRowsResponse actualResponse = client.batchCreateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateRowsRequest actualRequest = ((BatchCreateRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + Row row = Row.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Row actualResponse = client.updateRow(row, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRowRequest actualRequest = ((UpdateRowRequest) actualRequests.get(0)); + + Assert.assertEquals(row, actualRequest.getRow()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + Row row = Row.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRow(row, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateRowsTest() throws Exception { + BatchUpdateRowsResponse expectedResponse = + BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockTablesService.addResponse(expectedResponse); + + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateRowsRequest actualRequest = ((BatchUpdateRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + client.deleteRow(name); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteRow(name); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteRowsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + + client.batchDeleteRows(request); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteRowsRequest actualRequest = ((BatchDeleteRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchDeleteRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentTool.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentTool.java index b12f2c15531d..4a2e9843918b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentTool.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentTool.java @@ -54,7 +54,6 @@ private AgentTool(com.google.protobuf.GeneratedMessage.Builder builder) { private AgentTool() { name_ = ""; description_ = ""; - rootAgent_ = ""; agent_ = ""; } @@ -179,73 +178,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } - public static final int ROOT_AGENT_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object rootAgent_ = ""; - - /** - * - * - *
-   * Optional. Deprecated: Use `agent` instead.
-   * The resource name of the root agent that is the entry point of the tool.
-   * Format: `projects/{project}/locations/{location}/agents/{agent}`
-   * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The rootAgent. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getRootAgent() { - java.lang.Object ref = rootAgent_; - 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(); - rootAgent_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. Deprecated: Use `agent` instead.
-   * The resource name of the root agent that is the entry point of the tool.
-   * Format: `projects/{project}/locations/{location}/agents/{agent}`
-   * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The bytes for rootAgent. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getRootAgentBytes() { - java.lang.Object ref = rootAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int AGENT_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -325,9 +257,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, rootAgent_); - } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, agent_); } @@ -346,9 +275,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rootAgent_); - } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, agent_); } @@ -369,7 +295,6 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; - if (!getRootAgent().equals(other.getRootAgent())) return false; if (!getAgent().equals(other.getAgent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -386,8 +311,6 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + ROOT_AGENT_FIELD_NUMBER; - hash = (53 * hash) + getRootAgent().hashCode(); hash = (37 * hash) + AGENT_FIELD_NUMBER; hash = (53 * hash) + getAgent().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -531,7 +454,6 @@ public Builder clear() { bitField0_ = 0; name_ = ""; description_ = ""; - rootAgent_ = ""; agent_ = ""; return this; } @@ -576,9 +498,6 @@ private void buildPartial0(com.google.cloud.ces.v1beta.AgentTool result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.rootAgent_ = rootAgent_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { result.agent_ = agent_; } } @@ -605,14 +524,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.AgentTool other) { bitField0_ |= 0x00000002; onChanged(); } - if (!other.getRootAgent().isEmpty()) { - rootAgent_ = other.rootAgent_; - bitField0_ |= 0x00000004; - onChanged(); - } if (!other.getAgent().isEmpty()) { agent_ = other.agent_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -653,16 +567,10 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 - case 26: - { - rootAgent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 case 34: { agent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -906,152 +814,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object rootAgent_ = ""; - - /** - * - * - *
-     * Optional. Deprecated: Use `agent` instead.
-     * The resource name of the root agent that is the entry point of the tool.
-     * Format: `projects/{project}/locations/{location}/agents/{agent}`
-     * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The rootAgent. - */ - @java.lang.Deprecated - public java.lang.String getRootAgent() { - java.lang.Object ref = rootAgent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rootAgent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. Deprecated: Use `agent` instead.
-     * The resource name of the root agent that is the entry point of the tool.
-     * Format: `projects/{project}/locations/{location}/agents/{agent}`
-     * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The bytes for rootAgent. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getRootAgentBytes() { - java.lang.Object ref = rootAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. Deprecated: Use `agent` instead.
-     * The resource name of the root agent that is the entry point of the tool.
-     * Format: `projects/{project}/locations/{location}/agents/{agent}`
-     * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @param value The rootAgent to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setRootAgent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - rootAgent_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Deprecated: Use `agent` instead.
-     * The resource name of the root agent that is the entry point of the tool.
-     * Format: `projects/{project}/locations/{location}/agents/{agent}`
-     * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearRootAgent() { - rootAgent_ = getDefaultInstance().getRootAgent(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Deprecated: Use `agent` instead.
-     * The resource name of the root agent that is the entry point of the tool.
-     * Format: `projects/{project}/locations/{location}/agents/{agent}`
-     * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @param value The bytes for rootAgent to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setRootAgentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - rootAgent_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - private java.lang.Object agent_ = ""; /** @@ -1126,7 +888,7 @@ public Builder setAgent(java.lang.String value) { throw new NullPointerException(); } agent_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1147,7 +909,7 @@ public Builder setAgent(java.lang.String value) { */ public Builder clearAgent() { agent_ = getDefaultInstance().getAgent(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1173,7 +935,7 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); agent_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolOrBuilder.java index 4e1ef31a60ae..768b5faaa4aa 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolOrBuilder.java @@ -78,46 +78,6 @@ public interface AgentToolOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); - /** - * - * - *
-   * Optional. Deprecated: Use `agent` instead.
-   * The resource name of the root agent that is the entry point of the tool.
-   * Format: `projects/{project}/locations/{location}/agents/{agent}`
-   * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The rootAgent. - */ - @java.lang.Deprecated - java.lang.String getRootAgent(); - - /** - * - * - *
-   * Optional. Deprecated: Use `agent` instead.
-   * The resource name of the root agent that is the entry point of the tool.
-   * Format: `projects/{project}/locations/{location}/agents/{agent}`
-   * 
- * - * - * string root_agent = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @deprecated google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See - * google/cloud/ces/v1beta/agent_tool.proto;l=37 - * @return The bytes for rootAgent. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getRootAgentBytes(); - /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolProto.java index fcf4667585e5..2fbc905cc990 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentToolProto.java @@ -56,13 +56,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/ces/v1beta/agent_tool.pro" + "to\022\027google.cloud.ces.v1beta\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\"\241\001\n\tAgentTool\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\030\n\013description\030\002 \001(\tB\003\340A\001\0226\n\nroot_agent" - + "\030\003 \001(\tB\"\030\001\340A\001\372A\032\n\030ces.googleapis.com/Age" - + "nt\022/\n\005agent\030\004 \001(\tB \340A\001\372A\032\n\030ces.googleapi" - + "s.com/AgentB^\n\033com.google.cloud.ces.v1be" - + "taB\016AgentToolProtoP\001Z-cloud.google.com/g" - + "o/ces/apiv1beta/cespb;cespbb\006proto3" + + "e.proto\"i\n\tAgentTool\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "\030\n\013description\030\002 \001(\tB\003\340A\001\022/\n\005agent\030\004 \001(\t" + + "B \340A\001\372A\032\n\030ces.googleapis.com/AgentB^\n\033co" + + "m.google.cloud.ces.v1betaB\016AgentToolProt" + + "oP\001Z-cloud.google.com/go/ces/apiv1beta/c" + + "espb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,7 +76,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AgentTool_descriptor, new java.lang.String[] { - "Name", "Description", "RootAgent", "Agent", + "Name", "Description", "Agent", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_tool.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_tool.proto index 92e845c8a138..4a1bed9b61c2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_tool.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/agent_tool.proto @@ -32,15 +32,6 @@ message AgentTool { // Optional. Description of the tool's purpose. string description = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Deprecated: Use `agent` instead. - // The resource name of the root agent that is the entry point of the tool. - // Format: `projects/{project}/locations/{location}/agents/{agent}` - string root_agent = 3 [ - deprecated = true, - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } - ]; - // Optional. The resource name of the agent that is the entry point of the // tool. Format: `projects/{project}/locations/{location}/agents/{agent}` string agent = 4 [ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index eac3b55c51c7..646af73253a3 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -264,8 +264,9 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { * Highcpu machine with 8 CPUs. * * - * N1_HIGHCPU_8 = 1; + * N1_HIGHCPU_8 = 1 [deprecated = true]; */ + @java.lang.Deprecated N1_HIGHCPU_8(1), /** * @@ -274,8 +275,9 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { * Highcpu machine with 32 CPUs. * * - * N1_HIGHCPU_32 = 2; + * N1_HIGHCPU_32 = 2 [deprecated = true]; */ + @java.lang.Deprecated N1_HIGHCPU_32(2), /** * @@ -307,6 +309,16 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { * E2_MEDIUM = 7; */ E2_MEDIUM(7), + /** + * + * + *
+     * E2 machine with 2 CPUs.
+     * 
+ * + * E2_STANDARD_2 = 11; + */ + E2_STANDARD_2(11), UNRECOGNIZED(-1), ; @@ -338,9 +350,9 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { * Highcpu machine with 8 CPUs. * * - * N1_HIGHCPU_8 = 1; + * N1_HIGHCPU_8 = 1 [deprecated = true]; */ - public static final int N1_HIGHCPU_8_VALUE = 1; + @java.lang.Deprecated public static final int N1_HIGHCPU_8_VALUE = 1; /** * @@ -349,9 +361,9 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { * Highcpu machine with 32 CPUs. * * - * N1_HIGHCPU_32 = 2; + * N1_HIGHCPU_32 = 2 [deprecated = true]; */ - public static final int N1_HIGHCPU_32_VALUE = 2; + @java.lang.Deprecated public static final int N1_HIGHCPU_32_VALUE = 2; /** * @@ -386,6 +398,17 @@ public enum MachineType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int E2_MEDIUM_VALUE = 7; + /** + * + * + *
+     * E2 machine with 2 CPUs.
+     * 
+ * + * E2_STANDARD_2 = 11; + */ + public static final int E2_STANDARD_2_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,6 +445,8 @@ public static MachineType forNumber(int value) { return E2_HIGHCPU_32; case 7: return E2_MEDIUM; + case 11: + return E2_STANDARD_2; default: return null; } @@ -2227,7 +2252,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The workerPool. */ @java.lang.Override @@ -2254,7 +2279,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The bytes for workerPool. */ @java.lang.Override @@ -4416,7 +4441,7 @@ public Builder clearLogStreamingOption() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The workerPool. */ @java.lang.Deprecated @@ -4442,7 +4467,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4468,7 +4493,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4493,7 +4518,7 @@ public Builder setWorkerPool(java.lang.String value) { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4514,7 +4539,7 @@ public Builder clearWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 53650914c9e5..c6c754e08a65 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -272,7 +272,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The workerPool. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2573 * @return The bytes for workerPool. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index fa844a828464..973f78f2ad68 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -994,7 +994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "trigger_id\030\002 \001(\tB\003\340A\002\022A\n" + "\007trigger\030\003" + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" - + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\242\014\n" + + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\276\014\n" + "\014BuildOptions\022L\n" + "\026source_provenance_hash\030\001 \003(\0162,.googl" + "e.devtools.cloudbuild.v1.Hash.HashType\022Y\n" @@ -1026,14 +1026,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$cloudbuild.googleapis.com/WorkerPool\".\n" + "\014VerifyOption\022\020\n" + "\014NOT_VERIFIED\020\000\022\014\n" - + "\010VERIFIED\020\001\"w\n" + + "\010VERIFIED\020\001\"\222\001\n" + "\013MachineType\022\017\n" - + "\013UNSPECIFIED\020\000\022\020\n" - + "\014N1_HIGHCPU_8\020\001\022\021\n\r" - + "N1_HIGHCPU_32\020\002\022\020\n" + + "\013UNSPECIFIED\020\000\022\024\n" + + "\014N1_HIGHCPU_8\020\001\032\002\010\001\022\025\n\r" + + "N1_HIGHCPU_32\020\002\032\002\010\001\022\020\n" + "\014E2_HIGHCPU_8\020\005\022\021\n\r" + "E2_HIGHCPU_32\020\006\022\r\n" - + "\tE2_MEDIUM\020\007\"5\n" + + "\tE2_MEDIUM\020\007\022\021\n\r" + + "E2_STANDARD_2\020\013\"5\n" + "\022SubstitutionOption\022\016\n\n" + "MUST_MATCH\020\000\022\017\n" + "\013ALLOW_LOOSE\020\001\"G\n" @@ -1069,13 +1070,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016peered_network\030\t \001(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Network\022L\n" + "\007secrets\030\n" - + " \001(" - + "\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + " \001(\01326.google.d" + + "evtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + "\014display_name\030\013 \001(\tB\003\340A\001\022\023\n" + "\006ssl_ca\030\014 \001(\tB\003\340A\001:\265\001\352A\261\001\n" - + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}/githubEnterp" - + "riseConfigs/{config}\022Hprojects/{project}" - + "/locations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223pro" + + "jects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/locations/{" + + "location}/githubEnterpriseConfigs/{config}\"\355\002\n" + "\027GitHubEnterpriseSecrets\022Q\n" + "\030private_key_version_name\030\005 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022T\n" @@ -1089,15 +1090,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022O\n" - + "\013annotations\030\004 \003(\0132:." - + "google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004 \003(\0132:.google.devto" + + "ols.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" - + "\005state\030\010 \001(\0162/.goo" - + "gle.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" - + "\026private_pool_v1_config\030\014 \001(\013" - + "22.google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\005state\030\010" + + " \001(\0162/.google.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" + + "\026private_pool_v1_config\030\014 \001(\01322.google.de" + + "vtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + "\004etag\030\013 \001(\tB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1109,29 +1110,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\013\n" + "\007DELETED\020\004\022\014\n" + "\010UPDATING\020\005:\211\001\352A\205\001\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects" - + "/{project}/locations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/l" + + "ocations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" + "\006config\"\272\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "worker_config\030\001 \001(\0132?.google.devtools" - + ".cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" - + "\016network_config\030\002 \001(\0132@.google" - + ".devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" - + "\027private_service_connect\030\005 \001(\0132H.google.devtools.cloudbuild." - + "v1.PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + + "worker_config\030\001" + + " \001(\0132?.google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" + + "\016network_config\030\002 \001(\0132@.google.devtools.cl" + + "oudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" + + "\027private_service_connect\030\005 \001(\0132H" + + ".google.devtools.cloudbuild.v1.PrivatePo" + + "olV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + "\014WorkerConfig\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\014disk_size_gb\030\002 \001(\003\022.\n" + "\034enable_nested_virtualization\030\003" + " \001(\010B\003\340A\001H\000\210\001\001B\037\n" - + "\035_enable_nested_virtualization\032\266\002\n" - + "\r" + + "\035_enable_nested_virtualization\032\266\002\n\r" + "NetworkConfig\022A\n" + "\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n" + "\036compute.googleapis.com/Network\022d\n\r" - + "egress_option\030\002 \001(\0162M.google.devtoo" - + "ls.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M.google.devtools.cloudbuil" + + "d.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + "\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"V\n" + "\014EgressOption\022\035\n" + "\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n" @@ -1145,8 +1146,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CreateWorkerPoolRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022C\n" - + "\013worker_pool\030\002 \001(\013" - + "2).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\022\036\n" + + "\013worker_pool\030\002" + + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\022\036\n" + "\016worker_pool_id\030\003 \001(\tB\006\340A\005\340A\002\022\025\n\r" + "validate_only\030\004 \001(\010\"R\n" + "\024GetWorkerPoolRequest\022:\n" @@ -1156,8 +1157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudbuild.googleapis.com/WorkerPool\022\021\n" + "\004etag\030\002 \001(\tB\003\340A\001\022\025\n\r" - + "allow_missing\030\003 \001(\010\022\025\n" - + "\r" + + "allow_missing\030\003 \001(\010\022\025\n\r" + "validate_only\030\004 \001(\010\"\253\001\n" + "\027UpdateWorkerPoolRequest\022C\n" + "\013worker_pool\030\001" @@ -1171,8 +1171,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListWorkerPoolsResponse\022?\n" - + "\014worker_pools\030\001" - + " \003(\0132).google.devtools.cloudbuild.v1.WorkerPool\022\027\n" + + "\014worker_pools\030\001 \003(\0132).go" + + "ogle.devtools.cloudbuild.v1.WorkerPool\022\027\n" + "\017next_page_token\030\002 \001(\t\"\307\001\n" + "!CreateWorkerPoolOperationMetadata\022>\n" + "\013worker_pool\030\001 \001(\tB)\372A&\n" @@ -1190,147 +1190,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\371-\n\n" + "CloudBuild\022\267\002\n" - + "\013CreateBuild\0221.google.devtools.cloudbuild.v1.CreateBuildRequ" - + "est\032\035.google.longrunning.Operation\"\325\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" - + " /v1/projects/{project_id}/builds:\005buildZ3\"*/v1/{paren" - + "t=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + + "\013CreateBuild\0221.google.devtools.c" + + "loudbuild.v1.CreateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" + + "\005Build\022\026Bui" + + "ldOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" + + " /v1/projects/{project_id}" + + "/builds:\005buildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" - + "\010GetBuild\022..google.devtool" - + "s.cloudbuild.v1.GetBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/projects/{pro" - + "ject_id}/builds/{id}Z,\022*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + + "\010GetBuild\022..google.devtools.cloudbuild" + + ".v1.GetBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/projects/{project_id}/bui" + + "lds/{id}Z,\022*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsRequest\0321.google.d" - + "evtools.cloudbuild.v1.ListBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" - + " /v1/proje" - + "cts/{project_id}/buildsZ,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + + "ListBuilds\0220.google.devtools.cloudbuild.v1." + + "ListBuildsRequest\0321.google.devtools.clou" + + "dbuild.v1.ListBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" + + " /v1/projects/{project" + + "_id}/buildsZ,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" - + "\013CancelBuild\0221.google.devtools.cloud" - + "build.v1.CancelBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/projects/{project" - + "_id}/builds/{id}:cancel:\001*Z6\"1/v1/{name=" - + "projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.Can" + + "celBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/projects/{project_id}/builds/" + + "{id}:cancel:\001*Z6\"1/v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" - + "RetryBuild\0220.google.devtools.cloudbuild.v1.RetryBuildRe" - + "quest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + + "RetryBuild\0220.google.devtool" + + "s.cloudbuild.v1.RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + "\005Build\022\026BuildOperationMetadata\332A\r" - + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1/projects/{pr" - + "oject_id}/builds/{id}:retry:\001*Z5\"0/v1/{n" - + "ame=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1/projects/{project_id}/bu" + + "ilds/{id}:retry:\001*Z5\"0/v1/{name=projects" + + "/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\301\002\n" - + "\014ApproveBuild\0222.google.devtools.cloudbuild.v1.Approve" - + "BuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata" - + "\332A\024name,approval_result\202\323\344\223\002d\"&/v1/{name" - + "=projects/*/builds/*}:approve:\001*Z7\"2/v1/" - + "{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + + "\014ApproveBuild\0222.google.de" + + "vtools.cloudbuild.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\024name,appr" + + "oval_result\202\323\344\223\002d\"&/v1/{name=projects/*/" + + "builds/*}:approve:\001*Z7\"2/v1/{name=projec" + + "ts/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild." - + "v1.CreateBuildTriggerRequest\032+.google.de" - + "vtools.cloudbuild.v1.BuildTrigger\"\275\001\332A\022p" - + "roject_id,trigger\332A\006parent\202\323\344\223\002f\"\"/v1/pr" - + "ojects/{project_id}/triggers:\007triggerZ7\"" - + ",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBui" + + "ldTriggerRequest\032+.google.devtools.cloud" + + "build.v1.BuildTrigger\"\275\001\332A\022project_id,tr" + + "igger\332A\006parent\202\323\344\223\002f\"\"/v1/projects/{proj" + + "ect_id}/triggers:\007triggerZ7\",/v1/{parent" + + "=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" - + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.Ge" - + "tBuildTriggerRequest\032+.google.devtools.c" - + "loudbuild.v1.BuildTrigger\"\302\001\332A\025project_i" - + "d,trigger_id\332A\004name\202\323\344\223\002a\022//v1/projects/" - + "{project_id}/triggers/{trigger_id}Z.\022,/v" - + "1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildTrigge" + + "rRequest\032+.google.devtools.cloudbuild.v1" + + ".BuildTrigger\"\302\001\332A\025project_id,trigger_id" + + "\332A\004name\202\323\344\223\002a\022//v1/projects/{project_id}" + + "/triggers/{trigger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.Lis" - + "tBuildTriggersRequest\0328.google.devtools." - + "cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{pro" - + "ject_id}/triggersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTrigge" + + "rsRequest\0328.google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" + + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/tri" + + "ggersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cl" - + "oudbuild.v1.DeleteBuildTriggerRequest\032\026." - + "google.protobuf.Empty\"\302\001\332A\025project_id,tr" - + "igger_id\332A\004name\202\323\344\223\002a*//v1/projects/{pro" - + "ject_id}/triggers/{trigger_id}Z.*,/v1/{n" - + "ame=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1." + + "DeleteBuildTriggerRequest\032\026.google.proto" + + "buf.Empty\"\302\001\332A\025project_id,trigger_id\332A\004n" + + "ame\202\323\344\223\002a*//v1/projects/{project_id}/tri" + + "ggers/{trigger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.cloudbuild.v1.Update" - + "BuildTriggerRequest\032+.google.devtools.cl" - + "oudbuild.v1.BuildTrigger\"\370\001\332A\035project_id" - + ",trigger_id,trigger\202\323\344\223\002\204\0012//v1/projects" - + "/{project_id}/triggers/{trigger_id}:\007triggerZH2=/v1/{trigger.resource_name=proje" - + "cts/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trigger.resource_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudb" - + "uild.v1.RunBuildTriggerRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\034project_id,trigger_" - + "id,source\202\323\344\223\002t\"3/v1/projects/{project_i" - + "d}/triggers/{trigger_id}:run:\006sourceZ5\"0" - + "/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + + "\022UpdateBuildTrigger\0228.google.devtools.cloudbuild.v1.UpdateBuildTrigger" + + "Request\032+.google.devtools.cloudbuild.v1." + + "BuildTrigger\"\370\001\332A\035project_id,trigger_id," + + "trigger\202\323\344\223\002\204\0012//v1/projects/{project_id" + + "}/triggers/{trigger_id}:\007triggerZH2=/v1/" + + "{trigger.resource_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" + + "\025trig" + + "ger.resource_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" + + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunB" + + "uildTriggerRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" + + "\005Build\022\026BuildOperationMe" + + "tadata\332A\034project_id,trigger_id,source\202\323\344" + + "\223\002t\"3/v1/projects/{project_id}/triggers/" + + "{trigger_id}:run:\006sourceZ5\"0/v1/{name=pr" + + "ojects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.clou" - + "dbuild.v1.ReceiveTriggerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTr" - + "iggerWebhookResponse\"\200\001\202\323\344\223\002z\"4/v1/proje" - + "cts/{project_id}/triggers/{trigger}:webh" - + "ook:\004bodyZ<\"4/v1/{name=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devtools.cloudbuil" - + "d.v1.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!paren" - + "t,worker_pool,worker_pool_id\202\323\344\223\002>\"//v1/" - + "{parent=projects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.Re" + + "ceiveTriggerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTriggerWebhook" + + "Response\"\200\001\202\323\344\223\002z\"4/v1/projects/{project" + + "_id}/triggers/{trigger}:webhook:\004bodyZ<\"" + + "4/v1/{name=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" + + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateW" + + "orkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" + + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_poo" + + "l,worker_pool_id\202\323\344\223\002>\"//v1/{parent=proj" + + "ects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.Ge" - + "tWorkerPoolRequest\032).google.devtools.clo" - + "udbuild.v1.WorkerPool\"}\332A\004name\202\323\344\223\0021\022//v" - + "1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolR" + + "equest\032).google.devtools.cloudbuild.v1.W" + + "orkerPool\"}\332A\004name\202\323\344\223\0021\022//v1/{name=proj" + + "ects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v" - + "1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!DeleteWorkerPoolOperationMetadata" - + "\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v1.DeleteWork" + + "erPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" + + "\025google.protobuf.Empty\022!Delet" + + "eWorkerPoolOperationMetadata\332A\004name\202\323\344\223\002" + + "1*//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devt" - + "ools.cloudbuild.v1.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n" - + "\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMe" - + "tadata\332A\027worker_pool,update_mask\202\323\344\223\002J2;" - + "/v1/{worker_pool.name=projects/*/locatio" - + "ns/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + + "\020UpdateWorkerPool\0226.google.devtools.cloudbu" + + "ild.v1.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" + + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027wor" + + "ker_pool,update_mask\202\323\344\223\002J2;/v1/{worker_" + + "pool.name=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1." - + "ListWorkerPoolsRequest\0326.google.devtools.cloudbuild.v1.ListWorkerPoolsResponse\"s" - + "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPo" + + "olsRequest\0326.google.devtools.cloudbuild." + + "v1.ListWorkerPoolsResponse\"s\332A\006parent\202\323\344" + + "\223\0021\022//v1/{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" - + "\030GetDefaultServiceAccount\022>.google.devtoo" - + "ls.cloudbuild.v1.GetDefaultServiceAccountRequest\0324.google.devtools.cloudbuild.v1" - + ".DefaultServiceAccount\"\215\001\332A\004name\202\323\344\223\0029\0227" - + "/v1/{name=projects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" - + "\004name\0227projects/*/locations/{location=*}/defaultServiceA" - + "ccount\032M\312A\031cloudbuild.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuild/apiv1/v2/cl" - + "oudbuildpb;cloudbuildpb\242\002\003GCB\252\002\032Google.C" - + "loud.CloudBuild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036comput" - + "e.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.com/ServiceAccount\0224projects/{" - + "project}/serviceAccounts/{service_account}\352AJ\n" + + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuil" + + "d.v1.GetDefaultServiceAccountRequest\0324.google.devtools.cloudbuild.v1.DefaultServ" + + "iceAccount\"\215\001\332A\004name\202\323\344\223\0029\0227/v1/{name=pr" + + "ojects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" + + "\004name\0227projects/*/locations/{location=*}/defaultServiceAccount\032M\312A\031c" + + "loudbuild.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" + + "\030com.google.cloudbuild.v1P\001ZAcloud.google.c" + + "om/go/cloudbuild/apiv1/v2/cloudbuildpb;c" + + "loudbuildpb\242\002\003GCB\252\002\032Google.Cloud.CloudBu" + + "ild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" + + "\036compute.googleapis" + + ".com/Network\022,projects/{project}/global/networks/{network}\352AY\n" + + "!iam.googleapis.co" + + "m/ServiceAccount\0224projects/{project}/serviceAccounts/{service_account}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapis.com/SecretV" - + "ersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Membership\022Bprojects/{project}/" - + "locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/locations/{loc" - + "ation}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.com/Subscriptio" - + "n\022/projects/{project}/subscriptions/{subscription}\352A@\n" + + "*secretmanager.googleapis.com/SecretVersion\0226proj" + + "ects/{project}/secrets/{secret}/versions/{version}\352Af\n" + + " gkehub.googleapis.com/Mem" + + "bership\022Bprojects/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kproje" + + "cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" + + "\"pubsub.googleapis.com/Subscription\022/projects/" + + "{project}/subscriptions/{subscription}\352A@\n" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regions/{region}/" - + "networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/locati" - + "ons/{location}/connections/{connection}/" - + "gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/locations/{locati" - + "on}/connections/{connection}/repositories/{repository}b\006proto3" + + "(compute.googleapis.com/NetworkAttachment\022Jprojects" + + "/{project}/regions/{region}/networkAttachments/{networkattachment}\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLin" + + "k\022iprojects/{project}/locations/{locatio" + + "n}/connections/{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" + + "$cloudbuild.googleapis.com/Repository\022Zprojects" + + "/{project}/locations/{location}/connections/{connection}/repositories/{repositor" + + "y}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java index 8602e4a05e50..1d3d971e9ea3 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java @@ -135,7 +135,7 @@ public EventCase getEventCase() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 * @return The installationId. */ @java.lang.Override @@ -834,7 +834,7 @@ public Builder clearEvent() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 * @return The installationId. */ @java.lang.Override @@ -853,7 +853,7 @@ public long getInstallationId() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 * @param value The installationId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setInstallationId(long value) { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java index 544c49990044..1f576465cd57 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java @@ -36,7 +36,7 @@ public interface GitHubEventsConfigOrBuilder * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 * @return The installationId. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index c819535153a3..194fefc3d5d2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -14,6 +14,7 @@ syntax = "proto3"; +// LINT: LEGACY_NAMES package google.devtools.cloudbuild.v1; import "google/api/annotations.proto"; @@ -2435,10 +2436,10 @@ message BuildOptions { UNSPECIFIED = 0; // Highcpu machine with 8 CPUs. - N1_HIGHCPU_8 = 1; + N1_HIGHCPU_8 = 1 [deprecated = true]; // Highcpu machine with 32 CPUs. - N1_HIGHCPU_32 = 2; + N1_HIGHCPU_32 = 2 [deprecated = true]; // Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5; @@ -2448,6 +2449,9 @@ message BuildOptions { // E2 machine with 1 CPU. E2_MEDIUM = 7; + + // E2 machine with 2 CPUs. + E2_STANDARD_2 = 11; } // Specifies the behavior when there is an error in the substitution checks. diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index d3422c24b82b..73477502eff4 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -156,6 +156,26 @@ * * *
+ * + * + * + * + * * * * * * * * * * * * * * * * * * * * * *

ConfigureExascaleCloudExadataInfrastructure

Configures Exascale for a single Exadata Infrastructure.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • configureExascaleCloudExadataInfrastructureAsync(ConfigureExascaleCloudExadataInfrastructureRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • configureExascaleCloudExadataInfrastructureAsync(CloudExadataInfrastructureName name, int totalStorageSizeGb) + *

  • configureExascaleCloudExadataInfrastructureAsync(String name, int totalStorageSizeGb) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • configureExascaleCloudExadataInfrastructureOperationCallable() + *

  • configureExascaleCloudExadataInfrastructureCallable() + *

+ *

ListCloudVmClusters

Lists the VM Clusters in a given project and location.

@@ -2442,6 +2462,197 @@ public final OperationFuture deleteCloudExadataInfrast return stub.deleteCloudExadataInfrastructureCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Configures Exascale for a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   CloudExadataInfrastructureName name =
+   *       CloudExadataInfrastructureName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]");
+   *   int totalStorageSizeGb = 1493200154;
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient
+   *           .configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @param totalStorageSizeGb Required. The total storage to be allocated to Exascale in GBs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + configureExascaleCloudExadataInfrastructureAsync( + CloudExadataInfrastructureName name, int totalStorageSizeGb) { + ConfigureExascaleCloudExadataInfrastructureRequest request = + ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setTotalStorageSizeGb(totalStorageSizeGb) + .build(); + return configureExascaleCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Configures Exascale for a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   String name =
+   *       CloudExadataInfrastructureName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *           .toString();
+   *   int totalStorageSizeGb = 1493200154;
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient
+   *           .configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The name of the Cloud Exadata Infrastructure in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @param totalStorageSizeGb Required. The total storage to be allocated to Exascale in GBs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + configureExascaleCloudExadataInfrastructureAsync(String name, int totalStorageSizeGb) { + ConfigureExascaleCloudExadataInfrastructureRequest request = + ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + .setName(name) + .setTotalStorageSizeGb(totalStorageSizeGb) + .build(); + return configureExascaleCloudExadataInfrastructureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Configures Exascale for a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ConfigureExascaleCloudExadataInfrastructureRequest request =
+   *       ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setTotalStorageSizeGb(1493200154)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   CloudExadataInfrastructure response =
+   *       oracleDatabaseClient.configureExascaleCloudExadataInfrastructureAsync(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 + configureExascaleCloudExadataInfrastructureAsync( + ConfigureExascaleCloudExadataInfrastructureRequest request) { + return configureExascaleCloudExadataInfrastructureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Configures Exascale for a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ConfigureExascaleCloudExadataInfrastructureRequest request =
+   *       ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setTotalStorageSizeGb(1493200154)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient
+   *           .configureExascaleCloudExadataInfrastructureOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   CloudExadataInfrastructure response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable() { + return stub.configureExascaleCloudExadataInfrastructureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Configures Exascale for a single Exadata Infrastructure. + * + *

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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   ConfigureExascaleCloudExadataInfrastructureRequest request =
+   *       ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder()
+   *           .setName(
+   *               CloudExadataInfrastructureName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]")
+   *                   .toString())
+   *           .setTotalStorageSizeGb(1493200154)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient
+   *           .configureExascaleCloudExadataInfrastructureCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + configureExascaleCloudExadataInfrastructureCallable() { + return stub.configureExascaleCloudExadataInfrastructureCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the VM Clusters in a given project and location. diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index a9fc48da78e3..f0dbe3e01415 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -196,6 +196,29 @@ public class OracleDatabaseSettings extends ClientSettings + configureExascaleCloudExadataInfrastructureSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .configureExascaleCloudExadataInfrastructureSettings(); + } + + /** + * Returns the object with the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public OperationCallSettings< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()) + .configureExascaleCloudExadataInfrastructureOperationSettings(); + } + /** Returns the object with the settings used for calls to listCloudVmClusters. */ public PagedCallSettings< ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> @@ -1082,6 +1105,28 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteCloudExadataInfrastructureOperationSettings(); } + /** + * Returns the builder for the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public UnaryCallSettings.Builder + configureExascaleCloudExadataInfrastructureSettings() { + return getStubSettingsBuilder().configureExascaleCloudExadataInfrastructureSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public OperationCallSettings.Builder< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings() { + return getStubSettingsBuilder() + .configureExascaleCloudExadataInfrastructureOperationSettings(); + } + /** Returns the builder for the settings used for calls to listCloudVmClusters. */ public PagedCallSettings.Builder< ListCloudVmClustersRequest, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json index 0bf1c6a4f4d4..d1f0ba971062 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "OracleDatabaseClient", "rpcs": { + "ConfigureExascaleCloudExadataInfrastructure": { + "methods": ["configureExascaleCloudExadataInfrastructureAsync", "configureExascaleCloudExadataInfrastructureAsync", "configureExascaleCloudExadataInfrastructureAsync", "configureExascaleCloudExadataInfrastructureOperationCallable", "configureExascaleCloudExadataInfrastructureCallable"] + }, "CreateAutonomousDatabase": { "methods": ["createAutonomousDatabaseAsync", "createAutonomousDatabaseAsync", "createAutonomousDatabaseAsync", "createAutonomousDatabaseOperationCallable", "createAutonomousDatabaseCallable"] }, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java index 7a5c437ec7f2..4c3568da8867 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java @@ -62,6 +62,7 @@ import com.google.cloud.oracledatabase.v1.AutonomousDatabase; import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; @@ -257,6 +258,21 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ConfigureExascaleCloudExadataInfrastructureRequest, Operation> + configureExascaleCloudExadataInfrastructureMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ConfigureExascaleCloudExadataInfrastructure") + .setRequestMarshaller( + ProtoUtils.marshaller( + ConfigureExascaleCloudExadataInfrastructureRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listCloudVmClustersMethodDescriptor = MethodDescriptor.newBuilder() @@ -1245,6 +1261,13 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { deleteCloudExadataInfrastructureCallable; private final OperationCallable deleteCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + configureExascaleCloudExadataInfrastructureCallable; + private final OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable; private final UnaryCallable listCloudVmClustersCallable; private final UnaryCallable @@ -1632,6 +1655,19 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + configureExascaleCloudExadataInfrastructureTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(configureExascaleCloudExadataInfrastructureMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listCloudVmClustersTransportSettings = GrpcCallSettings.newBuilder() @@ -2589,6 +2625,17 @@ protected GrpcOracleDatabaseStub( settings.deleteCloudExadataInfrastructureOperationSettings(), clientContext, operationsStub); + this.configureExascaleCloudExadataInfrastructureCallable = + callableFactory.createUnaryCallable( + configureExascaleCloudExadataInfrastructureTransportSettings, + settings.configureExascaleCloudExadataInfrastructureSettings(), + clientContext); + this.configureExascaleCloudExadataInfrastructureOperationCallable = + callableFactory.createOperationCallable( + configureExascaleCloudExadataInfrastructureTransportSettings, + settings.configureExascaleCloudExadataInfrastructureOperationSettings(), + clientContext, + operationsStub); this.listCloudVmClustersCallable = callableFactory.createUnaryCallable( listCloudVmClustersTransportSettings, @@ -3287,6 +3334,21 @@ public GrpcOperationsStub getOperationsStub() { return deleteCloudExadataInfrastructureOperationCallable; } + @Override + public UnaryCallable + configureExascaleCloudExadataInfrastructureCallable() { + return configureExascaleCloudExadataInfrastructureCallable; + } + + @Override + public OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable() { + return configureExascaleCloudExadataInfrastructureOperationCallable; + } + @Override public UnaryCallable listCloudVmClustersCallable() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java index 880d737009ce..91ddad187ec2 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -70,6 +70,7 @@ import com.google.cloud.oracledatabase.v1.AutonomousDatabase; import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; @@ -395,6 +396,50 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + ConfigureExascaleCloudExadataInfrastructureRequest, Operation> + configureExascaleCloudExadataInfrastructureMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.oracledatabase.v1.OracleDatabase/ConfigureExascaleCloudExadataInfrastructure") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}:configureExascale", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ConfigureExascaleCloudExadataInfrastructureRequest request, + Operation response) -> HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listCloudVmClustersMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3409,6 +3454,13 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { deleteCloudExadataInfrastructureCallable; private final OperationCallable deleteCloudExadataInfrastructureOperationCallable; + private final UnaryCallable + configureExascaleCloudExadataInfrastructureCallable; + private final OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable; private final UnaryCallable listCloudVmClustersCallable; private final UnaryCallable @@ -3826,6 +3878,20 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + configureExascaleCloudExadataInfrastructureTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(configureExascaleCloudExadataInfrastructureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listCloudVmClustersTransportSettings = HttpJsonCallSettings @@ -4877,6 +4943,17 @@ protected HttpJsonOracleDatabaseStub( settings.deleteCloudExadataInfrastructureOperationSettings(), clientContext, httpJsonOperationsStub); + this.configureExascaleCloudExadataInfrastructureCallable = + callableFactory.createUnaryCallable( + configureExascaleCloudExadataInfrastructureTransportSettings, + settings.configureExascaleCloudExadataInfrastructureSettings(), + clientContext); + this.configureExascaleCloudExadataInfrastructureOperationCallable = + callableFactory.createOperationCallable( + configureExascaleCloudExadataInfrastructureTransportSettings, + settings.configureExascaleCloudExadataInfrastructureOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listCloudVmClustersCallable = callableFactory.createUnaryCallable( listCloudVmClustersTransportSettings, @@ -5533,6 +5610,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getCloudExadataInfrastructureMethodDescriptor); methodDescriptors.add(createCloudExadataInfrastructureMethodDescriptor); methodDescriptors.add(deleteCloudExadataInfrastructureMethodDescriptor); + methodDescriptors.add(configureExascaleCloudExadataInfrastructureMethodDescriptor); methodDescriptors.add(listCloudVmClustersMethodDescriptor); methodDescriptors.add(getCloudVmClusterMethodDescriptor); methodDescriptors.add(createCloudVmClusterMethodDescriptor); @@ -5660,6 +5738,21 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return deleteCloudExadataInfrastructureOperationCallable; } + @Override + public UnaryCallable + configureExascaleCloudExadataInfrastructureCallable() { + return configureExascaleCloudExadataInfrastructureCallable; + } + + @Override + public OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable() { + return configureExascaleCloudExadataInfrastructureOperationCallable; + } + @Override public UnaryCallable listCloudVmClustersCallable() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index 0a91648b63ac..8cede34775d8 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -57,6 +57,7 @@ import com.google.cloud.oracledatabase.v1.AutonomousDatabase; import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; @@ -243,6 +244,21 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp "Not implemented: deleteCloudExadataInfrastructureCallable()"); } + public OperationCallable< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: configureExascaleCloudExadataInfrastructureOperationCallable()"); + } + + public UnaryCallable + configureExascaleCloudExadataInfrastructureCallable() { + throw new UnsupportedOperationException( + "Not implemented: configureExascaleCloudExadataInfrastructureCallable()"); + } + public UnaryCallable listCloudVmClustersPagedCallable() { throw new UnsupportedOperationException("Not implemented: listCloudVmClustersPagedCallable()"); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index 463ae4ed964f..d560000c6dd3 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -88,6 +88,7 @@ import com.google.cloud.oracledatabase.v1.AutonomousDbVersion; import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; import com.google.cloud.oracledatabase.v1.CloudVmCluster; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest; import com.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest; import com.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest; @@ -332,6 +333,13 @@ public class OracleDatabaseStubSettings extends StubSettings deleteCloudExadataInfrastructureOperationSettings; + private final UnaryCallSettings + configureExascaleCloudExadataInfrastructureSettings; + private final OperationCallSettings< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings; private final PagedCallSettings< ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> listCloudVmClustersSettings; @@ -2642,6 +2650,27 @@ public ApiFuture getFuturePagedResponse( return deleteCloudExadataInfrastructureOperationSettings; } + /** + * Returns the object with the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public UnaryCallSettings + configureExascaleCloudExadataInfrastructureSettings() { + return configureExascaleCloudExadataInfrastructureSettings; + } + + /** + * Returns the object with the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public OperationCallSettings< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings() { + return configureExascaleCloudExadataInfrastructureOperationSettings; + } + /** Returns the object with the settings used for calls to listCloudVmClusters. */ public PagedCallSettings< ListCloudVmClustersRequest, ListCloudVmClustersResponse, ListCloudVmClustersPagedResponse> @@ -3466,6 +3495,10 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException settingsBuilder.deleteCloudExadataInfrastructureSettings().build(); deleteCloudExadataInfrastructureOperationSettings = settingsBuilder.deleteCloudExadataInfrastructureOperationSettings().build(); + configureExascaleCloudExadataInfrastructureSettings = + settingsBuilder.configureExascaleCloudExadataInfrastructureSettings().build(); + configureExascaleCloudExadataInfrastructureOperationSettings = + settingsBuilder.configureExascaleCloudExadataInfrastructureOperationSettings().build(); listCloudVmClustersSettings = settingsBuilder.listCloudVmClustersSettings().build(); getCloudVmClusterSettings = settingsBuilder.getCloudVmClusterSettings().build(); createCloudVmClusterSettings = settingsBuilder.createCloudVmClusterSettings().build(); @@ -3652,6 +3685,14 @@ public static class Builder extends StubSettings.Builder deleteCloudExadataInfrastructureOperationSettings; + private final UnaryCallSettings.Builder< + ConfigureExascaleCloudExadataInfrastructureRequest, Operation> + configureExascaleCloudExadataInfrastructureSettings; + private final OperationCallSettings.Builder< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings; private final PagedCallSettings.Builder< ListCloudVmClustersRequest, ListCloudVmClustersResponse, @@ -4012,6 +4053,10 @@ protected Builder(ClientContext clientContext) { createCloudExadataInfrastructureOperationSettings = OperationCallSettings.newBuilder(); deleteCloudExadataInfrastructureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteCloudExadataInfrastructureOperationSettings = OperationCallSettings.newBuilder(); + configureExascaleCloudExadataInfrastructureSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + configureExascaleCloudExadataInfrastructureOperationSettings = + OperationCallSettings.newBuilder(); listCloudVmClustersSettings = PagedCallSettings.newBuilder(LIST_CLOUD_VM_CLUSTERS_PAGE_STR_FACT); getCloudVmClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -4145,6 +4190,7 @@ protected Builder(ClientContext clientContext) { getCloudExadataInfrastructureSettings, createCloudExadataInfrastructureSettings, deleteCloudExadataInfrastructureSettings, + configureExascaleCloudExadataInfrastructureSettings, listCloudVmClustersSettings, getCloudVmClusterSettings, createCloudVmClusterSettings, @@ -4238,6 +4284,10 @@ protected Builder(OracleDatabaseStubSettings settings) { settings.deleteCloudExadataInfrastructureSettings.toBuilder(); deleteCloudExadataInfrastructureOperationSettings = settings.deleteCloudExadataInfrastructureOperationSettings.toBuilder(); + configureExascaleCloudExadataInfrastructureSettings = + settings.configureExascaleCloudExadataInfrastructureSettings.toBuilder(); + configureExascaleCloudExadataInfrastructureOperationSettings = + settings.configureExascaleCloudExadataInfrastructureOperationSettings.toBuilder(); listCloudVmClustersSettings = settings.listCloudVmClustersSettings.toBuilder(); getCloudVmClusterSettings = settings.getCloudVmClusterSettings.toBuilder(); createCloudVmClusterSettings = settings.createCloudVmClusterSettings.toBuilder(); @@ -4394,6 +4444,7 @@ protected Builder(OracleDatabaseStubSettings settings) { getCloudExadataInfrastructureSettings, createCloudExadataInfrastructureSettings, deleteCloudExadataInfrastructureSettings, + configureExascaleCloudExadataInfrastructureSettings, listCloudVmClustersSettings, getCloudVmClusterSettings, createCloudVmClusterSettings, @@ -4516,6 +4567,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .configureExascaleCloudExadataInfrastructureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .listCloudVmClustersSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -4942,6 +4998,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(432000000L)) .build())); + builder + .configureExascaleCloudExadataInfrastructureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CloudExadataInfrastructure.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .createCloudVmClusterOperationSettings() .setInitialCallSettings( @@ -5761,6 +5843,27 @@ public Builder applyToAllUnaryMethods( return deleteCloudExadataInfrastructureOperationSettings; } + /** + * Returns the builder for the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public UnaryCallSettings.Builder + configureExascaleCloudExadataInfrastructureSettings() { + return configureExascaleCloudExadataInfrastructureSettings; + } + + /** + * Returns the builder for the settings used for calls to + * configureExascaleCloudExadataInfrastructure. + */ + public OperationCallSettings.Builder< + ConfigureExascaleCloudExadataInfrastructureRequest, + CloudExadataInfrastructure, + OperationMetadata> + configureExascaleCloudExadataInfrastructureOperationSettings() { + return configureExascaleCloudExadataInfrastructureOperationSettings; + } + /** Returns the builder for the settings used for calls to listCloudVmClusters. */ public PagedCallSettings.Builder< ListCloudVmClustersRequest, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json index c910977dd7f2..54ab55a37998 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -1088,6 +1088,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.CloudVmClusterProperties$StorageManagementType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.ComputeModel", "queryAllDeclaredConstructors": true, @@ -1097,6 +1106,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest", "queryAllDeclaredConstructors": true, @@ -2321,6 +2348,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.ExascaleConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.ExascaleDbStorageDetails", "queryAllDeclaredConstructors": true, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java index 90a35e28cda9..bc8a03bfc113 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java @@ -149,6 +149,29 @@ public void deleteCloudExadataInfrastructure( } } + @Override + public void configureExascaleCloudExadataInfrastructure( + ConfigureExascaleCloudExadataInfrastructureRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " ConfigureExascaleCloudExadataInfrastructure, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listCloudVmClusters( ListCloudVmClustersRequest request, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java index 7d4f200f4821..07b0d2098933 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java @@ -571,6 +571,134 @@ public void deleteCloudExadataInfrastructureExceptionTest2() throws Exception { } } + @Test + public void configureExascaleCloudExadataInfrastructureTest() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("configureExascaleCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + int totalStorageSizeGb = 1493200154; + + CloudExadataInfrastructure actualResponse = + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void configureExascaleCloudExadataInfrastructureExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + int totalStorageSizeGb = 1493200154; + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void configureExascaleCloudExadataInfrastructureTest2() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("configureExascaleCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + int totalStorageSizeGb = 1493200154; + + CloudExadataInfrastructure actualResponse = + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void configureExascaleCloudExadataInfrastructureExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7549/locations/location-7549/cloudExadataInfrastructures/cloudExadataInfrastructure-7549"; + int totalStorageSizeGb = 1493200154; + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listCloudVmClustersTest() throws Exception { CloudVmCluster responsesElement = CloudVmCluster.newBuilder().build(); @@ -697,6 +825,10 @@ public void getCloudVmClusterTest() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -764,6 +896,10 @@ public void getCloudVmClusterTest2() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -831,6 +967,10 @@ public void createCloudVmClusterTest() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -906,6 +1046,10 @@ public void createCloudVmClusterTest2() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5500,6 +5644,10 @@ public void getExascaleDbStorageVaultTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -5555,6 +5703,10 @@ public void getExascaleDbStorageVaultTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -5610,6 +5762,10 @@ public void createExascaleDbStorageVaultTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5679,6 +5835,10 @@ public void createExascaleDbStorageVaultTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java index 866c29d19bc9..fe29a364c9c8 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -552,6 +552,130 @@ public void deleteCloudExadataInfrastructureExceptionTest2() throws Exception { } } + @Test + public void configureExascaleCloudExadataInfrastructureTest() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("configureExascaleCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + int totalStorageSizeGb = 1493200154; + + CloudExadataInfrastructure actualResponse = + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ConfigureExascaleCloudExadataInfrastructureRequest actualRequest = + ((ConfigureExascaleCloudExadataInfrastructureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(totalStorageSizeGb, actualRequest.getTotalStorageSizeGb()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void configureExascaleCloudExadataInfrastructureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + int totalStorageSizeGb = 1493200154; + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void configureExascaleCloudExadataInfrastructureTest2() throws Exception { + CloudExadataInfrastructure expectedResponse = + CloudExadataInfrastructure.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setDisplayName("displayName1714148973") + .setGcpOracleZone("gcpOracleZone217860222") + .setEntitlementId("entitlementId-1302274264") + .setProperties(CloudExadataInfrastructureProperties.newBuilder().build()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("configureExascaleCloudExadataInfrastructureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + String name = "name3373707"; + int totalStorageSizeGb = 1493200154; + + CloudExadataInfrastructure actualResponse = + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ConfigureExascaleCloudExadataInfrastructureRequest actualRequest = + ((ConfigureExascaleCloudExadataInfrastructureRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(totalStorageSizeGb, actualRequest.getTotalStorageSizeGb()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void configureExascaleCloudExadataInfrastructureExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + String name = "name3373707"; + int totalStorageSizeGb = 1493200154; + client.configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listCloudVmClustersTest() throws Exception { CloudVmCluster responsesElement = CloudVmCluster.newBuilder().build(); @@ -666,6 +790,10 @@ public void getCloudVmClusterTest() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -727,6 +855,10 @@ public void getCloudVmClusterTest2() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -786,6 +918,10 @@ public void createCloudVmClusterTest() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -861,6 +997,10 @@ public void createCloudVmClusterTest2() throws Exception { OdbSubnetName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_SUBNET]") .toString()) .setIdentityConnector(IdentityConnector.newBuilder().build()) + .setExascaleDbStorageVault( + ExascaleDbStorageVaultName.of( + "[PROJECT]", "[LOCATION]", "[EXASCALE_DB_STORAGE_VAULT]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5073,6 +5213,10 @@ public void getExascaleDbStorageVaultTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -5123,6 +5267,10 @@ public void getExascaleDbStorageVaultTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); mockOracleDatabase.addResponse(expectedResponse); @@ -5171,6 +5319,10 @@ public void createExascaleDbStorageVaultTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5240,6 +5392,10 @@ public void createExascaleDbStorageVaultTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setEntitlementId("entitlementId-1302274264") .putAllLabels(new HashMap()) + .setExadataInfrastructure( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java index 6de5205f72cc..04a38f667e4f 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java @@ -247,6 +247,63 @@ private OracleDatabaseGrpc() {} return getDeleteCloudExadataInfrastructureMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest, + com.google.longrunning.Operation> + getConfigureExascaleCloudExadataInfrastructureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConfigureExascaleCloudExadataInfrastructure", + requestType = + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest, + com.google.longrunning.Operation> + getConfigureExascaleCloudExadataInfrastructureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest, + com.google.longrunning.Operation> + getConfigureExascaleCloudExadataInfrastructureMethod; + if ((getConfigureExascaleCloudExadataInfrastructureMethod = + OracleDatabaseGrpc.getConfigureExascaleCloudExadataInfrastructureMethod) + == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getConfigureExascaleCloudExadataInfrastructureMethod = + OracleDatabaseGrpc.getConfigureExascaleCloudExadataInfrastructureMethod) + == null) { + OracleDatabaseGrpc.getConfigureExascaleCloudExadataInfrastructureMethod = + getConfigureExascaleCloudExadataInfrastructureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ConfigureExascaleCloudExadataInfrastructure")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier( + "ConfigureExascaleCloudExadataInfrastructure")) + .build(); + } + } + } + return getConfigureExascaleCloudExadataInfrastructureMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest, com.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse> @@ -4033,6 +4090,21 @@ default void deleteCloudExadataInfrastructure( getDeleteCloudExadataInfrastructureMethod(), responseObserver); } + /** + * + * + *
+     * Configures Exascale for a single Exadata Infrastructure.
+     * 
+ */ + default void configureExascaleCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getConfigureExascaleCloudExadataInfrastructureMethod(), responseObserver); + } + /** * * @@ -5226,6 +5298,24 @@ public void deleteCloudExadataInfrastructure( responseObserver); } + /** + * + * + *
+     * Configures Exascale for a single Exadata Infrastructure.
+     * 
+ */ + public void configureExascaleCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getConfigureExascaleCloudExadataInfrastructureMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -6541,6 +6631,24 @@ public com.google.longrunning.Operation deleteCloudExadataInfrastructure( getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Configures Exascale for a single Exadata Infrastructure.
+     * 
+ */ + public com.google.longrunning.Operation configureExascaleCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getConfigureExascaleCloudExadataInfrastructureMethod(), + getCallOptions(), + request); + } + /** * * @@ -7665,6 +7773,23 @@ public com.google.longrunning.Operation deleteCloudExadataInfrastructure( getChannel(), getDeleteCloudExadataInfrastructureMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Configures Exascale for a single Exadata Infrastructure.
+     * 
+ */ + public com.google.longrunning.Operation configureExascaleCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getConfigureExascaleCloudExadataInfrastructureMethod(), + getCallOptions(), + request); + } + /** * * @@ -8725,6 +8850,23 @@ protected OracleDatabaseFutureStub build( request); } + /** + * + * + *
+     * Configures Exascale for a single Exadata Infrastructure.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + configureExascaleCloudExadataInfrastructure( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getConfigureExascaleCloudExadataInfrastructureMethod(), getCallOptions()), + request); + } + /** * * @@ -9797,79 +9939,80 @@ protected OracleDatabaseFutureStub build( private static final int METHODID_GET_CLOUD_EXADATA_INFRASTRUCTURE = 1; private static final int METHODID_CREATE_CLOUD_EXADATA_INFRASTRUCTURE = 2; private static final int METHODID_DELETE_CLOUD_EXADATA_INFRASTRUCTURE = 3; - private static final int METHODID_LIST_CLOUD_VM_CLUSTERS = 4; - private static final int METHODID_GET_CLOUD_VM_CLUSTER = 5; - private static final int METHODID_CREATE_CLOUD_VM_CLUSTER = 6; - private static final int METHODID_DELETE_CLOUD_VM_CLUSTER = 7; - private static final int METHODID_LIST_ENTITLEMENTS = 8; - private static final int METHODID_LIST_DB_SERVERS = 9; - private static final int METHODID_LIST_DB_NODES = 10; - private static final int METHODID_LIST_GI_VERSIONS = 11; - private static final int METHODID_LIST_MINOR_VERSIONS = 12; - private static final int METHODID_LIST_DB_SYSTEM_SHAPES = 13; - private static final int METHODID_LIST_AUTONOMOUS_DATABASES = 14; - private static final int METHODID_GET_AUTONOMOUS_DATABASE = 15; - private static final int METHODID_CREATE_AUTONOMOUS_DATABASE = 16; - private static final int METHODID_UPDATE_AUTONOMOUS_DATABASE = 17; - private static final int METHODID_DELETE_AUTONOMOUS_DATABASE = 18; - private static final int METHODID_RESTORE_AUTONOMOUS_DATABASE = 19; - private static final int METHODID_GENERATE_AUTONOMOUS_DATABASE_WALLET = 20; - private static final int METHODID_LIST_AUTONOMOUS_DB_VERSIONS = 21; - private static final int METHODID_LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS = 22; - private static final int METHODID_LIST_AUTONOMOUS_DATABASE_BACKUPS = 23; - private static final int METHODID_STOP_AUTONOMOUS_DATABASE = 24; - private static final int METHODID_START_AUTONOMOUS_DATABASE = 25; - private static final int METHODID_RESTART_AUTONOMOUS_DATABASE = 26; - private static final int METHODID_SWITCHOVER_AUTONOMOUS_DATABASE = 27; - private static final int METHODID_FAILOVER_AUTONOMOUS_DATABASE = 28; - private static final int METHODID_LIST_ODB_NETWORKS = 29; - private static final int METHODID_GET_ODB_NETWORK = 30; - private static final int METHODID_CREATE_ODB_NETWORK = 31; - private static final int METHODID_DELETE_ODB_NETWORK = 32; - private static final int METHODID_LIST_ODB_SUBNETS = 33; - private static final int METHODID_GET_ODB_SUBNET = 34; - private static final int METHODID_CREATE_ODB_SUBNET = 35; - private static final int METHODID_DELETE_ODB_SUBNET = 36; - private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 37; - private static final int METHODID_GET_EXADB_VM_CLUSTER = 38; - private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 39; - private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 40; - private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 41; - private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 42; - private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 43; - private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 44; - private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 45; - private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 46; - private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 47; - private static final int METHODID_LIST_DATABASES = 48; - private static final int METHODID_GET_DATABASE = 49; - private static final int METHODID_LIST_PLUGGABLE_DATABASES = 50; - private static final int METHODID_GET_PLUGGABLE_DATABASE = 51; - private static final int METHODID_LIST_DB_SYSTEMS = 52; - private static final int METHODID_GET_DB_SYSTEM = 53; - private static final int METHODID_CREATE_DB_SYSTEM = 54; - private static final int METHODID_DELETE_DB_SYSTEM = 55; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 56; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 57; - private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 58; - private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 59; - private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 60; - private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 61; - private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 62; - private static final int METHODID_GET_GOLDENGATE_CONNECTION = 63; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 64; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 65; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 66; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 67; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 68; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 69; - private static final int METHODID_LIST_DB_VERSIONS = 70; - private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 71; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 72; - private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 73; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 74; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 75; - private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 76; + private static final int METHODID_CONFIGURE_EXASCALE_CLOUD_EXADATA_INFRASTRUCTURE = 4; + private static final int METHODID_LIST_CLOUD_VM_CLUSTERS = 5; + private static final int METHODID_GET_CLOUD_VM_CLUSTER = 6; + private static final int METHODID_CREATE_CLOUD_VM_CLUSTER = 7; + private static final int METHODID_DELETE_CLOUD_VM_CLUSTER = 8; + private static final int METHODID_LIST_ENTITLEMENTS = 9; + private static final int METHODID_LIST_DB_SERVERS = 10; + private static final int METHODID_LIST_DB_NODES = 11; + private static final int METHODID_LIST_GI_VERSIONS = 12; + private static final int METHODID_LIST_MINOR_VERSIONS = 13; + private static final int METHODID_LIST_DB_SYSTEM_SHAPES = 14; + private static final int METHODID_LIST_AUTONOMOUS_DATABASES = 15; + private static final int METHODID_GET_AUTONOMOUS_DATABASE = 16; + private static final int METHODID_CREATE_AUTONOMOUS_DATABASE = 17; + private static final int METHODID_UPDATE_AUTONOMOUS_DATABASE = 18; + private static final int METHODID_DELETE_AUTONOMOUS_DATABASE = 19; + private static final int METHODID_RESTORE_AUTONOMOUS_DATABASE = 20; + private static final int METHODID_GENERATE_AUTONOMOUS_DATABASE_WALLET = 21; + private static final int METHODID_LIST_AUTONOMOUS_DB_VERSIONS = 22; + private static final int METHODID_LIST_AUTONOMOUS_DATABASE_CHARACTER_SETS = 23; + private static final int METHODID_LIST_AUTONOMOUS_DATABASE_BACKUPS = 24; + private static final int METHODID_STOP_AUTONOMOUS_DATABASE = 25; + private static final int METHODID_START_AUTONOMOUS_DATABASE = 26; + private static final int METHODID_RESTART_AUTONOMOUS_DATABASE = 27; + private static final int METHODID_SWITCHOVER_AUTONOMOUS_DATABASE = 28; + private static final int METHODID_FAILOVER_AUTONOMOUS_DATABASE = 29; + private static final int METHODID_LIST_ODB_NETWORKS = 30; + private static final int METHODID_GET_ODB_NETWORK = 31; + private static final int METHODID_CREATE_ODB_NETWORK = 32; + private static final int METHODID_DELETE_ODB_NETWORK = 33; + private static final int METHODID_LIST_ODB_SUBNETS = 34; + private static final int METHODID_GET_ODB_SUBNET = 35; + private static final int METHODID_CREATE_ODB_SUBNET = 36; + private static final int METHODID_DELETE_ODB_SUBNET = 37; + private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 38; + private static final int METHODID_GET_EXADB_VM_CLUSTER = 39; + private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 40; + private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 41; + private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 42; + private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 43; + private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 44; + private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 45; + private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 46; + private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 47; + private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 48; + private static final int METHODID_LIST_DATABASES = 49; + private static final int METHODID_GET_DATABASE = 50; + private static final int METHODID_LIST_PLUGGABLE_DATABASES = 51; + private static final int METHODID_GET_PLUGGABLE_DATABASE = 52; + private static final int METHODID_LIST_DB_SYSTEMS = 53; + private static final int METHODID_GET_DB_SYSTEM = 54; + private static final int METHODID_CREATE_DB_SYSTEM = 55; + private static final int METHODID_DELETE_DB_SYSTEM = 56; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 57; + private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 58; + private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 59; + private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 60; + private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 61; + private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 62; + private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 63; + private static final int METHODID_GET_GOLDENGATE_CONNECTION = 64; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 65; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 66; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 67; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 68; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 69; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 70; + private static final int METHODID_LIST_DB_VERSIONS = 71; + private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 72; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 73; + private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 74; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 75; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 76; + private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 77; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9912,6 +10055,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CONFIGURE_EXASCALE_CLOUD_EXADATA_INFRASTRUCTURE: + serviceImpl.configureExascaleCloudExadataInfrastructure( + (com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_CLOUD_VM_CLUSTERS: serviceImpl.listCloudVmClusters( (com.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest) request, @@ -10407,6 +10557,14 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_CLOUD_EXADATA_INFRASTRUCTURE))) + .addMethod( + getConfigureExascaleCloudExadataInfrastructureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest, + com.google.longrunning.Operation>( + service, METHODID_CONFIGURE_EXASCALE_CLOUD_EXADATA_INFRASTRUCTURE))) .addMethod( getListCloudVmClustersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -10959,6 +11117,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetCloudExadataInfrastructureMethod()) .addMethod(getCreateCloudExadataInfrastructureMethod()) .addMethod(getDeleteCloudExadataInfrastructureMethod()) + .addMethod(getConfigureExascaleCloudExadataInfrastructureMethod()) .addMethod(getListCloudVmClustersMethod()) .addMethod(getGetCloudVmClusterMethod()) .addMethod(getCreateCloudVmClusterMethod()) diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java index 4bccd472559e..103b4a7e7ebb 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProperties.java @@ -1539,6 +1539,65 @@ public com.google.protobuf.ByteString getStorageServerTypeBytes() { } } + public static final int EXASCALE_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.oracledatabase.v1.ExascaleConfig exascaleConfig_; + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the exascaleConfig field is set. + */ + @java.lang.Override + public boolean hasExascaleConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The exascaleConfig. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfig getExascaleConfig() { + return exascaleConfig_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance() + : exascaleConfig_; + } + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder getExascaleConfigOrBuilder() { + return exascaleConfig_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance() + : exascaleConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1647,6 +1706,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(31, computeModel_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(32, getExascaleConfig()); + } getUnknownFields().writeTo(output); } @@ -1755,6 +1817,9 @@ public int getSerializedSize() { != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(31, computeModel_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getExascaleConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1815,6 +1880,10 @@ public boolean equals(final java.lang.Object obj) { if (computeModel_ != other.computeModel_) return false; if (!getDatabaseServerType().equals(other.getDatabaseServerType())) return false; if (!getStorageServerType().equals(other.getStorageServerType())) return false; + if (hasExascaleConfig() != other.hasExascaleConfig()) return false; + if (hasExascaleConfig()) { + if (!getExascaleConfig().equals(other.getExascaleConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1900,6 +1969,10 @@ public int hashCode() { hash = (53 * hash) + getDatabaseServerType().hashCode(); hash = (37 * hash) + STORAGE_SERVER_TYPE_FIELD_NUMBER; hash = (53 * hash) + getStorageServerType().hashCode(); + if (hasExascaleConfig()) { + hash = (37 * hash) + EXASCALE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExascaleConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2049,6 +2122,7 @@ private void maybeForceBuilderInitialization() { internalGetNextMaintenanceRunTimeFieldBuilder(); internalGetNextSecurityMaintenanceRunTimeFieldBuilder(); internalGetCustomerContactsFieldBuilder(); + internalGetExascaleConfigFieldBuilder(); } } @@ -2104,6 +2178,11 @@ public Builder clear() { computeModel_ = 0; databaseServerType_ = ""; storageServerType_ = ""; + exascaleConfig_ = null; + if (exascaleConfigBuilder_ != null) { + exascaleConfigBuilder_.dispose(); + exascaleConfigBuilder_ = null; + } return this; } @@ -2258,6 +2337,11 @@ private void buildPartial0( if (((from_bitField0_ & 0x20000000) != 0)) { result.storageServerType_ = storageServerType_; } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.exascaleConfig_ = + exascaleConfigBuilder_ == null ? exascaleConfig_ : exascaleConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2412,6 +2496,9 @@ public Builder mergeFrom( bitField0_ |= 0x20000000; onChanged(); } + if (other.hasExascaleConfig()) { + mergeExascaleConfig(other.getExascaleConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2631,6 +2718,13 @@ public Builder mergeFrom( bitField0_ |= 0x08000000; break; } // case 248 + case 258: + { + input.readMessage( + internalGetExascaleConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5894,6 +5988,220 @@ public Builder setStorageServerTypeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.oracledatabase.v1.ExascaleConfig exascaleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.ExascaleConfig, + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder, + com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder> + exascaleConfigBuilder_; + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the exascaleConfig field is set. + */ + public boolean hasExascaleConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The exascaleConfig. + */ + public com.google.cloud.oracledatabase.v1.ExascaleConfig getExascaleConfig() { + if (exascaleConfigBuilder_ == null) { + return exascaleConfig_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance() + : exascaleConfig_; + } else { + return exascaleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExascaleConfig(com.google.cloud.oracledatabase.v1.ExascaleConfig value) { + if (exascaleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exascaleConfig_ = value; + } else { + exascaleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExascaleConfig( + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder builderForValue) { + if (exascaleConfigBuilder_ == null) { + exascaleConfig_ = builderForValue.build(); + } else { + exascaleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExascaleConfig(com.google.cloud.oracledatabase.v1.ExascaleConfig value) { + if (exascaleConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && exascaleConfig_ != null + && exascaleConfig_ + != com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance()) { + getExascaleConfigBuilder().mergeFrom(value); + } else { + exascaleConfig_ = value; + } + } else { + exascaleConfigBuilder_.mergeFrom(value); + } + if (exascaleConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExascaleConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + exascaleConfig_ = null; + if (exascaleConfigBuilder_ != null) { + exascaleConfigBuilder_.dispose(); + exascaleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder getExascaleConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return internalGetExascaleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder getExascaleConfigOrBuilder() { + if (exascaleConfigBuilder_ != null) { + return exascaleConfigBuilder_.getMessageOrBuilder(); + } else { + return exascaleConfig_ == null + ? com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance() + : exascaleConfig_; + } + } + + /** + * + * + *
+     * Output only. The Exascale configuration for the Exadata Infrastructure.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.ExascaleConfig, + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder, + com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder> + internalGetExascaleConfigFieldBuilder() { + if (exascaleConfigBuilder_ == null) { + exascaleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.ExascaleConfig, + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder, + com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder>( + getExascaleConfig(), getParentForChildren(), isClean()); + exascaleConfig_ = null; + } + return exascaleConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties) } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java index fd1217dc7fa5..c73c07e4f46d 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructurePropertiesOrBuilder.java @@ -745,4 +745,47 @@ com.google.cloud.oracledatabase.v1.CustomerContactOrBuilder getCustomerContactsO * @return The bytes for storageServerType. */ com.google.protobuf.ByteString getStorageServerTypeBytes(); + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the exascaleConfig field is set. + */ + boolean hasExascaleConfig(); + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The exascaleConfig. + */ + com.google.cloud.oracledatabase.v1.ExascaleConfig getExascaleConfig(); + + /** + * + * + *
+   * Output only. The Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.ExascaleConfig exascale_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder getExascaleConfigOrBuilder(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java index 71d75105cc75..76b279cd3293 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureProto.java @@ -52,10 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_CloudExadataInfrastructureProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001:\333\001\352A\327\001\n" + "8oracledatabase.googleapis.com/CloudExadataInfrastructure\022bpro" + "jects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_" - + "infrastructure}*\033cloudExadataInfrastructures2\032cloudExadataInfrastructure\"\265\013\n" + + "infrastructure}*\033cloudExadataInfrastructures2\032cloudExadataInfrastructure\"\203\014\n" + "$CloudExadataInfrastructureProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022\032\n\r" + "compute_count\030\002 \001(\005B\003\340A\001\022\032\n\r" @@ -126,26 +134,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "compute_model\030\037" + " \001(\0162,.google.cloud.oracledatabase.v1.ComputeModelB\003\340A\003\022!\n" + "\024database_server_type\030\035 \001(\tB\003\340A\003\022 \n" - + "\023storage_server_type\030\036 \001(\tB\003\340A\003\"\227\001\n" + + "\023storage_server_type\030\036 \001(\tB\003\340A\003\022L\n" + + "\017exascale_config\030 " + + " \001(\0132..google.cloud.oracledatabase.v1.ExascaleConfigB\003\340A\003\"\227\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014PROVISIONING\020\001\022\r\n" + "\tAVAILABLE\020\002\022\014\n" + "\010UPDATING\020\003\022\017\n" - + "\013TERMINATING\020\004\022\016\n\n" + + "\013TERMINATING\020\004\022\016\n" + + "\n" + "TERMINATED\020\005\022\n\n" + "\006FAILED\020\006\022\033\n" - + "\027MAINTENANCE_IN_PROGRESS\020\007\"\245\005\n" + + "\027MAINTENANCE_IN_PROGRESS\020\007\"\\\n" + + "\016ExascaleConfig\022\"\n" + + "\025total_storage_size_gb\030\001 \001(\005B\003\340A\003\022&\n" + + "\031available_storage_size_gb\030\002 \001(\005B\003\340A\003\"\245\005\n" + "\021MaintenanceWindow\022f\n\n" - + "preference\030\001 \001(\0162M.google.cloud.oracle" - + "database.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\003\340A\001\022\'\n" + + "preference\030\001 \001(\0162M.google." + + "cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\003\340A\001\022\'\n" + "\006months\030\002 \003(\0162\022.google.type.MonthB\003\340A\001\022\033\n" + "\016weeks_of_month\030\003 \003(\005B\003\340A\001\0221\n" + "\014days_of_week\030\004 \003(\0162\026.google.type.DayOfWeekB\003\340A\001\022\031\n" + "\014hours_of_day\030\005 \003(\005B\003\340A\001\022\033\n" + "\016lead_time_week\030\006 \001(\005B\003\340A\001\022Z\n\r" - + "patching_mode\030\007 \001(\0162>.google.cloud.or" - + "acledatabase.v1.MaintenanceWindow.PatchingModeB\003\340A\001\022\'\n" + + "patching_mode\030\007 \001(\0162>.goo" + + "gle.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\003\340A\001\022\'\n" + "\032custom_action_timeout_mins\030\010 \001(\005B\003\340A\001\022-\n" + " is_custom_action_timeout_enabled\030\t \001(\010B\003\340A\001\"v\n" + "\033MaintenanceWindowPreference\022-\n" @@ -155,12 +169,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014PatchingMode\022\035\n" + "\031PATCHING_MODE_UNSPECIFIED\020\000\022\013\n" + "\007ROLLING\020\001\022\017\n" - + "\013NON_ROLLING\020\002B\371\001\n" - + "\"com.google.cloud.oracledatabase.v1B\037CloudExadataInfrastruct" - + "ureProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledata" - + "basepb\252\002\036Google.Cloud.OracleDatabase.V1\312" - + "\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!Googl" - + "e::Cloud::OracleDatabase::V1b\006proto3" + + "\013NON_ROLLING\020\002\"\311\001\n" + + "2ConfigureExascaleCloudExadataInfrastructureRequest\022N\n" + + "\004name\030\001 \001(\tB@\340A\002\372A:\n" + + "8oracledatabase.googleapis.com/CloudExadataInfrastructure\022\"\n" + + "\025total_storage_size_gb\030\002 \001(\005B\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\371\001\n" + + "\"com.google.cloud.oracledatabase.v1B\037CloudEx" + + "adataInfrastructureProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatab" + + "asepb;oracledatabasepb\252\002\036Google.Cloud.Or" + + "acleDatabase.V1\312\002\036Google\\Cloud\\OracleDat" + + "abase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -233,9 +252,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ComputeModel", "DatabaseServerType", "StorageServerType", + "ExascaleConfig", }); - internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor = + internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor, + new java.lang.String[] { + "TotalStorageSizeGb", "AvailableStorageSizeGb", + }); + internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_MaintenanceWindow_descriptor, @@ -250,6 +278,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomActionTimeoutMins", "IsCustomActionTimeoutEnabled", }); + internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor, + new java.lang.String[] { + "Name", "TotalStorageSizeGb", "RequestId", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); @@ -261,7 +297,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java index 01ba5dce4ce0..4bb287c140c1 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmCluster.java @@ -63,6 +63,7 @@ private CloudVmCluster() { odbNetwork_ = ""; odbSubnet_ = ""; backupOdbSubnet_ = ""; + exascaleDbStorageVault_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -953,6 +954,67 @@ public com.google.cloud.oracledatabase.v1.IdentityConnector getIdentityConnector : identityConnector_; } + public static final int EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object exascaleDbStorageVault_ = ""; + + /** + * + * + *
+   * Optional. The name of ExascaleDbStorageVault associated with the VM
+   * Cluster. Format:
+   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+   * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + @java.lang.Override + public java.lang.String getExascaleDbStorageVault() { + java.lang.Object ref = exascaleDbStorageVault_; + 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(); + exascaleDbStorageVault_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The name of ExascaleDbStorageVault associated with the VM
+   * Cluster. Format:
+   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+   * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExascaleDbStorageVaultBytes() { + java.lang.Object ref = exascaleDbStorageVault_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1008,6 +1070,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(16, getIdentityConnector()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exascaleDbStorageVault_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, exascaleDbStorageVault_); + } getUnknownFields().writeTo(output); } @@ -1066,6 +1131,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getIdentityConnector()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exascaleDbStorageVault_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, exascaleDbStorageVault_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1105,6 +1173,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIdentityConnector()) { if (!getIdentityConnector().equals(other.getIdentityConnector())) return false; } + if (!getExascaleDbStorageVault().equals(other.getExascaleDbStorageVault())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1152,6 +1221,8 @@ public int hashCode() { hash = (37 * hash) + IDENTITY_CONNECTOR_FIELD_NUMBER; hash = (53 * hash) + getIdentityConnector().hashCode(); } + hash = (37 * hash) + EXASCALE_DB_STORAGE_VAULT_FIELD_NUMBER; + hash = (53 * hash) + getExascaleDbStorageVault().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1352,6 +1423,7 @@ public Builder clear() { identityConnectorBuilder_.dispose(); identityConnectorBuilder_ = null; } + exascaleDbStorageVault_ = ""; return this; } @@ -1438,6 +1510,9 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.CloudVmCluster res : identityConnectorBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.exascaleDbStorageVault_ = exascaleDbStorageVault_; + } result.bitField0_ |= to_bitField0_; } @@ -1515,6 +1590,11 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmCluster other if (other.hasIdentityConnector()) { mergeIdentityConnector(other.getIdentityConnector()); } + if (!other.getExascaleDbStorageVault().isEmpty()) { + exascaleDbStorageVault_ = other.exascaleDbStorageVault_; + bitField0_ |= 0x00004000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1634,6 +1714,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 130 + case 138: + { + exascaleDbStorageVault_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3713,6 +3799,137 @@ public Builder clearIdentityConnector() { return identityConnectorBuilder_; } + private java.lang.Object exascaleDbStorageVault_ = ""; + + /** + * + * + *
+     * Optional. The name of ExascaleDbStorageVault associated with the VM
+     * Cluster. Format:
+     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+     * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + public java.lang.String getExascaleDbStorageVault() { + java.lang.Object ref = exascaleDbStorageVault_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exascaleDbStorageVault_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of ExascaleDbStorageVault associated with the VM
+     * Cluster. Format:
+     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+     * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + public com.google.protobuf.ByteString getExascaleDbStorageVaultBytes() { + java.lang.Object ref = exascaleDbStorageVault_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exascaleDbStorageVault_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of ExascaleDbStorageVault associated with the VM
+     * Cluster. Format:
+     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+     * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The exascaleDbStorageVault to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVault(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exascaleDbStorageVault_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of ExascaleDbStorageVault associated with the VM
+     * Cluster. Format:
+     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+     * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExascaleDbStorageVault() { + exascaleDbStorageVault_ = getDefaultInstance().getExascaleDbStorageVault(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of ExascaleDbStorageVault associated with the VM
+     * Cluster. Format:
+     * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+     * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for exascaleDbStorageVault to set. + * @return This builder for chaining. + */ + public Builder setExascaleDbStorageVaultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exascaleDbStorageVault_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CloudVmCluster) } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java index f3c759ddd211..a285bfa618a1 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterOrBuilder.java @@ -525,4 +525,38 @@ java.lang.String getLabelsOrDefault( * */ com.google.cloud.oracledatabase.v1.IdentityConnectorOrBuilder getIdentityConnectorOrBuilder(); + + /** + * + * + *
+   * Optional. The name of ExascaleDbStorageVault associated with the VM
+   * Cluster. Format:
+   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+   * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exascaleDbStorageVault. + */ + java.lang.String getExascaleDbStorageVault(); + + /** + * + * + *
+   * Optional. The name of ExascaleDbStorageVault associated with the VM
+   * Cluster. Format:
+   * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
+   * 
+ * + * + * string exascale_db_storage_vault = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exascaleDbStorageVault. + */ + com.google.protobuf.ByteString getExascaleDbStorageVaultBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java index c037d1f6f093..33910ff71570 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProperties.java @@ -72,6 +72,7 @@ private CloudVmClusterProperties() { dnsListenerIp_ = ""; clusterName_ = ""; computeModel_ = 0; + storageManagementType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -717,6 +718,181 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties.State) } + /** + * + * + *
+   * The type of storage management for the Cloud VM Cluster.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType} + */ + public enum StorageManagementType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified storage management type.
+     * 
+ * + * STORAGE_MANAGEMENT_TYPE_UNSPECIFIED = 0; + */ + STORAGE_MANAGEMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Automatic Storage Management.
+     * 
+ * + * ASM = 1; + */ + ASM(1), + /** + * + * + *
+     * Exascale storage management.
+     * 
+ * + * EXASCALE = 2; + */ + EXASCALE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StorageManagementType"); + } + + /** + * + * + *
+     * Unspecified storage management type.
+     * 
+ * + * STORAGE_MANAGEMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int STORAGE_MANAGEMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Automatic Storage Management.
+     * 
+ * + * ASM = 1; + */ + public static final int ASM_VALUE = 1; + + /** + * + * + *
+     * Exascale storage management.
+     * 
+ * + * EXASCALE = 2; + */ + public static final int EXASCALE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StorageManagementType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static StorageManagementType forNumber(int value) { + switch (value) { + case 0: + return STORAGE_MANAGEMENT_TYPE_UNSPECIFIED; + case 1: + return ASM; + case 2: + return EXASCALE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageManagementType findValueByNumber(int number) { + return StorageManagementType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final StorageManagementType[] VALUES = values(); + + public static StorageManagementType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StorageManagementType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType) + } + private int bitField0_; public static final int OCID_FIELD_NUMBER = 1; @@ -2112,6 +2288,52 @@ public com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel() { return result == null ? com.google.cloud.oracledatabase.v1.ComputeModel.UNRECOGNIZED : result; } + public static final int STORAGE_MANAGEMENT_TYPE_FIELD_NUMBER = 38; + private int storageManagementType_ = 0; + + /** + * + * + *
+   * Output only. The storage management type of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagementType. + */ + @java.lang.Override + public int getStorageManagementTypeValue() { + return storageManagementType_; + } + + /** + * + * + *
+   * Output only. The storage management type of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagementType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + getStorageManagementType() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType.forNumber( + storageManagementType_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2234,6 +2456,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(37, computeModel_); } + if (storageManagementType_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + .STORAGE_MANAGEMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(38, storageManagementType_); + } getUnknownFields().writeTo(output); } @@ -2368,6 +2596,12 @@ public int getSerializedSize() { != com.google.cloud.oracledatabase.v1.ComputeModel.COMPUTE_MODEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(37, computeModel_); } + if (storageManagementType_ + != com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + .STORAGE_MANAGEMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, storageManagementType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2427,6 +2661,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDnsListenerIp().equals(other.getDnsListenerIp())) return false; if (!getClusterName().equals(other.getClusterName())) return false; if (computeModel_ != other.computeModel_) return false; + if (storageManagementType_ != other.storageManagementType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2517,6 +2752,8 @@ public int hashCode() { hash = (53 * hash) + getClusterName().hashCode(); hash = (37 * hash) + COMPUTE_MODEL_FIELD_NUMBER; hash = (53 * hash) + computeModel_; + hash = (37 * hash) + STORAGE_MANAGEMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + storageManagementType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2710,6 +2947,7 @@ public Builder clear() { dnsListenerIp_ = ""; clusterName_ = ""; computeModel_ = 0; + storageManagementType_ = 0; return this; } @@ -2862,6 +3100,9 @@ private void buildPartial1(com.google.cloud.oracledatabase.v1.CloudVmClusterProp if (((from_bitField1_ & 0x00000001) != 0)) { result.computeModel_ = computeModel_; } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.storageManagementType_ = storageManagementType_; + } } @java.lang.Override @@ -3023,6 +3264,9 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.CloudVmClusterProper if (other.computeModel_ != 0) { setComputeModelValue(other.getComputeModelValue()); } + if (other.storageManagementType_ != 0) { + setStorageManagementTypeValue(other.getStorageManagementTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3253,6 +3497,12 @@ public Builder mergeFrom( bitField1_ |= 0x00000001; break; } // case 296 + case 304: + { + storageManagementType_ = input.readEnum(); + bitField1_ |= 0x00000002; + break; + } // case 304 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6744,6 +6994,117 @@ public Builder clearComputeModel() { return this; } + private int storageManagementType_ = 0; + + /** + * + * + *
+     * Output only. The storage management type of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagementType. + */ + @java.lang.Override + public int getStorageManagementTypeValue() { + return storageManagementType_; + } + + /** + * + * + *
+     * Output only. The storage management type of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for storageManagementType to set. + * @return This builder for chaining. + */ + public Builder setStorageManagementTypeValue(int value) { + storageManagementType_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The storage management type of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagementType. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + getStorageManagementType() { + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType result = + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + .forNumber(storageManagementType_); + return result == null + ? com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The storage management type of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The storageManagementType to set. + * @return This builder for chaining. + */ + public Builder setStorageManagementType( + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000002; + storageManagementType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The storage management type of the VM Cluster.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStorageManagementType() { + bitField1_ = (bitField1_ & ~0x00000002); + storageManagementType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.CloudVmClusterProperties) } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java index 9d31dafefd49..18049f96379e 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterPropertiesOrBuilder.java @@ -877,4 +877,35 @@ public interface CloudVmClusterPropertiesOrBuilder * @return The computeModel. */ com.google.cloud.oracledatabase.v1.ComputeModel getComputeModel(); + + /** + * + * + *
+   * Output only. The storage management type of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for storageManagementType. + */ + int getStorageManagementTypeValue(); + + /** + * + * + *
+   * Output only. The storage management type of the VM Cluster.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType storage_management_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The storageManagementType. + */ + com.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StorageManagementType + getStorageManagementType(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java index 10f664004279..3f779f76e599 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1\032\037google/api/field_behavior.proto\032\031goog" + "le/api/resource.proto\032+google/cloud/orac" + "ledatabase/v1/common.proto\032\037google/proto" - + "buf/timestamp.proto\032\032google/type/datetime.proto\"\202\010\n" + + "buf/timestamp.proto\032\032google/type/datetime.proto\"\343\010\n" + "\016CloudVmCluster\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022`\n" + "\026exadata_infrastructure\030\002 \001(\tB@\340A\002\372A:\n" @@ -96,16 +96,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021backup_odb_subnet\030\017 \001(\tB/\340A\001\372A)\n" + "\'oracledatabase.googleapis.com/OdbSubnet\022R\n" + "\022identity_connector\030\020" - + " \001(\01321.google.cloud.oracledatabase.v1.IdentityConnectorB\003\340A\003\032-\n" + + " \001(\01321.google.cloud.oracledatabase.v1.IdentityConnectorB\003\340A\003\022_\n" + + "\031exascale_db_storage_vault\030\021 \001(\tB<\340A\001\372A6\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ",oracledatabase.googleapis.com/CloudVmCluster\022Jprojects/{project}/locations/{l" - + "ocation}/cloudVmClusters/{cloud_vm_cluster}*\017cloudVmClusters2\016cloudVmCluster\"\346\014\n" + + ",oracledatabase.googleapis.com/CloudVmCluster\022Jprojects/{proj" + + "ect}/locations/{location}/cloudVmCluster" + + "s/{cloud_vm_cluster}*\017cloudVmClusters2\016cloudVmCluster\"\265\016\n" + "\030CloudVmClusterProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022_\n" - + "\014license_type\030\002 \001(\0162D.google.clou" - + "d.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\003\340A\002\022\027\n\n" + + "\014license_type\030\002 \001(\0162D.google.cloud.oracledatabase.v1.Clo" + + "udVmClusterProperties.LicenseTypeB\003\340A\002\022\027\n\n" + "gi_version\030\003 \001(\tB\003\340A\001\022-\n" + "\ttime_zone\030\004 \001(\0132\025.google.type.TimeZoneB\003\340A\001\022\034\n" + "\017ssh_public_keys\030\005 \003(\tB\003\340A\001\022\027\n\n" @@ -118,15 +121,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017storage_size_gb\030\013 \001(\005B\003\340A\003\022!\n" + "\024data_storage_size_tb\030\014 \001(\001B\003\340A\001\022e\n" + "\017disk_redundancy\030\r" - + " \001(\0162G.google." - + "cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\003\340A\001\022%\n" + + " \001(\0162G.google.cloud.oracledatabase.v1" + + ".CloudVmClusterProperties.DiskRedundancyB\003\340A\001\022%\n" + "\030sparse_diskgroup_enabled\030\016 \001(\010B\003\340A\001\022!\n" + "\024local_backup_enabled\030\017 \001(\010B\003\340A\001\022\034\n" + "\017hostname_prefix\030\020 \001(\tB\003\340A\001\022g\n" - + "#diagnostics_data_collection_options\030\023" - + " \001(\01325.google.cloud.oracledatabase.v1.DataCollectionOptionsB\003\340A\001\022R\n" - + "\005state\030\024 \001(\0162>.google.cloud.oracledataba" - + "se.v1.CloudVmClusterProperties.StateB\003\340A\003\022#\n" + + "#diagnostics_data_collection_options\030\023 \001(\01325.goo" + + "gle.cloud.oracledatabase.v1.DataCollectionOptionsB\003\340A\001\022R\n" + + "\005state\030\024 \001(\0162>.google.c" + + "loud.oracledatabase.v1.CloudVmClusterProperties.StateB\003\340A\003\022#\n" + "\026scan_listener_port_tcp\030\025 \001(\005B\003\340A\001\022\'\n" + "\032scan_listener_port_tcp_ssl\030\026 \001(\005B\003\340A\001\022\023\n" + "\006domain\030\027 \001(\tB\003\340A\003\022\025\n" @@ -141,8 +144,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016compartment_id\030 \001(\tB\003\340A\003\022\034\n" + "\017dns_listener_ip\030# \001(\tB\003\340A\003\022\031\n" + "\014cluster_name\030$ \001(\tB\003\340A\001\022H\n\r" - + "compute_model\030%" - + " \001(\0162,.google.cloud.oracledatabase.v1.ComputeModelB\003\340A\003\"]\n" + + "compute_model\030% \001(" + + "\0162,.google.cloud.oracledatabase.v1.ComputeModelB\003\340A\003\022t\n" + + "\027storage_management_type\030& \001(\0162N.google.cloud.oracledatabase.v1.C" + + "loudVmClusterProperties.StorageManagementTypeB\003\340A\003\"]\n" + "\013LicenseType\022\034\n" + "\030LICENSE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020LICENSE_INCLUDED\020\001\022\032\n" @@ -159,16 +164,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013TERMINATING\020\004\022\016\n\n" + "TERMINATED\020\005\022\n\n" + "\006FAILED\020\006\022\033\n" - + "\027MAINTENANCE_IN_PROGRESS\020\007\"\214\001\n" + + "\027MAINTENANCE_IN_PROGRESS\020\007\"W\n" + + "\025StorageManagementType\022\'\n" + + "#STORAGE_MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003ASM\020\001\022\014\n" + + "\010EXASCALE\020\002\"\214\001\n" + "\025DataCollectionOptions\022\'\n" + "\032diagnostics_events_enabled\030\001 \001(\010B\003\340A\001\022&\n" + "\031health_monitoring_enabled\030\002 \001(\010B\003\340A\001\022\"\n" + "\025incident_logs_enabled\030\003 \001(\010B\003\340A\001B\355\001\n" - + "\"com.google.cloud.oracledatabase.v1B\023CloudVmClusterProto" - + "P\001ZJcloud.google.com/go/oracledatabase/a" - + "piv1/oracledatabasepb;oracledatabasepb\252\002" - + "\036Google.Cloud.OracleDatabase.V1\312\002\036Google" - + "\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\023CloudVmClusterProtoP\001ZJcloud.google" + + ".com/go/oracledatabase/apiv1/oracledatab" + + "asepb;oracledatabasepb\252\002\036Google.Cloud.Or" + + "acleDatabase.V1\312\002\036Google\\Cloud\\OracleDat" + + "abase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -200,6 +209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OdbSubnet", "BackupOdbSubnet", "IdentityConnector", + "ExascaleDbStorageVault", }); internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_LabelsEntry_descriptor = internal_static_google_cloud_oracledatabase_v1_CloudVmCluster_descriptor.getNestedType(0); @@ -248,6 +258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DnsListenerIp", "ClusterName", "ComputeModel", + "StorageManagementType", }); internal_static_google_cloud_oracledatabase_v1_DataCollectionOptions_descriptor = getDescriptor().getMessageType(2); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequest.java new file mode 100644 index 000000000000..57ae44e4822a --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequest.java @@ -0,0 +1,983 @@ +/* + * 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/oracledatabase/v1/exadata_infra.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `CloudExadataInfrastructure.ConfigureExascale`.
+ * 
+ * + * Protobuf type {@code + * google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest} + */ +@com.google.protobuf.Generated +public final class ConfigureExascaleCloudExadataInfrastructureRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder { + 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= */ "", + "ConfigureExascaleCloudExadataInfrastructureRequest"); + } + + // Use ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() to construct. + private ConfigureExascaleCloudExadataInfrastructureRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfigureExascaleCloudExadataInfrastructureRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .class, + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER = 2; + private int totalStorageSizeGb_ = 0; + + /** + * + * + *
+   * Required. The total storage to be allocated to Exascale in GBs.
+   * 
+ * + * int32 total_storage_size_gb = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional ID to identify the request.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional ID to identify the request.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (totalStorageSizeGb_ != 0) { + output.writeInt32(2, totalStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (totalStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalStorageSizeGb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + 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.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest other = + (com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getTotalStorageSizeGb() != other.getTotalStorageSizeGb()) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getTotalStorageSizeGb(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + 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.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + 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.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + 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.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + 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.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + 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.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + 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; + } + + /** + * + * + *
+   * The request for `CloudExadataInfrastructure.ConfigureExascale`.
+   * 
+ * + * Protobuf type {@code + * google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .class, + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + totalStorageSizeGb_ = 0; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ConfigureExascaleCloudExadataInfrastructureRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + build() { + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + buildPartial() { + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest result = + new com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalStorageSizeGb_ = totalStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) { + return mergeFrom( + (com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + other) { + if (other + == com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTotalStorageSizeGb() != 0) { + setTotalStorageSizeGb(other.getTotalStorageSizeGb()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + totalStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Cloud Exadata Infrastructure in the following
+     * format:
+     * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int totalStorageSizeGb_; + + /** + * + * + *
+     * Required. The total storage to be allocated to Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + + /** + * + * + *
+     * Required. The total storage to be allocated to Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The totalStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setTotalStorageSizeGb(int value) { + + totalStorageSizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The total storage to be allocated to Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTotalStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + totalStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional ID to identify the request.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request.
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + private static final com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest(); + } + + public static com.google.cloud.oracledatabase.v1 + .ConfigureExascaleCloudExadataInfrastructureRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ConfigureExascaleCloudExadataInfrastructureRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ConfigureExascaleCloudExadataInfrastructureRequest>() { + @java.lang.Override + public ConfigureExascaleCloudExadataInfrastructureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder.java new file mode 100644 index 000000000000..d91bc5bd3df3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/oracledatabase/v1/exadata_infra.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.oracledatabase.v1; + +@com.google.protobuf.Generated +public interface ConfigureExascaleCloudExadataInfrastructureRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the Cloud Exadata Infrastructure in the following
+   * format:
+   * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The total storage to be allocated to Exascale in GBs.
+   * 
+ * + * int32 total_storage_size_gb = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The totalStorageSizeGb. + */ + int getTotalStorageSizeGb(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request.
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfig.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfig.java new file mode 100644 index 000000000000..9569e1f9b8b3 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfig.java @@ -0,0 +1,603 @@ +/* + * 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/oracledatabase/v1/exadata_infra.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * Details of the Exascale configuration for the Exadata Infrastructure.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleConfig} + */ +@com.google.protobuf.Generated +public final class ExascaleConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.ExascaleConfig) + ExascaleConfigOrBuilder { + 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= */ "", + "ExascaleConfig"); + } + + // Use ExascaleConfig.newBuilder() to construct. + private ExascaleConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExascaleConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleConfig.class, + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder.class); + } + + public static final int TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER = 1; + private int totalStorageSizeGb_ = 0; + + /** + * + * + *
+   * Output only. Total storage size needed for Exascale in GBs.
+   * 
+ * + * int32 total_storage_size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + + public static final int AVAILABLE_STORAGE_SIZE_GB_FIELD_NUMBER = 2; + private int availableStorageSizeGb_ = 0; + + /** + * + * + *
+   * Output only. Available storage size for Exascale in GBs.
+   * 
+ * + * int32 available_storage_size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableStorageSizeGb. + */ + @java.lang.Override + public int getAvailableStorageSizeGb() { + return availableStorageSizeGb_; + } + + 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 (totalStorageSizeGb_ != 0) { + output.writeInt32(1, totalStorageSizeGb_); + } + if (availableStorageSizeGb_ != 0) { + output.writeInt32(2, availableStorageSizeGb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalStorageSizeGb_); + } + if (availableStorageSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, availableStorageSizeGb_); + } + 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.oracledatabase.v1.ExascaleConfig)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.ExascaleConfig other = + (com.google.cloud.oracledatabase.v1.ExascaleConfig) obj; + + if (getTotalStorageSizeGb() != other.getTotalStorageSizeGb()) return false; + if (getAvailableStorageSizeGb() != other.getAvailableStorageSizeGb()) 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) + TOTAL_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getTotalStorageSizeGb(); + hash = (37 * hash) + AVAILABLE_STORAGE_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getAvailableStorageSizeGb(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig 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.oracledatabase.v1.ExascaleConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig 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.oracledatabase.v1.ExascaleConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig 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.oracledatabase.v1.ExascaleConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig 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.oracledatabase.v1.ExascaleConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig 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.oracledatabase.v1.ExascaleConfig 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; + } + + /** + * + * + *
+   * Details of the Exascale configuration for the Exadata Infrastructure.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.ExascaleConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.ExascaleConfig) + com.google.cloud.oracledatabase.v1.ExascaleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.ExascaleConfig.class, + com.google.cloud.oracledatabase.v1.ExascaleConfig.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.ExascaleConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalStorageSizeGb_ = 0; + availableStorageSizeGb_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProto + .internal_static_google_cloud_oracledatabase_v1_ExascaleConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfig getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfig build() { + com.google.cloud.oracledatabase.v1.ExascaleConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfig buildPartial() { + com.google.cloud.oracledatabase.v1.ExascaleConfig result = + new com.google.cloud.oracledatabase.v1.ExascaleConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.ExascaleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalStorageSizeGb_ = totalStorageSizeGb_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.availableStorageSizeGb_ = availableStorageSizeGb_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.ExascaleConfig) { + return mergeFrom((com.google.cloud.oracledatabase.v1.ExascaleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExascaleConfig other) { + if (other == com.google.cloud.oracledatabase.v1.ExascaleConfig.getDefaultInstance()) + return this; + if (other.getTotalStorageSizeGb() != 0) { + setTotalStorageSizeGb(other.getTotalStorageSizeGb()); + } + if (other.getAvailableStorageSizeGb() != 0) { + setAvailableStorageSizeGb(other.getAvailableStorageSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + totalStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + availableStorageSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int totalStorageSizeGb_; + + /** + * + * + *
+     * Output only. Total storage size needed for Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalStorageSizeGb. + */ + @java.lang.Override + public int getTotalStorageSizeGb() { + return totalStorageSizeGb_; + } + + /** + * + * + *
+     * Output only. Total storage size needed for Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setTotalStorageSizeGb(int value) { + + totalStorageSizeGb_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Total storage size needed for Exascale in GBs.
+     * 
+ * + * int32 total_storage_size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000001); + totalStorageSizeGb_ = 0; + onChanged(); + return this; + } + + private int availableStorageSizeGb_; + + /** + * + * + *
+     * Output only. Available storage size for Exascale in GBs.
+     * 
+ * + * int32 available_storage_size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableStorageSizeGb. + */ + @java.lang.Override + public int getAvailableStorageSizeGb() { + return availableStorageSizeGb_; + } + + /** + * + * + *
+     * Output only. Available storage size for Exascale in GBs.
+     * 
+ * + * int32 available_storage_size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableStorageSizeGb to set. + * @return This builder for chaining. + */ + public Builder setAvailableStorageSizeGb(int value) { + + availableStorageSizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Available storage size for Exascale in GBs.
+     * 
+ * + * int32 available_storage_size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableStorageSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + availableStorageSizeGb_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExascaleConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.ExascaleConfig) + private static final com.google.cloud.oracledatabase.v1.ExascaleConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.ExascaleConfig(); + } + + public static com.google.cloud.oracledatabase.v1.ExascaleConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExascaleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.ExascaleConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfigOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfigOrBuilder.java new file mode 100644 index 000000000000..faa68cbf6483 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleConfigOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/oracledatabase/v1/exadata_infra.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.oracledatabase.v1; + +@com.google.protobuf.Generated +public interface ExascaleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.ExascaleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Total storage size needed for Exascale in GBs.
+   * 
+ * + * int32 total_storage_size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalStorageSizeGb. + */ + int getTotalStorageSizeGb(); + + /** + * + * + *
+   * Output only. Available storage size for Exascale in GBs.
+   * 
+ * + * int32 available_storage_size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The availableStorageSizeGb. + */ + int getAvailableStorageSizeGb(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java index 1e59eaf018ec..018845885481 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVault.java @@ -57,6 +57,7 @@ private ExascaleDbStorageVault() { displayName_ = ""; gcpOracleZone_ = ""; entitlementId_ = ""; + exadataInfrastructure_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -532,6 +533,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int EXADATA_INFRASTRUCTURE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object exadataInfrastructure_ = ""; + + /** + * + * + *
+   * Optional. The Exadata Infrastructure resource on which
+   * ExascaleDbStorageVault
+   * resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + @java.lang.Override + public java.lang.String getExadataInfrastructure() { + java.lang.Object ref = exadataInfrastructure_; + 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(); + exadataInfrastructure_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Exadata Infrastructure resource on which
+   * ExascaleDbStorageVault
+   * resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExadataInfrastructureBytes() { + java.lang.Object ref = exadataInfrastructure_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadataInfrastructure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -566,6 +630,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exadataInfrastructure_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, exadataInfrastructure_); + } getUnknownFields().writeTo(output); } @@ -603,6 +670,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exadataInfrastructure_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, exadataInfrastructure_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -632,6 +702,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getEntitlementId().equals(other.getEntitlementId())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getExadataInfrastructure().equals(other.getExadataInfrastructure())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -663,6 +734,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + EXADATA_INFRASTRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExadataInfrastructure().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -852,6 +925,7 @@ public Builder clear() { } entitlementId_ = ""; internalGetMutableLabels().clear(); + exadataInfrastructure_ = ""; return this; } @@ -913,6 +987,9 @@ private void buildPartial0(com.google.cloud.oracledatabase.v1.ExascaleDbStorageV result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.exadataInfrastructure_ = exadataInfrastructure_; + } result.bitField0_ |= to_bitField0_; } @@ -957,6 +1034,11 @@ public Builder mergeFrom(com.google.cloud.oracledatabase.v1.ExascaleDbStorageVau } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000040; + if (!other.getExadataInfrastructure().isEmpty()) { + exadataInfrastructure_ = other.exadataInfrastructure_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1033,6 +1115,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + exadataInfrastructure_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2137,6 +2225,142 @@ public Builder putAllLabels(java.util.Map va return this; } + private java.lang.Object exadataInfrastructure_ = ""; + + /** + * + * + *
+     * Optional. The Exadata Infrastructure resource on which
+     * ExascaleDbStorageVault
+     * resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + public java.lang.String getExadataInfrastructure() { + java.lang.Object ref = exadataInfrastructure_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exadataInfrastructure_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Exadata Infrastructure resource on which
+     * ExascaleDbStorageVault
+     * resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + public com.google.protobuf.ByteString getExadataInfrastructureBytes() { + java.lang.Object ref = exadataInfrastructure_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exadataInfrastructure_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Exadata Infrastructure resource on which
+     * ExascaleDbStorageVault
+     * resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The exadataInfrastructure to set. + * @return This builder for chaining. + */ + public Builder setExadataInfrastructure(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exadataInfrastructure_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Exadata Infrastructure resource on which
+     * ExascaleDbStorageVault
+     * resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExadataInfrastructure() { + exadataInfrastructure_ = getDefaultInstance().getExadataInfrastructure(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Exadata Infrastructure resource on which
+     * ExascaleDbStorageVault
+     * resource is created, in the following format:
+     * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+     * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for exadataInfrastructure to set. + * @return This builder for chaining. + */ + public Builder setExadataInfrastructureBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exadataInfrastructure_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.ExascaleDbStorageVault) } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java index 12120cedd169..7aa1404338d4 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultOrBuilder.java @@ -290,4 +290,40 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. The Exadata Infrastructure resource on which
+   * ExascaleDbStorageVault
+   * resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The exadataInfrastructure. + */ + java.lang.String getExadataInfrastructure(); + + /** + * + * + *
+   * Optional. The Exadata Infrastructure resource on which
+   * ExascaleDbStorageVault
+   * resource is created, in the following format:
+   * projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
+   * 
+ * + * + * string exadata_infrastructure = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for exadataInfrastructure. + */ + com.google.protobuf.ByteString getExadataInfrastructureBytes(); } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java index 4dd8a3011f29..0c72e3a0a1d9 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultProto.java @@ -90,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "racledatabase.v1\032\037google/api/field_behav" + "ior.proto\032\033google/api/field_info.proto\032\031" + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\032\032google/type/datetime.proto\"\345\004\n" + + "uf/timestamp.proto\032\032google/type/datetime.proto\"\307\005\n" + "\026ExascaleDbStorageVault\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\034\n" @@ -101,30 +101,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + "\016entitlement_id\030\006 \001(\tB\003\340A\003\022W\n" + "\006labels\030\007 \003(\0132B.google.cloud.oracl" - + "edatabase.v1.ExascaleDbStorageVault.LabelsEntryB\003\340A\001\032-\n" + + "edatabase.v1.ExascaleDbStorageVault.LabelsEntryB\003\340A\001\022`\n" + + "\026exadata_infrastructure\030\010 \001(\tB@\340A\001\372A:\n" + + "8oracledatabase.googleapis.com/CloudExadataInfrastructure\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\310\001\352A\304\001\n" - + "4oracledatabase.googleapis.com/ExascaleDbStorageVault" - + "\022[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_s" - + "torage_vault}*\027exascaleDbStorageVaults2\026exascaleDbStorageVault\"\205\007\n" + + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\022[projects/{project}/l" + + "ocations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}*\027exascal" + + "eDbStorageVaults2\026exascaleDbStorageVault\"\205\007\n" + " ExascaleDbStorageVaultProperties\022\021\n" + "\004ocid\030\001 \001(\tB\003\340A\003\022-\n" + "\ttime_zone\030\002 \001(\0132\025.google.type.TimeZoneB\003\340A\003\022b\n" - + "\033exascale_db_storage_details\030\003 \001" - + "(\01328.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\003\340A\002\022Z\n" - + "\005state\030\004 \001(\016" - + "2F.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\003\340A\003\022\030\n" + + "\033exascale_db_storage_details\030\003 \001(\01328.google.cloud.orac" + + "ledatabase.v1.ExascaleDbStorageDetailsB\003\340A\002\022Z\n" + + "\005state\030\004 \001(\0162F.google.cloud.oracle" + + "database.v1.ExascaleDbStorageVaultProperties.StateB\003\340A\003\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022\033\n" + "\016vm_cluster_ids\030\006 \003(\tB\003\340A\003\022\035\n" + "\020vm_cluster_count\030\t \001(\005B\003\340A\003\022+\n" + "\036additional_flash_cache_percent\030\007 \001(\005B\003\340A\001\022\024\n" + "\007oci_uri\030\010 \001(\tB\003\340A\003\022w\n" + "\031attached_shape_attributes\030\n" - + " \003(\0162O.google.cloud" - + ".oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\022x\n" - + "\032available_shape_attributes\030\013 \003(\0162O.google.clo" - + "ud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\"z\n" + + " \003(\0162O.google.cloud.oracledatabase.v1.Exa" + + "scaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\022x\n" + + "\032available_shape_attributes\030\013 \003(\0162O.google.cloud.oracledatabase.v1.E" + + "xascaleDbStorageVaultProperties.ShapeAttributeB\003\340A\003\"z\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014PROVISIONING\020\001\022\r\n" @@ -144,33 +146,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB<\340A\002\372A6\n" + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\317\001\n" + "\"ListExascaleDbStorageVaultsRequest\022L\n" - + "\006parent\030\001 \001(\tB<\340A\002\372A6\0224oracled" - + "atabase.googleapis.com/ExascaleDbStorageVault\022\026\n" + + "\006parent\030\001 \001(" + + "\tB<\340A\002\372A6\0224oracledatabase.googleapis.com/ExascaleDbStorageVault\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\257\001\n" + "#ListExascaleDbStorageVaultsResponse\022Z\n" - + "\032exascale_db_storage_vaults\030\001" - + " \003(\01326.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\022\027\n" + + "\032exascale_db_storage_vaults\030\001 \003(\01326.googl" + + "e.cloud.oracledatabase.v1.ExascaleDbStorageVault\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\237\002\n" + "#CreateExascaleDbStorageVaultRequest\022L\n" - + "\006parent\030\001 \001(" - + "\tB<\340A\002\372A6\0224oracledatabase.googleapis.com/ExascaleDbStorageVault\022)\n" + + "\006parent\030\001 \001(\tB<\340A\002\372A6\0224" + + "oracledatabase.googleapis.com/ExascaleDbStorageVault\022)\n" + "\034exascale_db_storage_vault_id\030\002 \001(\tB\003\340A\002\022^\n" - + "\031exascale_db_storage_vault\030\003 \001(\01326.googl" - + "e.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\003\340A\002\022\037\n\n" + + "\031exascale_db_storage_vault\030\003" + + " \001(\01326.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\222\001\n" + "#DeleteExascaleDbStorageVaultRequest\022J\n" + "\004name\030\001 \001(\tB<\340A\002\372A6\n" + "4oracledatabase.googleapis.com/ExascaleDbStorageVault\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\365\001\n" - + "\"com.google.cloud.oracledatabase.v1B\033Exas" - + "caleDbStorageVaultProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledataba" - + "sepb;oracledatabasepb\252\002\036Google.Cloud.Ora" - + "cleDatabase.V1\312\002\036Google\\Cloud\\OracleData" - + "base\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\033ExascaleDbStorageVaultProt" + + "oP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\252" + + "\002\036Google.Cloud.OracleDatabase.V1\312\002\036Googl" + + "e\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -195,6 +196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EntitlementId", "Labels", + "ExadataInfrastructure", }); internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_LabelsEntry_descriptor = internal_static_google_cloud_oracledatabase_v1_ExascaleDbStorageVault_descriptor diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java index 41833a15f8b6..3b08d0f68167 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -504,7 +504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",oracledatabase.googleapis.com/ExadbVmCluster\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\026\n" - + "\thostnames\030\004 \003(\tB\003\340A\0022\271\225\001\n" + + "\thostnames\030\004 \003(\tB\003\340A\0022\212\230\001\n" + "\016OracleDatabase\022\204\002\n" + "\037ListCloudExadataInfrastructures\022F.google.cloud.oracledatabase.v1.Lis" + "tCloudExadataInfrastructuresRequest\032G.google.cloud.oracledatabase.v1.ListCloudEx" @@ -524,439 +524,449 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " DeleteCloudExadataInfrastructure\022G.google.cloud.oracledatabase.v1.DeleteClou" + "dExadataInfrastructureRequest\032\035.google.longrunning.Operation\"{\312A*\n" + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002A" - + "*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\022\324\001\n" - + "\023ListCloudVmClusters\022:.google.cloud.oracledatabase." - + "v1.ListCloudVmClustersRequest\032;.google.cloud.oracledatabase.v1.ListCloudVmCluste" - + "rsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent" - + "=projects/*/locations/*}/cloudVmClusters\022\301\001\n" - + "\021GetCloudVmCluster\0228.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest" - + "\032..google.cloud.oracledatabase.v1.CloudV" - + "mCluster\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\226\002\n" - + "\024CreateCloudVmCluster\022;.google.cloud.ora" - + "cledatabase.v1.CreateCloudVmClusterRequest\032\035.google.longrunning.Operation\"\241\001\312A#\n" - + "\016CloudVmCluster\022\021OperationMetadata\332A+par" - + "ent,cloud_vm_cluster,cloud_vm_cluster_id" - + "\202\323\344\223\002G\"3/v1/{parent=projects/*/locations" - + "/*}/cloudVmClusters:\020cloud_vm_cluster\022\343\001\n" - + "\024DeleteCloudVmCluster\022;.google.cloud.or" - + "acledatabase.v1.DeleteCloudVmClusterRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\0025*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\310\001\n" - + "\020ListEntitlements\0227.google.cloud.oracledatabase.v" - + "1.ListEntitlementsRequest\0328.google.cloud.oracledatabase.v1.ListEntitlementsRespo" - + "nse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/entitlements\022\332\001\n\r" - + "ListDbServers\0224.google.cloud.oracledatabase.v" - + "1.ListDbServersRequest\0325.google.cloud.or" - + "acledatabase.v1.ListDbServersResponse\"\\\332" - + "A\006parent\202\323\344\223\002M\022K/v1/{parent=projects/*/l" - + "ocations/*/cloudExadataInfrastructures/*}/dbServers\022\211\002\n" - + "\013ListDbNodes\0222.google.cloud.oracledatabase.v1.ListDbNodesRequest\032" - + "3.google.cloud.oracledatabase.v1.ListDbN" - + "odesResponse\"\220\001\332A\006parent\202\323\344\223\002\200\001\022=/v1/{pa" - + "rent=projects/*/locations/*/cloudVmClusters/*}/dbNodesZ?\022=/v1/{parent=projects/*" - + "/locations/*/exadbVmClusters/*}/dbNodes\022\300\001\n" - + "\016ListGiVersions\0225.google.cloud.oracledatabase.v1.ListGiVersionsRequest\0326.goog" - + "le.cloud.oracledatabase.v1.ListGiVersion" - + "sResponse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/giVersions\022\331\001\n" - + "\021ListMinorVersions\0228.google.cloud.oracleda" - + "tabase.v1.ListMinorVersionsRequest\0329.google.cloud.oracledatabase.v1.ListMinorVer" - + "sionsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{par" - + "ent=projects/*/locations/*/giVersions/*}/minorVersions\022\320\001\n" - + "\022ListDbSystemShapes\0229.google.cloud.oracledatabase.v1.ListDbSys" - + "temShapesRequest\032:.google.cloud.oracleda" - + "tabase.v1.ListDbSystemShapesResponse\"C\332A" - + "\006parent\202\323\344\223\0024\0222/v1/{parent=projects/*/locations/*}/dbSystemShapes\022\344\001\n" - + "\027ListAutonomousDatabases\022>.google.cloud.oracledatab" - + "ase.v1.ListAutonomousDatabasesRequest\032?.google.cloud.oracledatabase.v1.ListAuton" - + "omousDatabasesResponse\"H\332A\006parent\202\323\344\223\0029\022" - + "7/v1/{parent=projects/*/locations/*}/autonomousDatabases\022\321\001\n" - + "\025GetAutonomousDatabase\022<.google.cloud.oracledatabase.v1.GetA" - + "utonomousDatabaseRequest\0322.google.cloud." - + "oracledatabase.v1.AutonomousDatabase\"F\332A" - + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/autonomousDatabases/*}\022\257\002\n" - + "\030CreateAutonomousDatabase\022?.google.cloud.oracled" - + "atabase.v1.CreateAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"\262\001\312A\'\n" + + "*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\022\316\002\n" + + "+ConfigureExascaleCloudExadataInfrastructure\022R.goog" + + "le.cloud.oracledatabase.v1.ConfigureExas" + + "caleCloudExadataInfrastructureRequest\032\035.google.longrunning.Operation\"\253\001\312A/\n" + + "\032CloudExadataInfrastructure\022\021OperationMetadat" + + "a\332A\032name,total_storage_size_gb\202\323\344\223\002V\"Q/v" + + "1/{name=projects/*/locations/*/cloudExad" + + "ataInfrastructures/*}:configureExascale:\001*\022\324\001\n" + + "\023ListCloudVmClusters\022:.google.cloud.oracledatabase.v1.ListCloudVmClustersR" + + "equest\032;.google.cloud.oracledatabase.v1." + + "ListCloudVmClustersResponse\"D\332A\006parent\202\323" + + "\344\223\0025\0223/v1/{parent=projects/*/locations/*}/cloudVmClusters\022\301\001\n" + + "\021GetCloudVmCluster\0228.google.cloud.oracledatabase.v1.GetClou" + + "dVmClusterRequest\032..google.cloud.oracled" + + "atabase.v1.CloudVmCluster\"B\332A\004name\202\323\344\223\0025" + + "\0223/v1/{name=projects/*/locations/*/cloudVmClusters/*}\022\226\002\n" + + "\024CreateCloudVmCluster\022;.google.cloud.oracledatabase.v1.CreateCl" + + "oudVmClusterRequest\032\035.google.longrunning.Operation\"\241\001\312A#\n" + + "\016CloudVmCluster\022\021OperationMetadata\332A+parent,cloud_vm_cluster,cl" + + "oud_vm_cluster_id\202\323\344\223\002G\"3/v1/{parent=pro" + + "jects/*/locations/*}/cloudVmClusters:\020cloud_vm_cluster\022\343\001\n" + + "\024DeleteCloudVmCluster\022;.google.cloud.oracledatabase.v1.DeleteC" + + "loudVmClusterRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/{na" + + "me=projects/*/locations/*/cloudVmClusters/*}\022\310\001\n" + + "\020ListEntitlements\0227.google.cloud.oracledatabase.v1.ListEntitlementsReque" + + "st\0328.google.cloud.oracledatabase.v1.List" + + "EntitlementsResponse\"A\332A\006parent\202\323\344\223\0022\0220/" + + "v1/{parent=projects/*/locations/*}/entitlements\022\332\001\n\r" + + "ListDbServers\0224.google.cloud.oracledatabase.v1.ListDbServersRequest\032" + + "5.google.cloud.oracledatabase.v1.ListDbS" + + "erversResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{pa" + + "rent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\022\211\002\n" + + "\013ListDbNodes\0222.google.cloud.oracledatabase.v1.Li" + + "stDbNodesRequest\0323.google.cloud.oracleda" + + "tabase.v1.ListDbNodesResponse\"\220\001\332A\006paren" + + "t\202\323\344\223\002\200\001\022=/v1/{parent=projects/*/locatio" + + "ns/*/cloudVmClusters/*}/dbNodesZ?\022=/v1/{" + + "parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\022\300\001\n" + + "\016ListGiVersions\0225.google.cloud.oracledatabase.v1.ListGiVersi" + + "onsRequest\0326.google.cloud.oracledatabase" + + ".v1.ListGiVersionsResponse\"?\332A\006parent\202\323\344" + + "\223\0020\022./v1/{parent=projects/*/locations/*}/giVersions\022\331\001\n" + + "\021ListMinorVersions\0228.google.cloud.oracledatabase.v1.ListMinorVers" + + "ionsRequest\0329.google.cloud.oracledatabas" + + "e.v1.ListMinorVersionsResponse\"O\332A\006paren" + + "t\202\323\344\223\002@\022>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\022\320\001\n" + + "\022ListDbSystemShapes\0229.google.cloud.oracledata" + + "base.v1.ListDbSystemShapesRequest\032:.google.cloud.oracledatabase.v1.ListDbSystemS" + + "hapesResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{par" + + "ent=projects/*/locations/*}/dbSystemShapes\022\344\001\n" + + "\027ListAutonomousDatabases\022>.google.cloud.oracledatabase.v1.ListAutonomousDa" + + "tabasesRequest\032?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse\"" + + "H\332A\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/autonomousDatabases\022\321\001\n" + + "\025GetAutonomousDatabase\022<.google.cloud.oracl" + + "edatabase.v1.GetAutonomousDatabaseRequest\0322.google.cloud.oracledatabase.v1.Auton" + + "omousDatabase\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=" + + "projects/*/locations/*/autonomousDatabases/*}\022\257\002\n" + + "\030CreateAutonomousDatabase\022?.google.cloud.oracledatabase.v1.CreateAutono" + + "mousDatabaseRequest\032\035.google.longrunning.Operation\"\262\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A1parent,autonomous_data" + + "base,autonomous_database_id\202\323\344\223\002N\"7/v1/{" + + "parent=projects/*/locations/*}/autonomousDatabases:\023autonomous_database\022\261\002\n" + + "\030UpdateAutonomousDatabase\022?.google.cloud.orac" + + "ledatabase.v1.UpdateAutonomousDatabaseRe" + + "quest\032\035.google.longrunning.Operation\"\264\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadat" + + "a\332A\037autonomous_database,update_mask\202\323\344\223\002" + + "b2K/v1/{autonomous_database.name=project" + + "s/*/locations/*/autonomousDatabases/*}:\023autonomous_database\022\357\001\n" + + "\030DeleteAutonomousDatabase\022?.google.cloud.oracledatabase.v" + + "1.DeleteAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0029*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\022\207\002\n" + + "\031RestoreAutonomousDatabase\022@.google.cloud.oracledatabas" + + "e.v1.RestoreAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"\210\001\312A\'\n" + + "\022AutonomousDatabase\022\021OperationMetadata\332A\021name" + + ",restore_time\202\323\344\223\002D\"?/v1/{name=projects/" + + "*/locations/*/autonomousDatabases/*}:restore:\001*\022\251\002\n" + + " GenerateAutonomousDatabaseWallet\022G.google.cloud.oracledatabase.v1.Ge" + + "nerateAutonomousDatabaseWalletRequest\032H.google.cloud.oracledatabase.v1.GenerateA" + + "utonomousDatabaseWalletResponse\"r\332A\036name" + + ",type,is_regional,password\202\323\344\223\002K\"F/v1/{n" + + "ame=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\001*\022\350\001\n" + + "\030ListAutonomousDbVersions\022?.google.cloud.oracleda" + + "tabase.v1.ListAutonomousDbVersionsRequest\032@.google.cloud.oracledatabase.v1.ListA" + + "utonomousDbVersionsResponse\"I\332A\006parent\202\323" + + "\344\223\002:\0228/v1/{parent=projects/*/locations/*}/autonomousDbVersions\022\224\002\n" + + "#ListAutonomousDatabaseCharacterSets\022J.google.cloud.or" + + "acledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\032K.google.cloud.oracle" + + "database.v1.ListAutonomousDatabaseCharac", + "terSetsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{p" + + "arent=projects/*/locations/*}/autonomous" + + "DatabaseCharacterSets\022\374\001\n\035ListAutonomous" + + "DatabaseBackups\022D.google.cloud.oracledat" + + "abase.v1.ListAutonomousDatabaseBackupsRe" + + "quest\032E.google.cloud.oracledatabase.v1.L" + + "istAutonomousDatabaseBackupsResponse\"N\332A" + + "\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/lo" + + "cations/*}/autonomousDatabaseBackups\022\360\001\n" + + "\026StopAutonomousDatabase\022=.google.cloud.o" + + "racledatabase.v1.StopAutonomousDatabaseR" + + "equest\032\035.google.longrunning.Operation\"x\312" + + "A\'\n\022AutonomousDatabase\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002A\".google.clo" + + "ud.oracledatabase.v1.StartAutonomousData" + + "baseRequest\032\035.google.longrunning.Operati" + + "on\"y\312A\'\n\022AutonomousDatabase\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002B\"=/v1/{name=projects/" + + "*/locations/*/autonomousDatabases/*}:sta" + + "rt:\001*\022\371\001\n\031RestartAutonomousDatabase\022@.go" + + "ogle.cloud.oracledatabase.v1.RestartAuto" + + "nomousDatabaseRequest\032\035.google.longrunni" + + "ng.Operation\"{\312A\'\n\022AutonomousDatabase\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002D\"?/v1/{name" + + "=projects/*/locations/*/autonomousDataba" + + "ses/*}:restart:\001*\022\234\002\n\034SwitchoverAutonomo" + + "usDatabase\022C.google.cloud.oracledatabase" + + ".v1.SwitchoverAutonomousDatabaseRequest\032" + + "\035.google.longrunning.Operation\"\227\001\312A\'\n\022Au" + + "tonomousDatabase\022\021OperationMetadata\332A\035na" + + "me,peer_autonomous_database\202\323\344\223\002G\"B/v1/{" + + "name=projects/*/locations/*/autonomousDa" + + "tabases/*}:switchover:\001*\022\226\002\n\032FailoverAut" + + "onomousDatabase\022A.google.cloud.oracledat" + + "abase.v1.FailoverAutonomousDatabaseReque" + + "st\032\035.google.longrunning.Operation\"\225\001\312A\'\n" + "\022AutonomousDatabase\022\021OperationMetadata\332A" - + "1parent,autonomous_database,autonomous_d" - + "atabase_id\202\323\344\223\002N\"7/v1/{parent=projects/*" - + "/locations/*}/autonomousDatabases:\023autonomous_database\022\261\002\n" - + "\030UpdateAutonomousDatabase\022?.google.cloud.oracledatabase.v1.Upd" - + "ateAutonomousDatabaseRequest\032\035.google.longrunning.Operation\"\264\001\312A\'\n" - + "\022AutonomousDatabase\022\021OperationMetadata\332A\037autonomous_da" - + "tabase,update_mask\202\323\344\223\002b2K/v1/{autonomou" - + "s_database.name=projects/*/locations/*/a" - + "utonomousDatabases/*}:\023autonomous_database\022\357\001\n" - + "\030DeleteAutonomousDatabase\022?.google.cloud.oracledatabase.v1.DeleteAutonomou" - + "sDatabaseRequest\032\035.google.longrunning.Operation\"s\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0029*7/v1/{name=p" - + "rojects/*/locations/*/autonomousDatabases/*}\022\207\002\n" - + "\031RestoreAutonomousDatabase\022@.google.cloud.oracledatabase.v1.RestoreAuton" - + "omousDatabaseRequest\032\035.google.longrunning.Operation\"\210\001\312A\'\n" - + "\022AutonomousDatabase\022\021O" - + "perationMetadata\332A\021name,restore_time\202\323\344\223" - + "\002D\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:\001*\022\251\002\n" - + " GenerateAutonomousDatabaseWallet\022G.google.clo" - + "ud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest\032H.google.cloud.orac" - + "ledatabase.v1.GenerateAutonomousDatabase" - + "WalletResponse\"r\332A\036name,type,is_regional" - + ",password\202\323\344\223\002K\"F/v1/{name=projects/*/lo" - + "cations/*/autonomousDatabases/*}:generateWallet:\001*\022\350\001\n" - + "\030ListAutonomousDbVersions\022?.google.cloud.oracledatabase.v1.ListAut" - + "onomousDbVersionsRequest\032@.google.cloud.oracledatabase.v1.ListAutonomousDbVersio" - + "nsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent" - + "=projects/*/locations/*}/autonomousDbVersions\022\224\002\n" - + "#ListAutonomousDatabaseCharacterSets\022J.google.cloud.oracledatabase.v1.L" - + "istAutonomousDatabaseCharacterSetsRequest\032K.google.cloud.oracledatabase.v1.ListA" - + "utonomousDatabaseCharacterSetsResponse\"T" - + "\332A\006parent\202\323\344\223\002E\022C/v1/{parent=projects/*/" - + "locations/*}/autonomousDatabaseCharacterSets\022\374\001\n" - + "\035ListAutonomousDatabaseBackups\022D.google.cloud.oracledatabase.v1.ListAuto" - + "nomousDatabaseBackupsRequest\032E.google.cloud.oracledatabase.v1.ListAutonomousData" - + "baseBackupsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v" - + "1/{parent=projects/*/locations/*}/autono", - "mousDatabaseBackups\022\360\001\n\026StopAutonomousDa" - + "tabase\022=.google.cloud.oracledatabase.v1." - + "StopAutonomousDatabaseRequest\032\035.google.l" - + "ongrunning.Operation\"x\312A\'\n\022AutonomousDat" - + "abase\022\021OperationMetadata\332A\004name\202\323\344\223\002A\".google.cloud.oracledatabase" - + ".v1.StartAutonomousDatabaseRequest\032\035.goo" - + "gle.longrunning.Operation\"y\312A\'\n\022Autonomo" - + "usDatabase\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\002B\"=/v1/{name=projects/*/locations/*/aut" - + "onomousDatabases/*}:start:\001*\022\371\001\n\031Restart" - + "AutonomousDatabase\022@.google.cloud.oracle" - + "database.v1.RestartAutonomousDatabaseReq" - + "uest\032\035.google.longrunning.Operation\"{\312A\'" - + "\n\022AutonomousDatabase\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002D\"?/v1/{name=projects/*/locat" - + "ions/*/autonomousDatabases/*}:restart:\001*" - + "\022\234\002\n\034SwitchoverAutonomousDatabase\022C.goog" - + "le.cloud.oracledatabase.v1.SwitchoverAut" - + "onomousDatabaseRequest\032\035.google.longrunn" - + "ing.Operation\"\227\001\312A\'\n\022AutonomousDatabase\022" - + "\021OperationMetadata\332A\035name,peer_autonomou" - + "s_database\202\323\344\223\002G\"B/v1/{name=projects/*/l" - + "ocations/*/autonomousDatabases/*}:switch" - + "over:\001*\022\226\002\n\032FailoverAutonomousDatabase\022A" - + ".google.cloud.oracledatabase.v1.Failover" - + "AutonomousDatabaseRequest\032\035.google.longr" - + "unning.Operation\"\225\001\312A\'\n\022AutonomousDataba" - + "se\022\021OperationMetadata\332A\035name,peer_autono" - + "mous_database\202\323\344\223\002E\"@/v1/{name=projects/" - + "*/locations/*/autonomousDatabases/*}:fai" - + "lover:\001*\022\304\001\n\017ListOdbNetworks\0226.google.cl" - + "oud.oracledatabase.v1.ListOdbNetworksReq" - + "uest\0327.google.cloud.oracledatabase.v1.Li" - + "stOdbNetworksResponse\"@\332A\006parent\202\323\344\223\0021\022/" - + "/v1/{parent=projects/*/locations/*}/odbN" - + "etworks\022\261\001\n\rGetOdbNetwork\0224.google.cloud" - + ".oracledatabase.v1.GetOdbNetworkRequest\032" - + "*.google.cloud.oracledatabase.v1.OdbNetw" - + "ork\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*" - + "/locations/*/odbNetworks/*}\022\367\001\n\020CreateOd" - + "bNetwork\0227.google.cloud.oracledatabase.v" - + "1.CreateOdbNetworkRequest\032\035.google.longr" - + "unning.Operation\"\212\001\312A\037\n\nOdbNetwork\022\021Oper" - + "ationMetadata\332A!parent,odb_network,odb_n" - + "etwork_id\202\323\344\223\002>\"//v1/{parent=projects/*/" - + "locations/*}/odbNetworks:\013odb_network\022\327\001" - + "\n\020DeleteOdbNetwork\0227.google.cloud.oracle" - + "database.v1.DeleteOdbNetworkRequest\032\035.go" - + "ogle.longrunning.Operation\"k\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0021*//v1/{name=projects/*/locations/*" - + "/odbNetworks/*}\022\316\001\n\016ListOdbSubnets\0225.goo" - + "gle.cloud.oracledatabase.v1.ListOdbSubne" - + "tsRequest\0326.google.cloud.oracledatabase." - + "v1.ListOdbSubnetsResponse\"M\332A\006parent\202\323\344\223" - + "\002>\022\022\332A\004name\202\323\344\223\0021\022//v1" + + "/{name=projects/*/locations/*/odbNetwork" + + "s/*}\022\367\001\n\020CreateOdbNetwork\0227.google.cloud" + + ".oracledatabase.v1.CreateOdbNetworkReque" + + "st\032\035.google.longrunning.Operation\"\212\001\312A\037\n" + + "\nOdbNetwork\022\021OperationMetadata\332A!parent," + + "odb_network,odb_network_id\202\323\344\223\002>\"//v1/{p" + + "arent=projects/*/locations/*}/odbNetwork" + + "s:\013odb_network\022\327\001\n\020DeleteOdbNetwork\0227.go" + + "ogle.cloud.oracledatabase.v1.DeleteOdbNe" + + "tworkRequest\032\035.google.longrunning.Operat" + + "ion\"k\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\0021*//v1/{name=proje" + + "cts/*/locations/*/odbNetworks/*}\022\316\001\n\016Lis" + + "tOdbSubnets\0225.google.cloud.oracledatabas" + + "e.v1.ListOdbSubnetsRequest\0326.google.clou" + + "d.oracledatabase.v1.ListOdbSubnetsRespon" + + "se\"M\332A\006parent\202\323\344\223\002>\022\022*<" - + "/v1/{name=projects/*/locations/*/odbNetw" - + "orks/*/odbSubnets/*}\022\324\001\n\023ListExadbVmClus" - + "ters\022:.google.cloud.oracledatabase.v1.Li" - + "stExadbVmClustersRequest\032;.google.cloud." - + "oracledatabase.v1.ListExadbVmClustersRes" - + "ponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=proj" - + "ects/*/locations/*}/exadbVmClusters\022\301\001\n\021" - + "GetExadbVmCluster\0228.google.cloud.oracled" - + "atabase.v1.GetExadbVmClusterRequest\032..go" - + "ogle.cloud.oracledatabase.v1.ExadbVmClus" - + "ter\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=projects/*" - + "/locations/*/exadbVmClusters/*}\022\226\002\n\024Crea" - + "teExadbVmCluster\022;.google.cloud.oracleda" - + "tabase.v1.CreateExadbVmClusterRequest\032\035." - + "google.longrunning.Operation\"\241\001\312A#\n\016Exad" - + "bVmCluster\022\021OperationMetadata\332A+parent,e" - + "xadb_vm_cluster,exadb_vm_cluster_id\202\323\344\223\002" - + "G\"3/v1/{parent=projects/*/locations/*}/e" - + "xadbVmClusters:\020exadb_vm_cluster\022\343\001\n\024Del" - + "eteExadbVmCluster\022;.google.cloud.oracled" - + "atabase.v1.DeleteExadbVmClusterRequest\032\035" - + ".google.longrunning.Operation\"o\312A*\n\025goog" - + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\0025*3/v1/{name=projects/*/location" - + "s/*/exadbVmClusters/*}\022\230\002\n\024UpdateExadbVm" - + "Cluster\022;.google.cloud.oracledatabase.v1" - + ".UpdateExadbVmClusterRequest\032\035.google.lo" - + "ngrunning.Operation\"\243\001\312A#\n\016ExadbVmCluste" - + "r\022\021OperationMetadata\332A\034exadb_vm_cluster," - + "update_mask\202\323\344\223\002X2D/v1/{exadb_vm_cluster" - + ".name=projects/*/locations/*/exadbVmClus" - + "ters/*}:\020exadb_vm_cluster\022\233\002\n\"RemoveVirt" - + "ualMachineExadbVmCluster\022I.google.cloud." - + "oracledatabase.v1.RemoveVirtualMachineEx" - + "adbVmClusterRequest\032\035.google.longrunning" - + ".Operation\"\212\001\312A#\n\016ExadbVmCluster\022\021Operat" - + "ionMetadata\332A\016name,hostnames\202\323\344\223\002M\"H/v1/" - + "{name=projects/*/locations/*/exadbVmClus" - + "ters/*}:removeVirtualMachine:\001*\022\364\001\n\033List" - + "ExascaleDbStorageVaults\022B.google.cloud.o" - + "racledatabase.v1.ListExascaleDbStorageVa" - + "ultsRequest\032C.google.cloud.oracledatabas" - + "e.v1.ListExascaleDbStorageVaultsResponse" - + "\"L\332A\006parent\202\323\344\223\002=\022;/v1/{parent=projects/" - + "*/locations/*}/exascaleDbStorageVaults\022\341" - + "\001\n\031GetExascaleDbStorageVault\022@.google.cl" - + "oud.oracledatabase.v1.GetExascaleDbStora" - + "geVaultRequest\0326.google.cloud.oracledata" - + "base.v1.ExascaleDbStorageVault\"J\332A\004name\202" - + "\323\344\223\002=\022;/v1/{name=projects/*/locations/*/" - + "exascaleDbStorageVaults/*}\022\321\002\n\034CreateExa" - + "scaleDbStorageVault\022C.google.cloud.oracl" - + "edatabase.v1.CreateExascaleDbStorageVaul" - + "tRequest\032\035.google.longrunning.Operation\"" - + "\314\001\312A+\n\026ExascaleDbStorageVault\022\021Operation" - + "Metadata\332A=parent,exascale_db_storage_va" - + "ult,exascale_db_storage_vault_id\202\323\344\223\002X\";" - + "/v1/{parent=projects/*/locations/*}/exas" - + "caleDbStorageVaults:\031exascale_db_storage" - + "_vault\022\373\001\n\034DeleteExascaleDbStorageVault\022" - + "C.google.cloud.oracledatabase.v1.DeleteE" - + "xascaleDbStorageVaultRequest\032\035.google.lo" - + "ngrunning.Operation\"w\312A*\n\025google.protobu" - + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002=*" - + ";/v1/{name=projects/*/locations/*/exasca" - + "leDbStorageVaults/*}\022\204\002\n\037ListDbSystemIni" - + "tialStorageSizes\022F.google.cloud.oracleda" - + "tabase.v1.ListDbSystemInitialStorageSize" - + "sRequest\032G.google.cloud.oracledatabase.v" - + "1.ListDbSystemInitialStorageSizesRespons" - + "e\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=projects" - + "/*/locations/*}/dbSystemInitialStorageSi" - + "zes\022\274\001\n\rListDatabases\0224.google.cloud.ora" - + "cledatabase.v1.ListDatabasesRequest\0325.go" - + "ogle.cloud.oracledatabase.v1.ListDatabas" - + "esResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent" - + "=projects/*/locations/*}/databases\022\251\001\n\013G" - + "etDatabase\0222.google.cloud.oracledatabase" - + ".v1.GetDatabaseRequest\032(.google.cloud.or" - + "acledatabase.v1.Database\"<\332A\004name\202\323\344\223\002/\022" - + "-/v1/{name=projects/*/locations/*/databa" - + "ses/*}\022\340\001\n\026ListPluggableDatabases\022=.goog" + + "e.v1.CreateOdbSubnetRequest\032\035.google.lon" + + "grunning.Operation\"\223\001\312A\036\n\tOdbSubnet\022\021Ope" + + "rationMetadata\332A\037parent,odb_subnet,odb_s" + + "ubnet_id\202\323\344\223\002J\"*\332A\006parent\202\323" + + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + + "}/databases\022\251\001\n\013GetDatabase\0222.google.clo" + + "ud.oracledatabase.v1.GetDatabaseRequest\032" + + "(.google.cloud.oracledatabase.v1.Databas" + + "e\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/l" + + "ocations/*/databases/*}\022\340\001\n\026ListPluggabl" + + "eDatabases\022=.google.cloud.oracledatabase" + + ".v1.ListPluggableDatabasesRequest\032>.goog" + "le.cloud.oracledatabase.v1.ListPluggable" - + "DatabasesRequest\032>.google.cloud.oracleda" - + "tabase.v1.ListPluggableDatabasesResponse" - + "\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/" - + "*/locations/*}/pluggableDatabases\022\315\001\n\024Ge" - + "tPluggableDatabase\022;.google.cloud.oracle" - + "database.v1.GetPluggableDatabaseRequest\032" - + "1.google.cloud.oracledatabase.v1.Pluggab" - + "leDatabase\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=pro" - + "jects/*/locations/*/pluggableDatabases/*" - + "}\022\274\001\n\rListDbSystems\0224.google.cloud.oracl" - + "edatabase.v1.ListDbSystemsRequest\0325.goog" - + "le.cloud.oracledatabase.v1.ListDbSystems" - + "Response\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=p" - + "rojects/*/locations/*}/dbSystems\022\251\001\n\013Get" - + "DbSystem\0222.google.cloud.oracledatabase.v" - + "1.GetDbSystemRequest\032(.google.cloud.orac" - + "ledatabase.v1.DbSystem\"<\332A\004name\202\323\344\223\002/\022-/" - + "v1/{name=projects/*/locations/*/dbSystem" - + "s/*}\022\351\001\n\016CreateDbSystem\0225.google.cloud.o" - + "racledatabase.v1.CreateDbSystemRequest\032\035" - + ".google.longrunning.Operation\"\200\001\312A\035\n\010DbS" - + "ystem\022\021OperationMetadata\332A\035parent,db_sys" - + "tem,db_system_id\202\323\344\223\002:\"-/v1/{parent=proj" - + "ects/*/locations/*}/dbSystems:\tdb_system" - + "\022\321\001\n\016DeleteDbSystem\0225.google.cloud.oracl" - + "edatabase.v1.DeleteDbSystemRequest\032\035.goo" - + "gle.longrunning.Operation\"i\312A*\n\025google.p" - + "rotobuf.Empty\022\021OperationMetadata\332A\004name\202" - + "\323\344\223\002/*-/v1/{name=projects/*/locations/*/" - + "dbSystems/*}\022\354\001\n\031ListGoldengateDeploymen" - + "ts\022@.google.cloud.oracledatabase.v1.List" - + "GoldengateDeploymentsRequest\032A.google.cl" - + "oud.oracledatabase.v1.ListGoldengateDepl" - + "oymentsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{p" - + "arent=projects/*/locations/*}/goldengate" - + "Deployments\022\331\001\n\027GetGoldengateDeployment\022" - + ">.google.cloud.oracledatabase.v1.GetGold" - + "engateDeploymentRequest\0324.google.cloud.o" - + "racledatabase.v1.GoldengateDeployment\"H\332" - + "A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locat" - + "ions/*/goldengateDeployments/*}\022\275\002\n\032Crea" - + "teGoldengateDeployment\022A.google.cloud.or" - + "acledatabase.v1.CreateGoldengateDeployme" - + "ntRequest\032\035.google.longrunning.Operation" - + "\"\274\001\312A)\n\024GoldengateDeployment\022\021OperationM" - + "etadata\332A5parent,goldengate_deployment,g" - + "oldengate_deployment_id\202\323\344\223\002R\"9/v1/{pare" - + "nt=projects/*/locations/*}/goldengateDep" - + "loyments:\025goldengate_deployment\022\365\001\n\032Dele" - + "teGoldengateDeployment\022A.google.cloud.or" - + "acledatabase.v1.DeleteGoldengateDeployme" - + "ntRequest\032\035.google.longrunning.Operation" - + "\"u\312A*\n\025google.protobuf.Empty\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\002;*9/v1/{name=projects" - + "/*/locations/*/goldengateDeployments/*}\022" - + "\370\001\n\030StopGoldengateDeployment\022?.google.cl" - + "oud.oracledatabase.v1.StopGoldengateDepl" - + "oymentRequest\032\035.google.longrunning.Opera" - + "tion\"|\312A)\n\024GoldengateDeployment\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002C\">/v1/{name=proje" - + "cts/*/locations/*/goldengateDeployments/" - + "*}:stop:\001*\022\373\001\n\031StartGoldengateDeployment" - + "\022@.google.cloud.oracledatabase.v1.StartG" + + "DatabasesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/" + + "{parent=projects/*/locations/*}/pluggabl" + + "eDatabases\022\315\001\n\024GetPluggableDatabase\022;.go" + + "ogle.cloud.oracledatabase.v1.GetPluggabl" + + "eDatabaseRequest\0321.google.cloud.oracleda" + + "tabase.v1.PluggableDatabase\"E\332A\004name\202\323\344\223" + + "\0028\0226/v1/{name=projects/*/locations/*/plu" + + "ggableDatabases/*}\022\274\001\n\rListDbSystems\0224.g" + + "oogle.cloud.oracledatabase.v1.ListDbSyst" + + "emsRequest\0325.google.cloud.oracledatabase" + + ".v1.ListDbSystemsResponse\">\332A\006parent\202\323\344\223" + + "\002/\022-/v1/{parent=projects/*/locations/*}/" + + "dbSystems\022\251\001\n\013GetDbSystem\0222.google.cloud" + + ".oracledatabase.v1.GetDbSystemRequest\032(." + + "google.cloud.oracledatabase.v1.DbSystem\"" + + "<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/loc" + + "ations/*/dbSystems/*}\022\351\001\n\016CreateDbSystem" + + "\0225.google.cloud.oracledatabase.v1.Create" + + "DbSystemRequest\032\035.google.longrunning.Ope" + + "ration\"\200\001\312A\035\n\010DbSystem\022\021OperationMetadat" + + "a\332A\035parent,db_system,db_system_id\202\323\344\223\002:\"" + + "-/v1/{parent=projects/*/locations/*}/dbS" + + "ystems:\tdb_system\022\321\001\n\016DeleteDbSystem\0225.g" + + "oogle.cloud.oracledatabase.v1.DeleteDbSy" + + "stemRequest\032\035.google.longrunning.Operati" + + "on\"i\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=projec" + + "ts/*/locations/*/dbSystems/*}\022\354\001\n\031ListGo" + + "ldengateDeployments\022@.google.cloud.oracl" + + "edatabase.v1.ListGoldengateDeploymentsRe" + + "quest\032A.google.cloud.oracledatabase.v1.L" + + "istGoldengateDeploymentsResponse\"J\332A\006par" + + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" + + "ons/*}/goldengateDeployments\022\331\001\n\027GetGold" + + "engateDeployment\022>.google.cloud.oracleda" + + "tabase.v1.GetGoldengateDeploymentRequest" + + "\0324.google.cloud.oracledatabase.v1.Golden" + + "gateDeployment\"H\332A\004name\202\323\344\223\002;\0229/v1/{name" + + "=projects/*/locations/*/goldengateDeploy" + + "ments/*}\022\275\002\n\032CreateGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.CreateG" + + "oldengateDeploymentRequest\032\035.google.long" + + "running.Operation\"\274\001\312A)\n\024GoldengateDeplo" + + "yment\022\021OperationMetadata\332A5parent,golden" + + "gate_deployment,goldengate_deployment_id" + + "\202\323\344\223\002R\"9/v1/{parent=projects/*/locations" + + "/*}/goldengateDeployments:\025goldengate_de" + + "ployment\022\365\001\n\032DeleteGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.DeleteG" + "oldengateDeploymentRequest\032\035.google.long" - + "running.Operation\"}\312A)\n\024GoldengateDeploy" - + "ment\022\021OperationMetadata\332A\004name\202\323\344\223\002D\"?/v" - + "1/{name=projects/*/locations/*/goldengat" - + "eDeployments/*}:start:\001*\022\354\001\n\031ListGoldeng" - + "ateConnections\022@.google.cloud.oracledata" - + "base.v1.ListGoldengateConnectionsRequest" - + "\032A.google.cloud.oracledatabase.v1.ListGo" - + "ldengateConnectionsResponse\"J\332A\006parent\202\323" - + "\344\223\002;\0229/v1/{parent=projects/*/locations/*" - + "}/goldengateConnections\022\331\001\n\027GetGoldengat" - + "eConnection\022>.google.cloud.oracledatabas" - + "e.v1.GetGoldengateConnectionRequest\0324.go" - + "ogle.cloud.oracledatabase.v1.GoldengateC" - + "onnection\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=proj" - + "ects/*/locations/*/goldengateConnections" - + "/*}\022\275\002\n\032CreateGoldengateConnection\022A.goo" - + "gle.cloud.oracledatabase.v1.CreateGolden" - + "gateConnectionRequest\032\035.google.longrunni" - + "ng.Operation\"\274\001\312A)\n\024GoldengateConnection" - + "\022\021OperationMetadata\332A5parent,goldengate_" - + "connection,goldengate_connection_id\202\323\344\223\002" - + "R\"9/v1/{parent=projects/*/locations/*}/g" - + "oldengateConnections:\025goldengate_connect" - + "ion\022\365\001\n\032DeleteGoldengateConnection\022A.goo" - + "gle.cloud.oracledatabase.v1.DeleteGolden" - + "gateConnectionRequest\032\035.google.longrunni" - + "ng.Operation\"u\312A*\n\025google.protobuf.Empty" - + "\022\021OperationMetadata\332A\004name\202\323\344\223\002;*9/v1/{n" + + "running.Operation\"u\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002;*9/" + + "v1/{name=projects/*/locations/*/goldenga" + + "teDeployments/*}\022\370\001\n\030StopGoldengateDeplo" + + "yment\022?.google.cloud.oracledatabase.v1.S" + + "topGoldengateDeploymentRequest\032\035.google." + + "longrunning.Operation\"|\312A)\n\024GoldengateDe" + + "ployment\022\021OperationMetadata\332A\004name\202\323\344\223\002C" + + "\">/v1/{name=projects/*/locations/*/golde" + + "ngateDeployments/*}:stop:\001*\022\373\001\n\031StartGol" + + "dengateDeployment\022@.google.cloud.oracled" + + "atabase.v1.StartGoldengateDeploymentRequ" + + "est\032\035.google.longrunning.Operation\"}\312A)\n" + + "\024GoldengateDeployment\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002D\"?/v1/{name=projects/*/loca" + + "tions/*/goldengateDeployments/*}:start:\001" + + "*\022\354\001\n\031ListGoldengateConnections\022@.google" + + ".cloud.oracledatabase.v1.ListGoldengateC" + + "onnectionsRequest\032A.google.cloud.oracled" + + "atabase.v1.ListGoldengateConnectionsResp" + + "onse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=proje" + + "cts/*/locations/*}/goldengateConnections" + + "\022\331\001\n\027GetGoldengateConnection\022>.google.cl" + + "oud.oracledatabase.v1.GetGoldengateConne" + + "ctionRequest\0324.google.cloud.oracledataba" + + "se.v1.GoldengateConnection\"H\332A\004name\202\323\344\223\002" + + ";\0229/v1/{name=projects/*/locations/*/gold" + + "engateConnections/*}\022\275\002\n\032CreateGoldengat" + + "eConnection\022A.google.cloud.oracledatabas" + + "e.v1.CreateGoldengateConnectionRequest\032\035" + + ".google.longrunning.Operation\"\274\001\312A)\n\024Gol" + + "dengateConnection\022\021OperationMetadata\332A5p" + + "arent,goldengate_connection,goldengate_c" + + "onnection_id\202\323\344\223\002R\"9/v1/{parent=projects" + + "/*/locations/*}/goldengateConnections:\025g" + + "oldengate_connection\022\365\001\n\032DeleteGoldengat" + + "eConnection\022A.google.cloud.oracledatabas" + + "e.v1.DeleteGoldengateConnectionRequest\032\035" + + ".google.longrunning.Operation\"u\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\002;*9/v1/{name=projects/*/location" + + "s/*/goldengateConnections/*}\022\210\002\n ListGol" + + "dengateDeploymentVersions\022G.google.cloud" + + ".oracledatabase.v1.ListGoldengateDeploym" + + "entVersionsRequest\032H.google.cloud.oracle" + + "database.v1.ListGoldengateDeploymentVers" + + "ionsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{pare" + + "nt=projects/*/locations/*}/goldengateDep" + + "loymentVersions\022\374\001\n\035ListGoldengateDeploy" + + "mentTypes\022D.google.cloud.oracledatabase." + + "v1.ListGoldengateDeploymentTypesRequest\032" + + "E.google.cloud.oracledatabase.v1.ListGol" + + "dengateDeploymentTypesResponse\"N\332A\006paren" + + "t\202\323\344\223\002?\022=/v1/{parent=projects/*/location" + + "s/*}/goldengateDeploymentTypes\022\230\002\n$ListG" + + "oldengateDeploymentEnvironments\022K.google" + + ".cloud.oracledatabase.v1.ListGoldengateD" + + "eploymentEnvironmentsRequest\032L.google.cl" + + "oud.oracledatabase.v1.ListGoldengateDepl" + + "oymentEnvironmentsResponse\"U\332A\006parent\202\323\344" + + "\223\002F\022D/v1/{parent=projects/*/locations/*}" + + "/goldengateDeploymentEnvironments\022\374\001\n\035Li" + + "stGoldengateConnectionTypes\022D.google.clo" + + "ud.oracledatabase.v1.ListGoldengateConne" + + "ctionTypesRequest\032E.google.cloud.oracled" + + "atabase.v1.ListGoldengateConnectionTypes" + + "Response\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=p" + + "rojects/*/locations/*}/goldengateConnect" + + "ionTypes\022\300\001\n\016ListDbVersions\0225.google.clo" + + "ud.oracledatabase.v1.ListDbVersionsReque" + + "st\0326.google.cloud.oracledatabase.v1.List" + + "DbVersionsResponse\"?\332A\006parent\202\323\344\223\0020\022./v1" + + "/{parent=projects/*/locations/*}/dbVersi" + + "ons\022\354\001\n\031ListDatabaseCharacterSets\022@.goog" + + "le.cloud.oracledatabase.v1.ListDatabaseC" + + "haracterSetsRequest\032A.google.cloud.oracl" + + "edatabase.v1.ListDatabaseCharacterSetsRe" + + "sponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=pro" + + "jects/*/locations/*}/databaseCharacterSe" + + "ts\022\224\002\n#ListGoldengateConnectionAssignmen" + + "ts\022J.google.cloud.oracledatabase.v1.List" + + "GoldengateConnectionAssignmentsRequest\032K" + + ".google.cloud.oracledatabase.v1.ListGold" + + "engateConnectionAssignmentsResponse\"T\332A\006" + + "parent\202\323\344\223\002E\022C/v1/{parent=projects/*/loc" + + "ations/*}/goldengateConnectionAssignment" + + "s\022\201\002\n!GetGoldengateConnectionAssignment\022" + + "H.google.cloud.oracledatabase.v1.GetGold" + + "engateConnectionAssignmentRequest\032>.goog" + + "le.cloud.oracledatabase.v1.GoldengateCon" + + "nectionAssignment\"R\332A\004name\202\323\344\223\002E\022C/v1/{n" + "ame=projects/*/locations/*/goldengateCon" - + "nections/*}\022\210\002\n ListGoldengateDeployment" - + "Versions\022G.google.cloud.oracledatabase.v" - + "1.ListGoldengateDeploymentVersionsReques" - + "t\032H.google.cloud.oracledatabase.v1.ListG" - + "oldengateDeploymentVersionsResponse\"Q\332A\006" - + "parent\202\323\344\223\002B\022@/v1/{parent=projects/*/loc" - + "ations/*}/goldengateDeploymentVersions\022\374" - + "\001\n\035ListGoldengateDeploymentTypes\022D.googl" - + "e.cloud.oracledatabase.v1.ListGoldengate" - + "DeploymentTypesRequest\032E.google.cloud.or" - + "acledatabase.v1.ListGoldengateDeployment" - + "TypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{par" - + "ent=projects/*/locations/*}/goldengateDe" - + "ploymentTypes\022\230\002\n$ListGoldengateDeployme" - + "ntEnvironments\022K.google.cloud.oracledata" - + "base.v1.ListGoldengateDeploymentEnvironm" - + "entsRequest\032L.google.cloud.oracledatabas" - + "e.v1.ListGoldengateDeploymentEnvironment" - + "sResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=" - + "projects/*/locations/*}/goldengateDeploy" - + "mentEnvironments\022\374\001\n\035ListGoldengateConne" - + "ctionTypes\022D.google.cloud.oracledatabase" - + ".v1.ListGoldengateConnectionTypesRequest" - + "\032E.google.cloud.oracledatabase.v1.ListGo" - + "ldengateConnectionTypesResponse\"N\332A\006pare" - + "nt\202\323\344\223\002?\022=/v1/{parent=projects/*/locatio" - + "ns/*}/goldengateConnectionTypes\022\300\001\n\016List" - + "DbVersions\0225.google.cloud.oracledatabase" - + ".v1.ListDbVersionsRequest\0326.google.cloud" - + ".oracledatabase.v1.ListDbVersionsRespons" - + "e\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects" - + "/*/locations/*}/dbVersions\022\354\001\n\031ListDatab" - + "aseCharacterSets\022@.google.cloud.oracleda" - + "tabase.v1.ListDatabaseCharacterSetsReque" - + "st\032A.google.cloud.oracledatabase.v1.List" - + "DatabaseCharacterSetsResponse\"J\332A\006parent" - + "\202\323\344\223\002;\0229/v1/{parent=projects/*/locations" - + "/*}/databaseCharacterSets\022\224\002\n#ListGolden" - + "gateConnectionAssignments\022J.google.cloud" - + ".oracledatabase.v1.ListGoldengateConnect" - + "ionAssignmentsRequest\032K.google.cloud.ora" - + "cledatabase.v1.ListGoldengateConnectionA" - + "ssignmentsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1" - + "/{parent=projects/*/locations/*}/goldeng" - + "ateConnectionAssignments\022\201\002\n!GetGoldenga" - + "teConnectionAssignment\022H.google.cloud.or" - + "acledatabase.v1.GetGoldengateConnectionA" - + "ssignmentRequest\032>.google.cloud.oracleda" - + "tabase.v1.GoldengateConnectionAssignment" - + "\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects/*/lo" - + "cations/*/goldengateConnectionAssignment" - + "s/*}\022\206\003\n$CreateGoldengateConnectionAssig" - + "nment\022K.google.cloud.oracledatabase.v1.C" - + "reateGoldengateConnectionAssignmentReque" - + "st\032\035.google.longrunning.Operation\"\361\001\312A3\n" - + "\036GoldengateConnectionAssignment\022\021Operati" - + "onMetadata\332AKparent,goldengate_connectio" - + "n_assignment,goldengate_connection_assig" - + "nment_id\202\323\344\223\002g\"C/v1/{parent=projects/*/l" - + "ocations/*}/goldengateConnectionAssignme" - + "nts: goldengate_connection_assignment\022\223\002" - + "\n$DeleteGoldengateConnectionAssignment\022K" - + ".google.cloud.oracledatabase.v1.DeleteGo" - + "ldengateConnectionAssignmentRequest\032\035.go" - + "ogle.longrunning.Operation\"\177\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002E*C/v1/{name=projects/*/locations/*" - + "/goldengateConnectionAssignments/*}\022\227\002\n\"" - + "TestGoldengateConnectionAssignment\022I.goo" - + "gle.cloud.oracledatabase.v1.TestGoldenga" - + "teConnectionAssignmentRequest\032J.google.c" - + "loud.oracledatabase.v1.TestGoldengateCon" - + "nectionAssignmentResponse\"Z\332A\004name\202\323\344\223\002M" - + "\"H/v1/{name=projects/*/locations/*/golde" - + "ngateConnectionAssignments/*}:test:\001*\032Q\312" - + "A\035oracledatabase.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\237\004\n\"com.google.cloud.oracledatabase.v1B" - + "\013V1mainProtoP\001ZJcloud.google.com/go/orac" - + "ledatabase/apiv1/oracledatabasepb;oracle" - + "databasepb\252\002\036Google.Cloud.OracleDatabase" - + ".V1\312\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!G" - + "oogle::Cloud::OracleDatabase::V1\352AN\n\036com" - + "pute.googleapis.com/Network\022,projects/{p" - + "roject}/global/networks/{network}\352Ax\n!cl" - + "oudkms.googleapis.com/CryptoKey\022Sproject" - + "s/{project}/locations/{location}/keyRing" - + "s/{key_ring}/cryptoKeys/{crypto_key}\352Ak\n" - + "*secretmanager.googleapis.com/SecretVers" - + "ion\022=projects/{project}/secrets/{secret}" - + "/versions/{secret_version}b\006proto3" + + "nectionAssignments/*}\022\206\003\n$CreateGoldenga" + + "teConnectionAssignment\022K.google.cloud.or" + + "acledatabase.v1.CreateGoldengateConnecti" + + "onAssignmentRequest\032\035.google.longrunning" + + ".Operation\"\361\001\312A3\n\036GoldengateConnectionAs" + + "signment\022\021OperationMetadata\332AKparent,gol" + + "dengate_connection_assignment,goldengate" + + "_connection_assignment_id\202\323\344\223\002g\"C/v1/{pa" + + "rent=projects/*/locations/*}/goldengateC" + + "onnectionAssignments: goldengate_connect" + + "ion_assignment\022\223\002\n$DeleteGoldengateConne" + + "ctionAssignment\022K.google.cloud.oracledat" + + "abase.v1.DeleteGoldengateConnectionAssig" + + "nmentRequest\032\035.google.longrunning.Operat" + + "ion\"\177\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002E*C/v1/{name=proje" + + "cts/*/locations/*/goldengateConnectionAs" + + "signments/*}\022\227\002\n\"TestGoldengateConnectio" + + "nAssignment\022I.google.cloud.oracledatabas" + + "e.v1.TestGoldengateConnectionAssignmentR" + + "equest\032J.google.cloud.oracledatabase.v1." + + "TestGoldengateConnectionAssignmentRespon" + + "se\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=projects/*/" + + "locations/*/goldengateConnectionAssignme" + + "nts/*}:test:\001*\032Q\312A\035oracledatabase.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\237\004\n\"com.google.cloud.o" + + "racledatabase.v1B\013V1mainProtoP\001ZJcloud.g" + + "oogle.com/go/oracledatabase/apiv1/oracle" + + "databasepb;oracledatabasepb\252\002\036Google.Clo" + + "ud.OracleDatabase.V1\312\002\036Google\\Cloud\\Orac" + + "leDatabase\\V1\352\002!Google::Cloud::OracleDat" + + "abase::V1\352AN\n\036compute.googleapis.com/Net" + + "work\022,projects/{project}/global/networks" + + "/{network}\352Ax\n!cloudkms.googleapis.com/C" + + "ryptoKey\022Sprojects/{project}/locations/{" + + "location}/keyRings/{key_ring}/cryptoKeys" + + "/{crypto_key}\352Ak\n*secretmanager.googleap" + + "is.com/SecretVersion\022=projects/{project}" + + "/secrets/{secret}/versions/{secret_versi" + + "on}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto index 52eaf65e6d7d..be825712b120 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exadata_infra.proto @@ -213,6 +213,20 @@ message CloudExadataInfrastructureProperties { // Output only. The storage server type of the Exadata Infrastructure. string storage_server_type = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Exascale configuration for the Exadata Infrastructure. + ExascaleConfig exascale_config = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the Exascale configuration for the Exadata Infrastructure. +message ExascaleConfig { + // Output only. Total storage size needed for Exascale in GBs. + int32 total_storage_size_gb = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Available storage size for Exascale in GBs. + int32 available_storage_size_gb = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Maintenance window as defined by Oracle. @@ -289,3 +303,25 @@ message MaintenanceWindow { bool is_custom_action_timeout_enabled = 9 [(google.api.field_behavior) = OPTIONAL]; } + +// The request for `CloudExadataInfrastructure.ConfigureExascale`. +message ConfigureExascaleCloudExadataInfrastructureRequest { + // Required. The name of the Cloud Exadata Infrastructure in the following + // format: + // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; + + // Required. The total storage to be allocated to Exascale in GBs. + int32 total_storage_size_gb = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional ID to identify the request. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto index 7b848bd4bd8c..3e68a5040bda 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto @@ -69,6 +69,17 @@ message ExascaleDbStorageVault { // Optional. The labels or tags associated with the ExascaleDbStorageVault. map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Exadata Infrastructure resource on which + // ExascaleDbStorageVault + // resource is created, in the following format: + // projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure} + string exadata_infrastructure = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/CloudExadataInfrastructure" + } + ]; } // The properties of the ExascaleDbStorageVault. diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto index 1fb42987f3e7..022524f3b233 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto @@ -127,6 +127,21 @@ service OracleDatabase { }; } + // Configures Exascale for a single Exadata Infrastructure. + rpc ConfigureExascaleCloudExadataInfrastructure( + ConfigureExascaleCloudExadataInfrastructureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}:configureExascale" + body: "*" + }; + option (google.api.method_signature) = "name,total_storage_size_gb"; + option (google.longrunning.operation_info) = { + response_type: "CloudExadataInfrastructure" + metadata_type: "OperationMetadata" + }; + } + // Lists the VM Clusters in a given project and location. rpc ListCloudVmClusters(ListCloudVmClustersRequest) returns (ListCloudVmClustersResponse) { diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto index 3607735708a5..7804835291d4 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/vm_cluster.proto @@ -122,6 +122,16 @@ message CloudVmCluster { // securely access the resources in the customer project. IdentityConnector identity_connector = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The name of ExascaleDbStorageVault associated with the VM + // Cluster. Format: + // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault} + string exascale_db_storage_vault = 17 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "oracledatabase.googleapis.com/ExascaleDbStorageVault" + } + ]; } // Various properties and settings associated with Exadata VM cluster. @@ -177,6 +187,18 @@ message CloudVmClusterProperties { MAINTENANCE_IN_PROGRESS = 7; } + // The type of storage management for the Cloud VM Cluster. + enum StorageManagementType { + // Unspecified storage management type. + STORAGE_MANAGEMENT_TYPE_UNSPECIFIED = 0; + + // Automatic Storage Management. + ASM = 1; + + // Exascale storage management. + EXASCALE = 2; + } + // Output only. Oracle Cloud Infrastructure ID of VM Cluster. string ocid = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -281,6 +303,10 @@ message CloudVmClusterProperties { // Output only. The compute model of the VM Cluster. ComputeModel compute_model = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The storage management type of the VM Cluster. + StorageManagementType storage_management_type = 38 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Data collection options for diagnostics. diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructure.java new file mode 100644 index 000000000000..c82c9b6350df --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructure.java @@ -0,0 +1,57 @@ +/* + * 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.longrunning.Operation; + +public class AsyncConfigureExascaleCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + asyncConfigureExascaleCloudExadataInfrastructure(); + } + + public static void asyncConfigureExascaleCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ConfigureExascaleCloudExadataInfrastructureRequest request = + ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setTotalStorageSizeGb(1493200154) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + oracleDatabaseClient + .configureExascaleCloudExadataInfrastructureCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructureLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructureLRO.java new file mode 100644 index 000000000000..0e43e4587773 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/AsyncConfigureExascaleCloudExadataInfrastructureLRO.java @@ -0,0 +1,58 @@ +/* + * 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class AsyncConfigureExascaleCloudExadataInfrastructureLRO { + + public static void main(String[] args) throws Exception { + asyncConfigureExascaleCloudExadataInfrastructureLRO(); + } + + public static void asyncConfigureExascaleCloudExadataInfrastructureLRO() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ConfigureExascaleCloudExadataInfrastructureRequest request = + ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setTotalStorageSizeGb(1493200154) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient + .configureExascaleCloudExadataInfrastructureOperationCallable() + .futureCall(request); + // Do something. + CloudExadataInfrastructure response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructure.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructure.java new file mode 100644 index 000000000000..1dcb7335bd01 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructure.java @@ -0,0 +1,52 @@ +/* + * 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.ConfigureExascaleCloudExadataInfrastructureRequest; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncConfigureExascaleCloudExadataInfrastructure { + + public static void main(String[] args) throws Exception { + syncConfigureExascaleCloudExadataInfrastructure(); + } + + public static void syncConfigureExascaleCloudExadataInfrastructure() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + ConfigureExascaleCloudExadataInfrastructureRequest request = + ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() + .setName( + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString()) + .setTotalStorageSizeGb(1493200154) + .setRequestId("requestId693933066") + .build(); + CloudExadataInfrastructure response = + oracleDatabaseClient.configureExascaleCloudExadataInfrastructureAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt.java new file mode 100644 index 000000000000..a8db7fbb49b8 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt.java @@ -0,0 +1,50 @@ +/* + * 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_CloudexadatainfrastructurenameInt_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt { + + public static void main(String[] args) throws Exception { + syncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt(); + } + + public static void + syncConfigureExascaleCloudExadataInfrastructureCloudexadatainfrastructurenameInt() + 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + CloudExadataInfrastructureName name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]"); + int totalStorageSizeGb = 1493200154; + CloudExadataInfrastructure response = + oracleDatabaseClient + .configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_CloudexadatainfrastructurenameInt_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureStringInt.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureStringInt.java new file mode 100644 index 000000000000..0e9e8f5064ae --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/configureexascalecloudexadatainfrastructure/SyncConfigureExascaleCloudExadataInfrastructureStringInt.java @@ -0,0 +1,49 @@ +/* + * 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.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_StringInt_sync] +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructure; +import com.google.cloud.oracledatabase.v1.CloudExadataInfrastructureName; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; + +public class SyncConfigureExascaleCloudExadataInfrastructureStringInt { + + public static void main(String[] args) throws Exception { + syncConfigureExascaleCloudExadataInfrastructureStringInt(); + } + + public static void syncConfigureExascaleCloudExadataInfrastructureStringInt() 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 (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + String name = + CloudExadataInfrastructureName.of( + "[PROJECT]", "[LOCATION]", "[CLOUD_EXADATA_INFRASTRUCTURE]") + .toString(); + int totalStorageSizeGb = 1493200154; + CloudExadataInfrastructure response = + oracleDatabaseClient + .configureExascaleCloudExadataInfrastructureAsync(name, totalStorageSizeGb) + .get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ConfigureExascaleCloudExadataInfrastructure_StringInt_sync] diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java new file mode 100644 index 000000000000..87adc39cda29 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java @@ -0,0 +1,59 @@ +/* + * 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.trace.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceService implements MockGrpcService { + private final MockTraceServiceImpl serviceImpl; + + public MockTraceService() { + serviceImpl = new MockTraceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java new file mode 100644 index 000000000000..8d9ec4ceaf7b --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java @@ -0,0 +1,127 @@ +/* + * 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.trace.v1; + +import com.google.api.core.BetaApi; +import com.google.devtools.cloudtrace.v1.GetTraceRequest; +import com.google.devtools.cloudtrace.v1.ListTracesRequest; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.PatchTracesRequest; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceServiceImpl extends TraceServiceImplBase { + private List requests; + private Queue responses; + + public MockTraceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listTraces( + ListTracesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTracesResponse) { + requests.add(request); + responseObserver.onNext(((ListTracesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTraces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTracesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTrace(GetTraceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trace) { + requests.add(request); + responseObserver.onNext(((Trace) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTrace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void patchTraces(PatchTracesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PatchTraces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..6ebec9afb0c5 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java @@ -0,0 +1,223 @@ +/* + * 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.trace.v1; + +import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.trace.v1.stub.HttpJsonTraceServiceStub; +import com.google.common.collect.Lists; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceSpan; +import com.google.devtools.cloudtrace.v1.Traces; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTraceServiceStub.getMethodDescriptors(), + TraceServiceSettings.getDefaultEndpoint()); + TraceServiceSettings settings = + TraceServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listTracesTest() throws Exception { + Trace responsesElement = Trace.newBuilder().build(); + ListTracesResponse expectedResponse = + ListTracesResponse.newBuilder() + .setNextPageToken("") + .addAllTraces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + + ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTracesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTracesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + client.listTraces(projectId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTraceTest() throws Exception { + Trace expectedResponse = + Trace.newBuilder() + .setProjectId("projectId-894832108") + .setTraceId("traceId-1067401920") + .addAllSpans(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + String traceId = "traceId-8890"; + + Trace actualResponse = client.getTrace(projectId, traceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTraceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String traceId = "traceId-8890"; + client.getTrace(projectId, traceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTracesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + Traces traces = Traces.newBuilder().build(); + + client.patchTraces(projectId, traces); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void patchTracesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + Traces traces = Traces.newBuilder().build(); + client.patchTraces(projectId, traces); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java new file mode 100644 index 000000000000..44d15d9dd336 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java @@ -0,0 +1,213 @@ +/* + * 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.trace.v1; + +import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.devtools.cloudtrace.v1.GetTraceRequest; +import com.google.devtools.cloudtrace.v1.ListTracesRequest; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.PatchTracesRequest; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceSpan; +import com.google.devtools.cloudtrace.v1.Traces; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTraceService mockTraceService; + private LocalChannelProvider channelProvider; + private TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTraceService = new MockTraceService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TraceServiceSettings settings = + TraceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listTracesTest() throws Exception { + Trace responsesElement = Trace.newBuilder().build(); + ListTracesResponse expectedResponse = + ListTracesResponse.newBuilder() + .setNextPageToken("") + .addAllTraces(Arrays.asList(responsesElement)) + .build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + + ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTracesList().get(0), resources.get(0)); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTracesRequest actualRequest = ((ListTracesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTracesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + client.listTraces(projectId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTraceTest() throws Exception { + Trace expectedResponse = + Trace.newBuilder() + .setProjectId("projectId-894832108") + .setTraceId("traceId-1067401920") + .addAllSpans(new ArrayList()) + .build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String traceId = "traceId-1067401920"; + + Trace actualResponse = client.getTrace(projectId, traceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTraceRequest actualRequest = ((GetTraceRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(traceId, actualRequest.getTraceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTraceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String traceId = "traceId-1067401920"; + client.getTrace(projectId, traceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTracesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + Traces traces = Traces.newBuilder().build(); + + client.patchTraces(projectId, traces); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PatchTracesRequest actualRequest = ((PatchTracesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(traces, actualRequest.getTraces()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void patchTracesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + Traces traces = Traces.newBuilder().build(); + client.patchTraces(projectId, traces); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java new file mode 100644 index 000000000000..9bc0330c2c08 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java @@ -0,0 +1,59 @@ +/* + * 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.trace.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceService implements MockGrpcService { + private final MockTraceServiceImpl serviceImpl; + + public MockTraceService() { + serviceImpl = new MockTraceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java new file mode 100644 index 000000000000..5f981b35f193 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java @@ -0,0 +1,104 @@ +/* + * 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.trace.v2; + +import com.google.api.core.BetaApi; +import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.TraceServiceGrpc.TraceServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceServiceImpl extends TraceServiceImplBase { + private List requests; + private Queue responses; + + public MockTraceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void batchWriteSpans( + BatchWriteSpansRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchWriteSpans, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSpan(Span request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Span) { + requests.add(request); + responseObserver.onNext(((Span) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSpan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Span.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..38ec0ca017c5 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java @@ -0,0 +1,254 @@ +/* + * 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.trace.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.trace.v2.stub.HttpJsonTraceServiceStub; +import com.google.devtools.cloudtrace.v2.ProjectName; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.SpanName; +import com.google.devtools.cloudtrace.v2.StackTrace; +import com.google.devtools.cloudtrace.v2.TruncatableString; +import com.google.protobuf.BoolValue; +import com.google.protobuf.Empty; +import com.google.protobuf.Int32Value; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTraceServiceStub.getMethodDescriptors(), + TraceServiceSettings.getDefaultEndpoint()); + TraceServiceSettings settings = + TraceServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void batchWriteSpansTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchWriteSpansExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteSpansTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchWriteSpansExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpanTest() throws Exception { + Span expectedResponse = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + + Span actualResponse = client.createSpan(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSpanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + client.createSpan(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java new file mode 100644 index 000000000000..562de9a35d91 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java @@ -0,0 +1,257 @@ +/* + * 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.trace.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; +import com.google.devtools.cloudtrace.v2.ProjectName; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.SpanName; +import com.google.devtools.cloudtrace.v2.StackTrace; +import com.google.devtools.cloudtrace.v2.TruncatableString; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.BoolValue; +import com.google.protobuf.Empty; +import com.google.protobuf.Int32Value; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTraceService mockTraceService; + private LocalChannelProvider channelProvider; + private TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTraceService = new MockTraceService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TraceServiceSettings settings = + TraceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void batchWriteSpansTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(spans, actualRequest.getSpansList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchWriteSpansExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteSpansTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + String name = "name3373707"; + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(spans, actualRequest.getSpansList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchWriteSpansExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String name = "name3373707"; + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpanTest() throws Exception { + Span expectedResponse = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + mockTraceService.addResponse(expectedResponse); + + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + + Span actualResponse = client.createSpan(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Span actualRequest = ((Span) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getSpanId(), actualRequest.getSpanId()); + Assert.assertEquals(request.getParentSpanId(), actualRequest.getParentSpanId()); + Assert.assertEquals(request.getDisplayName(), actualRequest.getDisplayName()); + Assert.assertEquals(request.getStartTime(), actualRequest.getStartTime()); + Assert.assertEquals(request.getEndTime(), actualRequest.getEndTime()); + Assert.assertEquals(request.getAttributes(), actualRequest.getAttributes()); + Assert.assertEquals(request.getStackTrace(), actualRequest.getStackTrace()); + Assert.assertEquals(request.getTimeEvents(), actualRequest.getTimeEvents()); + Assert.assertEquals(request.getLinks(), actualRequest.getLinks()); + Assert.assertEquals(request.getStatus(), actualRequest.getStatus()); + Assert.assertEquals( + request.getSameProcessAsParentSpan(), actualRequest.getSameProcessAsParentSpan()); + Assert.assertEquals(request.getChildSpanCount(), actualRequest.getChildSpanCount()); + Assert.assertEquals(request.getSpanKind(), actualRequest.getSpanKind()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSpanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + client.createSpan(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java index e4c3cd13d85e..2b7183087c1b 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java @@ -134,8 +134,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -631,9 +630,8 @@ public final BatchSearchDataObjectsResponse batchSearchDataObjects( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -678,9 +676,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -726,9 +723,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java index 7a110d217624..f4f2d4b7da6b 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java @@ -195,8 +195,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1130,9 +1129,8 @@ public final void batchDeleteDataObjects(BatchDeleteDataObjectsRequest request) * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1176,9 +1174,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1223,9 +1220,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java index cc22bba3972b..acf4faa8f485 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java @@ -305,8 +305,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1129,6 +1128,7 @@ public final OperationFuture deleteCollectionAsync(Str * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * vectorSearchServiceClient.deleteCollectionAsync(request).get(); * } @@ -1159,6 +1159,7 @@ public final OperationFuture deleteCollectionAsync( * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * OperationFuture future = * vectorSearchServiceClient.deleteCollectionOperationCallable().futureCall(request); @@ -1189,6 +1190,7 @@ public final OperationFuture deleteCollectionAsync( * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * vectorSearchServiceClient.deleteCollectionCallable().futureCall(request); @@ -2034,6 +2036,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * ExportDataObjectsResponse response = * vectorSearchServiceClient.exportDataObjectsAsync(request).get(); @@ -2064,6 +2067,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * OperationFuture future = * vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request); @@ -2094,6 +2098,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * ApiFuture future = * vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request); @@ -2111,9 +2116,8 @@ public final UnaryCallable exportDataObject * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2157,9 +2161,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2204,9 +2207,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java index 4c5c59960a88..b6db890b2b2f 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/HttpJsonVectorSearchServiceStub.java @@ -276,6 +276,7 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java index 955fce8e0a99..f4dc1f9d85b2 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java @@ -135,8 +135,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -633,9 +632,8 @@ public final BatchSearchDataObjectsResponse batchSearchDataObjects( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -680,9 +678,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -728,9 +725,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java index a41852cf1fad..307357773b05 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java @@ -196,8 +196,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1132,9 +1131,8 @@ public final void batchDeleteDataObjects(BatchDeleteDataObjectsRequest request) * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1178,9 +1176,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1225,9 +1222,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java index f45cd02aadc4..fbc61c8a5ea4 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java @@ -305,8 +305,7 @@ *

ListLocations

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1130,6 +1129,7 @@ public final OperationFuture deleteCollectionAsync(Str * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * vectorSearchServiceClient.deleteCollectionAsync(request).get(); * } @@ -1160,6 +1160,7 @@ public final OperationFuture deleteCollectionAsync( * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * OperationFuture future = * vectorSearchServiceClient.deleteCollectionOperationCallable().futureCall(request); @@ -1190,6 +1191,7 @@ public final OperationFuture deleteCollectionAsync( * DeleteCollectionRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * vectorSearchServiceClient.deleteCollectionCallable().futureCall(request); @@ -2035,6 +2037,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * ExportDataObjectsResponse response = * vectorSearchServiceClient.exportDataObjectsAsync(request).get(); @@ -2065,6 +2068,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * OperationFuture future = * vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request); @@ -2095,6 +2099,7 @@ public final UnaryCallable importDataObject * ExportDataObjectsRequest request = * ExportDataObjectsRequest.newBuilder() * .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + * .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) * .build(); * ApiFuture future = * vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request); @@ -2112,9 +2117,8 @@ public final UnaryCallable exportDataObject * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2158,9 +2162,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2205,9 +2208,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java index f55ed9bb91e4..4deb34add0f7 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/HttpJsonVectorSearchServiceStub.java @@ -280,6 +280,7 @@ public class HttpJsonVectorSearchServiceStub extends VectorSearchServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json index 6ace8b1d27c8..7d3a20414ab1 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1/reflect-config.json @@ -1106,6 +1106,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest$FieldFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest$FieldFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest$FieldFilter$FieldList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest$FieldFilter$FieldList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest$GcsExportDestination", "queryAllDeclaredConstructors": true, diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json index 33ac8419a953..63b7c23ee75c 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/resources/META-INF/native-image/com.google.cloud.vectorsearch.v1beta/reflect-config.json @@ -1106,6 +1106,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$FieldFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$FieldFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$FieldFilter$FieldList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$FieldFilter$FieldList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest$GcsExportDestination", "queryAllDeclaredConstructors": true, diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java index c35c804c81e1..181ac86ef24f 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientHttpJsonTest.java @@ -1166,6 +1166,7 @@ public void exportDataObjectsTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(request).get(); @@ -1197,6 +1198,7 @@ public void exportDataObjectsExceptionTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); client.exportDataObjectsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java index f94baeaf222f..a2f09b8ff179 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClientTest.java @@ -1052,6 +1052,7 @@ public void exportDataObjectsTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(request).get(); @@ -1063,6 +1064,7 @@ public void exportDataObjectsTest() throws Exception { Assert.assertEquals(request.getGcsDestination(), actualRequest.getGcsDestination()); Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFieldFilter(), actualRequest.getFieldFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1078,6 +1080,7 @@ public void exportDataObjectsExceptionTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); client.exportDataObjectsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java index 81554d9e3cd2..497ef089e125 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientHttpJsonTest.java @@ -1173,6 +1173,7 @@ public void exportDataObjectsTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(request).get(); @@ -1204,6 +1205,7 @@ public void exportDataObjectsExceptionTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); client.exportDataObjectsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java index 6fee86f7f0a6..cbdb3bee1db6 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/test/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClientTest.java @@ -1057,6 +1057,7 @@ public void exportDataObjectsTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse actualResponse = client.exportDataObjectsAsync(request).get(); @@ -1068,6 +1069,7 @@ public void exportDataObjectsTest() throws Exception { Assert.assertEquals(request.getGcsDestination(), actualRequest.getGcsDestination()); Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFieldFilter(), actualRequest.getFieldFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1083,6 +1085,7 @@ public void exportDataObjectsExceptionTest() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); client.exportDataObjectsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceProto.java index 4a08e3af1987..c844b92a85e2 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceProto.java @@ -187,8 +187,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.vectorsearch.v1.SearchHintB\003\340A\001B\010\n" + "\006_top_k\"\336\001\n\n" + "TextSearch\022\030\n" - + "\013search_text\030\001 \001(\tB\003\340A\002\022\035\n" - + "\020data_field_names\030\002 \003(\tB\003\340A\002\022F\n\r" + + "\013search_text\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020data_field_names\030\002 \003(\tB\003\340A\001\022F\n\r" + "output_fields\030\003" + " \001(\0132*.google.cloud.vectorsearch.v1.OutputFieldsB\003\340A\001\022\027\n" + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001\022,\n" diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequest.java index 08b8441e4bb1..81fab2d9424e 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequest.java @@ -209,6 +209,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *

+   * Optional. If set to true, any Indexes and DataObjects from this Collection
+   * will also be deleted. (Otherwise, the request will only work if the
+   * Collection has no Indexes and DataObjects.)
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +250,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } + if (force_ != false) { + output.writeBool(3, force_); + } getUnknownFields().writeTo(output); } @@ -244,6 +268,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +305,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +450,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + force_ = false; return this; } @@ -462,6 +493,9 @@ private void buildPartial0(com.google.cloud.vectorsearch.v1.DeleteCollectionRequ if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } } @java.lang.Override @@ -487,6 +521,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1.DeleteCollectionReques bitField0_ |= 0x00000002; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -525,6 +562,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -846,6 +889,68 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.DeleteCollectionRequest) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequestOrBuilder.java index e2177795d37e..cdd8d284b271 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DeleteCollectionRequestOrBuilder.java @@ -109,4 +109,19 @@ public interface DeleteCollectionRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, any Indexes and DataObjects from this Collection
+   * will also be deleted. (Otherwise, the request will only work if the
+   * Collection has no Indexes and DataObjects.)
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequest.java index 91dd52acb9d8..ddb7b66eda8b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequest.java @@ -1089,6 +1089,2154 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface FieldFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + boolean hasIncludedFields(); + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields(); + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getIncludedFieldsOrBuilder(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + boolean hasExcludedFields(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getExcludedFieldsOrBuilder(); + + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.SelectorCase + getSelectorCase(); + } + + /** + * + * + *
+   * Selects which top-level Data Object fields are emitted at export time.
+   * 
+ * + * Protobuf type {@code google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter} + */ + public static final class FieldFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) + FieldFilterOrBuilder { + 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= */ "", + "FieldFilter"); + } + + // Use FieldFilter.newBuilder() to construct. + private FieldFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FieldFilter() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.class, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder.class); + } + + public interface FieldListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + java.util.List getFieldsList(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + int getFieldsCount(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + java.lang.String getFields(int index); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + com.google.protobuf.ByteString getFieldsBytes(int index); + } + + /** + * + * + *
+     * Wrapper for a repeated string. Wrapping in a message lets the
+     * surrounding `oneof` distinguish "field set to an empty list" (which is
+     * rejected as INVALID_ARGUMENT) from "field not set".
+     * 
+ * + * Protobuf type {@code + * google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList} + */ + public static final class FieldList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + FieldListOrBuilder { + 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= */ "", + "FieldList"); + } + + // Use FieldList.newBuilder() to construct. + private FieldList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FieldList() { + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .class, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList getFieldsList() { + return fields_; + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString getFieldsBytes(int index) { + return fields_.getByteString(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 { + for (int i = 0; i < fields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fields_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < fields_.size(); i++) { + dataSize += computeStringSizeNoTag(fields_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsList().size(); + } + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList other = + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) obj; + + if (!getFieldsList().equals(other.getFieldsList())) 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 (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + 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; + } + + /** + * + * + *
+       * Wrapper for a repeated string. Wrapping in a message lets the
+       * surrounding `oneof` distinguish "field set to an empty list" (which is
+       * rejected as INVALID_ARGUMENT) from "field not set".
+       * 
+ * + * Protobuf type {@code + * google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .class, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder.class); + } + + // Construct using + // com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + build() { + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + buildPartial() { + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList result = + new com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fields_.makeImmutable(); + result.fields_ = fields_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) { + return mergeFrom( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList other) { + if (other + == com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance()) return this; + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ |= 0x00000001; + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFieldsIsMutable() { + if (!fields_.isModifiable()) { + fields_ = new com.google.protobuf.LazyStringArrayList(fields_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList getFieldsList() { + fields_.makeImmutable(); + return fields_; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString getFieldsBytes(int index) { + return fields_.getByteString(index); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The fields to set. + * @return This builder for chaining. + */ + public Builder setFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fields to add. + * @return This builder for chaining. + */ + public Builder addFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The fields to add. + * @return This builder for chaining. + */ + public Builder addAllFields(java.lang.Iterable values) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFields() { + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the fields to add. + * @return This builder for chaining. + */ + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + private static final com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList(); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int selectorCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object selector_; + + public enum SelectorCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INCLUDED_FIELDS(1), + EXCLUDED_FIELDS(2), + SELECTOR_NOT_SET(0); + private final int value; + + private SelectorCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SelectorCase valueOf(int value) { + return forNumber(value); + } + + public static SelectorCase forNumber(int value) { + switch (value) { + case 1: + return INCLUDED_FIELDS; + case 2: + return EXCLUDED_FIELDS; + case 0: + return SELECTOR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + public static final int INCLUDED_FIELDS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + @java.lang.Override + public boolean hasIncludedFields() { + return selectorCase_ == 1; + } + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields() { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getIncludedFieldsOrBuilder() { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + public static final int EXCLUDED_FIELDS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + @java.lang.Override + public boolean hasExcludedFields() { + return selectorCase_ == 2; + } + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields() { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getExcludedFieldsOrBuilder() { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + 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 (selectorCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + if (selectorCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (selectorCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + if (selectorCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter other = + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) obj; + + if (!getSelectorCase().equals(other.getSelectorCase())) return false; + switch (selectorCase_) { + case 1: + if (!getIncludedFields().equals(other.getIncludedFields())) return false; + break; + case 2: + if (!getExcludedFields().equals(other.getExcludedFields())) return false; + break; + case 0: + default: + } + 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(); + switch (selectorCase_) { + case 1: + hash = (37 * hash) + INCLUDED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getIncludedFields().hashCode(); + break; + case 2: + hash = (37 * hash) + EXCLUDED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedFields().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter 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.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter 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; + } + + /** + * + * + *
+     * Selects which top-level Data Object fields are emitted at export time.
+     * 
+ * + * Protobuf type {@code google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.class, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder + .class); + } + + // Construct using + // com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (includedFieldsBuilder_ != null) { + includedFieldsBuilder_.clear(); + } + if (excludedFieldsBuilder_ != null) { + excludedFieldsBuilder_.clear(); + } + selectorCase_ = 0; + selector_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter build() { + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter buildPartial() { + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter result = + new com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter result) { + result.selectorCase_ = selectorCase_; + result.selector_ = this.selector_; + if (selectorCase_ == 1 && includedFieldsBuilder_ != null) { + result.selector_ = includedFieldsBuilder_.build(); + } + if (selectorCase_ == 2 && excludedFieldsBuilder_ != null) { + result.selector_ = excludedFieldsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) { + return mergeFrom( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter other) { + if (other + == com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance()) return this; + switch (other.getSelectorCase()) { + case INCLUDED_FIELDS: + { + mergeIncludedFields(other.getIncludedFields()); + break; + } + case EXCLUDED_FIELDS: + { + mergeExcludedFields(other.getExcludedFields()); + break; + } + case SELECTOR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludedFieldsFieldBuilder().getBuilder(), extensionRegistry); + selectorCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludedFieldsFieldBuilder().getBuilder(), extensionRegistry); + selectorCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int selectorCase_ = 0; + private java.lang.Object selector_; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + public Builder clearSelector() { + selectorCase_ = 0; + selector_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + includedFieldsBuilder_; + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + @java.lang.Override + public boolean hasIncludedFields() { + return selectorCase_ == 1; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields() { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } else { + if (selectorCase_ == 1) { + return includedFieldsBuilder_.getMessage(); + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList value) { + if (includedFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selector_ = value; + onChanged(); + } else { + includedFieldsBuilder_.setMessage(value); + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList.Builder + builderForValue) { + if (includedFieldsBuilder_ == null) { + selector_ = builderForValue.build(); + onChanged(); + } else { + includedFieldsBuilder_.setMessage(builderForValue.build()); + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList value) { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1 + && selector_ + != com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance()) { + selector_ = + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .newBuilder( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_) + .mergeFrom(value) + .buildPartial(); + } else { + selector_ = value; + } + onChanged(); + } else { + if (selectorCase_ == 1) { + includedFieldsBuilder_.mergeFrom(value); + } else { + includedFieldsBuilder_.setMessage(value); + } + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludedFields() { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + onChanged(); + } + } else { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + } + includedFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList.Builder + getIncludedFieldsBuilder() { + return internalGetIncludedFieldsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getIncludedFieldsOrBuilder() { + if ((selectorCase_ == 1) && (includedFieldsBuilder_ != null)) { + return includedFieldsBuilder_.getMessageOrBuilder(); + } else { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + internalGetIncludedFieldsFieldBuilder() { + if (includedFieldsBuilder_ == null) { + if (!(selectorCase_ == 1)) { + selector_ = + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + includedFieldsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder>( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_, + getParentForChildren(), + isClean()); + selector_ = null; + } + selectorCase_ = 1; + onChanged(); + return includedFieldsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + excludedFieldsBuilder_; + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + @java.lang.Override + public boolean hasExcludedFields() { + return selectorCase_ == 2; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields() { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } else { + if (selectorCase_ == 2) { + return excludedFieldsBuilder_.getMessage(); + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList value) { + if (excludedFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selector_ = value; + onChanged(); + } else { + excludedFieldsBuilder_.setMessage(value); + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList.Builder + builderForValue) { + if (excludedFieldsBuilder_ == null) { + selector_ = builderForValue.build(); + onChanged(); + } else { + excludedFieldsBuilder_.setMessage(builderForValue.build()); + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludedFields( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList value) { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2 + && selector_ + != com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance()) { + selector_ = + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .newBuilder( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_) + .mergeFrom(value) + .buildPartial(); + } else { + selector_ = value; + } + onChanged(); + } else { + if (selectorCase_ == 2) { + excludedFieldsBuilder_.mergeFrom(value); + } else { + excludedFieldsBuilder_.setMessage(value); + } + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludedFields() { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2) { + selectorCase_ = 0; + selector_ = null; + onChanged(); + } + } else { + if (selectorCase_ == 2) { + selectorCase_ = 0; + selector_ = null; + } + excludedFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList.Builder + getExcludedFieldsBuilder() { + return internalGetExcludedFieldsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getExcludedFieldsOrBuilder() { + if ((selectorCase_ == 2) && (excludedFieldsBuilder_ != null)) { + return excludedFieldsBuilder_.getMessageOrBuilder(); + } else { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + internalGetExcludedFieldsFieldBuilder() { + if (excludedFieldsBuilder_ == null) { + if (!(selectorCase_ == 2)) { + selector_ = + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + excludedFieldsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder>( + (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_, + getParentForChildren(), + isClean()); + selector_ = null; + } + selectorCase_ = 2; + onChanged(); + return excludedFieldsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter) + private static final com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter(); + } + + public static com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int destinationCase_ = 0; @SuppressWarnings("serial") @@ -1263,6 +3411,84 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int FIELD_FILTER_FIELD_NUMBER = 3; + private com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter fieldFilter_; + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + @java.lang.Override + public boolean hasFieldFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter getFieldFilter() { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.getDefaultInstance() + : fieldFilter_; + } + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.getDefaultInstance() + : fieldFilter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1286,6 +3512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination) destination_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFieldFilter()); + } getUnknownFields().writeTo(output); } @@ -1305,6 +3534,9 @@ public int getSerializedSize() { (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination) destination_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFieldFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1322,6 +3554,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest) obj; if (!getName().equals(other.getName())) return false; + if (hasFieldFilter() != other.hasFieldFilter()) return false; + if (hasFieldFilter()) { + if (!getFieldFilter().equals(other.getFieldFilter())) return false; + } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: @@ -1343,6 +3579,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasFieldFilter()) { + hash = (37 * hash) + FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFieldFilter().hashCode(); + } switch (destinationCase_) { case 2: hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; @@ -1483,10 +3723,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFieldFilterFieldBuilder(); + } } @java.lang.Override @@ -1497,6 +3746,11 @@ public Builder clear() { gcsDestinationBuilder_.clear(); } name_ = ""; + fieldFilter_ = null; + if (fieldFilterBuilder_ != null) { + fieldFilterBuilder_.dispose(); + fieldFilterBuilder_ = null; + } destinationCase_ = 0; destination_ = null; return this; @@ -1539,6 +3793,13 @@ private void buildPartial0(com.google.cloud.vectorsearch.v1.ExportDataObjectsReq if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldFilter_ = + fieldFilterBuilder_ == null ? fieldFilter_ : fieldFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -1568,6 +3829,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1.ExportDataObjectsReque bitField0_ |= 0x00000002; onChanged(); } + if (other.hasFieldFilter()) { + mergeFieldFilter(other.getFieldFilter()); + } switch (other.getDestinationCase()) { case GCS_DESTINATION: { @@ -1618,6 +3882,13 @@ public Builder mergeFrom( destinationCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + internalGetFieldFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2039,6 +4310,282 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter fieldFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder> + fieldFilterBuilder_; + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + public boolean hasFieldFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter getFieldFilter() { + if (fieldFilterBuilder_ == null) { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } else { + return fieldFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFieldFilter( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldFilter_ = value; + } else { + fieldFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFieldFilter( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder + builderForValue) { + if (fieldFilterBuilder_ == null) { + fieldFilter_ = builderForValue.build(); + } else { + fieldFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFieldFilter( + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && fieldFilter_ != null + && fieldFilter_ + != com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance()) { + getFieldFilterBuilder().mergeFrom(value); + } else { + fieldFilter_ = value; + } + } else { + fieldFilterBuilder_.mergeFrom(value); + } + if (fieldFilter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFieldFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + fieldFilter_ = null; + if (fieldFilterBuilder_ != null) { + fieldFilterBuilder_.dispose(); + fieldFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder + getFieldFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetFieldFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + if (fieldFilterBuilder_ != null) { + return fieldFilterBuilder_.getMessageOrBuilder(); + } else { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder> + internalGetFieldFilterFieldBuilder() { + if (fieldFilterBuilder_ == null) { + fieldFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder>( + getFieldFilter(), getParentForChildren(), isClean()); + fieldFilter_ = null; + } + return fieldFilterBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1.ExportDataObjectsRequest) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequestOrBuilder.java index dfcb6e0a89b0..998ceddd9b19 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/ExportDataObjectsRequestOrBuilder.java @@ -105,5 +105,67 @@ public interface ExportDataObjectsRequestOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + boolean hasFieldFilter(); + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter getFieldFilter(); + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder(); + com.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.DestinationCase getDestinationCase(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearch.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearch.java index f80ba2d92c3c..268502ab0256 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearch.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearch.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -105,10 +105,10 @@ public java.lang.String getSearchText() { * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -135,10 +135,11 @@ public com.google.protobuf.ByteString getSearchTextBytes() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -150,10 +151,11 @@ public com.google.protobuf.ProtocolStringList getDataFieldNamesList() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -165,10 +167,11 @@ public int getDataFieldNamesCount() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -181,10 +184,11 @@ public java.lang.String getDataFieldNames(int index) { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. @@ -798,10 +802,10 @@ public Builder mergeFrom( * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -821,10 +825,10 @@ public java.lang.String getSearchText() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -844,10 +848,10 @@ public com.google.protobuf.ByteString getSearchTextBytes() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The searchText to set. * @return This builder for chaining. @@ -866,10 +870,10 @@ public Builder setSearchText(java.lang.String value) { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -884,10 +888,10 @@ public Builder clearSearchText() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for searchText to set. * @return This builder for chaining. @@ -917,10 +921,11 @@ private void ensureDataFieldNamesIsMutable() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -933,10 +938,11 @@ public com.google.protobuf.ProtocolStringList getDataFieldNamesList() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -948,10 +954,11 @@ public int getDataFieldNamesCount() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -964,10 +971,11 @@ public java.lang.String getDataFieldNames(int index) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. @@ -980,10 +988,11 @@ public com.google.protobuf.ByteString getDataFieldNamesBytes(int index) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The dataFieldNames to set. @@ -1004,10 +1013,11 @@ public Builder setDataFieldNames(int index, java.lang.String value) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dataFieldNames to add. * @return This builder for chaining. @@ -1027,10 +1037,11 @@ public Builder addDataFieldNames(java.lang.String value) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The dataFieldNames to add. * @return This builder for chaining. @@ -1047,10 +1058,11 @@ public Builder addAllDataFieldNames(java.lang.Iterable values) * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1066,10 +1078,11 @@ public Builder clearDataFieldNames() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the dataFieldNames to add. * @return This builder for chaining. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearchOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearchOrBuilder.java index eb4a22fc40d8..3c8d8a7b225d 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearchOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/TextSearchOrBuilder.java @@ -30,10 +30,10 @@ public interface TextSearchOrBuilder * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -43,10 +43,10 @@ public interface TextSearchOrBuilder * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -56,10 +56,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -69,10 +70,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -82,10 +84,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -96,10 +99,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java index 6b18e7d9f58a..ec1ecc89dec9 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceProto.java @@ -148,6 +148,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_GcsExportDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -250,16 +258,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022A\n\n" + "collection\030\002" + " \001(\0132(.google.cloud.vectorsearch.v1.CollectionB\003\340A\002\022\037\n\n" - + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"x\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\214\001\n" + "\027DeleteCollectionRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\240\006\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\240\006\n" + "\005Index\022^\n" - + "\030dedicated_infrastructure\030\013" - + " \001(\01325.google.cloud.vectorsearch.v1.DedicatedInfrastructureB\003\340A\001H\000\022I\n" - + "\013dense_scann\030\014" - + " \001(\0132-.google.cloud.vectorsearch.v1.DenseScannIndexB\003\340A\001H\001\022\021\n" + + "\030dedicated_infrastructure\030\013 \001(\01325.goo" + + "gle.cloud.vectorsearch.v1.DedicatedInfrastructureB\003\340A\001H\000\022I\n" + + "\013dense_scann\030\014 \001(\0132-." + + "google.cloud.vectorsearch.v1.DenseScannIndexB\003\340A\001H\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022D\n" @@ -275,16 +284,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\211\001\352A\205\001\n" - + "!vectorsearch.googleapis.com/Index\022Pprojects/{project}/locations/{lo" - + "cation}/collections/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + + "!vectorsearch.googleapis.com/Index\022Pprojects/{p" + + "roject}/locations/{location}/collections" + + "/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + "infra_typeB\014\n\n" + "index_type\"\305\001\n" + "\022CreateIndexRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\025\n" + "\010index_id\030\002 \001(\tB\003\340A\002\0227\n" - + "\005index\030\003" - + " \001(\0132#.google.cloud.vectorsearch.v1.IndexB\003\340A\002\022\037\n\n" + + "\005index\030\003 \001(\0132#" + + ".google.cloud.vectorsearch.v1.IndexB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\244\001\n" + "\022UpdateIndexRequest\0227\n" + "\005index\030\001 \001(\0132#.google.cloud.vectorsearch.v1.IndexB\003\340A\002\0224\n" @@ -298,8 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ListIndexesRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!vectorsearch.googleapis.com/Index\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"d\n" @@ -318,8 +327,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\237\002\n" + "\030ImportDataObjectsRequest\022\\\n\n" - + "gcs_import\030\002 \001(\0132F.googl" - + "e.cloud.vectorsearch.v1.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + + "gcs_import\030\002 \001(\0132F.google.cloud.vectorsearc" + + "h.v1.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\032]\n" + "\017GcsImportConfig\022\031\n" @@ -334,29 +343,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "success_count\030\003 \001(\003B\003\340A\003\022\032\n\r" + "failure_count\030\004 \001(\003B\003\340A\003\"?\n" + "\031ImportDataObjectsResponse\022\"\n" - + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\227\003\n" + + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\220\006\n" + "\030ExportDataObjectsRequest\022f\n" - + "\017gcs_destination\030\002 \001(\0132K.google.clou" - + "d.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + + "\017gcs_destination\030\002 \001(\0132K.google.cloud.vectorsearch.v1.E" + + "xportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&vectorsearch.googleapis.com/Collection\032\305\001\n" + + "&vectorsearch.googleapis.com/Collection\022]\n" + + "\014field_filter\030\003 \001(\0132B.google.cloud.vectorsearch.v" + + "1.ExportDataObjectsRequest.FieldFilterB\003\340A\001\032\305\001\n" + "\024GcsExportDestination\022\027\n\n" + "export_uri\030\001 \001(\tB\003\340A\002\022g\n" - + "\006format\030\002 \001(\0162R.google.cloud.vectorsearch.v1.ExportDataObjec" - + "tsRequest.GcsExportDestination.FormatB\003\340A\002\"+\n" + + "\006format\030\002 \001(\0162R.google.cloud.vectorsearch.v1.ExportDataObjectsRe" + + "quest.GcsExportDestination.FormatB\003\340A\002\"+\n" + "\006Format\022\026\n" + "\022FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005JSONL\020\002B\r\n" + + "\005JSONL\020\002\032\227\002\n" + + "\013FieldFilter\022l\n" + + "\017included_fields\030\001 \001(\0132L.google.cloud.vectorsearch.v1.Expo" + + "rtDataObjectsRequest.FieldFilter.FieldListB\003\340A\001H\000\022l\n" + + "\017excluded_fields\030\002 \001(\0132L.google.cloud.vectorsearch.v1.ExportDataObje" + + "ctsRequest.FieldFilter.FieldListB\003\340A\001H\000\032 \n" + + "\tFieldList\022\023\n" + + "\006fields\030\001 \003(\tB\003\340A\002B\n\n" + + "\010selectorB\r\n" + "\013destination\"\207\001\n" + "\031ExportDataObjectsMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013finish_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\033\n" + "\031ExportDataObjectsResponse\"\377\002\n" + "\027DedicatedInfrastructure\022R\n" - + "\004mode\030\001 \001(\0162:.google" - + ".cloud.vectorsearch.v1.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022d\n" - + "\020autoscaling_spec\030\002 \001(\0132E.google.cloud.vectorsearch.v1.D" - + "edicatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + + "\004mode\030\001 \001(\0162:.google.c" + + "loud.vectorsearch.v1.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022d\n" + + "\020autoscaling_spec\030\002 \001(\0132E.google.cloud.vectorsearch.v1.Ded" + + "icatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + "\017AutoscalingSpec\022\036\n" + "\021min_replica_count\030\001 \001(\005B\003\340A\001\022\036\n" + "\021max_replica_count\030\002 \001(\005B\003\340A\001\"N\n" @@ -366,73 +385,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PERFORMANCE_OPTIMIZED\020\002B\007\n" + "\005_mode\"\302\001\n" + "\017DenseScannIndex\022]\n" - + "\021feature_norm_type\030\002 \001(\0162=.google.cloud.ve" - + "ctorsearch.v1.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + + "\021feature_norm_type\030\002 \001(\0162=.google.cloud.vect" + + "orsearch.v1.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + "\017FeatureNormType\022!\n" + "\035FEATURE_NORM_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\020\n" + "\014UNIT_L2_NORM\020\0022\215\025\n" + "\023VectorSearchService\022\300\001\n" - + "\017ListCollections\0224.google.cloud.vectorse" - + "arch.v1.ListCollectionsRequest\0325.google.cloud.vectorsearch.v1.ListCollectionsRes" - + "ponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/collections\022\255\001\n\r" - + "GetCollection\0222.google.cloud.vectorsearch.v1" - + ".GetCollectionRequest\032(.google.cloud.vec" - + "torsearch.v1.Collection\">\332A\004name\202\323\344\223\0021\022/" - + "/v1/{name=projects/*/locations/*/collections/*}\022\362\001\n" - + "\020CreateCollection\0225.google.cloud.vectorsearch.v1.CreateCollectionRequ" - + "est\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\037parent" - + ",collection,collection_id\202\323\344\223\002=\"//v1/{pa" - + "rent=projects/*/locations/*}/collections:\n" + + "\017ListCollections\0224.google.cloud.vectorsear" + + "ch.v1.ListCollectionsRequest\0325.google.cloud.vectorsearch.v1.ListCollectionsRespo" + + "nse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/collections\022\255\001\n\r" + + "GetCollection\0222.google.cloud.vectorsearch.v1.G" + + "etCollectionRequest\032(.google.cloud.vecto" + + "rsearch.v1.Collection\">\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/collections/*}\022\362\001\n" + + "\020CreateCollection\0225.google.clou" + + "d.vectorsearch.v1.CreateCollectionRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\037parent,c" + + "ollection,collection_id\202\323\344\223\002=\"//v1/{parent=projects/*/locations/*}/collections:\n" + "collection\022\364\001\n" - + "\020UpdateCollection\0225.google.cloud.vectorsearch.v1.UpdateCollectio" - + "nRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\026c" - + "ollection,update_mask\202\323\344\223\002H2:/v1/{collec" - + "tion.name=projects/*/locations/*/collections/*}:\n" + + "\020UpdateCollection\0225.google.cloud.vectorsearch.v1.UpdateCollectionR" + + "equest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\026col" + + "lection,update_mask\202\323\344\223\002H2:/v1/{collecti" + + "on.name=projects/*/locations/*/collections/*}:\n" + "collection\022\325\001\n" - + "\020DeleteCollection\0225.google.cloud.vectorsearch.v1.DeleteCo" - + "llectionRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/collections/*}\022\276\001\n" - + "\013ListIndexes\0220.google.cloud.vectorsearch." - + "v1.ListIndexesRequest\0321.google.cloud.vec" - + "torsearch.v1.ListIndexesResponse\"J\332A\006par" - + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/collections/*}/indexes\022\250\001\n" - + "\010GetIndex\022-.google.cloud.vectorsearch.v1.GetInde" - + "xRequest\032#.google.cloud.vectorsearch.v1." - + "Index\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" - + "/*/locations/*/collections/*/indexes/*}\022\335\001\n" - + "\013CreateIndex\0220.google.cloud.vectorsea" - + "rch.v1.CreateIndexRequest\032\035.google.longrunning.Operation\"}\312A\032\n" - + "\005Index\022\021OperationM" - + "etadata\332A\025parent,index,index_id\202\323\344\223\002B\"9/" - + "v1/{parent=projects/*/locations/*/collections/*}/indexes:\005index\022\337\001\n" - + "\013UpdateIndex\0220.google.cloud.vectorsearch.v1.UpdateInd" - + "exRequest\032\035.google.longrunning.Operation\"\177\312A\032\n" - + "\005Index\022\021OperationMetadata\332A\021index," - + "update_mask\202\323\344\223\002H2?/v1/{index.name=proje" - + "cts/*/locations/*/collections/*/indexes/*}:\005index\022\325\001\n" - + "\013DeleteIndex\0220.google.cloud" - + ".vectorsearch.v1.DeleteIndexRequest\032\035.google.longrunning.Operation\"u\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002;*9/v1/{name=projects/*/locations/*/collections/*/indexes/*}\022\362\001\n" - + "\021ImportDataObjects\0226.google.cloud.vectorsearch.v1.I" - + "mportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" - + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata\202\323\344\223\002F" - + "\"A/v1/{name=projects/*/locations/*/collections/*}:importDataObjects:\001*\022\362\001\n" - + "\021ExportDataObjects\0226.google.cloud.vectorsearch" - + ".v1.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" - + "\031ExportDataObjectsResponse\022\031ExportDataObjectsMetadata\202" - + "\323\344\223\002F\"A/v1/{name=projects/*/locations/*/" - + "collections/*}:exportDataObjects:\001*\032O\312A\033" - + "vectorsearch.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" - + " com.google.cloud.vectorsearch.v1B\030VectorSearchServiceProtoP\001ZDcloud.google.com/" - + "go/vectorsearch/apiv1/vectorsearchpb;vec" - + "torsearchpb\252\002\034Google.Cloud.VectorSearch." - + "V1\312\002\034Google\\Cloud\\VectorSearch\\V1\352\002\037Goog" - + "le::Cloud::VectorSearch::V1b\006proto3" + + "\020DeleteCollection\0225.google.cloud.vectorsearch.v1.DeleteColl" + + "ectionRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/collections/*}\022\276\001\n" + + "\013ListIndexes\0220.google.cloud.vectorsearch.v1" + + ".ListIndexesRequest\0321.google.cloud.vecto" + + "rsearch.v1.ListIndexesResponse\"J\332A\006paren" + + "t\202\323\344\223\002;\0229/v1/{parent=projects/*/locations/*/collections/*}/indexes\022\250\001\n" + + "\010GetIndex\022-.google.cloud.vectorsearch.v1.GetIndexR" + + "equest\032#.google.cloud.vectorsearch.v1.In" + + "dex\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*" + + "/locations/*/collections/*/indexes/*}\022\335\001\n" + + "\013CreateIndex\0220.google.cloud.vectorsearc" + + "h.v1.CreateIndexRequest\032\035.google.longrunning.Operation\"}\312A\032\n" + + "\005Index\022\021OperationMet" + + "adata\332A\025parent,index,index_id\202\323\344\223\002B\"9/v1" + + "/{parent=projects/*/locations/*/collections/*}/indexes:\005index\022\337\001\n" + + "\013UpdateIndex\0220.google.cloud.vectorsearch.v1.UpdateIndex" + + "Request\032\035.google.longrunning.Operation\"\177\312A\032\n" + + "\005Index\022\021OperationMetadata\332A\021index,up" + + "date_mask\202\323\344\223\002H2?/v1/{index.name=project" + + "s/*/locations/*/collections/*/indexes/*}:\005index\022\325\001\n" + + "\013DeleteIndex\0220.google.cloud.v" + + "ectorsearch.v1.DeleteIndexRequest\032\035.google.longrunning.Operation\"u\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\002;*9/v1/{name=projects/*/locations/*/collections/*/indexes/*}\022\362\001\n" + + "\021ImportDataObjects\0226.google.cloud.vectorsearch.v1.Imp" + + "ortDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" + + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata\202\323\344\223\002F\"A" + + "/v1/{name=projects/*/locations/*/collections/*}:importDataObjects:\001*\022\362\001\n" + + "\021ExportDataObjects\0226.google.cloud.vectorsearch.v" + + "1.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\205\001\312A6\n" + + "\031ExportDataObjectsResponse\022\031ExportDataObjectsMetadata\202\323\344" + + "\223\002F\"A/v1/{name=projects/*/locations/*/co" + + "llections/*}:exportDataObjects:\001*\032O\312A\033ve" + + "ctorsearch.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" + + " com.google.cloud.vectorsearch.v1B\030VectorS" + + "earchServiceProtoP\001ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vecto" + + "rsearchpb\252\002\034Google.Cloud.VectorSearch.V1" + + "\312\002\034Google\\Cloud\\VectorSearch\\V1\352\002\037Google" + + "::Cloud::VectorSearch::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -553,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_DeleteCollectionRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "Force", }); internal_static_google_cloud_vectorsearch_v1_Index_descriptor = getDescriptor().getMessageType(10); @@ -685,7 +703,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_descriptor, new java.lang.String[] { - "GcsDestination", "Name", "Destination", + "GcsDestination", "Name", "FieldFilter", "Destination", }); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_GcsExportDestination_descriptor = internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_descriptor @@ -696,6 +714,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExportUri", "Format", }); + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor = + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_descriptor + .getNestedType(1); + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor, + new java.lang.String[] { + "IncludedFields", "ExcludedFields", "Selector", + }); + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor = + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_descriptor + .getNestedType(0); + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor, + new java.lang.String[] { + "Fields", + }); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_descriptor = getDescriptor().getMessageType(22); internal_static_google_cloud_vectorsearch_v1_ExportDataObjectsMetadata_fieldAccessorTable = diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto index f73098c58eb8..072888320f1b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/data_object_search_service.proto @@ -207,11 +207,12 @@ message SemanticSearch { // Defines a text search operation. message TextSearch { - // Required. The query text. - string search_text = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The query text. Required when using the default text search mode. + string search_text = 1 [(google.api.field_behavior) = OPTIONAL]; - // Required. The data field names to search. - repeated string data_field_names = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. The data field names to search. Required when using the default + // text search mode. + repeated string data_field_names = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The fields to return in the search results. OutputFields output_fields = 3 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto index 1b06744e6d1b..6b0d76512455 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/proto/google/cloud/vectorsearch/v1/vectorsearch_service.proto @@ -424,6 +424,11 @@ message DeleteCollectionRequest { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. If set to true, any Indexes and DataObjects from this Collection + // will also be deleted. (Otherwise, the request will only work if the + // Collection has no Indexes and DataObjects.) + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; } // Message describing Index object @@ -755,6 +760,29 @@ message ExportDataObjectsRequest { Format format = 2 [(google.api.field_behavior) = REQUIRED]; } + // Selects which top-level Data Object fields are emitted at export time. + message FieldFilter { + // Wrapper for a repeated string. Wrapping in a message lets the + // surrounding `oneof` distinguish "field set to an empty list" (which is + // rejected as INVALID_ARGUMENT) from "field not set". + message FieldList { + // Required. The list of top-level Data Object JSON field names. Allowed + // values are `id`, `data`, `vectors`, `etag`. + repeated string fields = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Exactly one of `included_fields` or `excluded_fields` must be set. + oneof selector { + // Optional. Only these top-level fields will appear in each exported + // record. + FieldList included_fields = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Every top-level field except these will appear in each + // exported record. + FieldList excluded_fields = 2 [(google.api.field_behavior) = OPTIONAL]; + } + } + // The configuration for the export data. oneof destination { // The Cloud Storage location where user wants to export Data Objects. @@ -770,6 +798,15 @@ message ExportDataObjectsRequest { type: "vectorsearch.googleapis.com/Collection" } ]; + + // Optional. Restricts which top-level Data Object fields appear in each + // exported JSONL record. If unset, every field is exported (the existing + // behavior). The primary use case is excluding the per-object `etag` so + // that the exported records can be imported into a Collection in a + // different region without optimistic-concurrency conflicts. + // + // Allowed field names are `id`, `data`, `vectors`, `etag`. + FieldFilter field_filter = 3 [(google.api.field_behavior) = OPTIONAL]; } // Metadata for the ExportDataObjects LRO. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java index 58b879e0184d..edf27c28f1f4 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceProto.java @@ -217,8 +217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.cloud.vectorsearch.v1beta.SearchHintB\003\340A\001B\010\n" + "\006_top_k\"\342\001\n\n" + "TextSearch\022\030\n" - + "\013search_text\030\001 \001(\tB\003\340A\002\022\035\n" - + "\020data_field_names\030\002 \003(\tB\003\340A\002\022J\n\r" + + "\013search_text\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020data_field_names\030\002 \003(\tB\003\340A\001\022J\n\r" + "output_fields\030\003" + " \001(\0132..google.cloud.vectorsearch.v1beta.OutputFieldsB\003\340A\001\022\027\n" + "\005top_k\030\004 \001(\005B\003\340A\001H\000\210\001\001\022,\n" diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequest.java index 5ef2c8638773..4b30be6f1205 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequest.java @@ -209,6 +209,27 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, any Indexes and DataObjects from this Collection
+   * will also be deleted. (Otherwise, the request will only work if the
+   * Collection has no Indexes and DataObjects.)
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -229,6 +250,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } + if (force_ != false) { + output.writeBool(3, force_); + } getUnknownFields().writeTo(output); } @@ -244,6 +268,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,6 +305,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -420,6 +450,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + force_ = false; return this; } @@ -464,6 +495,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } } @java.lang.Override @@ -490,6 +524,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.DeleteCollectionRe bitField0_ |= 0x00000002; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -528,6 +565,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -849,6 +892,68 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any Indexes and DataObjects from this Collection
+     * will also be deleted. (Otherwise, the request will only work if the
+     * Collection has no Indexes and DataObjects.)
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.DeleteCollectionRequest) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequestOrBuilder.java index d203140eeaf1..c7027f9ba04b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DeleteCollectionRequestOrBuilder.java @@ -109,4 +109,19 @@ public interface DeleteCollectionRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, any Indexes and DataObjects from this Collection
+   * will also be deleted. (Otherwise, the request will only work if the
+   * Collection has no Indexes and DataObjects.)
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java index 0a9ad7b4f4a4..8d998ce4f2ee 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequest.java @@ -1120,6 +1120,2201 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface FieldFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + boolean hasIncludedFields(); + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields(); + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getIncludedFieldsOrBuilder(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + boolean hasExcludedFields(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields(); + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldListOrBuilder + getExcludedFieldsOrBuilder(); + + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.SelectorCase + getSelectorCase(); + } + + /** + * + * + *
+   * Selects which top-level Data Object fields are emitted at export time.
+   * 
+ * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter} + */ + public static final class FieldFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) + FieldFilterOrBuilder { + 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= */ "", + "FieldFilter"); + } + + // Use FieldFilter.newBuilder() to construct. + private FieldFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FieldFilter() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder + .class); + } + + public interface FieldListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + java.util.List getFieldsList(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + int getFieldsCount(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + java.lang.String getFields(int index); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + com.google.protobuf.ByteString getFieldsBytes(int index); + } + + /** + * + * + *
+     * Wrapper for a repeated string. Wrapping in a message lets the
+     * surrounding `oneof` distinguish "field set to an empty list" (which is
+     * rejected as INVALID_ARGUMENT) from "field not set".
+     * 
+ * + * Protobuf type {@code + * google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList} + */ + public static final class FieldList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + FieldListOrBuilder { + 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= */ "", + "FieldList"); + } + + // Use FieldList.newBuilder() to construct. + private FieldList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FieldList() { + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList getFieldsList() { + return fields_; + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
+       * Required. The list of top-level Data Object JSON field names. Allowed
+       * values are `id`, `data`, `vectors`, `etag`.
+       * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString getFieldsBytes(int index) { + return fields_.getByteString(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 { + for (int i = 0; i < fields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fields_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < fields_.size(); i++) { + dataSize += computeStringSizeNoTag(fields_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsList().size(); + } + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + obj; + + if (!getFieldsList().equals(other.getFieldsList())) 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 (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + 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; + } + + /** + * + * + *
+       * Wrapper for a repeated string. Wrapping in a message lets the
+       * surrounding `oneof` distinguish "field set to an empty list" (which is
+       * rejected as INVALID_ARGUMENT) from "field not set".
+       * 
+ * + * Protobuf type {@code + * google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.Builder.class); + } + + // Construct using + // com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fields_.makeImmutable(); + result.fields_ = fields_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) { + return mergeFrom( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance()) return this; + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ |= 0x00000001; + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFieldsIsMutable() { + if (!fields_.isModifiable()) { + fields_ = new com.google.protobuf.LazyStringArrayList(fields_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList getFieldsList() { + fields_.makeImmutable(); + return fields_; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString getFieldsBytes(int index) { + return fields_.getByteString(index); + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The fields to set. + * @return This builder for chaining. + */ + public Builder setFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fields to add. + * @return This builder for chaining. + */ + public Builder addFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The fields to add. + * @return This builder for chaining. + */ + public Builder addAllFields(java.lang.Iterable values) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFields() { + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The list of top-level Data Object JSON field names. Allowed
+         * values are `id`, `data`, `vectors`, `etag`.
+         * 
+ * + * repeated string fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the fields to add. + * @return This builder for chaining. + */ + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int selectorCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object selector_; + + public enum SelectorCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INCLUDED_FIELDS(1), + EXCLUDED_FIELDS(2), + SELECTOR_NOT_SET(0); + private final int value; + + private SelectorCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SelectorCase valueOf(int value) { + return forNumber(value); + } + + public static SelectorCase forNumber(int value) { + switch (value) { + case 1: + return INCLUDED_FIELDS; + case 2: + return EXCLUDED_FIELDS; + case 0: + return SELECTOR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + public static final int INCLUDED_FIELDS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + @java.lang.Override + public boolean hasIncludedFields() { + return selectorCase_ == 1; + } + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields() { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Only these top-level fields will appear in each exported
+     * record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getIncludedFieldsOrBuilder() { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + public static final int EXCLUDED_FIELDS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + @java.lang.Override + public boolean hasExcludedFields() { + return selectorCase_ == 2; + } + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields() { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Every top-level field except these will appear in each
+     * exported record.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getExcludedFieldsOrBuilder() { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + + 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 (selectorCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + if (selectorCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList) + selector_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (selectorCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_); + } + if (selectorCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_); + } + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter)) { + return super.equals(obj); + } + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter other = + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) obj; + + if (!getSelectorCase().equals(other.getSelectorCase())) return false; + switch (selectorCase_) { + case 1: + if (!getIncludedFields().equals(other.getIncludedFields())) return false; + break; + case 2: + if (!getExcludedFields().equals(other.getExcludedFields())) return false; + break; + case 0: + default: + } + 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(); + switch (selectorCase_) { + case 1: + hash = (37 * hash) + INCLUDED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getIncludedFields().hashCode(); + break; + case 2: + hash = (37 * hash) + EXCLUDED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedFields().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + 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.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter 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; + } + + /** + * + * + *
+     * Selects which top-level Data Object fields are emitted at export time.
+     * 
+ * + * Protobuf type {@code google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.class, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder + .class); + } + + // Construct using + // com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (includedFieldsBuilder_ != null) { + includedFieldsBuilder_.clear(); + } + if (excludedFieldsBuilder_ != null) { + excludedFieldsBuilder_.clear(); + } + selectorCase_ = 0; + selector_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vectorsearch.v1beta.VectorSearchServiceProto + .internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + getDefaultInstanceForType() { + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter build() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + buildPartial() { + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter result = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter result) { + result.selectorCase_ = selectorCase_; + result.selector_ = this.selector_; + if (selectorCase_ == 1 && includedFieldsBuilder_ != null) { + result.selector_ = includedFieldsBuilder_.build(); + } + if (selectorCase_ == 2 && excludedFieldsBuilder_ != null) { + result.selector_ = excludedFieldsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) { + return mergeFrom( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter other) { + if (other + == com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance()) return this; + switch (other.getSelectorCase()) { + case INCLUDED_FIELDS: + { + mergeIncludedFields(other.getIncludedFields()); + break; + } + case EXCLUDED_FIELDS: + { + mergeExcludedFields(other.getExcludedFields()); + break; + } + case SELECTOR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetIncludedFieldsFieldBuilder().getBuilder(), extensionRegistry); + selectorCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExcludedFieldsFieldBuilder().getBuilder(), extensionRegistry); + selectorCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int selectorCase_ = 0; + private java.lang.Object selector_; + + public SelectorCase getSelectorCase() { + return SelectorCase.forNumber(selectorCase_); + } + + public Builder clearSelector() { + selectorCase_ = 0; + selector_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + includedFieldsBuilder_; + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the includedFields field is set. + */ + @java.lang.Override + public boolean hasIncludedFields() { + return selectorCase_ == 1; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The includedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getIncludedFields() { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } else { + if (selectorCase_ == 1) { + return includedFieldsBuilder_.getMessage(); + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + value) { + if (includedFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selector_ = value; + onChanged(); + } else { + includedFieldsBuilder_.setMessage(value); + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder + builderForValue) { + if (includedFieldsBuilder_ == null) { + selector_ = builderForValue.build(); + onChanged(); + } else { + includedFieldsBuilder_.setMessage(builderForValue.build()); + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + value) { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1 + && selector_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.getDefaultInstance()) { + selector_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .newBuilder( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_) + .mergeFrom(value) + .buildPartial(); + } else { + selector_ = value; + } + onChanged(); + } else { + if (selectorCase_ == 1) { + includedFieldsBuilder_.mergeFrom(value); + } else { + includedFieldsBuilder_.setMessage(value); + } + } + selectorCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludedFields() { + if (includedFieldsBuilder_ == null) { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + onChanged(); + } + } else { + if (selectorCase_ == 1) { + selectorCase_ = 0; + selector_ = null; + } + includedFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder + getIncludedFieldsBuilder() { + return internalGetIncludedFieldsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getIncludedFieldsOrBuilder() { + if ((selectorCase_ == 1) && (includedFieldsBuilder_ != null)) { + return includedFieldsBuilder_.getMessageOrBuilder(); + } else { + if (selectorCase_ == 1) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Only these top-level fields will appear in each exported
+       * record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList included_fields = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + internalGetIncludedFieldsFieldBuilder() { + if (includedFieldsBuilder_ == null) { + if (!(selectorCase_ == 1)) { + selector_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + includedFieldsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder>( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_, + getParentForChildren(), + isClean()); + selector_ = null; + } + selectorCase_ = 1; + onChanged(); + return includedFieldsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + excludedFieldsBuilder_; + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the excludedFields field is set. + */ + @java.lang.Override + public boolean hasExcludedFields() { + return selectorCase_ == 2; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The excludedFields. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + getExcludedFields() { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } else { + if (selectorCase_ == 2) { + return excludedFieldsBuilder_.getMessage(); + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + value) { + if (excludedFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selector_ = value; + onChanged(); + } else { + excludedFieldsBuilder_.setMessage(value); + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder + builderForValue) { + if (excludedFieldsBuilder_ == null) { + selector_ = builderForValue.build(); + onChanged(); + } else { + excludedFieldsBuilder_.setMessage(builderForValue.build()); + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExcludedFields( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + value) { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2 + && selector_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.getDefaultInstance()) { + selector_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .newBuilder( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_) + .mergeFrom(value) + .buildPartial(); + } else { + selector_ = value; + } + onChanged(); + } else { + if (selectorCase_ == 2) { + excludedFieldsBuilder_.mergeFrom(value); + } else { + excludedFieldsBuilder_.setMessage(value); + } + } + selectorCase_ = 2; + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludedFields() { + if (excludedFieldsBuilder_ == null) { + if (selectorCase_ == 2) { + selectorCase_ = 0; + selector_ = null; + onChanged(); + } + } else { + if (selectorCase_ == 2) { + selectorCase_ = 0; + selector_ = null; + } + excludedFieldsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder + getExcludedFieldsBuilder() { + return internalGetExcludedFieldsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder + getExcludedFieldsOrBuilder() { + if ((selectorCase_ == 2) && (excludedFieldsBuilder_ != null)) { + return excludedFieldsBuilder_.getMessageOrBuilder(); + } else { + if (selectorCase_ == 2) { + return (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_; + } + return com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Every top-level field except these will appear in each
+       * exported record.
+       * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList excluded_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder> + internalGetExcludedFieldsFieldBuilder() { + if (excludedFieldsBuilder_ == null) { + if (!(selectorCase_ == 2)) { + selector_ = + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.FieldList + .getDefaultInstance(); + } + excludedFieldsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList.Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldListOrBuilder>( + (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .FieldList) + selector_, + getParentForChildren(), + isClean()); + selector_ = null; + } + selectorCase_ = 2; + onChanged(); + return excludedFieldsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter) + private static final com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter(); + } + + public static com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int destinationCase_ = 0; @SuppressWarnings("serial") @@ -1294,6 +3489,87 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int FIELD_FILTER_FIELD_NUMBER = 3; + private com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter fieldFilter_; + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + @java.lang.Override + public boolean hasFieldFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + getFieldFilter() { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1317,6 +3593,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) destination_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFieldFilter()); + } getUnknownFields().writeTo(output); } @@ -1336,6 +3615,9 @@ public int getSerializedSize() { (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) destination_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFieldFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1353,6 +3635,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) obj; if (!getName().equals(other.getName())) return false; + if (hasFieldFilter() != other.hasFieldFilter()) return false; + if (hasFieldFilter()) { + if (!getFieldFilter().equals(other.getFieldFilter())) return false; + } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: @@ -1374,6 +3660,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasFieldFilter()) { + hash = (37 * hash) + FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFieldFilter().hashCode(); + } switch (destinationCase_) { case 2: hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; @@ -1514,10 +3804,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFieldFilterFieldBuilder(); + } } @java.lang.Override @@ -1528,6 +3827,11 @@ public Builder clear() { gcsDestinationBuilder_.clear(); } name_ = ""; + fieldFilter_ = null; + if (fieldFilterBuilder_ != null) { + fieldFilterBuilder_.dispose(); + fieldFilterBuilder_ = null; + } destinationCase_ = 0; destination_ = null; return this; @@ -1572,6 +3876,13 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldFilter_ = + fieldFilterBuilder_ == null ? fieldFilter_ : fieldFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -1602,6 +3913,9 @@ public Builder mergeFrom(com.google.cloud.vectorsearch.v1beta.ExportDataObjectsR bitField0_ |= 0x00000002; onChanged(); } + if (other.hasFieldFilter()) { + mergeFieldFilter(other.getFieldFilter()); + } switch (other.getDestinationCase()) { case GCS_DESTINATION: { @@ -1652,6 +3966,13 @@ public Builder mergeFrom( destinationCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + internalGetFieldFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2081,6 +4402,283 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter fieldFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder> + fieldFilterBuilder_; + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + public boolean hasFieldFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + getFieldFilter() { + if (fieldFilterBuilder_ == null) { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } else { + return fieldFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFieldFilter( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldFilter_ = value; + } else { + fieldFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFieldFilter( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder + builderForValue) { + if (fieldFilterBuilder_ == null) { + fieldFilter_ = builderForValue.build(); + } else { + fieldFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFieldFilter( + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter value) { + if (fieldFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && fieldFilter_ != null + && fieldFilter_ + != com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance()) { + getFieldFilterBuilder().mergeFrom(value); + } else { + fieldFilter_ = value; + } + } else { + fieldFilterBuilder_.mergeFrom(value); + } + if (fieldFilter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFieldFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + fieldFilter_ = null; + if (fieldFilterBuilder_ != null) { + fieldFilterBuilder_.dispose(); + fieldFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder + getFieldFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetFieldFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder() { + if (fieldFilterBuilder_ != null) { + return fieldFilterBuilder_.getMessageOrBuilder(); + } else { + return fieldFilter_ == null + ? com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter + .getDefaultInstance() + : fieldFilter_; + } + } + + /** + * + * + *
+     * Optional. Restricts which top-level Data Object fields appear in each
+     * exported JSONL record. If unset, every field is exported (the existing
+     * behavior). The primary use case is excluding the per-object `etag` so
+     * that the exported records can be imported into a Collection in a
+     * different region without optimistic-concurrency conflicts.
+     *
+     * Allowed field names are `id`, `data`, `vectors`, `etag`.
+     * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder> + internalGetFieldFilterFieldBuilder() { + if (fieldFilterBuilder_ == null) { + fieldFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter.Builder, + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder>( + getFieldFilter(), getParentForChildren(), isClean()); + fieldFilter_ = null; + } + return fieldFilterBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java index 32ef0f98a062..dc35fbc6bbf7 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/ExportDataObjectsRequestOrBuilder.java @@ -105,6 +105,68 @@ public interface ExportDataObjectsRequestOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fieldFilter field is set. + */ + boolean hasFieldFilter(); + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fieldFilter. + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter getFieldFilter(); + + /** + * + * + *
+   * Optional. Restricts which top-level Data Object fields appear in each
+   * exported JSONL record. If unset, every field is exported (the existing
+   * behavior). The primary use case is excluding the per-object `etag` so
+   * that the exported records can be imported into a Collection in a
+   * different region without optimistic-concurrency conflicts.
+   *
+   * Allowed field names are `id`, `data`, `vectors`, `etag`.
+   * 
+ * + * + * .google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilter field_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterOrBuilder + getFieldFilterOrBuilder(); + com.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.DestinationCase getDestinationCase(); } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java index ab5d84828e4a..b4e3c5eac29a 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearch.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -105,10 +105,10 @@ public java.lang.String getSearchText() { * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -135,10 +135,11 @@ public com.google.protobuf.ByteString getSearchTextBytes() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -150,10 +151,11 @@ public com.google.protobuf.ProtocolStringList getDataFieldNamesList() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -165,10 +167,11 @@ public int getDataFieldNamesCount() { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -181,10 +184,11 @@ public java.lang.String getDataFieldNames(int index) { * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. @@ -799,10 +803,10 @@ public Builder mergeFrom( * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -822,10 +826,10 @@ public java.lang.String getSearchText() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -845,10 +849,10 @@ public com.google.protobuf.ByteString getSearchTextBytes() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The searchText to set. * @return This builder for chaining. @@ -867,10 +871,10 @@ public Builder setSearchText(java.lang.String value) { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -885,10 +889,10 @@ public Builder clearSearchText() { * * *
-     * Required. The query text.
+     * Optional. The query text. Required when using the default text search mode.
      * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for searchText to set. * @return This builder for chaining. @@ -918,10 +922,11 @@ private void ensureDataFieldNamesIsMutable() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -934,10 +939,11 @@ public com.google.protobuf.ProtocolStringList getDataFieldNamesList() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -949,10 +955,11 @@ public int getDataFieldNamesCount() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -965,10 +972,11 @@ public java.lang.String getDataFieldNames(int index) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. @@ -981,10 +989,11 @@ public com.google.protobuf.ByteString getDataFieldNamesBytes(int index) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The dataFieldNames to set. @@ -1005,10 +1014,11 @@ public Builder setDataFieldNames(int index, java.lang.String value) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dataFieldNames to add. * @return This builder for chaining. @@ -1028,10 +1038,11 @@ public Builder addDataFieldNames(java.lang.String value) { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The dataFieldNames to add. * @return This builder for chaining. @@ -1048,10 +1059,11 @@ public Builder addAllDataFieldNames(java.lang.Iterable values) * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1067,10 +1079,11 @@ public Builder clearDataFieldNames() { * * *
-     * Required. The data field names to search.
+     * Optional. The data field names to search. Required when using the default
+     * text search mode.
      * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the dataFieldNames to add. * @return This builder for chaining. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java index 058f318eab01..5c6ae455e603 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/TextSearchOrBuilder.java @@ -30,10 +30,10 @@ public interface TextSearchOrBuilder * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchText. */ @@ -43,10 +43,10 @@ public interface TextSearchOrBuilder * * *
-   * Required. The query text.
+   * Optional. The query text. Required when using the default text search mode.
    * 
* - * string search_text = 1 [(.google.api.field_behavior) = REQUIRED]; + * string search_text = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchText. */ @@ -56,10 +56,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataFieldNames. */ @@ -69,10 +70,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataFieldNames. */ @@ -82,10 +84,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataFieldNames at the given index. @@ -96,10 +99,11 @@ public interface TextSearchOrBuilder * * *
-   * Required. The data field names to search.
+   * Optional. The data field names to search. Required when using the default
+   * text search mode.
    * 
* - * repeated string data_field_names = 2 [(.google.api.field_behavior) = REQUIRED]; + * repeated string data_field_names = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataFieldNames at the given index. diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java index 891b9cec6458..b3921c54551b 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceProto.java @@ -148,6 +148,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -253,16 +261,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022E\n\n" + "collection\030\002 \001(\0132,.google" + ".cloud.vectorsearch.v1beta.CollectionB\003\340A\002\022\037\n\n" - + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"x\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\214\001\n" + "\027DeleteCollectionRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\006\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\260\006\n" + "\005Index\022b\n" - + "\030dedicated_infrastructure\030\013 \001(" - + "\01329.google.cloud.vectorsearch.v1beta.DedicatedInfrastructureB\003\340A\001H\000\022M\n" - + "\013dense_scann\030\014" - + " \001(\01321.google.cloud.vectorsearch.v1beta.DenseScannIndexB\003\340A\001H\001\022\021\n" + + "\030dedicated_infrastructure\030\013 \001(\01329.google.cloud.ve" + + "ctorsearch.v1beta.DedicatedInfrastructureB\003\340A\001H\000\022M\n" + + "\013dense_scann\030\014 \001(\01321.google.c" + + "loud.vectorsearch.v1beta.DenseScannIndexB\003\340A\001H\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022H\n" @@ -270,28 +279,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01323.google.cloud.vectorsearch.v1beta.Index.LabelsEntryB\003\340A\001\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" - + "\017distance_metric\030\004 \001(\01620.google.cloud" - + ".vectorsearch.v1beta.DistanceMetricB\003\340A\001\022\030\n" + + "\017distance_metric\030\004" + + " \001(\01620.google.cloud.vectorsearch.v1beta.DistanceMetricB\003\340A\001\022\030\n" + "\013index_field\030\005 \001(\tB\003\340A\002\022\032\n\r" + "filter_fields\030\006 \003(\tB\003\340A\001\022\031\n" + "\014store_fields\030\007 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\211\001\352A\205\001\n" - + "!vectorsearch.googleapis.com/Index\022Pprojects/{project}/locations" - + "/{location}/collections/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + + "!vectorsearch.googleapis.com/Index\022Pprojects/{project}/locations/{location}/collect" + + "ions/{collection}/indexes/{index}*\007indexes2\005indexB\014\n\n" + "infra_typeB\014\n\n" + "index_type\"\311\001\n" + "\022CreateIndexRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\022\025\n" + "\010index_id\030\002 \001(\tB\003\340A\002\022;\n" - + "\005index\030\003" - + " \001(\0132\'.google.cloud.vectorsearch.v1beta.IndexB\003\340A\002\022\037\n\n" + + "\005index\030\003 \001" + + "(\0132\'.google.cloud.vectorsearch.v1beta.IndexB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\250\001\n" + "\022UpdateIndexRequest\022;\n" - + "\005index\030\001" - + " \001(\0132\'.google.cloud.vectorsearch.v1beta.IndexB\003\340A\002\0224\n" + + "\005index\030\001 \001(\0132" + + "\'.google.cloud.vectorsearch.v1beta.IndexB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"n\n" @@ -321,8 +330,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\243\002\n" + "\030ImportDataObjectsRequest\022`\n\n" - + "gcs_import\030\002 \001(\0132J.google.cloud.vectorsearch.v1b" - + "eta.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + + "gcs_import\030\002 \001(\0132J.google.c" + + "loud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfigH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vectorsearch.googleapis.com/Collection\032]\n" + "\017GcsImportConfig\022\031\n" @@ -337,12 +346,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "success_count\030\003 \001(\003B\003\340A\003\022\032\n\r" + "failure_count\030\004 \001(\003B\003\340A\003\"?\n" + "\031ImportDataObjectsResponse\022\"\n" - + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\255\003\n" + + "\006status\030\001 \001(\0132\022.google.rpc.Status\"\262\006\n" + "\030ExportDataObjectsRequest\022j\n" - + "\017gcs_destination\030\002 \001(\0132O.google.cloud.vectorsearch.v1bet" - + "a.ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + + "\017gcs_destination\030\002 \001(\0132O.google.clo" + + "ud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestinationH\000\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&vectorsearch.googleapis.com/Collection\032\327\001\n" + + "&vectorsearch.googleapis.com/Collection\022a\n" + + "\014field_filter\030\003 \001(\0132F.goo" + + "gle.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.FieldFilterB\003\340A\001\032\327\001\n" + "\024GcsExportDestination\022\027\n\n" + "export_uri\030\001 \001(\tB\003\340A\002\022k\n" + "\006format\030\002 \001(\0162V.google.cloud.vectors" @@ -350,17 +361,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Format\022\026\n" + "\022FORMAT_UNSPECIFIED\020\000\022\014\n" + "\004JSON\020\001\032\002\010\001\022\t\n" - + "\005JSONL\020\002B\r\n" + + "\005JSONL\020\002\032\237\002\n" + + "\013FieldFilter\022p\n" + + "\017included_fields\030\001 \001(\0132P.google.cloud.vectorsearch.v" + + "1beta.ExportDataObjectsRequest.FieldFilter.FieldListB\003\340A\001H\000\022p\n" + + "\017excluded_fields\030\002 \001(\0132P.google.cloud.vectorsearch.v1beta." + + "ExportDataObjectsRequest.FieldFilter.FieldListB\003\340A\001H\000\032 \n" + + "\tFieldList\022\023\n" + + "\006fields\030\001 \003(\tB\003\340A\002B\n\n" + + "\010selectorB\r\n" + "\013destination\"\207\001\n" + "\031ExportDataObjectsMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013finish_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\033\n" + "\031ExportDataObjectsResponse\"\207\003\n" + "\027DedicatedInfrastructure\022V\n" - + "\004mode\030\001 \001(\0162>.goog" - + "le.cloud.vectorsearch.v1beta.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022h\n" - + "\020autoscaling_spec\030\002 \001(\0132I.google.cloud.vectorsearc" - + "h.v1beta.DedicatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + + "\004mode\030\001 " + + "\001(\0162>.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.ModeB\003\340A\001H\000\210\001\001\022h\n" + + "\020autoscaling_spec\030\002 \001(\0132I.google.cloud.v" + + "ectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpecB\003\340A\001\032Q\n" + "\017AutoscalingSpec\022\036\n" + "\021min_replica_count\030\001 \001(\005B\003\340A\001\022\036\n" + "\021max_replica_count\030\002 \001(\005B\003\340A\001\"N\n" @@ -370,75 +389,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PERFORMANCE_OPTIMIZED\020\002B\007\n" + "\005_mode\"\306\001\n" + "\017DenseScannIndex\022a\n" - + "\021feature_norm_type\030\002 \001(\0162A.googl" - + "e.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + + "\021feature_norm_type\030\002 \001" + + "(\0162A.google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormTypeB\003\340A\001\"P\n" + "\017FeatureNormType\022!\n" + "\035FEATURE_NORM_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\020\n" + "\014UNIT_L2_NORM\020\0022\377\025\n" + "\023VectorSearchService\022\314\001\n" - + "\017ListCollections\0228.google.cloud.vectorsearch.v1beta.ListCollection" - + "sRequest\0329.google.cloud.vectorsearch.v1b" - + "eta.ListCollectionsResponse\"D\332A\006parent\202\323" - + "\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/collections\022\271\001\n\r" - + "GetCollection\0226.google.cloud.vectorsearch.v1beta.GetCollec" - + "tionRequest\032,.google.cloud.vectorsearch." - + "v1beta.Collection\"B\332A\004name\202\323\344\223\0025\0223/v1bet" - + "a/{name=projects/*/locations/*/collections/*}\022\372\001\n" - + "\020CreateCollection\0229.google.cloud.vectorsearch.v1beta.CreateCollectionRe" - + "quest\032\035.google.longrunning.Operation\"\213\001\312A\037\n\n" - + "Collection\022\021OperationMetadata\332A\037pare" - + "nt,collection,collection_id\202\323\344\223\002A\"3/v1be" - + "ta/{parent=projects/*/locations/*}/collections:\n" + + "\017ListCollections\0228.google.cloud.vectorsearch.v1beta.List" + + "CollectionsRequest\0329.google.cloud.vector" + + "search.v1beta.ListCollectionsResponse\"D\332" + + "A\006parent\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/collections\022\271\001\n\r" + + "GetCollection\0226.google.cloud.vectorsearch.v1beta" + + ".GetCollectionRequest\032,.google.cloud.vec" + + "torsearch.v1beta.Collection\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1beta/{name=projects/*/locations/*/collections/*}\022\372\001\n" + + "\020CreateCollection\0229.google.cloud.vectorsearch.v1beta.CreateCo" + + "llectionRequest\032\035.google.longrunning.Operation\"\213\001\312A\037\n\n" + + "Collection\022\021OperationMetad" + + "ata\332A\037parent,collection,collection_id\202\323\344" + + "\223\002A\"3/v1beta/{parent=projects/*/locations/*}/collections:\n" + "collection\022\374\001\n" - + "\020UpdateCollection\0229.google.cloud.vectorsearch.v1beta.Updat" - + "eCollectionRequest\032\035.google.longrunning.Operation\"\215\001\312A\037\n\n" - + "Collection\022\021OperationMe" - + "tadata\332A\026collection,update_mask\202\323\344\223\002L2>/" - + "v1beta/{collection.name=projects/*/locations/*/collections/*}:\n" + + "\020UpdateCollection\0229.google.cloud.vectorsearch.v1" + + "beta.UpdateCollectionRequest\032\035.google.longrunning.Operation\"\215\001\312A\037\n\n" + + "Collection\022\021OperationMetadata\332A\026collection,update_mas" + + "k\202\323\344\223\002L2>/v1beta/{collection.name=projects/*/locations/*/collections/*}:\n" + "collection\022\335\001\n" - + "\020DeleteCollection\0229.google.cloud.vectorsear" - + "ch.v1beta.DeleteCollectionRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\020DeleteCollection\0229.google.cloud." + + "vectorsearch.v1beta.DeleteCollectionRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\0025*3/v1beta/{name=projects/*/locations/*/collections/*}\022\312\001\n" + + "\013ListIndexes\0224.google.cloud.vectorsearch.v1beta.L" + + "istIndexesRequest\0325.google.cloud.vectors" + + "earch.v1beta.ListIndexesResponse\"N\332A\006par" + + "ent\202\323\344\223\002?\022=/v1beta/{parent=projects/*/locations/*/collections/*}/indexes\022\264\001\n" + + "\010GetIndex\0221.google.cloud.vectorsearch.v1beta" + + ".GetIndexRequest\032\'.google.cloud.vectorse" + + "arch.v1beta.Index\"L\332A\004name\202\323\344\223\002?\022=/v1bet" + + "a/{name=projects/*/locations/*/collections/*/indexes/*}\022\346\001\n" + + "\013CreateIndex\0224.google.cloud.vectorsearch.v1beta.CreateIndexRe" + + "quest\032\035.google.longrunning.Operation\"\201\001\312A\032\n" + + "\005Index\022\021OperationMetadata\332A\025parent,in" + + "dex,index_id\202\323\344\223\002F\"=/v1beta/{parent=proj" + + "ects/*/locations/*/collections/*}/indexes:\005index\022\350\001\n" + + "\013UpdateIndex\0224.google.cloud." + + "vectorsearch.v1beta.UpdateIndexRequest\032\035.google.longrunning.Operation\"\203\001\312A\032\n" + + "\005Index\022\021OperationMetadata\332A\021index,update_mas" + + "k\202\323\344\223\002L2C/v1beta/{index.name=projects/*/" + + "locations/*/collections/*/indexes/*}:\005index\022\335\001\n" + + "\013DeleteIndex\0224.google.cloud.vecto" + + "rsearch.v1beta.DeleteIndexRequest\032\035.google.longrunning.Operation\"y\312A*\n" + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323" - + "\344\223\0025*3/v1beta/{name=projects/*/locations/*/collections/*}\022\312\001\n" - + "\013ListIndexes\0224.google.cloud.vectorsearch.v1beta.ListIndexes" - + "Request\0325.google.cloud.vectorsearch.v1be" - + "ta.ListIndexesResponse\"N\332A\006parent\202\323\344\223\002?\022" - + "=/v1beta/{parent=projects/*/locations/*/collections/*}/indexes\022\264\001\n" - + "\010GetIndex\0221.google.cloud.vectorsearch.v1beta.GetIndexR" - + "equest\032\'.google.cloud.vectorsearch.v1bet" - + "a.Index\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{name=pr" - + "ojects/*/locations/*/collections/*/indexes/*}\022\346\001\n" - + "\013CreateIndex\0224.google.cloud.vec" - + "torsearch.v1beta.CreateIndexRequest\032\035.google.longrunning.Operation\"\201\001\312A\032\n" - + "\005Index\022\021OperationMetadata\332A\025parent,index,index_" - + "id\202\323\344\223\002F\"=/v1beta/{parent=projects/*/loc" - + "ations/*/collections/*}/indexes:\005index\022\350\001\n" - + "\013UpdateIndex\0224.google.cloud.vectorsear" - + "ch.v1beta.UpdateIndexRequest\032\035.google.longrunning.Operation\"\203\001\312A\032\n" - + "\005Index\022\021OperationMetadata\332A\021index,update_mask\202\323\344\223\002L2C/" - + "v1beta/{index.name=projects/*/locations/*/collections/*/indexes/*}:\005index\022\335\001\n" - + "\013DeleteIndex\0224.google.cloud.vectorsearch.v1" - + "beta.DeleteIndexRequest\032\035.google.longrunning.Operation\"y\312A*\n" - + "\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002?*=/v1b" - + "eta/{name=projects/*/locations/*/collections/*/indexes/*}\022\372\001\n" - + "\021ImportDataObjects\022:.google.cloud.vectorsearch.v1beta.Impor" - + "tDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" - + "\031ImportDataObjectsRespo" - + "nse\022\031ImportDataObjectsMetadata\202\323\344\223\002J\"E/v" - + "1beta/{name=projects/*/locations/*/collections/*}:importDataObjects:\001*\022\372\001\n" - + "\021ExportDataObjects\022:.google.cloud.vectorsearch" - + ".v1beta.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" - + "\031ExportDataObjectsResponse\022\031ExportDataObjectsMetad" - + "ata\202\323\344\223\002J\"E/v1beta/{name=projects/*/loca" - + "tions/*/collections/*}:exportDataObjects" - + ":\001*\032O\312A\033vectorsearch.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-platformB\370\001\n" - + "$com.google.cloud.vectorsearch.v1betaB\030VectorSearchServiceProtoP\001ZHcloud" - + ".google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb\252\002" - + " Google.Cloud.VectorSearch.V1Beta\312\002 Google\\Cloud\\Ve" - + "ctorSearch\\V1beta\352\002#Google::Cloud::VectorSearch::V1betab\006proto3" + + "\344\223\002?*=/v1beta/{name=projects/*/locations/*/collections/*/indexes/*}\022\372\001\n" + + "\021ImportDataObjects\022:.google.cloud.vectorsearch.v1" + + "beta.ImportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" + + "\031ImportDataObjectsResponse\022\031ImportDataObjectsMetadata" + + "\202\323\344\223\002J\"E/v1beta/{name=projects/*/locatio" + + "ns/*/collections/*}:importDataObjects:\001*\022\372\001\n" + + "\021ExportDataObjects\022:.google.cloud.ve" + + "ctorsearch.v1beta.ExportDataObjectsRequest\032\035.google.longrunning.Operation\"\211\001\312A6\n" + + "\031ExportDataObjectsResponse\022\031ExportDataOb" + + "jectsMetadata\202\323\344\223\002J\"E/v1beta/{name=proje" + + "cts/*/locations/*/collections/*}:exportD" + + "ataObjects:\001*\032O\312A\033vectorsearch.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/cloud-platformB\370\001\n" + + "$com.google.cloud.vectorsearch.v1betaB\030VectorSearchServiceProt" + + "oP\001ZHcloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb\252\002" + + " Google.Cloud.VectorSearch.V1Beta\312\002 Googl" + + "e\\Cloud\\VectorSearch\\V1beta\352\002#Google::Cloud::VectorSearch::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -560,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1beta_DeleteCollectionRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "Force", }); internal_static_google_cloud_vectorsearch_v1beta_Index_descriptor = getDescriptor().getMessageType(10); @@ -692,7 +710,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor, new java.lang.String[] { - "GcsDestination", "Name", "Destination", + "GcsDestination", "Name", "FieldFilter", "Destination", }); internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_GcsExportDestination_descriptor = internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor @@ -703,6 +721,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExportUri", "Format", }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor = + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_descriptor + .getNestedType(1); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor, + new java.lang.String[] { + "IncludedFields", "ExcludedFields", "Selector", + }); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor = + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_descriptor + .getNestedType(0); + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsRequest_FieldFilter_FieldList_descriptor, + new java.lang.String[] { + "Fields", + }); internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_descriptor = getDescriptor().getMessageType(22); internal_static_google_cloud_vectorsearch_v1beta_ExportDataObjectsMetadata_fieldAccessorTable = diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto index 3ae3f5f85386..cccda3bde9fc 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/data_object_search_service.proto @@ -238,11 +238,12 @@ message SemanticSearch { // Defines a text search operation. message TextSearch { - // Required. The query text. - string search_text = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The query text. Required when using the default text search mode. + string search_text = 1 [(google.api.field_behavior) = OPTIONAL]; - // Required. The data field names to search. - repeated string data_field_names = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. The data field names to search. Required when using the default + // text search mode. + repeated string data_field_names = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The fields to return in the search results. OutputFields output_fields = 3 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto index f73ae80baedd..911a777edf24 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/proto/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto @@ -428,6 +428,11 @@ message DeleteCollectionRequest { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. If set to true, any Indexes and DataObjects from this Collection + // will also be deleted. (Otherwise, the request will only work if the + // Collection has no Indexes and DataObjects.) + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; } // Message describing Index object @@ -762,6 +767,29 @@ message ExportDataObjectsRequest { Format format = 2 [(google.api.field_behavior) = REQUIRED]; } + // Selects which top-level Data Object fields are emitted at export time. + message FieldFilter { + // Wrapper for a repeated string. Wrapping in a message lets the + // surrounding `oneof` distinguish "field set to an empty list" (which is + // rejected as INVALID_ARGUMENT) from "field not set". + message FieldList { + // Required. The list of top-level Data Object JSON field names. Allowed + // values are `id`, `data`, `vectors`, `etag`. + repeated string fields = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Exactly one of `included_fields` or `excluded_fields` must be set. + oneof selector { + // Optional. Only these top-level fields will appear in each exported + // record. + FieldList included_fields = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Every top-level field except these will appear in each + // exported record. + FieldList excluded_fields = 2 [(google.api.field_behavior) = OPTIONAL]; + } + } + // The configuration for the export data. oneof destination { // The Cloud Storage location where user wants to export Data Objects. @@ -777,6 +805,15 @@ message ExportDataObjectsRequest { type: "vectorsearch.googleapis.com/Collection" } ]; + + // Optional. Restricts which top-level Data Object fields appear in each + // exported JSONL record. If unset, every field is exported (the existing + // behavior). The primary use case is excluding the per-object `etag` so + // that the exported records can be imported into a Collection in a + // different region without optimistic-concurrency conflicts. + // + // Allowed field names are `id`, `data`, `vectors`, `etag`. + FieldFilter field_filter = 3 [(google.api.field_behavior) = OPTIONAL]; } // Metadata for the ExportDataObjects LRO. diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollection.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollection.java index 594e14f3d051..1cc58bf4a283 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollection.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollection.java @@ -40,6 +40,7 @@ public static void asyncDeleteCollection() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = vectorSearchServiceClient.deleteCollectionCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java index 1a2cafe02a4f..8b3a41c1569a 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java @@ -41,6 +41,7 @@ public static void asyncDeleteCollectionLRO() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); OperationFuture future = vectorSearchServiceClient.deleteCollectionOperationCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/SyncDeleteCollection.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/SyncDeleteCollection.java index 46e48201dfce..ed8c9bfcd0e5 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/SyncDeleteCollection.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/deletecollection/SyncDeleteCollection.java @@ -39,6 +39,7 @@ public static void syncDeleteCollection() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); vectorSearchServiceClient.deleteCollectionAsync(request).get(); } diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java index 6b8da1cf8fc4..67af90d61ae1 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java @@ -39,6 +39,7 @@ public static void asyncExportDataObjects() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ApiFuture future = vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java index be1fe0e85f2e..6ffbc3f24246 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java @@ -40,6 +40,7 @@ public static void asyncExportDataObjectsLRO() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); OperationFuture future = vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java index 6bcab5fc00bd..afaa1a2572f0 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java @@ -38,6 +38,7 @@ public static void syncExportDataObjects() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse response = vectorSearchServiceClient.exportDataObjectsAsync(request).get(); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollection.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollection.java index 6e0bb6af49d7..e619d514c9cd 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollection.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollection.java @@ -40,6 +40,7 @@ public static void asyncDeleteCollection() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = vectorSearchServiceClient.deleteCollectionCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java index 6e9a259c6341..8f926e25b10b 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/AsyncDeleteCollectionLRO.java @@ -41,6 +41,7 @@ public static void asyncDeleteCollectionLRO() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); OperationFuture future = vectorSearchServiceClient.deleteCollectionOperationCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/SyncDeleteCollection.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/SyncDeleteCollection.java index e4d701728e23..fd989e5dcfed 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/SyncDeleteCollection.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/deletecollection/SyncDeleteCollection.java @@ -39,6 +39,7 @@ public static void syncDeleteCollection() throws Exception { DeleteCollectionRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); vectorSearchServiceClient.deleteCollectionAsync(request).get(); } diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java index 91014cc248df..06c9067c85fa 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjects.java @@ -39,6 +39,7 @@ public static void asyncExportDataObjects() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ApiFuture future = vectorSearchServiceClient.exportDataObjectsCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java index f1dd403909ef..2c4d7d3ae7a6 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/AsyncExportDataObjectsLRO.java @@ -40,6 +40,7 @@ public static void asyncExportDataObjectsLRO() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); OperationFuture future = vectorSearchServiceClient.exportDataObjectsOperationCallable().futureCall(request); diff --git a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java index 2cf762b51fad..e777081a626a 100644 --- a/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java +++ b/java-vectorsearch/samples/snippets/generated/com/google/cloud/vectorsearch/v1beta/vectorsearchservice/exportdataobjects/SyncExportDataObjects.java @@ -38,6 +38,7 @@ public static void syncExportDataObjects() throws Exception { ExportDataObjectsRequest request = ExportDataObjectsRequest.newBuilder() .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setFieldFilter(ExportDataObjectsRequest.FieldFilter.newBuilder().build()) .build(); ExportDataObjectsResponse response = vectorSearchServiceClient.exportDataObjectsAsync(request).get(); diff --git a/librarian.yaml b/librarian.yaml index 047d6eb8723a..1a37b0825431 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: 4679f0c8e33ba14d27612bd607649e1f867a881c - sha256: 35131934f78f0eb4499feb17845ca0c060d3cfc506e0d1d626fbb1bce4d70e23 + commit: f0b38ca5ff9cd99335328aae512d7cc583b57745 + sha256: 872f65c85354ae0ca9d65537d6098430a1c15307af08e6b0dfabaaa9048f9bd1 showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2